PyTorch Forums
None Grad while I set requires_grad=True
smth
March 14, 2019, 2:28am
2
It’s likely because it’s not a leaf variable.
See
Grad is None even when requires_grad=True
and
Grad is None after backward() is called, and required_grad is True(!)
2 Likes
show post in topic