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 openvino.runtime with openvino in benchmark tool (#28433)
Alicja Miloszewska5e1f409f0a90
diff --git a/tools/benchmark_tool/openvino/tools/benchmark/benchmark.py b/tools/benchmark_tool/openvino/tools/benchmark/benchmark.pyindex e612a01d50e..3e2cb75456a 100644--- a/tools/benchmark_tool/openvino/tools/benchmark/benchmark.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/benchmark.py@@ -5,7 +5,7 @@ import osimport timefrom datetime import datetimefrom math import ceil-from openvino.runtime import Core, get_version, AsyncInferQueue+from openvino import Core, get_version, AsyncInferQueuefrom .utils.constants import GPU_DEVICE_NAME, XML_EXTENSION, BIN_EXTENSIONfrom .utils.logging import loggerdiff --git a/tools/benchmark_tool/openvino/tools/benchmark/main.py b/tools/benchmark_tool/openvino/tools/benchmark/main.pyindex 73f298b8a2a..9ed9a121e82 100755--- a/tools/benchmark_tool/openvino/tools/benchmark/main.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/main.py@@ -5,7 +5,7 @@ import osimport sysfrom datetime import datetime-from openvino.runtime import Dimension,properties+from openvino import Dimension, propertiesfrom openvino.tools.benchmark.benchmark import Benchmarkfrom openvino.tools.benchmark.parameters import parse_argsdiff --git a/tools/benchmark_tool/openvino/tools/benchmark/utils/inputs_filling.py b/tools/benchmark_tool/openvino/tools/benchmark/utils/inputs_filling.pyindex ba464fbc0b7..6d4fb66b3fe 100644--- a/tools/benchmark_tool/openvino/tools/benchmark/utils/inputs_filling.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/utils/inputs_filling.py@@ -10,8 +10,8 @@ from collections import defaultdictfrom pathlib import Pathfrom importlib.util import find_spec-from openvino.runtime import Tensor, PartialShape, Type-from openvino.runtime.utils.types import get_dtype+from openvino import Tensor, PartialShape, Type+from openvino.utils.types import get_dtypefrom .constants import IMAGE_EXTENSIONS, NUMPY_EXTENSIONS, BINARY_EXTENSIONSfrom .logging import loggerdiff --git a/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py b/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.pyindex ee0450a16be..8d4a024e6a0 100644--- a/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py@@ -4,7 +4,7 @@from collections import defaultdictfrom datetime import timedeltaimport enum-from openvino.runtime import Core, Model, PartialShape, Dimension, Layout, Type, serialize, properties, OVAny+from openvino import Core, Model, PartialShape, Dimension, Layout, Type, serialize, properties, OVAnyfrom openvino.preprocess import PrePostProcessorfrom .constants import DEVICE_DURATION_IN_SECS, UNKNOWN_DEVICE_TYPE, \