From 78001af0c35f06f041a671e5d29b70027cb51461 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: Thu, 25 Jul 2019 09:21:09 +0900 Subject: [PATCH] [moco-tf] Remove knob condition for Canonicalizer (#5833) This will remove condition with knob for checking for specific TF dialect node With this change there should be no TF dialects after Canonicalization Signed-off-by: SaeHie Park --- compiler/moco-tf/src/Canonicalizer.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/compiler/moco-tf/src/Canonicalizer.cpp b/compiler/moco-tf/src/Canonicalizer.cpp index 5fd4b0a..4261a7f 100644 --- a/compiler/moco-tf/src/Canonicalizer.cpp +++ b/compiler/moco-tf/src/Canonicalizer.cpp @@ -42,24 +42,7 @@ bool has_tf_nodes(loco::Graph *g) { if (node->dialect() == moco::tf::TFDialect::get()) { - if (moco::tf::get()) - { - auto tfnode = dynamic_cast(node); - if (tfnode != nullptr) - return true; - } - if (moco::tf::get()) - { - auto tfnode = dynamic_cast(node); - if (tfnode != nullptr) - return true; - } - if (moco::tf::get()) - { - auto tfnode = dynamic_cast(node); - if (tfnode != nullptr) - return true; - } + return true; } } return false; -- 2.7.4