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

add shareLod #5259

Merged
merged 2 commits into from
Oct 31, 2017
Merged

add shareLod #5259

merged 2 commits into from
Oct 31, 2017

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Oct 31, 2017

fix: #4835

@@ -52,6 +52,22 @@ class CompileTimeInferShapeContext : public InferShapeContext {
const std::vector<std::string> &Outputs(
const std::string &name) const override;

void ShareLoD(const std::string &in, const std::string &out, size_t i = 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we rename it ReuseLoD?

Copy link
Member Author

Choose a reason for hiding this comment

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

The purpose of this interface is passing the Lod info from some input to some output. Most Op will just pass it through, some op will process this Lod Information. So I think ShareLod is properly.

@jacquesqiao jacquesqiao merged commit ee11f00 into PaddlePaddle:develop Oct 31, 2017
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.

InferShape cannot obtain LoD information.
2 participants