[encodump] Support Div operation (#2814)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Fri, 11 Jan 2019 00:38:45 +0000 (09:38 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 11 Jan 2019 00:38:45 +0000 (09:38 +0900)
This commit would enable encodump to get model with Div operation

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
contrib/encodump/src/Dump.cpp

index 33935a8..7ec00e2 100644 (file)
@@ -120,6 +120,13 @@ public:
     _os << tab(_indent) << "ConcatF" << std::endl;
   }
 
+  void visit(const coco::Div *op) override
+  {
+    op->left()->accept(this);
+    op->right()->accept(this);
+    _os << tab(_indent) << "Div" << std::endl;
+  }
+
 private:
   std::ostream &_os;