You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by wk...@apache.org on 2019/07/10 02:33:01 UTC

[incubator-mxnet] branch master updated: Two fixes for info_gan.md example Code (#15323)

This is an automated email from the ASF dual-hosted git repository.

wkcn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d4d1bc  Two fixes for info_gan.md example Code (#15323)
7d4d1bc is described below

commit 7d4d1bc26d52cd87eb97536ff154c7f127b68a55
Author: Konrad Heidler <k....@tum.de>
AuthorDate: Wed Jul 10 04:32:39 2019 +0200

    Two fixes for info_gan.md example Code (#15323)
    
    * Two fixes for info_gan.md example Code
    
    * retrigger CI
---
 docs/tutorials/gluon/info_gan.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/tutorials/gluon/info_gan.md b/docs/tutorials/gluon/info_gan.md
index 91adf6c..c35df69 100644
--- a/docs/tutorials/gluon/info_gan.md
+++ b/docs/tutorials/gluon/info_gan.md
@@ -339,9 +339,11 @@ with SummaryWriter(logdir='./logs/') as sw:
                 fake_image = generator(g_input)
 
                 sw.add_scalar(tag='Loss_D', value={'test':d_error_epoch.asscalar()/count}, global_step=counter)
-                sw.add_scalar(tag='Loss_G', value={'test':d_error_epoch.asscalar()/count}, global_step=counter)
+                sw.add_scalar(tag='Loss_G', value={'test':g_error_epoch.asscalar()/count}, global_step=counter)
                 sw.add_image(tag='data_image', image=((fake_image[0]+ 1.0) * 127.5).astype(np.uint8)  , global_step=counter)
                 sw.flush()
+            
+            counter += 1
         
         discriminator.save_parameters("infogan_d_latest.params")
         generator.save_parameters("infogan_g_latest.params")