-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[PyOV] Propagate errors on imports from runtime module #20273
[PyOV] Propagate errors on imports from runtime module #20273
Conversation
from openvino.runtime import serialize | ||
from openvino.runtime import shutdown | ||
from openvino.runtime import tensor_from_file | ||
from openvino.runtime import save_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have convert_model
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's below in a separate try / catch block.
This is because if I use only python API from build folder, OVC is not there
"${OpenVINOPython_SOURCE_DIR}/src/openvino/__init__.py" | ||
"${OpenVINOPython_SOURCE_DIR}/src/compatibility/openvino/__init__.py" | ||
"${OpenVINO_SOURCE_DIR}/tools/ovc/openvino/__init__.py" | ||
"${OpenVINO_SOURCE_DIR}/tools/benchmark_tool/openvino/__init__.py") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need all these runtime copies at all?
maybe we need to keep only "${OpenVINOPython_SOURCE_DIR}/src/openvino/__init__.py"
? All other runtime modules cannot be used without OpenVINO anyway
1132192
to
f97a42d
Compare
…it#20273) Co-authored-by: Michal Lukaszewski <[email protected]>
…it#20273) Co-authored-by: Michal Lukaszewski <[email protected]>
Details:
openvino/__init__.py
with try-catch solution. This also allow to use package fromPYTHONPATH
when onlyopenvino-dev
is defined for legacy usage.__init__.py
files is decoupled from openvino-dev's ones.Tickets: