Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PassManager refactoring #25637

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

itikhono
Copy link
Contributor

Details:

  • item1
  • ...

Tickets:

  • ticket-id

@github-actions github-actions bot added category: Core OpenVINO Core (aka ngraph) category: CPU OpenVINO CPU plugin category: transformations OpenVINO Runtime library - Transformations category: TF FE OpenVINO TensorFlow FrontEnd category: CPP API OpenVINO CPP API bindings labels Jul 19, 2024
@itikhono itikhono changed the title Itikhono/refactoring/pass manager PassManager refactoring Jul 19, 2024
@github-actions github-actions bot added the category: LP transformations OpenVINO Low Precision transformations label Jul 23, 2024
@github-actions github-actions bot added category: IR FE OpenVINO IR v10 / v11 FrontEnd category: TEMPLATE OpenVINO Template plugin category: ONNX FE OpenVINO ONNX FrontEnd labels Jul 23, 2024

ov::pass::Manager::~Manager() = default;
if (off.count(val)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to apply "to_lower"

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UnnamedManager by default

if (is_pass_manager) {
std::cout << "PassManager: ";
} else {
std::cout << "Transformation: ";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to write to stdout these strings?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be parsed? if yes, it should be send to file (if file path passed)

continue;
bool is_pass_manager = name == m_manager_name;
if (is_pass_manager) {
std::cout << "PassManager " << m_manager_name << " started: " << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this to stdout?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be parsed? if yes, it should be send to file (if file path passed)

if (is_pass_manager) {
std::cout << "PassManager: ";
} else {
std::cout << "Transformation: ";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be parsed? if yes, it should be send to file (if file path passed)

<< (applied ? "1;" : "0;") << std::endl;
} else {
m_file << "t;" << name << ";" << m_manager_name << ";" << stopwatch.get_timer_value().count() << ";"
<< (applied ? "1" : "0") << ";" << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python3 csv parser recognizes the last field - field after the last ';'. So currently the last field will be empty. It is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph) category: CPP API OpenVINO CPP API bindings category: CPU OpenVINO CPU plugin category: IR FE OpenVINO IR v10 / v11 FrontEnd category: LP transformations OpenVINO Low Precision transformations category: ONNX FE OpenVINO ONNX FrontEnd category: TEMPLATE OpenVINO Template plugin category: TF FE OpenVINO TensorFlow FrontEnd category: transformations OpenVINO Runtime library - Transformations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants