Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transform_last for BrownianTreeNoiseSampler #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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