[exo-tflite] Remove body of CanonicalNodeConverter.cpp (#7921)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Sun, 6 Oct 2019 23:53:04 +0000 (08:53 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Sun, 6 Oct 2019 23:53:04 +0000 (08:53 +0900)
`Run` is now included inside `*.h` so removed from `*.cpp` file.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.cpp

index 03df647..4daf905 100644 (file)
 
 #include "CanonicalNodeConverter.h"
 
-#include <loco.h>
-#include <loco/IR/CanonicalDialect.h>
-
-namespace exo
-{
-
-// TODO Remove deprecated code
-#if 0
-template <typename CanonicalType>
-bool CanonicalNodeConverter<CanonicalType>::run(loco::Graph *graph)
-{
-  auto active_nodes = loco::active_nodes(loco::output_nodes(graph));
-  bool changed = false;
-
-  for (auto node : active_nodes)
-  {
-    if (node->dialect() == loco::CanonicalDialect::get())
-    {
-      auto the_node = dynamic_cast<CanonicalType *>(node);
-      if (the_node != nullptr)
-      {
-        if (convert(the_node))
-          changed = true;
-      }
-    }
-  }
-
-  return changed;
-}
-
-// template instantiation
-template bool CanonicalNodeConverter<loco::AvgPool2D>::run(loco::Graph *graph);
-template bool CanonicalNodeConverter<loco::ConstGen>::run(loco::Graph *graph);
-// TODO loco::Conv2D
-// TODO loco::DepthwiseConv2D
-// TODO loco::DepthwiseFilterEncode
-template bool CanonicalNodeConverter<loco::EltwiseAdd>::run(loco::Graph *graph);
-template bool CanonicalNodeConverter<loco::EltwiseDiv>::run(loco::Graph *graph);
-template bool CanonicalNodeConverter<loco::EltwiseMul>::run(loco::Graph *graph);
-// TODO loco::EltwiseSqrt
-template bool CanonicalNodeConverter<loco::EltwiseSub>::run(loco::Graph *graph);
-template bool CanonicalNodeConverter<loco::FeatureBiasAdd>::run(loco::Graph *graph);
-// TODO loco::FixedReshape
-template bool CanonicalNodeConverter<loco::MaxPool2D>::run(loco::Graph *graph);
-template bool CanonicalNodeConverter<loco::ReLU>::run(loco::Graph *graph);
-// TODO loco::ReLU6
-// TODO loco::Tanh
-// TODO loco::TensorConcat
-// TODO loco::TensorBiasAdd
-// NOTE TensorBroadcastConverter is skipped here as this directly inherits
-//      loco::Pass instead of CanonicalNodeConverter
-// TODO loco::TensorSoftmax
-#endif
-
-} // namespace exo
+// This file is to make sure compilation of "CanonicalNodeConverter.h"