Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CPU] Hotfix for master branch build with clang-tidy issues (#30029)

Arseniy Obolenskiy34f4da998769
diff --git a/src/plugins/intel_cpu/src/shape_inference/custom/one_hot.cpp b/src/plugins/intel_cpu/src/shape_inference/custom/one_hot.cpp
index 0f9d73721f4..df64c5d13e4 100644
--- a/src/plugins/intel_cpu/src/shape_inference/custom/one_hot.cpp
+++ b/src/plugins/intel_cpu/src/shape_inference/custom/one_hot.cpp
@@ -22,7 +22,7 @@ Result OneHotShapeInfer::infer(const std::vector<std::reference_wrapper<const Ve
}
auto result = input_shapes.front().get();
auto depth_pos = result.begin();
- if (result.size() > 0) {
+ if (!result.empty()) {
depth_pos += m_axis;
}
result.insert(depth_pos, depth);