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 gather_nd operator #12355

Merged
merged 14 commits into from
Sep 13, 2022

Conversation

AndPuQing
Copy link
Contributor

@AndPuQing AndPuQing commented Jul 29, 2022

Details:

  • add gather_nd operation in Paddle front end

Reference

image

@AndPuQing AndPuQing requested a review from a team as a code owner July 29, 2022 08:22
@yuxu42
Copy link
Contributor

yuxu42 commented Aug 1, 2022

@liubo-intel Could you please take a review? Thanks!

@liubo-intel liubo-intel added category: PDPD FE OpenVINO PaddlePaddle FrontEnd PaddlePaddle Hackathon a Intel and Baidu joint Hackathon event labels Aug 6, 2022
@openvino-dev-samples
Copy link
Contributor

Details:

* _add gather_nd operation in Paddle front end_

Reference

* https://www.paddlepaddle.org.cn/documentation/docs/en/api/paddle/gather_nd_en.html

Hi @AndPuQing could you upload the a screen shoot for your uni-test ?

@AndPuQing
Copy link
Contributor Author

AndPuQing commented Aug 7, 2022

Details:

* _add gather_nd operation in Paddle front end_

Reference

* https://www.paddlepaddle.org.cn/documentation/docs/en/api/paddle/gather_nd_en.html

Hi @AndPuQing could you upload the a screen shoot for your uni-test ?

Sorry, maybe i forgot. Now, uploaded.

Copy link
Contributor

@liubo-intel liubo-intel left a comment

Choose a reason for hiding this comment

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

Hi, @AndPuQing : Thanks for contribution. In case that OpenVINO 'GatherND' OP not support Paddle 'gather_nd' OP in some special cases, Could you please add some more additional test cases based on the comment that I left in 'generate_gather_nd.py' file? If such kind of un-support really exists, we may need to leave some 'TODO' notification in related codes.
Besides this, this PR looks good to me.

@liubo-intel
Copy link
Contributor

@AndPuQing : looks like there is some issue on CI, could you please rebase this PR to the latest master branch? thanks.

@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?

@liubo-intel
Copy link
Contributor

Hi, @ceciliapeng2011 : do you have any other comments about this PR? if none, could you please help merge it? tks.

@ilyachur ilyachur added this to the 2022.3 milestone Sep 1, 2022
auto shape = index_node.get_partial_shape();
for (const auto& dim : shape) {
if (dim.is_static() && dim.get_length() == 0)
PADDLE_OP_CHECK(node, false, "zero dimension is not allowed for gather_nd Index");
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@liubo-intel liubo-intel Sep 5, 2022

Choose a reason for hiding this comment

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

Hi, @ilyachur : thanks for taking your time to help have a look at this PR. the 'indices' input value of OV 'gather_nd' can be '0', but as its specification describes 'A tensor of a rank not less than 1'. the 'indices' input rank should not be '0'(@AndPuQing has created an commented test case 'gather_nd_empty' to cover this).
Maybe we should change it to the following way?

    if (shape.is_static() && shape.rank().get_length() == 0)
        PADDLE_OP_CHECK(node, false, "zero 'indices' input rank is not allowed for gather_nd");

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes I think it will be more aligned with the specification

@ilyachur ilyachur merged commit 28058d3 into openvinotoolkit:master Sep 13, 2022
@AndPuQing AndPuQing deleted the gather_nd branch October 20, 2022 03:07
@ilya-lavrenov ilya-lavrenov added the ExternalPR External contributor label 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.

7 participants