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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

test phantom grad fails with ops that return tensors that do not require grad #119

Closed
nikitaved opened this issue Apr 2, 2024 · 0 comments 路 Fixed by #293
Closed

test phantom grad fails with ops that return tensors that do not require grad #119

nikitaved opened this issue Apr 2, 2024 · 0 comments 路 Fixed by #293
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@nikitaved
Copy link
Contributor

馃悰 Bug

As per title. To reproduce, in #118 one can just replace the calls topk(...)[0] with topk(...) to get:

RuntimeError: element 1 of tensors does not require grad and does not have a grad_fn

which is generated in torch.autograd.grad.

@nikitaved nikitaved added bug Something isn't working help wanted Extra attention is needed labels Apr 2, 2024
@kshitij12345 kshitij12345 self-assigned this Apr 29, 2024
@t-vi t-vi closed this as completed in #293 May 23, 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 help wanted Extra attention is needed
Projects
None yet
2 participants