From ab16d6148ea6606b6e13a15496d457ccdcd4401c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 7 Oct 2019 08:53:04 +0900 Subject: [PATCH] [exo-tflite] Remove body of CanonicalNodeConverter.cpp (#7921) `Run` is now included inside `*.h` so removed from `*.cpp` file. Signed-off-by: Hyun Sik Yoon --- .../src/Conversion/CanonicalNodeConverter.cpp | 56 +--------------------- 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.cpp b/compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.cpp index 03df647..4daf905 100644 --- a/compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.cpp +++ b/compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.cpp @@ -16,58 +16,4 @@ #include "CanonicalNodeConverter.h" -#include -#include - -namespace exo -{ - -// TODO Remove deprecated code -#if 0 -template -bool CanonicalNodeConverter::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(node); - if (the_node != nullptr) - { - if (convert(the_node)) - changed = true; - } - } - } - - return changed; -} - -// template instantiation -template bool CanonicalNodeConverter::run(loco::Graph *graph); -template bool CanonicalNodeConverter::run(loco::Graph *graph); -// TODO loco::Conv2D -// TODO loco::DepthwiseConv2D -// TODO loco::DepthwiseFilterEncode -template bool CanonicalNodeConverter::run(loco::Graph *graph); -template bool CanonicalNodeConverter::run(loco::Graph *graph); -template bool CanonicalNodeConverter::run(loco::Graph *graph); -// TODO loco::EltwiseSqrt -template bool CanonicalNodeConverter::run(loco::Graph *graph); -template bool CanonicalNodeConverter::run(loco::Graph *graph); -// TODO loco::FixedReshape -template bool CanonicalNodeConverter::run(loco::Graph *graph); -template bool CanonicalNodeConverter::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" -- 2.7.4