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"
___| _ \ | | | |_ _|\ \ / ____| | | | | | | | | \ \ / __| | | | | ___ __| ___ | | \ \ / | \____|\___/ _| _| _|___| \_/ _____| --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---
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"