summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>2019-09-06 17:57:00 +0900
committerGitHub Enterprise <noreply-CODE@samsung.com>2019-09-06 17:57:00 +0900
commit0a83c26f15a871cb873ef8713feec895d4051bce (patch)
treeb9ae0bd57144e4cc336890f5b8bff0f6cf5912ca /compiler
parentb87b65a5b03868335385dfbf7fef290b88161c2e (diff)
downloadnnfw-0a83c26f15a871cb873ef8713feec895d4051bce.tar.gz
nnfw-0a83c26f15a871cb873ef8713feec895d4051bce.tar.bz2
nnfw-0a83c26f15a871cb873ef8713feec895d4051bce.zip
[moco-tf] Remove unused ForwardShapeInferenceAlgorithm (#7246)
This will remove not used anymore ForwardShapeInferenceAlgorithm Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Diffstat (limited to 'compiler')
-rw-r--r--compiler/moco-tf/src/Dialect/TFShapeInferenceRule.cpp111
1 files changed, 2 insertions, 109 deletions
diff --git a/compiler/moco-tf/src/Dialect/TFShapeInferenceRule.cpp b/compiler/moco-tf/src/Dialect/TFShapeInferenceRule.cpp
index 0af035e2c..b25ad0c17 100644
--- a/compiler/moco-tf/src/Dialect/TFShapeInferenceRule.cpp
+++ b/compiler/moco-tf/src/Dialect/TFShapeInferenceRule.cpp
@@ -18,121 +18,14 @@
#include "TFDialect.h"
#include "TFNode.h"
-#include "TFNodeVisitor.h"
+
+#include "Annotations/ShapeInferenceData.h"
#include <loco/IR/NodeShape.h>
#include <loco/Service/ShapeInference.h>
#include <cassert>
-// temporary headers that will be removed
-// TODO remove using ShapeInferenceData
-#include "Annotations/ShapeInferenceData.h"
-
-namespace
-{
-
-using namespace moco::tf;
-
-/**
- * @note "Forward" means that this algorithm computes the ouput shape from inputs shapes
- */
-class ForwardShapeInferenceAlgorithm final : public TFNodeVisitor<loco::NodeShape>
-{
-public:
- // TODO TFAdd
- // TODO TFAvgPool
- // TODO TFBiasAdd
- // TODO TFConcatV2
- // TODO TFConst
- // TODO TFConv2D
- // TODO TFDepthwiseConv2dNative
- // TODO TFFusedBatchNorm
- // TODO TFIdentity
- // TODO TFMaxPool
- // TODO TFMul
- // TODO TFRealDiv
- // TODO TFRelu
- // TODO TFRelu6
- // TODO TFReshape
- // TODO TFRsqrt
- // TODO TFShape
- // TODO TFSoftmax
- // TODO TFSqrt
- // TODO TFSquaredDifference
- // TODO TFSqueeze
- // TODO TFStopGradient
- // TODO TFSub
- // TODO TFTanh
-
- // temporary default fallback to use legacy ShapeInferenceData
- // TODO remove using ShapeInferenceData
- loco::NodeShape visit(const TFNode *node) final;
-};
-
-// TODO TFAdd
-
-// TODO TFAvgPool
-
-// TODO TFBiasAdd
-
-// TODO TFConcatV2
-
-// TODO TFConst
-
-// TODO TFConv2D
-
-// TODO TFDepthwiseConv2dNative
-
-// TODO TFFusedBatchNorm
-
-// TODO TFIdentity
-
-// TODO TFMaxPool
-
-// TODO TFMul
-
-// TODO TFRealDiv
-
-// TODO TFRelu
-
-// TODO TFRelu6
-
-// TODO TFReshape
-
-// TODO TFRsqrt
-
-// TODO TFShape
-
-// TODO TFSoftmax
-
-// TODO TFSquaredDifference
-
-// TODO TFSqueeze
-
-// TODO TFStopGradient
-
-// TODO TFSub
-
-// TODO TFTanh
-
-// temporary default fallback to use ShapeInferenceData
-// TODO remove using ShapeInferenceData
-loco::NodeShape ForwardShapeInferenceAlgorithm::visit(const TFNode *node)
-{
- auto shapedata = node->annot<ShapeInferenceData>();
- assert(shapedata != nullptr);
-
- loco::NodeShape nodeshape;
- assert(shapedata->domain() == loco::Domain::Tensor);
-
- nodeshape.set(shapedata->tensor_shape());
-
- return nodeshape;
-}
-
-} // namespace
-
namespace moco
{
namespace tf