From: Sanggyu Lee Date: Mon, 8 Jan 2024 05:59:46 +0000 (+0900) Subject: && to const & AND rm use_node_inputs X-Git-Tag: accepted/tizen/unified/20240131.064057^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c8ba58d3d5bd4377c5242ea4196b0358fcdb848;p=platform%2Fcore%2Fml%2Fnnfw.git && to const & AND rm use_node_inputs --- diff --git a/runtime/onert/backend/ruy/KernelGenerator.cc b/runtime/onert/backend/ruy/KernelGenerator.cc index 735a948..e5f2dbd 100644 --- a/runtime/onert/backend/ruy/KernelGenerator.cc +++ b/runtime/onert/backend/ruy/KernelGenerator.cc @@ -55,7 +55,7 @@ std::unique_ptr KernelGenerator::generate(ir::OperationI assert(_return_fn); // _return_fn must have been generated ret->append(std::move(_return_fn)); - for (const auto &&ind : (op.getInputs() | ir::Remove::UNDEFINED) + op.getOutputs()) + for (const auto &ind : (op.getInputs() | ir::Remove::UNDEFINED) + op.getOutputs()) { auto portable_tensor = _tensor_reg->getPortableTensor(ind); if (portable_tensor) diff --git a/runtime/onert/core/src/compiler/pass/PermutationInsertionPass.cc b/runtime/onert/core/src/compiler/pass/PermutationInsertionPass.cc index 1657c0c..11c2277 100644 --- a/runtime/onert/core/src/compiler/pass/PermutationInsertionPass.cc +++ b/runtime/onert/core/src/compiler/pass/PermutationInsertionPass.cc @@ -87,8 +87,6 @@ void PermutationInsertionPass::callback(const ir::OperandIndex &index, ir::Opera const auto op_layout = op_li->layout(); const backend::Backend *backend = op_li->backend(); assert(backend); - const auto &use_node_inputs = operation.getInputs(); - assert(use_node_inputs.contains(index)); auto new_index = factor_to_index.at({backend, op_layout}); if (index != new_index)