Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【论文复现】pytorch 中的 backward 和 step 对应 paddle 中如何改写 #26503

Closed
Ryan906k9 opened this issue Aug 20, 2020 · 1 comment

Comments

@Ryan906k9
Copy link

Ryan906k9 commented Aug 20, 2020

pytorch 代码如下:

Generator_loss = G_loss_A + G_loss_B

            Generator_loss.backward()

            self.G_optim.step()

对应paddle 的是只要这么改吗?

Generator_loss = G_loss_A + G_loss_B

                Generator_loss.backward()

其中self.G_optim.step()对应paddle 中的什么呢?

@saxon-zh
Copy link

可以参见这个文档说明查看对应的API:命令式编程使用教程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants