From 0bf91ac7d74e4fe91d4b888fa7af6d66b62bf96f 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: Wed, 24 Jul 2019 18:38:52 +0900 Subject: [PATCH] [moco-tf] default name for TFNodeSummaryBuilder (#5817) This will change to show default name for TFNodeSummaryBuilder and not to break while testing cause of unimplementation Signed-off-by: SaeHie Park --- compiler/moco-tf/src/TFFormattedGraph.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/moco-tf/src/TFFormattedGraph.cpp b/compiler/moco-tf/src/TFFormattedGraph.cpp index 18cc510..bb7ff5f 100644 --- a/compiler/moco-tf/src/TFFormattedGraph.cpp +++ b/compiler/moco-tf/src/TFFormattedGraph.cpp @@ -41,8 +41,13 @@ public: bool build(const loco::Node *, locop::NodeSummary &s) const final; protected: -#define TENSORFLOW_NODE(OPCODE, CLASS) \ - virtual bool summary(const CLASS *, locop::NodeSummary &) const { return false; } +#define TENSORFLOW_NODE(OPCODE, CLASS) \ + virtual bool summary(const CLASS *node, locop::NodeSummary &s) const \ + { \ + s.opname("NYI " #CLASS); \ + s.state(locop::NodeSummary::State::PartiallyKnown); \ + return true; \ + } #include "Dialect/TFNodes.lst" #undef TENSORFLOW_NODE -- 2.7.4