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

Python cpp sync #4816

Merged
merged 5 commits into from
Oct 15, 2017
Merged

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Oct 15, 2017

fix: #4810
project: #4679

Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

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

LGTM

@jacquesqiao jacquesqiao merged commit 88b9202 into PaddlePaddle:develop Oct 15, 2017
assert start_index <= end_index

# sync ops append to the head of cpp_ops
for index in range((start_index - 1 - 1), -1, -1):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why start_index needs to be minus with 2?

assert end_index is not None
assert start_index <= end_index

# sync ops append to the head of cpp_ops
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like append from cpp_ops, not to cpp_ops?

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.

add sync between python and cpp
3 participants