diff --git a/samples/cpp/benchmark_app/utils.cpp b/samples/cpp/benchmark_app/utils.cpp index af0691693545d9..a22040a10b9dc8 100644 --- a/samples/cpp/benchmark_app/utils.cpp +++ b/samples/cpp/benchmark_app/utils.cpp @@ -109,7 +109,14 @@ std::vector split_float(const std::string& s, char delim) { } bool can_measure_as_static(const std::vector& app_input_info) { - return app_input_info.size() == 1; + for (const benchmark_app::InputsInfo& info : app_input_info) { + for (const auto& pair : info) { + if (pair.second.partialShape.is_dynamic() && app_input_info.size() > 1) { + return false; + } + } + } + return true; } static const std::vector meta_plugins{"MULTI", "HETERO", "AUTO"};