needs_grad
and has_grad
not longer work
#5258
Labels
potential bug
Something that looks like a bug but not yet confirmed
needs_grad
and has_grad
not longer work
#5258
Describe the bug
field.snode.needs_grad
andfield.snode.ptr.has_grad
do not longer work but my librarystannum
depends on one of these two to perform checks.Breaking PRs
#4308 removed
field.snode.needs_grad
and #5083 removedhas_grad
from CPPSNode
class.This is not a bug but a breaking change that silently breaks my library. I understand you are preparing for forward differentiation and thus doing a lot of refactoring but I need an API to tell me if a field need gradient or not in the conventional backward mode (because it works with Autograd in PyTorch)
The text was updated successfully, but these errors were encountered: