From: Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 Date: Fri, 9 Aug 2019 09:36:12 +0000 (+0300) Subject: [nnc] Remove remainings of BiasAdd and Scale ops (#6415) X-Git-Tag: submit/tizen/20190812.062103~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fbc298c6ce2706083e518c64ec7394e6c84acf5;p=platform%2Fcore%2Fml%2Fnnfw.git [nnc] Remove remainings of BiasAdd and Scale ops (#6415) These are leftovers after switching to equivalents elementwise operations. Signed-off-by: Sergei Barannikov --- diff --git a/compiler/nnc/passes/acl_soft_backend/AclCppOpGenerator.cpp b/compiler/nnc/passes/acl_soft_backend/AclCppOpGenerator.cpp index 2612604..be5ce23 100644 --- a/compiler/nnc/passes/acl_soft_backend/AclCppOpGenerator.cpp +++ b/compiler/nnc/passes/acl_soft_backend/AclCppOpGenerator.cpp @@ -356,10 +356,8 @@ static bool shouldSerializeConstant(const ops::ConstantOp& op) { // Operations from 'self_serializing_ops_to_inputs' serializing tensors with appropriate index themselves, // so we don't serialize them here, also we don't serialize tensors from dangling ConstantOp static std::map self_serializing_ops_to_inputs{ - {Operation::Type::scale, 1}, {Operation::Type::conv2D, 1}, - {Operation::Type::fullyConnected, 1}, - {Operation::Type::biasAdd, 1}}; + {Operation::Type::fullyConnected, 1}}; for (const auto* consumer : op.getOutput(0)->getConsumers()) { auto self_serializing_op_it = self_serializing_ops_to_inputs.find(consumer->getNode()->getType());