(self)
| 57 | self.loss_G.backward() |
| 58 | |
| 59 | def optimize_parameters(self): |
| 60 | self.forward() |
| 61 | # update G |
| 62 | self.optimizer_G.zero_grad() # set G's gradients to zero |
| 63 | self.backward_G() # calculate graidents for G |
| 64 | self.optimizer_G.step() # udpate G's weights |
| 65 |
nothing calls this directly
no test coverage detected