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

[Py OV] Remove imports of openvino.runtime from openvino module #27479

Closed

Conversation

almilosz
Copy link
Contributor

@almilosz almilosz commented Nov 8, 2024

Details:

Remove openvino.runtime imports from python/src/openvino that unnecessary trigger the warning

  • move ie_api.py, exceptions.py up to python/src/openvino
  • move runtime/utils/ to python/src/openvino.
  • rename openvino/utils.py to openvnio/package_utils.py
  • move op/, opsetX and opset_utils.py to python/src/openvino/
  • keep in the runtime the file structure and aliases

Tickets:

Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
@github-actions github-actions bot added category: Python API OpenVINO Python bindings category: tools OpenVINO C++ / Python tools category: TF FE OpenVINO TensorFlow FrontEnd category: PyTorch FE OpenVINO PyTorch Frontend category: JAX FE OpenVINO JAX FrontEnd category: OVC OVC tool labels Nov 8, 2024
…into almilosz/ov-rt-deprecation-warn

Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
@akuporos
Copy link
Contributor

build_jenkins

@almilosz almilosz marked this pull request as ready for review November 13, 2024 08:50
@almilosz almilosz requested review from a team as code owners November 13, 2024 08:50

warnings.warn(
"The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. "
"Please replace `openvino.runtime` with `openvino` after 25.1 release.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Please replace `openvino.runtime` with `openvino` after 25.1 release.",
"Please replace `openvino.runtime` with `openvino` after 2025.0 release.",

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved the warning to a separate PR. Let's discuss the final form of the message and when warning should be shown there

Copy link
Contributor

@akuporos akuporos left a comment

Choose a reason for hiding this comment

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

Please, check other tools/ovc files and make import from openvino, not from openvino._pyopenvino.
Or keep imports from openvino.runtime and let's update import there by separate PR to reduce the number of changed files in this PR.

Signed-off-by: Alicja Miloszewska <[email protected]>
@github-actions github-actions bot removed the category: packaging OpenVINO packaging / distribution label Nov 19, 2024
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
Signed-off-by: Alicja Miloszewska <[email protected]>
@almilosz almilosz changed the title [Py OV] Add deprecation warning for runtime module [Py OV] Remove imports of openvino.runtime from openvino module Nov 22, 2024
Signed-off-by: Alicja Miloszewska <[email protected]>
@almilosz almilosz closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: JAX FE OpenVINO JAX FrontEnd category: MO Model Optimizer category: OVC OVC tool category: Python API OpenVINO Python bindings category: PyTorch FE OpenVINO PyTorch Frontend category: TF FE OpenVINO TensorFlow FrontEnd category: tools OpenVINO C++ / Python tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants