Skip to content

Conversation

Yancey0623
Copy link
Contributor

No description provided.

@Yancey0623 Yancey0623 requested a review from typhoonzero May 3, 2018 09:07
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.

@Yancey0623 Yancey0623 merged commit 773bf29 into PaddlePaddle:develop May 4, 2018
@Yancey0623 Yancey0623 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