forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[Py OV] Add utils to openvino module (openvinotoolkit#28062)"
This reverts commit 1dd6492.
- Loading branch information
1 parent
90fd981
commit 81bfa29
Showing
28 changed files
with
45 additions
and
140 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
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,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2018-2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from typing import Optional | ||
import numpy as np | ||
|
||
from openvino.runtime import Node | ||
from openvino.runtime.utils.decorators import nameable_op | ||
from openvino.runtime.utils.node_factory import NodeFactory | ||
from openvino.runtime.utils.types import ( | ||
as_node, | ||
NodeInput, | ||
) | ||
|
||
|
||
def _get_node_factory(opset_version: Optional[str] = None) -> NodeFactory: | ||
"""Return NodeFactory configured to create operators from specified opset version.""" | ||
if opset_version: | ||
return NodeFactory(opset_version) | ||
else: | ||
return NodeFactory() |
6 changes: 0 additions & 6 deletions
6
src/bindings/python/src/openvino/runtime/opset_utils/__init__.py
This file was deleted.
Oops, something went wrong.
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
5 changes: 0 additions & 5 deletions
5
src/bindings/python/src/openvino/runtime/utils/broadcasting/__init__.py
This file was deleted.
Oops, something went wrong.
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
20 changes: 0 additions & 20 deletions
20
src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher/__init__.py
This file was deleted.
Oops, something went wrong.
File renamed without changes.
8 changes: 0 additions & 8 deletions
8
src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers/__init__.py
This file was deleted.
Oops, something went wrong.
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
13 changes: 0 additions & 13 deletions
13
src/bindings/python/src/openvino/runtime/utils/decorators/__init__.py
This file was deleted.
Oops, something went wrong.
File renamed without changes.
10 changes: 0 additions & 10 deletions
10
src/bindings/python/src/openvino/runtime/utils/input_validation/__init__.py
This file was deleted.
Oops, something went wrong.
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
5 changes: 0 additions & 5 deletions
5
src/bindings/python/src/openvino/runtime/utils/node_factory/__init__.py
This file was deleted.
Oops, something went wrong.
File renamed without changes.
5 changes: 0 additions & 5 deletions
5
src/bindings/python/src/openvino/runtime/utils/reduction/__init__.py
This file was deleted.
Oops, something went wrong.
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
21 changes: 0 additions & 21 deletions
21
src/bindings/python/src/openvino/runtime/utils/types/__init__.py
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/bindings/python/src/openvino/utils/data_helpers/__init__.py
This file was deleted.
Oops, something went wrong.
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
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