-
Notifications
You must be signed in to change notification settings - Fork 45
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
Nans gradients for tensors with singleton dimensions for budget_bisect. #35
Comments
Hi Saul, Could you provide some code that causes this error? I haven't been able to reproduce it. |
First couple of things I've noticed:
|
Here is some code:
|
Backward also fails if (it's also something we should have already been checking for, but |
@ssantos97 @andre-martins does either of you have a solution for this? |
Tensors with singleton dimensions like
yield gradients with Nans for budget_bisect with budget =2. If we squeeze the singleton dimention gradients are correct.
The text was updated successfully, but these errors were encountered: