diff --git a/samples/cpp/benchmark_app/utils.cpp b/samples/cpp/benchmark_app/utils.cpp index c3493642fc5..387e73726cd 100644 --- a/samples/cpp/benchmark_app/utils.cpp +++ b/samples/cpp/benchmark_app/utils.cpp @@ -473,7 +473,10 @@ std::vector get_inputs_info(const std::string& shape_ if (info.layout.empty()) { switch (item.get_partial_shape().size()) { case 3: - newLayout = "CHW"; + newLayout = (item.get_partial_shape()[2].get_max_length() <= 4 && + item.get_partial_shape()[0].get_max_length() > 4) + ? "HWC" + : "CHW"; break; case 4: // Rough check for layout type, basing on max number of image channels diff --git a/samples/cpp/common/utils/include/samples/args_helper.hpp b/samples/cpp/common/utils/include/samples/args_helper.hpp index cc33ac8e628..72b7a1f1d8e 100644 --- a/samples/cpp/common/utils/include/samples/args_helper.hpp +++ b/samples/cpp/common/utils/include/samples/args_helper.hpp @@ -60,9 +60,9 @@ void printInputAndOutputsInfoShort(const T& network) { in_name += name + " , "; } in_name = in_name.substr(0, in_name.size() - 3); - } catch (const ov::Exception&) { } + try { node_name = input.get_node()->get_friendly_name(); } catch (const ov::Exception&) {