Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono committed Jun 20, 2024
1 parent 790d063 commit ad1eb09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/core/src/pass/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ class Profiler {
}
}

void visualize(const shared_ptr<ov::Model>& model, const std::string& pass_name) {
void visualize(const shared_ptr<ov::Model>& model, const std::string& name) {
if (m_visualize) {
// visualizations and serializations will be named after the outermost function
const size_t num_digits_in_pass_index = 3;
std::string index_str = std::to_string(m_index++);
index_str = std::string(num_digits_in_pass_index - index_str.length(), '0') + index_str;
auto base_filename = model->get_name() + std::string("_") + index_str + std::string("_") + pass_name;
auto base_filename = model->get_name() + std::string("_") + index_str + std::string("_") + name;

auto file_ext = "svg";
pass::VisualizeTree vt(base_filename + std::string(".") + file_ext);
Expand Down Expand Up @@ -136,7 +136,7 @@ void ov::pass::Manager::set_per_pass_validation(bool new_state) {

bool ov::pass::Manager::run_passes(const shared_ptr<ov::Model>& model) {
OV_ITT_SCOPED_TASK(ov::itt::domains::core, "pass::Manager::run_passes");
Profiler profiler(m_visualize, ov::util::getenv_bool("OV_PROFILE_PASS_ENABLE"));
ov::pass::Profiler profiler(m_visualize, ov::util::getenv_bool("OV_PROFILE_PASS_ENABLE"));

bool pass_applied = false;
bool model_changed = false;
Expand Down
4 changes: 2 additions & 2 deletions src/core/tests/pass_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ TEST(pass_manager, two_validations) {
pass_manager.register_pass<TestMatcherPassFalse>();
pass_manager.register_pass<TestModelPassFalse>();
pass_manager.register_pass<TestValidate2>();
pass_manager.register_pass<TestMatcherPassTrue>();
pass_manager.register_pass<TestModelPassFalse>();
pass_manager.register_pass<TestMatcherPassFalse>();
pass_manager.register_pass<TestModelPassTrue>();
pass_manager.register_pass<TestMatcherPassFalse>();
pass_manager.register_pass<TestModelPassFalse>();
pass_manager.register_pass<TestValidate>();
Expand Down

0 comments on commit ad1eb09

Please sign in to comment.