From 75d17846efc471fb8ae4798040410462622e4316 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 12 Jul 2019 14:14:15 +0900 Subject: [PATCH] [exo/tflite] Remove commented function declarations (#4218) These functions declarations are no longer used, but just commented to reduce the amount of code diff. Signed-off-by: Jonghyun Park --- contrib/exo-tflite/src/TypeInference.h | 54 ---------------------------------- 1 file changed, 54 deletions(-) diff --git a/contrib/exo-tflite/src/TypeInference.h b/contrib/exo-tflite/src/TypeInference.h index 9dcf79d..43d75cb 100644 --- a/contrib/exo-tflite/src/TypeInference.h +++ b/contrib/exo-tflite/src/TypeInference.h @@ -21,33 +21,6 @@ #include -// 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 *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 *node, ShapeContext &gd); -#endif - /** * @brief Annotate the shape of each node as a node annotation * -- 2.7.4