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 tile shape inference when repeats got dynamic shape #15792

Conversation

praasz
Copy link
Contributor

@praasz praasz commented Feb 17, 2023

Details:

Fix tile shape calculation in case when repeats input has got dynamic shape.

@github-actions github-actions bot added the category: Core OpenVINO Core (aka ngraph) label Feb 17, 2023
@praasz praasz requested review from jane-intel and slyalin February 17, 2023 14:05
@praasz praasz added this to the 2023.0 milestone Feb 17, 2023
@praasz praasz marked this pull request as ready for review February 17, 2023 14:06
@praasz praasz requested a review from a team as a code owner February 17, 2023 14:06
Comment on lines 57 to 58
const auto r = (repeats_rank.is_static() && repeats_shape[0].is_static()) ? repeats_shape[0].get_length() : 0;
output_shape.resize(std::max<size_t>(arg_rank.get_length(), r));
Copy link
Contributor

Choose a reason for hiding this comment

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

This is incorrect behavior. Please see the specification. repeats could be longer than data rank and it will extend output rank.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to return dynamic shape.

@praasz praasz requested a review from jane-intel February 27, 2023 05:55
@ilyachur ilyachur merged commit cd8999d into openvinotoolkit:master Mar 8, 2023
@praasz praasz deleted the bugfix/tile-shape-infer-with-dynamic-repeats branch March 9, 2023 06:24
andrei-cv pushed a commit to andrei-cv/openvino that referenced this pull request Mar 21, 2023
…kit#15792)

* fix shape infer when repeats got dynamic shape

* Dynamic output shape when repeats dim is dynamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants