Enabling Logistics Op on PureACL NEON runtime (#2715)
authorDevansh Bansal/System SW /SRI-Bangalore/Professional/삼성전자 <b.devansh@samsung.com>
Tue, 18 Sep 2018 10:58:58 +0000 (16:28 +0530)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 18 Sep 2018 10:58:58 +0000 (19:58 +0900)
This patch enables Logistics Op to run on NEON runtime PureACL.

Signed-off-by: b.devansh <b.devansh@samsung.com>
runtimes/pure_arm_compute/src/compilation.cc

index 2488332..ade2809 100644 (file)
@@ -2988,7 +2988,13 @@ void Planner::visit(const ::internal::tflite::op::Logistic::Node &node)
       builder.append("Logistic", std::move(fn));
     }
     else
-      throw std::runtime_error("Not supported, yet");
+    {
+      auto fn = nnfw::make_unique<::arm_compute::NEActivationLayer>();
+
+      fn->configure(ifm_alloc, ofm_alloc, act_info);
+
+      builder.append("Logistic", std::move(fn));
+    }
   };
 
   _builder.addStage(stage);