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

MVN_accuracy_fix_on_avx512 #5787

Conversation

chenhu-wang
Copy link
Contributor

@chenhu-wang chenhu-wang commented May 25, 2021

Details:

  • MVN_accuracy_fix_on_avx512
  • fusion conditions extension

Tickets:

  • 55184
  • 55340

@chenhu-wang chenhu-wang requested review from a team May 25, 2021 08:52
@chenhu-wang chenhu-wang added the category: CPU OpenVINO CPU plugin label May 25, 2021
@chenhu-wang chenhu-wang added this to the 2021.4 milestone May 25, 2021
@dmitry-gorokhov
Copy link
Contributor

@chenhu-wang what about tests? Why the issue is not reproducible by our test coverage?

@chenhu-wang
Copy link
Contributor Author

@chenhu-wang what about tests? Why the issue is not reproducible by our test coverage?

@dmitry-gorokhov ,the bug is in LP case, I8 computing behavior is not consistent between CPU plugin and ngraph reference. You can see [here}(https://github.com/openvinotoolkit/openvino/blob/master/ngraph/core/reference/include/ngraph/runtime/reference/mvn.hpp)the mean, variance and eps are all treated as LP while CPU plugin treated as fp32. So tests will fail when cover I8 precision. I created separate ticket to do this. Local test is done with dump model blob and compare. Thank you.

@chenhu-wang chenhu-wang marked this pull request as draft May 26, 2021 07:58
Copy link
Contributor Author

@chenhu-wang chenhu-wang left a comment

Choose a reason for hiding this comment

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

@chenhu-wang what about tests? Why the issue is not reproducible by our test coverage?

@dmitry-gorokhov ,the bug is in LP case, I8 computing behavior is not consistent between CPU plugin and ngraph reference. You can see [here}(https://github.com/openvinotoolkit/openvino/blob/master/ngraph/core/reference/include/ngraph/runtime/reference/mvn.hpp)the mean, variance and eps are all treated as LP while CPU plugin treated as fp32. So tests will fail when cover I8 precision. I created separate ticket to do this. Local test is done with dump model blob and compare. Thank you.

@dmitry-gorokhov Partial LP tests(I8 input) is added, because we can fix set execution precision of ngraph reference as fp32, I8 input is converted and executed with fp32 in ngraph. This can cover load int8 to vmm as float. Meanwhile output is also fp32 in ngraph, can not cover I8 output for now. will done in the ticket created.

@@ -703,12 +703,6 @@ void MKLDNNMVNNode::initSupportedPrimitiveDescriptors() {
setPostOps(attr, true);

Precision inputPrecision = getOriginalInputPrecisionAtPort(0);
if (getParentEdgeAt(0)->getDims().ndims() < 3 || getParentEdgeAt(0)->getDims().ndims() > 5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dmitry-gorokhov I think this is legacy constraints, so removed, correct me please if I am wrong.

@chenhu-wang chenhu-wang marked this pull request as ready for review May 26, 2021 09:31
@chenhu-wang chenhu-wang requested a review from a team May 26, 2021 09:31
@chenhu-wang chenhu-wang marked this pull request as draft May 26, 2021 13:15
@chenhu-wang chenhu-wang force-pushed the chenhu/MVN_accuracy_fix_on_avx512 branch from 4dd5f5f to 179ff3f Compare May 27, 2021 03:56
@chenhu-wang
Copy link
Contributor Author

@mandrono ,take a look please, fusion condition is extended for the ngraph migration perf regression issue for "brain-tumor-segmentation-0002".

@chenhu-wang chenhu-wang marked this pull request as ready for review May 27, 2021 05:25
@chenhu-wang
Copy link
Contributor Author

@dmitry-gorokhov ,all changes is finished, take a look please.

@dmitry-gorokhov dmitry-gorokhov merged commit d200309 into openvinotoolkit:master May 28, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants