[neurun] Remove Subgraph::name override (#9220)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Tue, 26 Nov 2019 09:22:04 +0000 (18:22 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 26 Nov 2019 09:22:04 +0000 (18:22 +0900)
We do not need to have an override for Subgraph::name.
This should have been done in #9005.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtime/neurun/core/include/model/Subgraph.h
runtime/neurun/core/src/model/OpCode.cc

index b9061db..d751cb7 100644 (file)
@@ -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:
index 3763511..48b80b9 100644 (file)
@@ -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);
 }