Imported Upstream version 1.25.0
[platform/core/ml/nnfw.git] / runtime / onert / frontend / nnapi / wrapper / ANeuralNetworksModel.cc
index a641368..837dac9 100644 (file)
@@ -261,8 +261,8 @@ void ANeuralNetworksModel::setOptionalOperand(const onert::ir::OperandIndex idx)
 
 void ANeuralNetworksModel::fillOptionalOperand(void)
 {
-  _graph->operations().iterate([&](const onert::ir::OperationIndex &, onert::ir::Operation &node) {
-    for (auto input : node.getInputs())
+  _graph->operations().iterate([&](const onert::ir::OperationIndex &, onert::ir::IOperation &node) {
+    for (auto &&input : node.getInputs())
     {
       // TODO fill default value for optional operands
       if (_optional_operands.find(input) != _optional_operands.end())