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

[Transformations] Add Squeeze-15 downgrade transformation #27286

Merged

Conversation

mmikolajcz
Copy link
Contributor

Details:

  • Add Squeeze-15 downgrade transformation to Squeeze-0 for compatible attribute
  • ...

Tickets:

PR requires PR-26995 to be merged

@mmikolajcz mmikolajcz requested a review from a team as a code owner October 28, 2024 17:40
@mmikolajcz mmikolajcz requested review from itikhono and removed request for a team October 28, 2024 17:40
@github-actions github-actions bot added the category: transformations OpenVINO Runtime library - Transformations label Oct 28, 2024
Comment on lines +24 to +25
if (squeeze_v15->get_input_size() == 1) {
squeeze_v0 = std::make_shared<op::v0::Squeeze>(squeeze_v15->input_value(0));
Copy link
Contributor

Choose a reason for hiding this comment

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

v15::Squeeze single input constructor has been extended with allow_axis_skip so the false value should be a common condition

Suggested change
if (squeeze_v15->get_input_size() == 1) {
squeeze_v0 = std::make_shared<op::v0::Squeeze>(squeeze_v15->input_value(0));
if (squeeze_v15->get_input_size() == 1 && !squeeze_v15->get_allow_axis_skip()) {
squeeze_v0 = std::make_shared<op::v0::Squeeze>(squeeze_v15->input_value(0));

Copy link
Contributor

Choose a reason for hiding this comment

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

Or the behavior is the same when axes are not provided?
@barnasm1 Could you confirm?

Copy link
Contributor

Choose a reason for hiding this comment

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

The result for empty axes is the same (PartialShape::dynamic()) for both attributes values.

@mitruska mitruska requested a review from praasz October 31, 2024 08:42
@mlukasze mlukasze enabled auto-merge October 31, 2024 09:00
@mlukasze mlukasze added this pull request to the merge queue Oct 31, 2024
Merged via the queue into openvinotoolkit:master with commit 86083e0 Oct 31, 2024
165 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: transformations OpenVINO Runtime library - Transformations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants