I’m new to PyTorch and I’m taking a liking to it, but a small doubt I have is whether or not gradients are calculated when the forward method is run on a model is used for prediction.
If so (gradients are calculated) does running loss.backward() just populate those gradients? or is it like running the loss.backward() method does both of them together (calculate gradients and populate them too)
Thanks in Advance!