Skip to content

Commit

Permalink
Fix coverity scan issues in CPU plugin Node class: 1563144, 1563146
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Jan 3, 2025
1 parent 2bdaf5a commit 0ecdfde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/intel_cpu/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ void Node::selectPreferPrimitiveDescriptor(const std::vector<impl_desc_type>& pr
bool Node::isOneDimShape(const ov::PartialShape& pshape) {
int value_1_num = 0;
int sz = static_cast<int>(pshape.size());
for (auto s : pshape) {
for (const auto& s : pshape) {
if (s.is_static() && s.get_length() == 1) {
value_1_num++;
}
Expand Down Expand Up @@ -383,7 +383,7 @@ void Node::selectPreferPrimitiveDescriptorWithShape(const std::vector<impl_desc_

const bool isCompatible = curDesc->isCompatible(*parentDesc);
if (!isCompatible) {
if (!isReorderRequired(parentDesc, curDesc)) {
if (!isReorderRequired(std::move(parentDesc), curDesc)) {
estimate += 1;
} else {
estimate += ov::shape_size<ov::intel_cpu::VectorDims>(curDesc->getShape().getMinDims());
Expand Down

0 comments on commit 0ecdfde

Please sign in to comment.