From 19448409ce1db084bb3e6495abbd5d8637c32fa9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=84=B8=ED=9D=AC/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 13 Aug 2019 16:40:22 +0900 Subject: [PATCH] [moco-tf] Clear ConcatV2 Canonicalizer (#6521) This will erase ConcatV2 Canonicalier implementation to reduce complexcity of diff for migration to using VariadicArityNode Signed-off-by: SaeHie Park --- .../src/Canonicalization/ConcatV2Canonicalizer.cpp | 40 +++------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/compiler/moco-tf/src/Canonicalization/ConcatV2Canonicalizer.cpp b/compiler/moco-tf/src/Canonicalization/ConcatV2Canonicalizer.cpp index 2100fe4..e3282f3 100644 --- a/compiler/moco-tf/src/Canonicalization/ConcatV2Canonicalizer.cpp +++ b/compiler/moco-tf/src/Canonicalization/ConcatV2Canonicalizer.cpp @@ -21,49 +21,19 @@ #include "Dialect/TFNodeVisitor.h" #include "Dialect/TFNodeImpl.h" -#include +#include namespace { bool canonicalize_concat(loco::Graph *graph, moco::tf::TFConcatV2 *node) { - /** - * @note This will replace TFConcatV2 node with Canonical TensorConcat - * - * Before - * A --- TFConcatV2 -- C - * B --/ - * After - * +------ TFConcatV2 -- - * | / - * B ------- - * | \ - * A -+------ TensorConcat -- C - * - * Where - * A : lhs of TFConcatV2 - * B : rhs of TFConcatV2 - * C : a node that uses TFConcatV2 as an input - * TFConcatV2 is disconnected from C - */ + (void)graph; + (void)node; - auto tensorconcat_node = graph->nodes()->create(); + throw std::runtime_error("NYI ConcatV2Canonicalizer"); - // copy attribute(s) - tensorconcat_node->axis(node->axis()); - - auto node_A = node->lhs(); - auto node_B = node->rhs(); - - // update connections - tensorconcat_node->lhs(node_A); - tensorconcat_node->rhs(node_B); - - // replace node - replace(node).with(tensorconcat_node); - - return true; + return false; } } // namespace -- 2.7.4