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

Update crop op #11293

Merged
merged 5 commits into from
Jun 8, 2018
Merged

Update crop op #11293

merged 5 commits into from
Jun 8, 2018

Conversation

JiayiFeng
Copy link
Collaborator

Make crop op supporting taking offsets as one of its inputs.

@JiayiFeng JiayiFeng requested a review from reyoung June 8, 2018 06:09
} else {
framework::TensorCopySync(*offsets_tensor, platform::CPUPlace(),
&cpu_tmp_tensor);
offsets_data = cpu_tmp_tensor.data<int>();
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 that there are a lot of operators need to copy tensor to CPU. Maybe we could extract a common routine later.

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.

Excellent

@JiayiFeng JiayiFeng merged commit b587a7f into PaddlePaddle:develop Jun 8, 2018
@JiayiFeng JiayiFeng deleted the update_crop_op branch June 8, 2018 07:37
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