From 09d696ca64ca05b5efac15de4faf36687ec97c09 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: Mon, 12 Aug 2019 13:28:10 +0900 Subject: [PATCH] [moco-tf] Do not reset input for BiasAdd Canonicalizer (#6470) This will remove reset input for old replaced BiasAdd node in Canonicalization and update the diagram Signed-off-by: SaeHie Park --- compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.cpp b/compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.cpp index 936db01..a42891a 100644 --- a/compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.cpp +++ b/compiler/moco-tf/src/Canonicalization/BiasAddCanonicalizer.cpp @@ -46,7 +46,8 @@ bool canonicalize_biasadd(loco::Graph *graph, moco::tf::TFBiasAdd *node) * B -/ * * After - * - TFBiasAdd - + * A -- TFBiasAdd - + * B -/ * A --------------- TensorBiasAdd - C * B - BiasEncode -/ * @@ -54,7 +55,8 @@ bool canonicalize_biasadd(loco::Graph *graph, moco::tf::TFBiasAdd *node) * A : value of TFBiasAdd * B : bias of TFBiasAdd * C : a node that uses TFBiasAdd as an input - * TFBiasAdd is disconnected from other nodes + * TFBiasAdd is disconnected from node C + * A and B are drawn twice to simplify the diagram */ INFO(l) << "TFNodeCanonicalize TFBiasAdd begin"; @@ -93,8 +95,6 @@ bool canonicalize_biasadd(loco::Graph *graph, moco::tf::TFBiasAdd *node) // replace old with new : about C in above note replace(node).with(bias_add); - node->value(nullptr); - node->bias(nullptr); INFO(l) << "TFNodeCanonicalize TFBiasAdd done"; -- 2.7.4