Community post
pytorch bullpen
Leaf variable must require option "requires_grad=True"
for example
x = torch.autograd.Variable(torch.Tensor([1, 2, 3, 4]), requires_grad=True)
x.is_leaf
then returns True
and if y =x+i then u should get "False"
4th Street Bar
Hive-Bar
Browse freely. Sign in only when you want to participate.
Hive-Bar Powered by Hive beta-fdb5b5b
Community post
Leaf variable must require option "requires_grad=True"
for example
x = torch.autograd.Variable(torch.Tensor([1, 2, 3, 4]), requires_grad=True)
x.is_leaf
then returns True
and if y =x+i then u should get "False"
Replies (2)
Congratulations @riemannko! You received a personal award!
Click here to view your Board of Honor
Congratulations @riemannko! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!