Skip to content

Commit

Permalink
fix transformation pipeline 2
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes committed Sep 30, 2024
1 parent 7f53f35 commit ba86871
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,10 @@ void Transformations::PreLpt(const std::vector<ov::element::Type>& defaultPrecis
// 2. GroupNormalizationDecomposition produce MVN, and MVN have a conditional pass MVN6Decomposition. If call MVN6Decomposition again after
// snippets pipeline as well, where MVN is decomposed to simple ops, these simple ops will not tokenized into subgraph again.
// CVS-134277 to fully enable GN as snippets to disable this GroupNormalizationDecomposition entirly.
if (node->is_dynamic() || !one_of(inferencePrecision, element::f32, element::undefined) ||
snippetsMode == ov::intel_cpu::Config::SnippetsMode::Disable)
if (node->is_dynamic() || !one_of(config.inferencePrecision, element::f32, element::undefined) ||
config.snippetsMode == ov::intel_cpu::Config::SnippetsMode::Disable)
return false;
if (snippetsMode != ov::intel_cpu::Config::SnippetsMode::IgnoreCallback) {
if (config.snippetsMode != ov::intel_cpu::Config::SnippetsMode::IgnoreCallback) {
const auto group_norm = ov::as_type_ptr<const ov::op::v12::GroupNormalization>(node);
if (!group_norm || !implication(config.inferencePrecision == element::undefined, group_norm->get_element_type() == element::f32))
return false;
Expand Down

0 comments on commit ba86871

Please sign in to comment.