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

Remove DataParallel.scale_loss & apply_collective_grads #27603

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented Sep 27, 2020

PR types

New features

PR changes

APIs

Describe

In order to simplify the writing of dynamic parallel training, remove DataParallel.scale_loss & apply_collective_grads.

  • DataParallel.scale_losss -> loss.backward()
  • DataParallel.apply_collective_grads -> optimizer.step/minimize

TODO:

  • remove two api in all related api example code (in next PR)
  • move scale_losss and apply_collective_grads into C++ for better preformance (in the future, now only for API stability of 2.0-RC)

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@chenwhql chenwhql requested review from MRXLT and danleifeng and removed request for MRXLT September 28, 2020 02:04
danleifeng
danleifeng previously approved these changes Sep 28, 2020
Copy link
Contributor

@danleifeng danleifeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

phlrain
phlrain previously approved these changes Sep 28, 2020
saxon-zh
saxon-zh previously approved these changes Sep 28, 2020
Copy link

@saxon-zh saxon-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chenwhql chenwhql dismissed stale reviews from saxon-zh, phlrain, and danleifeng via 0ea3483 September 28, 2020 11:11
@phlrain phlrain self-requested a review September 29, 2020 01:52
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

6 participants