[exo-tflite] shape inference for TFLRelu (#7210)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Thu, 5 Sep 2019 06:53:12 +0000 (15:53 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 5 Sep 2019 06:53:12 +0000 (15:53 +0900)
This adds shape inferene for TFLRelu.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo-tflite/src/Dialect/Service/TFLShapeInferenceRule.cpp

index f2aecbd..e3ba39c 100644 (file)
@@ -68,7 +68,12 @@ public:
 
   // TODO TFLNop
 
-  // TODO TFLRelu
+  loco::NodeShape visit(const locoex::TFLRelu *node) final
+  {
+    auto input_shape = loco::shape_get(node->features()).as<loco::TensorShape>();
+
+    return loco::NodeShape{input_shape};
+  }
 
   // TODO TFLRelu6