So var I never called grad function directly. Is there any reason when this is needed.
I learned that gradients will be calculated in the backward pass automatically. Is this the function that PyTorch is calling when backward(). Doesn’t seem to be the case.