[loco] Implement ReLU6 shape inference (#6222)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 5 Aug 2019 09:38:03 +0000 (18:38 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 5 Aug 2019 09:38:03 +0000 (18:38 +0900)
This commit extends CanonicalShapeInferenceRule to accept ReLU6 node.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/loco/src/Service/CanonicalShapeInferenceRule.cpp

index 348e54f..ae1df7b 100644 (file)
@@ -95,7 +95,9 @@ public:
   // CASE: ReLU
   loco::NodeShape visit(const loco::ReLU *node) final { return loco::shape_get(node->input()); }
 
-  // TODO Support ReLU6
+  // CASE: ReLU6
+  loco::NodeShape visit(const loco::ReLU6 *node) final { return loco::shape_get(node->input()); }
+
   // TODO Support TensorBiasAdd
   // TODO SUpport TensorConcat
 };