[loco/Service] FixedReshape type inference (#6595)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Wed, 14 Aug 2019 05:39:02 +0000 (14:39 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 14 Aug 2019 05:39:02 +0000 (14:39 +0900)
This commit introduces type inference of FixedReshape

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
compiler/loco/src/Service/TypeInference.cpp

index 2776fda..14bfcc8 100644 (file)
@@ -113,7 +113,7 @@ struct CanonicalTypeForwardAlgorithm final : public loco::CanonicalNodeVisitor<l
   loco::DataType visit(const loco::FeatureDecode *node) { return loco::dtype_get(node->input()); }
   loco::DataType visit(const loco::FeatureEncode *node) { return loco::dtype_get(node->input()); }
   loco::DataType visit(const loco::FilterEncode *node) { return loco::dtype_get(node->input()); }
-  // TODO Support FixedReshape
+  loco::DataType visit(const loco::FixedReshape *node) { return loco::dtype_get(node->input()); }
   loco::DataType visit(const loco::MaxPool2D *node) { return loco::dtype_get(node->ifm()); }
   loco::DataType visit(const loco::Push *node) { return loco::dtype_get(node->from()); }
   loco::DataType visit(const loco::Pull *node) { return node->dtype(); }