Skip to content

Conversation

@ushio2021
Copy link

torch.no_grad needs to be instantiated with parenthesis to function as a decorator (also works for PyTorch 2.1 and later)

torch.no_grad needs to be instantiated with parenthesis to function as a decorator (< PyTorch 2.1)
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.

2 participants