[moco-tf] Summary for TFSqueeze (#6162)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Mon, 5 Aug 2019 00:59:03 +0000 (09:59 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 5 Aug 2019 00:59:03 +0000 (09:59 +0900)
* [moco-tf] Summary for TFSqueeze

This commit introduces log summary for TFSqueeze

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Make use of pepper::str

compiler/moco-tf/src/TFFormattedGraph.cpp

index 959be64..251c7d4 100644 (file)
@@ -81,6 +81,7 @@ private:
   IMPLEMENT(TFMul);
   IMPLEMENT(TFReshape);
   IMPLEMENT(TFRsqrt);
+  IMPLEMENT(TFSqueeze);
 #undef IMPLEMENT
 };
 
@@ -234,6 +235,15 @@ bool TFNodeSummaryBuilder::summary(const TFRsqrt *node, locop::NodeSummary &s) c
   return true;
 }
 
+bool TFNodeSummaryBuilder::summary(const TFSqueeze *node, locop::NodeSummary &s) const
+{
+  s.opname("TF.Squeeze");
+  s.args().append("input", _tbl->lookup(node->input()));
+  s.args().append("squeeze_dims", pepper::str(node->squeeze_dims()));
+  s.state(locop::NodeSummary::State::Complete);
+  return true;
+}
+
 } // namespace
 
 namespace moco