Skip to content

Conversation

Disty0
Copy link

@Disty0 Disty0 commented May 31, 2023

torch.Generator is not supported on Intel so we have to run BrownianTreeNoiseSampler on the CPU with transform and send results back to the GPU with transform_last.

It will throw this error if we try sending it to the GPU outside of the class:
AttributeError: 'BrownianTreeNoiseSampler' object has no attribute 'to'

Example use:
return BrownianTreeNoiseSampler(x.to("cpu"), sigma_min, sigma_max, seed=current_iter_seeds, transform=lambda x: x.to("cpu"), transform_last=lambda x: x.to("xpu"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant