[custom op] overload getName in CustomNode implementation (#7180)
authorVladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 <v.plazun@samsung.com>
Thu, 5 Sep 2019 04:12:52 +0000 (07:12 +0300)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 5 Sep 2019 04:12:52 +0000 (13:12 +0900)
Fixes CustomNode class being abstract

Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
runtimes/neurun/core/include/model/operation/CustomNode.h
runtimes/neurun/core/src/model/operation/CustomNode.cc

index 23e20b9..77a1283 100644 (file)
@@ -39,6 +39,8 @@ public:
    */
   const std::string &id() const;
 
+  std::string getName() const override;
+
   /**
    * @return user-provided data
    */
index f57b706..c6d6b9c 100644 (file)
@@ -37,6 +37,8 @@ const std::string &CustomNode::id() const { return _id; }
 
 void *CustomNode::userdata() const { return _userdata; }
 
+std::string CustomNode::getName() const { return id(); }
+
 } // namespace operation
 } // namespace model
 } // namespace neurun