Reduce number of ops needed to create InstanceNorm (#1896)
authorMateusz Tabaka <mateusz.tabaka@intel.com>
Mon, 24 Aug 2020 09:26:15 +0000 (11:26 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Aug 2020 09:26:15 +0000 (12:26 +0300)
commitd7db4974f3f05a3a06f0e53fbd0f94c28ea20a22
treee414d0f244a31783ca4d03cbf26d7d69c1eb2160
parentc8aa3a7f2b748a8b9bdf3e98f59537446617ca06
Reduce number of ops needed to create InstanceNorm (#1896)

* Reduce number of ops needed to create InstanceNorm

InstanceNorm in onnx importer creates the same subgraph for Mean twice - once for Variance and once for actual Mean.
This change makes InstanceNorm to use single Mean which is shared by numerator and Variance.

Also enables IE_CPU.onnx_model_instance_normalization test case

* Revert changes to .gitignore
ngraph/frontend/onnx_import/src/op/instance_norm.cpp
ngraph/test/runtime/ie/unit_test.manifest