From 2dff22986ed3c7fd09af9384a32b725908ef711b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladimir=20Plazun/AI=20Tools=20Lab=20/SRR/Engineer/?= =?utf8?q?=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 5 Sep 2019 07:12:52 +0300 Subject: [PATCH] [custom op] overload getName in CustomNode implementation (#7180) Fixes CustomNode class being abstract Signed-off-by: Vladimir Plazun --- runtimes/neurun/core/include/model/operation/CustomNode.h | 2 ++ runtimes/neurun/core/src/model/operation/CustomNode.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/runtimes/neurun/core/include/model/operation/CustomNode.h b/runtimes/neurun/core/include/model/operation/CustomNode.h index 23e20b9..77a1283 100644 --- a/runtimes/neurun/core/include/model/operation/CustomNode.h +++ b/runtimes/neurun/core/include/model/operation/CustomNode.h @@ -39,6 +39,8 @@ public: */ const std::string &id() const; + std::string getName() const override; + /** * @return user-provided data */ diff --git a/runtimes/neurun/core/src/model/operation/CustomNode.cc b/runtimes/neurun/core/src/model/operation/CustomNode.cc index f57b706..c6d6b9c 100644 --- a/runtimes/neurun/core/src/model/operation/CustomNode.cc +++ b/runtimes/neurun/core/src/model/operation/CustomNode.cc @@ -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 -- 2.7.4