Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono committed Jul 25, 2024
1 parent 078f168 commit 2a8e9bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/src/pass/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ bool ov::pass::Manager::run_pass(const std::shared_ptr<PassBase>& pass,
// GraphRewrite is a temporary container for MatcherPass to make execution on entire ov::Model
return GraphRewrite(matcher_pass).run_on_model(model);
} else if (auto model_pass = dynamic_pointer_cast<ModelPass>(pass)) {
if (dynamic_pointer_cast<ov::pass::Validate>(model_pass) && !needs_validate) {
return false;
}
return model_pass->run_on_model(model);
}
return false;
Expand Down

0 comments on commit 2a8e9bf

Please sign in to comment.