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

【PaddlePaddle Hackathon 3】Add Paddle tile operator #12277

Merged
merged 7 commits into from
Sep 1, 2022

Conversation

AndPuQing
Copy link
Contributor

Details:

  • add tile operation in Paddle front end

Reference

uni-test passed
image

Copy link
Contributor

@openvino-dev-samples openvino-dev-samples left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution

@ceciliapeng2011
Copy link
Contributor

x = np.array([1, 2, 1]).astype("float32")
repeat_times = np.array([2, 1]).astype("int32")
paddle_tile("tile_tensor_list", x, repeat_times, tensor_list=True)
paddle_tile("tile_repeat_times_tensor", x, repeat_times, to_tensor=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

The input X could be of more than 1 dimensions. And there could be cases like "Example 2: number of elements in “repeats” is more than shape of “data”" referring to https://docs.openvino.ai/latest/openvino_docs_ops_movement_Tile_1.html.

Could you please use a higher dimension (like 2 or 3 which is prone to have problems) instead of 1 and cover the case I mentioned?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for contribution. Nice PR and close to be qualified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added unit tests for dimension inconsistency.

image

thanks for your review

@AndPuQing AndPuQing requested review from ceciliapeng2011 and removed request for openvino-dev-samples August 10, 2022 15:20
Copy link
Contributor

@ceciliapeng2011 ceciliapeng2011 left a comment

Choose a reason for hiding this comment

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

LGTM.

@AndPuQing AndPuQing requested a review from a team as a code owner August 25, 2022 09:43
@AndPuQing
Copy link
Contributor Author

Are there any other issues with this PR?

@ilyachur ilyachur added this to the 2022.3 milestone Sep 1, 2022
@ilyachur ilyachur added the category: PDPD FE OpenVINO PaddlePaddle FrontEnd label Sep 1, 2022
@ilyachur ilyachur merged commit d7f119d into openvinotoolkit:master Sep 1, 2022
@AndPuQing AndPuQing deleted the tile branch September 6, 2022 03:45
@ilya-lavrenov ilya-lavrenov added ExternalPR External contributor PaddlePaddle Hackathon a Intel and Baidu joint Hackathon event labels Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: PDPD FE OpenVINO PaddlePaddle FrontEnd ExternalPR External contributor PaddlePaddle Hackathon a Intel and Baidu joint Hackathon event
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants