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

Investigate different sampling behaviour of the norm distribution when the cpu is used as device. #54

Open
giorgiapitteri opened this issue May 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@giorgiapitteri
Copy link
Collaborator

When sampling the norm distribution in sample we need to unsqueeze the dimensions when the device is set to gpu. However if the device is set to cpu this unsqueeze needs to be removed otherwise we will get the following error:

r = r.repeat(*[1 for _ in sample_shape], self.dim)
RuntimeError: Number of dimensions of repeat dims can not be smaller than number of dimensions of tensor
@fariedabuzaid fariedabuzaid added the bug Something isn't working label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants