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

[Fleet_Executor] Passing runtime scope and place #37603

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

LiYuRio
Copy link
Contributor

@LiYuRio LiYuRio commented Nov 26, 2021

PR types

Others

PR changes

Others

Describe

异步执行器传递运行时的scope和place。

@paddle-bot-old
Copy link

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

wangxicoding
wangxicoding previously approved these changes Nov 26, 2021
Copy link
Contributor

@wangxicoding wangxicoding left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -97,8 +113,25 @@ void FleetExecutor::Run() {
carrier_instance.Start();
}

void FleetExecutor::Release() {
// Release
void FleetExecutor::Release() { root_scope_->DropKids(); }
Copy link
Contributor

Choose a reason for hiding this comment

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

这个是不是加到析构里面就可以了,当前机制FleetExecutor应该是默认搞成program_cache的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

因为有个Init,所以当时加了个Release从语义上和它对应,就像Trainer一样,虽然讲道理我也觉得不需要

FeixLiu
FeixLiu previously approved these changes Nov 29, 2021
Copy link
Contributor

@FeixLiu FeixLiu left a comment

Choose a reason for hiding this comment

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

LGTM

@FeixLiu FeixLiu dismissed stale reviews from wangxicoding and themself via 1de42c9 November 29, 2021 07:21
@FeixLiu FeixLiu force-pushed the dev_exe_scope_place branch 3 times, most recently from 9da8f33 to f7d118f Compare November 29, 2021 07:32
@FeixLiu FeixLiu force-pushed the dev_exe_scope_place branch from f7d118f to b5062f6 Compare November 29, 2021 08:38
@FeixLiu FeixLiu closed this Nov 29, 2021
@FeixLiu FeixLiu reopened this Nov 29, 2021
@FeixLiu FeixLiu requested a review from wangxicoding November 29, 2021 11:36
@wangxicoding wangxicoding merged commit 87e65a9 into PaddlePaddle:develop Nov 30, 2021
Zjq9409 pushed a commit to Zjq9409/Paddle that referenced this pull request Dec 10, 2021
@LiYuRio LiYuRio deleted the dev_exe_scope_place branch December 31, 2021 10:00
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.

3 participants