Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono committed Jul 24, 2024
1 parent ea6ee2c commit 96fd022
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/core/include/openvino/pass/manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class OPENVINO_API Manager {
virtual ~Manager();

//// \brief Construct Manager with a provided name.
explicit Manager(std::string name);
explicit Manager(std::string name);

//// \brief Construct Manager with shared PassConfig instance
explicit Manager(std::shared_ptr<PassConfig> pass_config, std::string name = "UnnamedManager");
explicit Manager(std::shared_ptr<PassConfig> pass_config, std::string name = "UnnamedManager");

/// \brief Register given transformation class type to execution list
/// Example below show the basic usage of pass::Manager
Expand Down Expand Up @@ -101,8 +101,7 @@ class OPENVINO_API Manager {
std::string m_name = "UnnamedManager";

private:
bool run_pass(const std::shared_ptr<PassBase>& pass, const std::shared_ptr<Model>& model,
bool needs_validate);
bool run_pass(const std::shared_ptr<PassBase>& pass, const std::shared_ptr<Model>& model, bool needs_validate);
};
} // namespace pass
} // namespace ov
6 changes: 3 additions & 3 deletions src/core/src/pass/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class EnvVar {

/**
* @brief This ctor helps to activate/deactivate EnvVar from the code.
*/
*/
explicit EnvVar(const std::string& var, bool activate) {
m_is_bool = true;
b_value = activate;
Expand Down Expand Up @@ -174,8 +174,8 @@ class Profiler {
std::cout << name << " " << stopwatch.get_milliseconds() << "ms " << (applied ? "+" : "-") << std::endl;
} else if (m_file.is_open()) {
if (is_pass_manager) {
m_file << "m;" << name << ";" << stopwatch.get_timer_value().count() << ";"
<< (applied ? "1" : "0") << std::endl;
m_file << "m;" << name << ";" << stopwatch.get_timer_value().count() << ";" << (applied ? "1" : "0")
<< std::endl;
} else {
m_file << "t;" << name << ";" << m_manager_name << ";" << stopwatch.get_timer_value().count() << ";"
<< (applied ? "1" : "0") << std::endl;
Expand Down

0 comments on commit 96fd022

Please sign in to comment.