Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1a94fb

Browse files
Fix loss_D definition in dcgan tutorial (#1051)
Co-authored-by: holly1238 <[email protected]>
1 parent 585563e commit f1a94fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/dcgan_faces_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def forward(self, input):
554554
# reported are:
555555
#
556556
# - **Loss_D** - discriminator loss calculated as the sum of losses for
557-
# the all real and all fake batches (:math:`log(D(x)) + log(D(G(z)))`).
557+
# the all real and all fake batches (:math:`log(D(x)) + log(1 - D(G(z)))`).
558558
# - **Loss_G** - generator loss calculated as :math:`log(D(G(z)))`
559559
# - **D(x)** - the average output (across the batch) of the discriminator
560560
# for the all real batch. This should start close to 1 then

0 commit comments

Comments
 (0)