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

Added MVN fusion for case with constants inside #5644

Merged
merged 3 commits into from
May 21, 2021

Conversation

a-sidorova
Copy link
Contributor

@a-sidorova a-sidorova commented May 14, 2021

Details:

  • Added MVN fusion for specific case when constants are inside subgraph
  • Removed creating shape5D from MVN ctor and added it to createPrimitive because node initializing is before CommonOptimization in MKLDNNGraph. So when we changed parameter across_channels in MVN ctor in method tranformTo5DCase for 1D and 2D shapes, there were incorrect result of condition in fusing MVN and eltwise nodes (beta and gamma) in FuseMVNAndSimpleOperations

Tickets:

  • 48955

@a-sidorova a-sidorova force-pushed the feature/mvn_fusion branch from 29fb604 to 15ffe41 Compare May 15, 2021 15:23
@a-sidorova
Copy link
Contributor Author

@GlebKazantaev @ilyachur take a look on ngraph part one more time please
@dmitry-gorokhov @chenhu-wang review cpu part please

On last time after PR#5414 there were incorrect MVN fusion with eltwise for 1D and 2D cases. I transferred tranformTo5DCase to createPrimitive to avoid false positive condition in FuseMVNAndSimpleOperations

@a-sidorova a-sidorova marked this pull request as ready for review May 16, 2021 08:50
@a-sidorova a-sidorova requested review from a team May 16, 2021 08:50
@dmitry-gorokhov dmitry-gorokhov added category: CPU OpenVINO CPU plugin category: transformations OpenVINO Runtime library - Transformations labels May 17, 2021
@dmitry-gorokhov dmitry-gorokhov added this to the 2021.4 milestone May 17, 2021
@a-sidorova a-sidorova requested review from a team, dmitry-gorokhov and chenhu-wang May 17, 2021 12:28
@a-sidorova a-sidorova force-pushed the feature/mvn_fusion branch from 68aaacd to e30dd22 Compare May 18, 2021 07:03
[CPU] Fixed MVN

[IE TESTS] Added subgraph tests for MVN and simple operations
@a-sidorova a-sidorova force-pushed the feature/mvn_fusion branch from e30dd22 to 48ddf11 Compare May 18, 2021 09:14
@dmitry-gorokhov
Copy link
Contributor

@a-sidorova Is everything finished here?

@a-sidorova
Copy link
Contributor Author

@dmitry-gorokhov yes

@dmitry-gorokhov dmitry-gorokhov merged commit 57d49f3 into openvinotoolkit:master May 21, 2021
yekruglov pushed a commit to yekruglov/openvino that referenced this pull request Jun 7, 2021
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPU OpenVINO CPU plugin category: transformations OpenVINO Runtime library - Transformations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants