From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Sun, 6 Oct 2019 23:53:04 +0000 (+0900) Subject: [exo-tflite] Remove body of CanonicalNodeConverter.cpp (#7921) X-Git-Tag: submit/tizen/20191205.083104~942 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab16d6148ea6606b6e13a15496d457ccdcd4401c;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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"