From 9822b67a4cb9bce8059d251692584b995eaf4c9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 26 Nov 2019 18:22:04 +0900 Subject: [PATCH] [neurun] Remove Subgraph::name override (#9220) We do not need to have an override for Subgraph::name. This should have been done in #9005. Signed-off-by: Hanjoung Lee --- runtime/neurun/core/include/model/Subgraph.h | 1 - runtime/neurun/core/src/model/OpCode.cc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/neurun/core/include/model/Subgraph.h b/runtime/neurun/core/include/model/Subgraph.h index b9061db..d751cb7 100644 --- a/runtime/neurun/core/include/model/Subgraph.h +++ b/runtime/neurun/core/include/model/Subgraph.h @@ -53,7 +53,6 @@ public: public: void accept(OperationVisitor &v) const override; - virtual std::string name(void) const override { return "Subgraph"; } OpCode opcode(void) const final { return OpCode::Subgraph; } public: diff --git a/runtime/neurun/core/src/model/OpCode.cc b/runtime/neurun/core/src/model/OpCode.cc index 3763511..48b80b9 100644 --- a/runtime/neurun/core/src/model/OpCode.cc +++ b/runtime/neurun/core/src/model/OpCode.cc @@ -29,6 +29,7 @@ const char *toString(OpCode opcode) #define OP(Name) {OpCode::Name, #Name}, #include "model/Operations.lst" #undef OP + {OpCode::Subgraph, "Subgraph"}, {OpCode::COUNT, "COUNT"}}; return map.at(opcode); } -- 2.7.4