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

fix delete_ops #10377

Merged
merged 2 commits into from
May 4, 2018
Merged

fix delete_ops #10377

merged 2 commits into from
May 4, 2018

Conversation

Yancey1989
Copy link
Contributor

No description provided.

@@ -854,11 +854,10 @@ def delete_ops(self, ops):
try:
start = list(self.ops).index(ops[0])
end = list(self.ops).index(ops[-1])
[self.remove_op(start) for _ in xrange(end - start + 1)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can just throw away delete_ops function, should not keep remove and delete, keep the api simple. delete_ops is only used by distribute_transpiler.py move these code there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree with that, will update this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Yancey1989 Yancey1989 merged commit 773bf29 into PaddlePaddle:develop May 4, 2018
@Yancey1989 Yancey1989 deleted the fix_delete_ops branch May 4, 2018 02:45
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.

2 participants