[exo/tflite] Remove commented function declarations (#4218)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 12 Jul 2019 05:14:15 +0000 (14:14 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 12 Jul 2019 05:14:15 +0000 (14:14 +0900)
These functions declarations are no longer used, but just commented
to reduce the amount of code diff.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/exo-tflite/src/TypeInference.h

index 9dcf79d..43d75cb 100644 (file)
 
 #include <loco/IR/Nodes.h>
 
-// Tensor type inference functions
-#if 0
-tflite::TensorType getOpResultType(loco::ConstGen *node, TypeContext &);
-
-tflite::TensorType getOpResultType(loco::Pull *node, TypeContext &);
-
-tflite::TensorType getOpResultType(loco::ReLU *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::MaxPool2D *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::AvgPool2D *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::Conv2D *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::FeatureEncode *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::FeatureDecode *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::FilterEncode *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::TensorConcat *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::BiasEncode *node, TypeContext &gd);
-
-tflite::TensorType getOpResultType(loco::BiasAdd<loco::Domain::Tensor> *node, TypeContext &gd);
-#endif
-
 /**
  * @brief Annotate the type of each node as NodeAnnotation
  *
@@ -65,33 +38,6 @@ struct TypeInference
   static tflite::TensorType get(loco::Node *node);
 };
 
-// Shape inference functions
-#if 0
-ShapeDescription getOpResultShape(loco::Pull *node, ShapeContext &);
-
-ShapeDescription getOpResultShape(loco::ConstGen *node, ShapeContext &);
-
-ShapeDescription getOpResultShape(loco::MaxPool2D *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::AvgPool2D *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::Conv2D *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::ReLU *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::FeatureEncode *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::FeatureDecode *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::FilterEncode *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::TensorConcat *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::BiasEncode *node, ShapeContext &gd);
-
-ShapeDescription getOpResultShape(loco::BiasAdd<loco::Domain::Tensor> *node, ShapeContext &gd);
-#endif
-
 /**
  * @brief Annotate the shape of each node as a node annotation
  *