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
Fix the priority of `PERFORMANCE_HINT` in benchmark app (#32401)
Przemyslaw Wysocki012c87b73e61
diff --git a/tools/benchmark_tool/openvino/tools/benchmark/main.py b/tools/benchmark_tool/openvino/tools/benchmark/main.pyindex c81c943e2d0..0cee1c93abe 100755--- a/tools/benchmark_tool/openvino/tools/benchmark/main.py+++ b/tools/benchmark_tool/openvino/tools/benchmark/main.py@@ -153,9 +153,11 @@ def main():else:raise RuntimeError("Incorrect performance hint. Please set -hint option to""`throughput`(tput), `latency', 'cumulative_throughput'(ctput) value or 'none'.")+ elif device in config and properties.hint.performance_mode() in config[device]:+ returnelse:perf_hint = properties.hint.PerformanceMode.LATENCY if benchmark.api_type == "sync" else properties.hint.PerformanceMode.THROUGHPUT- logger.warning(f"Performance hint was not explicitly specified in command line. " ++ logger.warning(f"Performance hint was not explicitly specified in command line or config file. " +f"Device({device}) performance hint will be set to {perf_hint}.")config[device][properties.hint.performance_mode()] = perf_hintelse: