Commit f35c04a
Update dcgan_faces_tutorial.py (#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]>1 parent ffcaefd commit f35c04a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| |||
0 commit comments