From: 남궁석/On-Device Lab(SR)/Engineer/삼성전자 Date: Fri, 23 Aug 2019 01:01:40 +0000 (+0900) Subject: [moco-tf] Add TFFormattedGraph for TFTanh (#6850) X-Git-Tag: accepted/tizen/unified/20190903.052428~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e019bff9e8b25a87ba61e554535867ab660e6c6;p=platform%2Fcore%2Fml%2Fnnfw.git [moco-tf] Add TFFormattedGraph for TFTanh (#6850) This commit will add `TFFormattedGraph` for `TFTanh` Signed-off-by: Seok NamKoong --- diff --git a/compiler/moco-tf/src/TFFormattedGraph.cpp b/compiler/moco-tf/src/TFFormattedGraph.cpp index a99f6df..fdb4f33 100644 --- a/compiler/moco-tf/src/TFFormattedGraph.cpp +++ b/compiler/moco-tf/src/TFFormattedGraph.cpp @@ -91,6 +91,7 @@ private: IMPLEMENT(TFSoftmax); IMPLEMENT(TFSqueeze); IMPLEMENT(TFStopGradient); + IMPLEMENT(TFTanh); #undef IMPLEMENT }; @@ -291,6 +292,14 @@ bool TFNodeSummaryBuilder::summary(const TFStopGradient *node, locop::NodeSummar return true; } +bool TFNodeSummaryBuilder::summary(const TFTanh *node, locop::NodeSummary &s) const +{ + s.opname("TF.Tanh"); + s.args().append("x", tbl()->lookup(node->x())); + s.state(locop::NodeSummary::State::Complete); + return true; +} + } // namespace namespace moco