In pytorch examples(DCGAN),they made  model grads to become zero (netD.zero_grad and netG.zero_grad) but not in optimizer.DCGAN main.py 1
whereas in other examples, they made a optimizer grad to zero and not in model grads.vae and super resolution.py file also 2
Which one is right ?
Note: I don’t have much experience in GANs