Skip to content

Commit ce9effc

Browse files
committed
fix code style
1 parent 4d5e823 commit ce9effc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plugins/intel_cpu/src/graph_optimizer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,15 +3460,14 @@ void GraphOptimizer::TailNodesPrecisionOptimize(Graph& graph) {
34603460
};
34613461

34623462
auto isParentSuitableForTailOpt = [&](const NodePtr& parent) -> bool {
3463-
if (!parent)
3463+
if (!parent) {
34643464
return false;
3465+
}
34653466
if (supportFuseConvert(parent->getType()) && tailNodesMap.count(parent) != 0U) {
34663467
return true;
34673468
}
34683469
if (supportInPlace(parent->getType()) && tailNodesMap.count(parent) != 0U) {
3469-
if (!parent->isInPlace())
3470-
return false;
3471-
return true;
3470+
return parent->isInPlace();
34723471
}
34733472
return false;
34743473
};
@@ -3478,8 +3477,9 @@ void GraphOptimizer::TailNodesPrecisionOptimize(Graph& graph) {
34783477
std::unordered_set<NodePtr> visited;
34793478
const NodePtr& cur = node;
34803479
while (cur) {
3481-
if (!visited.insert(cur).second)
3480+
if (!visited.insert(cur).second) {
34823481
break;
3482+
}
34833483
size_t parentNum = cur->getParentEdges().size();
34843484
if (parentNum == 0) {
34853485
return false;

0 commit comments

Comments
 (0)