-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Fleet_Executor] Passing runtime scope and place #37603
Conversation
Thanks for your contribution! |
7dce858
to
7970582
Compare
23bd963
to
9da8f33
Compare
There was a problem hiding this 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(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是不是加到析构里面就可以了,当前机制FleetExecutor应该是默认搞成program_cache的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为有个Init,所以当时加了个Release从语义上和它对应,就像Trainer一样,虽然讲道理我也觉得不需要
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9da8f33
to
f7d118f
Compare
f7d118f
to
b5062f6
Compare
PR types
Others
PR changes
Others
Describe
异步执行器传递运行时的scope和place。