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

[PT FE] Support default strides for avg and max pooling #17337

Merged

Conversation

mvafin
Copy link
Contributor

@mvafin mvafin commented May 3, 2023

Details:

  • Support default strides for avg and max pooling

Tickets:

  • 107347

@mvafin mvafin requested a review from a team as a code owner May 3, 2023 09:39
@mvafin mvafin requested a review from eaidova May 3, 2023 09:39
@github-actions github-actions bot added the category: PyTorch FE OpenVINO PyTorch Frontend label May 3, 2023
@@ -22,7 +22,14 @@ OutputVector translate_avg_poolnd(const NodeContext& context) {
num_inputs_check(context, 6, 7);
auto input = context.get_input(0);
auto kernel = context.const_input<Shape>(1);
auto strides = context.const_input<Strides>(2);
Copy link
Member

Choose a reason for hiding this comment

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

is strides always constant if provided? Can it be output of some operation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can, but we didn't met such models.

@mvafin mvafin merged commit c1933fc into openvinotoolkit:master May 4, 2023
mvafin added a commit to mvafin/openvino that referenced this pull request May 4, 2023
…kit#17337)

* Support default strides for avg and max pooling

* Fix code style

* Remove changes from other ticket
andrei-kochin pushed a commit that referenced this pull request May 8, 2023
)

* Support default strides for avg and max pooling

* Fix code style

* Remove changes from other ticket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: PyTorch FE OpenVINO PyTorch Frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants