What should we use to clear out the gradients accumulated for the parameters of the network?
 optimizer.zero_grad()
 net.zero_grad()

I have seen tutorials use them interchangeably. Are they the same or different? If different, what is the difference and do you need to execute both?