Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dcgan_faces_tutorial.py (pytorch#816)
* Update dcgan_faces_tutorial.py Previous comment might have been slightly misleading. A bit easier to understand, if made explicit, that gradients of errD_real and errD_fake w.r.t. parameters of netD get added up/accumulated because of the successive backward calls without a zero_grad() in between. * Update dcgan_faces_tutorial.py Co-authored-by: Brian Johnson <[email protected]> Co-authored-by: holly1238 <[email protected]>
- Loading branch information