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

EliminatePad and PadFusion support Pad12 positive indexes #18278

Merged
merged 10 commits into from
Jul 5, 2023

Conversation

evkotov
Copy link
Contributor

@evkotov evkotov commented Jun 28, 2023

Details:

  • fix EliminatePad transformation to handle Pad12 positive indexes
  • fix PadFusion group of transformations (PadFusionAvgPool, PadFusionConvolution, PadFusionConvolutionBackpropData,
    PadFusionGroupConvolution, PadFusionGroupConvolutionBackpropData) Pad12 positive indexes
  • there are checks in such a transformations not to handle Pad with negative indexes
  • rewrite unit tests to check both old and new Pad operations
  • add unit test PadElimination with negative indexes

Tickets:

  • 112279

@evkotov evkotov added the category: transformations OpenVINO Runtime library - Transformations label Jun 28, 2023
@evkotov evkotov added this to the 2023.1 milestone Jun 28, 2023
@evkotov evkotov requested a review from a team as a code owner June 28, 2023 17:31
@evkotov evkotov self-assigned this Jun 28, 2023
@evkotov evkotov force-pushed the pad12_pad_fusion branch from f122040 to ba86d3d Compare June 29, 2023 09:38
@@ -96,14 +97,14 @@ pass::PadFusionAvgPool::PadFusionAvgPool() {
auto pads_end_pattern = pattern::wrap_type<opset5::Constant>();
auto pad_value_pattern = pattern::any_input();
auto pad_node_pattern =
pattern::wrap_type<opset5::Pad>({data_pattern, pads_begin_pattern, pads_end_pattern, pad_value_pattern},
pattern::consumers_count(1));
pattern::wrap_type<op::util::PadBase>({data_pattern, pads_begin_pattern, pads_end_pattern, pad_value_pattern},
Copy link
Contributor

@itikhono itikhono Jul 3, 2023

Choose a reason for hiding this comment

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

just a note, no changes from your side required: I hope the check on line 58 (pad_fusion.cpp) should already detect the negative pad values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. I noticed that before PR creation

@evkotov evkotov requested a review from t-jankowski July 4, 2023 11:09
@evkotov evkotov force-pushed the pad12_pad_fusion branch from 0d5ba88 to 8e17a07 Compare July 4, 2023 11:21
@itikhono itikhono enabled auto-merge (squash) July 5, 2023 09:30
@itikhono itikhono merged commit f313dde into openvinotoolkit:master Jul 5, 2023
@evkotov evkotov deleted the pad12_pad_fusion branch July 5, 2023 10:37
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.

2 participants