OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[Py OV] Replace imports of openvino.runtime in openvino module (#28166)
Alicja Miloszewska375ebd2f9a73
diff --git a/src/bindings/python/src/openvino/frontend/frontend.py b/src/bindings/python/src/openvino/frontend/frontend.pyindex 4d549d24b4e..6a16d5a573b 100644--- a/src/bindings/python/src/openvino/frontend/frontend.py+++ b/src/bindings/python/src/openvino/frontend/frontend.py@@ -7,7 +7,7 @@ from typing import Unionfrom openvino._pyopenvino import FrontEnd as FrontEndBasefrom openvino._pyopenvino import FrontEndManager as FrontEndManagerBasefrom openvino._pyopenvino import InputModel-from openvino.runtime import Model+from openvino import Modelclass FrontEnd(FrontEndBase):diff --git a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.pyindex 914f6b2e2ee..9072598f824 100644--- a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py+++ b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py@@ -6,7 +6,7 @@import jax.corefrom openvino.frontend.jax.py_jax_frontend import _FrontEndJaxDecoder as Decoder-from openvino.runtime import PartialShape, Type as OVType, OVAny+from openvino import PartialShape, Type as OVType, OVAnyfrom openvino.frontend.jax.utils import jax_array_to_ov_const, get_ov_type_for_value, \ivalue_to_constant, param_to_constantsdiff --git a/src/bindings/python/src/openvino/frontend/jax/utils.py b/src/bindings/python/src/openvino/frontend/jax/utils.pyindex 4535265d6de..659677b11d5 100644--- a/src/bindings/python/src/openvino/frontend/jax/utils.py+++ b/src/bindings/python/src/openvino/frontend/jax/utils.py@@ -8,7 +8,7 @@ import jaximport jax.numpy as jnpimport numpy as npfrom openvino.frontend.jax.passes import filter_element, filter_ivalue, filter_param-from openvino.runtime import op, Type as OVType, Shape, OVAny+from openvino import op, Type as OVType, Shape, OVAnynumpy_to_ov_type_map = {np.float32: OVType.f32,diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.pyindex c448571f1ac..81a2764ee11 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py@@ -10,7 +10,7 @@ import inspectfrom openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoderfrom openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType-from openvino.runtime import PartialShape, Type as OVType, OVAny, Shape+from openvino import PartialShape, Type as OVType, OVAny, Shapefrom openvino.frontend.pytorch.utils import make_constant, fetch_attr, pt_to_ov_type_map, torch_tensor_to_ov_constlogger = logging.getLogger(__name__)diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.pyindex 9f2ef019769..a9a65781dcb 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py@@ -18,7 +18,7 @@ from torch.fx.experimental.proxy_tensor import make_fxfrom torch._decomp import decomposition_table, get_decompositionsfrom openvino.frontend import FrontEndManager-from openvino.runtime import Core, Type, PartialShape+from openvino import Core, Type, PartialShapefrom openvino.frontend.pytorch.ts_decoder import TorchScriptPythonDecoderfrom openvino.frontend.pytorch.torchdynamo import decompositionsfrom openvino.frontend.pytorch.torchdynamo.decompositions import get_aot_decomposition_list, get_inf_decomposition_list@@ -27,7 +27,7 @@ from openvino.frontend.pytorch.torchdynamo.execute import execute, execute_cachefrom openvino.frontend.pytorch.torchdynamo.compile import cached_model_name, openvino_compile_cached_modelfrom openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_model_caching, _get_decompositions, _get_aot_autograd-from openvino.runtime import Core, Type, PartialShape+from openvino import Core, Type, PartialShapelogger = logging.getLogger(__name__)logger.setLevel(logging.WARNING)diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.pyindex 47b3b82806b..c9a772b3fea 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py@@ -5,7 +5,7 @@# mypy: ignore-errorsfrom typing import Optional, Any-from openvino.runtime import Core+from openvino import Coredef _get_device(options) -> Optional[Any]:diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.pyindex fa446893a05..ca8d5478e76 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py@@ -14,7 +14,7 @@ from torch.fx import GraphModulefrom openvino.frontend import FrontEndManagerfrom openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder-from openvino.runtime import Core, Type, PartialShape, serialize+from openvino import Core, Type, PartialShape, serializefrom openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_config, _is_cache_dir_in_configfrom typing import Callable, Optionaldiff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.pyindex 4f41f7b5a6a..7527ad7acb3 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py@@ -20,7 +20,7 @@ from openvino.frontend import FrontEndManagerfrom openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoderfrom openvino.frontend.pytorch.torchdynamo.partition import Partitionerfrom openvino.frontend.pytorch.torchdynamo.compile import openvino_compile-from openvino.runtime import Core, Type, PartialShape+from openvino import Core, Type, PartialShapefrom openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_aot_autogradfrom typing import Callable, Optional, Anydiff --git a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.pyindex 6d8fdb16587..7bb8073167a 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py@@ -6,7 +6,7 @@from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoderfrom openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType-from openvino.runtime import op, PartialShape, Type as OVType, OVAny+from openvino import op, PartialShape, Type as OVType, OVAnyfrom openvino.frontend.pytorch.utils import (ivalue_to_constant,get_value_from_getattr,@@ -15,7 +15,7 @@ from openvino.frontend.pytorch.utils import (convert_quantized_tensor,graph_has_ops,)-from openvino.runtime import opset11 as ops+from openvino import opset11 as opsfrom openvino.frontend.pytorch import quantized, patch_modelfrom openvino.frontend.pytorch.module_extension import ModuleExtensiondiff --git a/src/bindings/python/src/openvino/frontend/pytorch/utils.py b/src/bindings/python/src/openvino/frontend/pytorch/utils.pyindex 826d766505f..9ba36707037 100644--- a/src/bindings/python/src/openvino/frontend/pytorch/utils.py+++ b/src/bindings/python/src/openvino/frontend/pytorch/utils.py@@ -7,8 +7,8 @@import torchimport numpy as np-from openvino.runtime import op, Type as OVType, Shape, Tensor-from openvino.runtime import opset11 as ops+from openvino import op, Type as OVType, Shape, Tensor+from openvino import opset11 as opsdef make_constant(*args, **kwargs):diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.pyindex fcedd7a74c2..d15262cbc30 100644--- a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py+++ b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py@@ -7,7 +7,7 @@import numpy as npimport tensorflow as tffrom openvino.frontend.tensorflow.py_tensorflow_frontend import _FrontEndDecoderBase as DecoderBase-from openvino.runtime import PartialShape, Type, OVAny, Tensor+from openvino import PartialShape, Type, OVAny, Tensordef tf_type_to_ov_type(tf_type_int):diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py b/src/bindings/python/src/openvino/frontend/tensorflow/utils.pyindex 74c0dfff922..7de5dc950be 100644--- a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py+++ b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py@@ -8,7 +8,7 @@import logging as logimport numpy as npimport sys-from openvino.runtime import PartialShape, Dimension, Type+from openvino import PartialShape, Dimension, Typefrom packaging.version import parse, Versionfrom typing import List, Dict, Uniondiff --git a/src/bindings/python/src/openvino/helpers/packing.py b/src/bindings/python/src/openvino/helpers/packing.pyindex 796af87402f..d0956e09fc6 100644--- a/src/bindings/python/src/openvino/helpers/packing.py+++ b/src/bindings/python/src/openvino/helpers/packing.py@@ -5,7 +5,7 @@import numpy as npfrom typing import Union-from openvino.runtime import Type, Shape+from openvino import Type, Shapedef pack_data(array: np.ndarray, type: Type) -> np.ndarray:diff --git a/src/bindings/python/src/openvino/opset1/ops.py b/src/bindings/python/src/openvino/opset1/ops.pyindex edca6c62a0b..e264aea304f 100644--- a/src/bindings/python/src/openvino/opset1/ops.py+++ b/src/bindings/python/src/openvino/opset1/ops.py@@ -8,17 +8,17 @@ from typing import List, Optional, Union, get_argsimport numpy as npfrom functools import partial-from openvino.runtime import Node, PartialShape, Type+from openvino import Node, PartialShape, Typefrom openvino.op import Constant, Parameter, tensor_iterator-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op-from openvino.runtime.utils.input_validation import (+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import binary_op, nameable_op, unary_op+from openvino.utils.input_validation import (check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.node_factory import NodeFactory-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import NodeFactory+from openvino.utils.types import (NodeInput,NumericData,NumericType,diff --git a/src/bindings/python/src/openvino/opset10/ops.py b/src/bindings/python/src/openvino/opset10/ops.pyindex c7b75777484..d0bc3cbf1cb 100644--- a/src/bindings/python/src/openvino/opset10/ops.py+++ b/src/bindings/python/src/openvino/opset10/ops.py@@ -6,10 +6,10 @@from functools import partialfrom typing import List, Optional-from openvino.runtime import Node-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.utils.types import (+from openvino import Node+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import nameable_op+from openvino.utils.types import (NodeInput,as_nodes,as_node,diff --git a/src/bindings/python/src/openvino/opset11/ops.py b/src/bindings/python/src/openvino/opset11/ops.pyindex 575c99501d2..95767b4800d 100644--- a/src/bindings/python/src/openvino/opset11/ops.py+++ b/src/bindings/python/src/openvino/opset11/ops.py@@ -6,10 +6,10 @@from functools import partialfrom typing import List, Optional-from openvino.runtime import Node-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.utils.types import (+from openvino import Node+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import nameable_op+from openvino.utils.types import (NodeInput,as_nodes,)diff --git a/src/bindings/python/src/openvino/opset12/ops.py b/src/bindings/python/src/openvino/opset12/ops.pyindex 928bf4f71a9..4b354b1fcff 100644--- a/src/bindings/python/src/openvino/opset12/ops.py+++ b/src/bindings/python/src/openvino/opset12/ops.py@@ -6,10 +6,10 @@from functools import partialfrom typing import Optional-from openvino.runtime import Node-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.utils.types import (+from openvino import Node+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import nameable_op+from openvino.utils.types import (NodeInput,as_nodes,as_node,diff --git a/src/bindings/python/src/openvino/opset13/ops.py b/src/bindings/python/src/openvino/opset13/ops.pyindex 12f0d06b1a2..5c686374012 100644--- a/src/bindings/python/src/openvino/opset13/ops.py+++ b/src/bindings/python/src/openvino/opset13/ops.py@@ -11,12 +11,12 @@ import numpy as nplog = logging.getLogger(__name__)-from openvino.runtime import Node, Shape, Type, Output, Tensor+from openvino import Node, Shape, Type, Output, Tensorfrom openvino.op import Constant, Resultfrom openvino.opset1 import convert_like-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op, overloading-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import binary_op, nameable_op, unary_op, overloading+from openvino.utils.types import (NumericData,NodeInput,NumericType,diff --git a/src/bindings/python/src/openvino/opset14/ops.py b/src/bindings/python/src/openvino/opset14/ops.pyindex fa872d24eb7..59e1bfd3e89 100644--- a/src/bindings/python/src/openvino/opset14/ops.py+++ b/src/bindings/python/src/openvino/opset14/ops.py@@ -7,11 +7,11 @@ from functools import partialfrom typing import Union, Optional, List-from openvino.runtime import Node, Type-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.types import TensorShape-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.utils.types import NodeInput, as_node, as_nodes+from openvino import Node, Type+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.types import TensorShape+from openvino.utils.decorators import nameable_op+from openvino.utils.types import NodeInput, as_node, as_nodes_get_node_factory_opset14 = partial(_get_node_factory, "opset14")diff --git a/src/bindings/python/src/openvino/opset15/ops.py b/src/bindings/python/src/openvino/opset15/ops.pyindex 8e6b8bd46d5..97d4419fc48 100644--- a/src/bindings/python/src/openvino/opset15/ops.py+++ b/src/bindings/python/src/openvino/opset15/ops.py@@ -7,12 +7,12 @@ from functools import partialfrom typing import List, Literal, Optionalimport numpy as np-from openvino.runtime import Node, Type+from openvino import Node, Typefrom openvino.opset1 import convert_likefrom openvino.opset14 import constant-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op-from openvino.runtime.utils.types import NodeInput, as_nodes+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import binary_op, nameable_op+from openvino.utils.types import NodeInput, as_nodes_get_node_factory_opset15 = partial(_get_node_factory, "opset15")diff --git a/src/bindings/python/src/openvino/opset16/ops.py b/src/bindings/python/src/openvino/opset16/ops.pyindex 60656f6d993..e5ebdc7a2a1 100644--- a/src/bindings/python/src/openvino/opset16/ops.py+++ b/src/bindings/python/src/openvino/opset16/ops.py@@ -6,10 +6,10 @@from functools import partialfrom typing import Optional-from openvino.runtime import Node-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.types import NodeInput, as_nodes+from openvino import Node+from openvino.utils.decorators import nameable_op+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.types import NodeInput, as_nodes_get_node_factory_opset16 = partial(_get_node_factory, "opset16")diff --git a/src/bindings/python/src/openvino/opset2/ops.py b/src/bindings/python/src/openvino/opset2/ops.pyindex 45b33f5bc02..f76f608fe9a 100644--- a/src/bindings/python/src/openvino/opset2/ops.py+++ b/src/bindings/python/src/openvino/opset2/ops.py@@ -9,18 +9,17 @@ import numpy as npfrom functools import partialimport warnings-from openvino.runtime import Node, Shape+from openvino import Node, Shapefrom openvino.op import Constant, Parameter-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op-from openvino.runtime.utils.input_validation import (+from openvino.utils.decorators import binary_op, nameable_op, unary_op+from openvino.utils.input_validation import (assert_list_of_ints,check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.node_factory import NodeFactory-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import NodeFactory, _get_node_factory+from openvino.utils.types import (NodeInput,NumericData,NumericType,diff --git a/src/bindings/python/src/openvino/opset3/ops.py b/src/bindings/python/src/openvino/opset3/ops.pyindex 989f5819acb..1c2c7e309fe 100644--- a/src/bindings/python/src/openvino/opset3/ops.py+++ b/src/bindings/python/src/openvino/opset3/ops.py@@ -8,18 +8,17 @@ from typing import Callable, Iterable, List, Optional, Set, Unionimport numpy as npfrom functools import partial-from openvino.runtime import Node, Shape+from openvino import Node, Shapefrom openvino.op import Constant, Parameter-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op-from openvino.runtime.utils.input_validation import (+from openvino.utils.decorators import binary_op, nameable_op, unary_op+from openvino.utils.input_validation import (assert_list_of_ints,check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.node_factory import NodeFactory-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import NodeFactory, _get_node_factory+from openvino.utils.types import (NodeInput,NumericData,NumericType,diff --git a/src/bindings/python/src/openvino/opset4/ops.py b/src/bindings/python/src/openvino/opset4/ops.pyindex 4f6ba016852..e6f3a3a1550 100644--- a/src/bindings/python/src/openvino/opset4/ops.py+++ b/src/bindings/python/src/openvino/opset4/ops.py@@ -8,18 +8,17 @@ from typing import Callable, Iterable, List, Optional, Set, Unionimport numpy as npfrom functools import partial-from openvino.runtime import Node, Shape+from openvino import Node, Shapefrom openvino.op import Constant, Parameter-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op-from openvino.runtime.utils.input_validation import (+from openvino.utils.decorators import binary_op, nameable_op, unary_op+from openvino.utils.input_validation import (assert_list_of_ints,check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.node_factory import NodeFactory-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import NodeFactory, _get_node_factory+from openvino.utils.types import (NodeInput,NumericData,NumericType,diff --git a/src/bindings/python/src/openvino/opset5/ops.py b/src/bindings/python/src/openvino/opset5/ops.pyindex 20057b78c7c..9217830752b 100644--- a/src/bindings/python/src/openvino/opset5/ops.py+++ b/src/bindings/python/src/openvino/opset5/ops.py@@ -8,18 +8,17 @@ from typing import Callable, Iterable, List, Optional, Set, Unionimport numpy as npfrom functools import partial-from openvino.runtime import Node, Shape+from openvino import Node, Shapefrom openvino.op import Constant, Parameter, loop-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op-from openvino.runtime.utils.input_validation import (+from openvino.utils.decorators import binary_op, nameable_op, unary_op+from openvino.utils.input_validation import (assert_list_of_ints,check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.node_factory import NodeFactory-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import NodeFactory, _get_node_factory+from openvino.utils.types import (NodeInput,NumericData,NumericType,diff --git a/src/bindings/python/src/openvino/opset6/ops.py b/src/bindings/python/src/openvino/opset6/ops.pyindex 8020715f20d..340d0405b4b 100644--- a/src/bindings/python/src/openvino/opset6/ops.py+++ b/src/bindings/python/src/openvino/opset6/ops.py@@ -9,13 +9,13 @@ from typing import Optional, Unionfrom functools import partial, singledispatch-from openvino.runtime import Node, Type, PartialShape, Output, Shape+from openvino import Node, Type, PartialShape, Output, Shapefrom openvino.op import assign, Constant, Parameterfrom openvino.op import read_value as _read_valuefrom openvino.op.util import VariableInfo, Variable-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import nameable_op, overloading-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import nameable_op, overloading+from openvino.utils.types import (NodeInput,NumericType,TensorShape,diff --git a/src/bindings/python/src/openvino/opset7/ops.py b/src/bindings/python/src/openvino/opset7/ops.pyindex 59e09b64888..e33d266debe 100644--- a/src/bindings/python/src/openvino/opset7/ops.py+++ b/src/bindings/python/src/openvino/opset7/ops.py@@ -7,18 +7,17 @@ from functools import partialfrom typing import Callable, Iterable, List, Optional, Set, Unionimport numpy as np-from openvino.runtime import Node, Shape+from openvino import Node, Shapefrom openvino.op import Constant, Parameter-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op-from openvino.runtime.utils.input_validation import (+from openvino.utils.decorators import binary_op, nameable_op, unary_op+from openvino.utils.input_validation import (assert_list_of_ints,check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.node_factory import NodeFactory-from openvino.runtime.utils.types import (+from openvino.utils.node_factory import NodeFactory, _get_node_factory+from openvino.utils.types import (NodeInput,NumericData,NumericType,diff --git a/src/bindings/python/src/openvino/opset8/ops.py b/src/bindings/python/src/openvino/opset8/ops.pyindex 6995d55a28a..a9a868e7b54 100644--- a/src/bindings/python/src/openvino/opset8/ops.py+++ b/src/bindings/python/src/openvino/opset8/ops.py@@ -9,15 +9,15 @@ from typing import List, Optional, Tupleimport numpy as npfrom openvino.exceptions import UserInputErrorfrom openvino.op import Constant, Parameter, if_op-from openvino.runtime import Node-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.utils.input_validation import (+from openvino import Node+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import nameable_op+from openvino.utils.input_validation import (check_valid_attributes,is_non_negative_value,is_positive_value,)-from openvino.runtime.utils.types import (+from openvino.utils.types import (NodeInput,TensorShape,as_node,diff --git a/src/bindings/python/src/openvino/opset9/ops.py b/src/bindings/python/src/openvino/opset9/ops.pyindex a6d45cfd0be..e2264845e05 100644--- a/src/bindings/python/src/openvino/opset9/ops.py+++ b/src/bindings/python/src/openvino/opset9/ops.py@@ -7,10 +7,10 @@ from functools import partialfrom typing import Optionalimport numpy as np-from openvino.runtime import Node-from openvino.runtime.opset_utils import _get_node_factory-from openvino.runtime.utils.decorators import nameable_op-from openvino.runtime.utils.types import (+from openvino import Node+from openvino.utils.node_factory import _get_node_factory+from openvino.utils.decorators import nameable_op+from openvino.utils.types import (NodeInput,as_nodes,as_node,diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py b/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.pyindex c14635cc118..717e9452174 100644--- a/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py+++ b/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py@@ -5,7 +5,7 @@from typing import Callable, Any, Unionimport logging-import openvino.runtime as ov+import openvino as ovclass PreprocessConverter():diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.pyindex f8b51afd546..5dad42b47da 100644--- a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py+++ b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py@@ -20,10 +20,10 @@ import torchimport torchvision.transforms as transformsfrom torchvision.transforms import InterpolationMode-import openvino.runtime as ov-import openvino.runtime.opset11 as ops-from openvino.runtime import Layout, Type-from openvino.runtime.utils.decorators import custom_preprocess_function+import openvino as ov+import openvino.opset11 as ops+from openvino import Layout, Type+from openvino.utils.decorators import custom_preprocess_functionfrom openvino.preprocess import PrePostProcessor, ResizeAlgorithm, ColorFormatdiff --git a/src/bindings/python/src/openvino/utils/broadcasting.py b/src/bindings/python/src/openvino/utils/broadcasting.pyindex a950aea9bba..01549625e2c 100644--- a/src/bindings/python/src/openvino/utils/broadcasting.py+++ b/src/bindings/python/src/openvino/utils/broadcasting.py@@ -5,7 +5,7 @@import loggingfrom typing import Optional-from openvino.runtime import AxisSet+from openvino import AxisSetfrom openvino.utils.types import (TensorShape,)diff --git a/src/bindings/python/src/openvino/utils/decorators.py b/src/bindings/python/src/openvino/utils/decorators.pyindex 604c0745860..9418c359d12 100644--- a/src/bindings/python/src/openvino/utils/decorators.py+++ b/src/bindings/python/src/openvino/utils/decorators.py@@ -6,7 +6,7 @@ from functools import wrapsfrom inspect import signaturefrom typing import Any, Callable, Dict, Optional, Union, get_origin, get_args-from openvino.runtime import Node, Output+from openvino import Node, Outputfrom openvino.utils.types import NodeInput, as_node, as_nodesdiff --git a/src/bindings/python/src/openvino/utils/input_validation.py b/src/bindings/python/src/openvino/utils/input_validation.pyindex e79a16c4858..1de08452e1d 100644--- a/src/bindings/python/src/openvino/utils/input_validation.py+++ b/src/bindings/python/src/openvino/utils/input_validation.py@@ -9,7 +9,7 @@ from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Typeimport numpy as np-from openvino.runtime.exceptions import UserInputError+from openvino.exceptions import UserInputErrorlog = logging.getLogger(__name__)diff --git a/src/bindings/python/src/openvino/utils/node_factory.py b/src/bindings/python/src/openvino/utils/node_factory.pyindex 9841daaea4e..e999ae69888 100644--- a/src/bindings/python/src/openvino/utils/node_factory.py+++ b/src/bindings/python/src/openvino/utils/node_factory.py@@ -9,9 +9,9 @@ from pathlib import Pathfrom openvino._pyopenvino import NodeFactory as _NodeFactory-from openvino.runtime import Node, Output, Extension+from openvino import Node, Output, Extension-from openvino.runtime.exceptions import UserInputError+from openvino.exceptions import UserInputErrorDEFAULT_OPSET = "opset13"diff --git a/src/bindings/python/src/openvino/utils/reduction.py b/src/bindings/python/src/openvino/utils/reduction.pyindex 71d0af8de73..e6be6d0ac9a 100644--- a/src/bindings/python/src/openvino/utils/reduction.py+++ b/src/bindings/python/src/openvino/utils/reduction.py@@ -4,7 +4,7 @@from typing import Iterable, Optional-from openvino.runtime import Node+from openvino import Nodedef get_reduction_axes(node: Node, reduction_axes: Optional[Iterable[int]]) -> Iterable[int]:diff --git a/src/bindings/python/src/openvino/utils/types.py b/src/bindings/python/src/openvino/utils/types.pyindex 854cc0c7f64..b3543739741 100644--- a/src/bindings/python/src/openvino/utils/types.py+++ b/src/bindings/python/src/openvino/utils/types.py@@ -9,8 +9,8 @@ from typing import List, Union, Optionalimport numpy as np-from openvino.runtime.exceptions import OVTypeError-from openvino.runtime import Node, Shape, Output, Type+from openvino.exceptions import OVTypeError+from openvino import Node, Shape, Output, Typefrom openvino.op import Constantlog = logging.getLogger(__name__)