Open cgoecknerwald opened 6 years ago
Text in notebook:
z.sum().backward() print(x.grad) tensor([[27., 27.], [27., 27.]])
It says "You should have got a matrix of 4.5." This code actually creates
4.5
tensor([[27., 27.], [27., 27.]])
It looks like it should instead be:
z.sum() print(x.grad)
Text in notebook:
It says "You should have got a matrix of
4.5
." This code actually createsIt looks like it should instead be: