thbupt opened a new issue #12582: In dcgan.py, the parameters of netD are updated as training G? URL: https://github.com/apache/incubator-mxnet/issues/12582 In dcgan.py, the code for updating G is as followings. print(netD(fake)) with autograd.record(): output = netD(fake) output = output.reshape((-1, 2)) errG = loss(output, real_label) errG.backward() trainerG.step(opt.batch_size) print(netD(fake)) I print the output of netD before and after updating G, I found they have different outputs, which means the netD was also updated? In my opinion, only the parameters of G should be updated as excuting trainerG.step(). So what's problem?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
