@@ -3415,7 +3415,7 @@ void GraphOptimizer::TailNodesPrecisionOptimize(Graph& graph) {
34153415 searchForTailNodes = [&](const NodePtr& node, std::unordered_map<NodePtr, bool >& tailNodes) -> void {
34163416 for (size_t i = 0 ; i < node->getParentEdges ().size (); i++) {
34173417 const auto & parent = node->getParentEdgeAt (i)->getParent ();
3418- if (one_of (parent->getType (),
3418+ if (any_of (parent->getType (),
34193419 Type::Convolution,
34203420 Type::FullyConnected,
34213421 Type::RNNCell,
@@ -3473,11 +3473,11 @@ void GraphOptimizer::TailNodesPrecisionOptimize(Graph& graph) {
34733473 return false ;
34743474 }
34753475 if ((std::find (kStartTypes .begin (), kStartTypes .end (), parent->getType ()) != kStartTypes .end ()) &&
3476- tailNodesMap.count (parent) != 0u ) {
3476+ tailNodesMap.count (parent) != 0U ) {
34773477 continue ;
34783478 }
34793479 if ((std::find (kPathTypes .begin (), kPathTypes .end (), parent->getType ()) != kPathTypes .end ()) &&
3480- tailNodesMap.count (parent) != 0u ) {
3480+ tailNodesMap.count (parent) != 0U ) {
34813481 if (!parent->isInPlace ()) {
34823482 return false ;
34833483 }
@@ -3539,14 +3539,14 @@ void GraphOptimizer::TailNodesPrecisionOptimize(Graph& graph) {
35393539 if (!tailNodesMap.count (parent)) {
35403540 continue ;
35413541 }
3542- if (one_of (parent->getType (), Type::Input, Type::Output, Type::MemoryInput, Type::MemoryOutput)) {
3542+ if (any_of (parent->getType (), Type::Input, Type::Output, Type::MemoryInput, Type::MemoryOutput)) {
35433543 continue ;
35443544 }
35453545 if (parent->keepOrigPrecision ()) {
35463546 continue ;
35473547 }
35483548 if ((parent->getType () == Type::Convert) && (parent->getOriginalInputPrecisionAtPort (0 ) == inferPrec) &&
3549- outputPrecisions.count (parent->getOriginalOutputPrecisionAtPort (0 )) != 0u ) {
3549+ outputPrecisions.count (parent->getOriginalOutputPrecisionAtPort (0 )) != 0U ) {
35503550 bool suitableCase = false ;
35513551 auto outprecision = parent->getOriginalOutputPrecisionAtPort (0 );
35523552 NodePtr concatConvertfusedNode;
@@ -3556,7 +3556,7 @@ void GraphOptimizer::TailNodesPrecisionOptimize(Graph& graph) {
35563556 continue ;
35573557 }
35583558 if ((std::find (kPathTypes .begin (), kPathTypes .end (), p->getType ()) != kPathTypes .end ()) &&
3559- tailNodesMap.count (parent) != 0u ) {
3559+ tailNodesMap.count (parent) != 0U ) {
35603560 if (!p->isInPlace ()) {
35613561 // if FuseConvert method implement, we can fuse the following convert into this node
35623562 auto * concat = dynamic_cast <node::Concat*>(p.get ());
0 commit comments