riemannko
@riemannko
·
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…