From 83a643d13c769fe53cda080bf2bdc1b7bebea206 Mon Sep 17 00:00:00 2001 From: Maksim Kutakov Date: Fri, 13 Dec 2024 19:36:49 +0100 Subject: [PATCH] Code style --- src/plugins/intel_cpu/src/graph.h | 4 ++-- src/plugins/intel_cpu/src/infer_request.cpp | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/plugins/intel_cpu/src/graph.h b/src/plugins/intel_cpu/src/graph.h index 66bdd3ad01b2ba..5d5d5b335a36f2 100644 --- a/src/plugins/intel_cpu/src/graph.h +++ b/src/plugins/intel_cpu/src/graph.h @@ -91,7 +91,7 @@ class Graph { NodePtr getInputNodeByIndex(std::size_t index) { auto input = inputNodesMap.find(index); if (input == inputNodesMap.end()) - return nullptr; + return nullptr; return input->second; } @@ -119,7 +119,7 @@ class Graph { size_t inputsNumber() const { return inputNodesMap.size(); } - + size_t outputsNumber() const { return outputNodesMap.size(); } diff --git a/src/plugins/intel_cpu/src/infer_request.cpp b/src/plugins/intel_cpu/src/infer_request.cpp index 378e4ff10ea077..b18bdba43d6a59 100644 --- a/src/plugins/intel_cpu/src/infer_request.cpp +++ b/src/plugins/intel_cpu/src/infer_request.cpp @@ -56,7 +56,7 @@ void SyncInferRequest::create_infer_request() { void SyncInferRequest::redefine_memory_for_input_nodes(Graph& graph) { for (const auto& input_port : m_input_ports_map) { auto inputNode = graph.getInputNodeByIndex(input_port.first); - OPENVINO_ASSERT(inputNode, "CPU execution graph doesn't contain output node with index: ", input_port.first);; + OPENVINO_ASSERT(inputNode, "CPU execution graph doesn't contain output node with index: ", input_port.first); if (inputNode->isDynamicNode()) { auto tensor = get_tensor(input_port.second); inputNode->redefineOutputMemory({tensor->get_shape()}); @@ -262,10 +262,7 @@ void SyncInferRequest::change_default_ptr(Graph& graph) { if (controlBlockItr != m_outputControlBlocks.end()) { auto output = graph.getOutputNodeByIndex(index); - OPENVINO_ASSERT(output, - "Output with index: ", - index, - " is absent in the outputNodesMap"); + OPENVINO_ASSERT(output, "Output with index: ", index, " is absent in the outputNodesMap"); auto parentEdge = output->getParentEdgeAt(0); // avoid cyclic memory use auto&& controlBlock = controlBlockItr->second; @@ -540,8 +537,7 @@ void SyncInferRequest::init_tensor(const std::size_t& port_index, const ov::ISyn tensor = std::make_shared(memory); } else { - const auto graph_prec = - output->getParentEdgeAt(0)->getMemory().getDesc().getPrecision(); + const auto graph_prec = output->getParentEdgeAt(0)->getMemory().getDesc().getPrecision(); OutputControlBlock control_block{model_prec, Shape{shape}}; DEBUG_LOG(port_index,