Skip to content

Fix torch.no_grad#12

Open
ushio2021 wants to merge 1 commit intoPJLab-ADG:mainfrom
ushio2021:main
Open

Fix torch.no_grad#12
ushio2021 wants to merge 1 commit intoPJLab-ADG:mainfrom
ushio2021:main

Conversation

@ushio2021
Copy link
Copy Markdown

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