-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Recv OP: use BlockDesc* instread of ProgramDesc proto as Attribute #7621
Conversation
@@ -243,7 +243,7 @@ def get_pserver_program(self, endpoint, optimize_ops): | |||
self.param_grad_map[endpoint]["grads"]}, # grads to recv | |||
outputs={}, | |||
attrs={ | |||
"OptimizeProgram": optimize_sub_program.desc, | |||
"OptimizeBlock": optimize_sub_program.global_block(), |
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.
We can merge optimize_sub_program
to the pserver_program
as the second block (block_id 1), then we don't need to create variables in both two of the programs.
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++, maybe we can update the transpiler in another PR.
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!
@typhoonzero sure! I will add a followup PR. Created an issue about it: #7700 |
Fix: #7343