forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Py OV] Move ie_api.py and exceptions.py files to openvino module (op…
…envinotoolkit#28007) ### Details: - move `runtime/ie_api.py` and rename it to `_ov_api.py` as ie_api is a legacy name. - add `runtime/ie_apy/__init__.py` as proxy - update `openvino/__init__` to import from `_ov_api.py`. - move `runtime/exceptions.py` and add proxy in `runtime` - update `test_ovdict` to use `OVDict` defined in `openvino.runtime.utils.data_helpers` - update `tensor_from_file` import in `openvino/__init__.py`. This function is located in `openvino.runtime.utils.data_helpers` Part of `openvino.runtime` deprecation ### Tickets: - [CVS-129459](https://jira.devtools.intel.com/browse/CVS-129459) --------- Signed-off-by: Alicja Miloszewska <[email protected]>
- Loading branch information
Showing
9 changed files
with
45 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/bindings/python/src/openvino/runtime/exceptions/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2018-2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from openvino.exceptions import OVError | ||
from openvino.exceptions import UserInputError | ||
from openvino.exceptions import OVTypeError |
12 changes: 12 additions & 0 deletions
12
src/bindings/python/src/openvino/runtime/ie_api/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2018-2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from openvino._ov_api import Core | ||
from openvino._ov_api import CompiledModel | ||
from openvino._ov_api import InferRequest | ||
from openvino._ov_api import Model | ||
from openvino._ov_api import AsyncInferQueue | ||
|
||
from openvino._ov_api import tensor_from_file | ||
from openvino._ov_api import compile_model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters