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 the bug that Input(Offsets) and attr(offsets) cannot be set at the same time. #24975

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

sandyhouse
Copy link

@sandyhouse sandyhouse commented Jun 9, 2020

PR types

Bug fixes

PR changes

OPs

Describe

Fix the bug that Input(Offsets) and attr(offsets) cannot be set at the same time.
The python side set them both (as the following figure shows), and Input(Offsets) has a high priority, thus we can remove the ENFORCE_XX statement in the source codes.
image

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jun 9, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jun 9, 2020

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@sandyhouse sandyhouse closed this Jul 1, 2020
@sandyhouse sandyhouse reopened this Jul 1, 2020
@sandyhouse sandyhouse requested review from gavin1332 and zhangting2020 and removed request for gavin1332 July 30, 2020 10:59
Copy link
Contributor

@zhangting2020 zhangting2020 left a comment

Choose a reason for hiding this comment

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

LGTM. 因为参数要支持Tensor,但是同时需要在compile time推断出shape,因此就必须同时用Offsets(Input)和attr offsets. attr offsets用于shape推断。

@sandyhouse sandyhouse merged commit ce50693 into PaddlePaddle:develop Jul 30, 2020
@sandyhouse sandyhouse deleted the fix_crop_tensor branch August 27, 2020 06:47
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