suppose I have a image A of size 720*720 and I want to calculate its gradient.
Hence I will use A.backward() but since A is not scalar I need to give gradient as an argument to backward. I understand that the shape of gradient should also be 720*720 but what should be the value of it?
Should I randomly initialize a tensor of shape 720*720