Suppose that I created some computational graph like this
a = torch.autograd.Variable(torch.ones((2,2)), requires_grad=True) b = a*2
then I update a values like this
a.data = a.data*2
My question how can I get new values of b (that should be now [[4,4],[4,4]]) without “creating” new b (e.g. running b = a*2)?