I figured out that self.critic_optimizer.zero_grad(). zeros out the previous accumulated gradient.
確定! 回上一頁