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

Recv OP: use BlockDesc* instread of ProgramDesc proto as Attribute #7621

Merged
merged 3 commits into from
Jan 19, 2018

Conversation

helinwang
Copy link
Contributor

@helinwang helinwang commented Jan 17, 2018

Fix: #7343

@helinwang helinwang changed the title Remote optimize Recv OP: use BlockDesc* instread of ProgramDesc proto as Attribute Jan 17, 2018
@@ -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(),
Copy link
Contributor

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.

typhoonzero
typhoonzero previously approved these changes Jan 18, 2018
Copy link
Contributor

@typhoonzero typhoonzero left a 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.

Copy link
Contributor

@putcn putcn left a comment

Choose a reason for hiding this comment

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

LGTM!

@helinwang
Copy link
Contributor Author

@typhoonzero sure! I will add a followup PR. Created an issue about it: #7700

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