From 2a3f3b20cd56c0a607475e3d30c4761b6a253c36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84?= =?utf8?q?=EC=9E=90?= Date: Fri, 9 Nov 2018 12:34:47 +0900 Subject: [PATCH] [neurun] Default implementation for NodeVisitor (#3530) Implement default implementation for NodeVisitor which is just doing nothing. Signed-off-by: Hanjoung Lee --- runtimes/neurun/src/graph/operation/NodeVisitor.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/runtimes/neurun/src/graph/operation/NodeVisitor.h b/runtimes/neurun/src/graph/operation/NodeVisitor.h index 0f2e7ec..a5e7d8a 100644 --- a/runtimes/neurun/src/graph/operation/NodeVisitor.h +++ b/runtimes/neurun/src/graph/operation/NodeVisitor.h @@ -39,16 +39,16 @@ struct NodeVisitor { virtual ~NodeVisitor() = default; - virtual void visit(const Conv2DNode &) = 0; - virtual void visit(const MaxPool2DNode &) = 0; - virtual void visit(const AvgPool2DNode &) = 0; - virtual void visit(const ConcatNode &) = 0; - virtual void visit(const ReshapeNode &) = 0; - virtual void visit(const FullyConnectedNode &) = 0; - virtual void visit(const SoftmaxNode &) = 0; - virtual void visit(const NOPNode &) = 0; - virtual void visit(const PermuteNode &) = 0; - virtual void visit(const AddNode &) = 0; + virtual void visit(const Conv2DNode &) {} + virtual void visit(const MaxPool2DNode &) {} + virtual void visit(const AvgPool2DNode &) {} + virtual void visit(const ConcatNode &) {} + virtual void visit(const ReshapeNode &) {} + virtual void visit(const FullyConnectedNode &) {} + virtual void visit(const SoftmaxNode &) {} + virtual void visit(const NOPNode &) {} + virtual void visit(const PermuteNode &) {} + virtual void visit(const AddNode &) {} }; } // namespace operation -- 2.7.4