From: Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 Date: Wed, 12 Jun 2019 04:16:11 +0000 (+0300) Subject: [neurun] Accept Visitors by lvalue reference (#5385) X-Git-Tag: submit/tizen/20190809.050447~690 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f00cd970ce25b2907a23e9165f155f05b2b5df07;p=platform%2Fcore%2Fml%2Fnnfw.git [neurun] Accept Visitors by lvalue reference (#5385) * Change `Operation::accept` to accept `OperationVisitor` by lvalue reference instead of rvalue reference. Parameters with rvalue reference types are assumed to be "moved-from". This was not the case. * Remove redundant `virtual` keyword since the methods are declared `override`. Signed-off-by: Sergei Barannikov --- diff --git a/runtimes/neurun/core/include/backend/IStageGenerator.h b/runtimes/neurun/core/include/backend/IStageGenerator.h index d266ff4..37ee27d 100644 --- a/runtimes/neurun/core/include/backend/IStageGenerator.h +++ b/runtimes/neurun/core/include/backend/IStageGenerator.h @@ -62,7 +62,7 @@ public: { // TODO Remove directly dependency for classes not interface _return = nnfw::cpp14::make_unique(); - node.accept(std::move(*this)); + node.accept(*this); return std::move(_return); } diff --git a/runtimes/neurun/core/include/model/Operation.h b/runtimes/neurun/core/include/model/Operation.h index f0fedbc..f8a5edc 100644 --- a/runtimes/neurun/core/include/model/Operation.h +++ b/runtimes/neurun/core/include/model/Operation.h @@ -58,7 +58,7 @@ public: virtual ~Operation(); public: - virtual void accept(OperationVisitor &&) const = 0; + virtual void accept(OperationVisitor &v) const = 0; virtual std::string getName() const = 0; public: diff --git a/runtimes/neurun/core/include/model/OperationVisitor.h b/runtimes/neurun/core/include/model/OperationVisitor.h index f9f7d3f..200e62d 100644 --- a/runtimes/neurun/core/include/model/OperationVisitor.h +++ b/runtimes/neurun/core/include/model/OperationVisitor.h @@ -40,7 +40,7 @@ struct OperationVisitor { for (const auto &e : subgraph.operations()) { - e.node->accept(std::move(*this)); + e.node->accept(*this); } } }; diff --git a/runtimes/neurun/core/include/model/Subgraph.h b/runtimes/neurun/core/include/model/Subgraph.h index f5cc7c8..adeae4d 100644 --- a/runtimes/neurun/core/include/model/Subgraph.h +++ b/runtimes/neurun/core/include/model/Subgraph.h @@ -51,7 +51,7 @@ public: Subgraph(const Subgraph &) = delete; public: - virtual void accept(OperationVisitor &&visitor) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName(void) const override { return "Subgraph"; } diff --git a/runtimes/neurun/core/include/model/operation/AbsNode.h b/runtimes/neurun/core/include/model/operation/AbsNode.h index db94315..c16ef04 100644 --- a/runtimes/neurun/core/include/model/operation/AbsNode.h +++ b/runtimes/neurun/core/include/model/operation/AbsNode.h @@ -38,7 +38,7 @@ public: AbsNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Abs"; } }; diff --git a/runtimes/neurun/core/include/model/operation/AddNode.h b/runtimes/neurun/core/include/model/operation/AddNode.h index 63e8771..f1b51d2 100644 --- a/runtimes/neurun/core/include/model/operation/AddNode.h +++ b/runtimes/neurun/core/include/model/operation/AddNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Add"; } public: diff --git a/runtimes/neurun/core/include/model/operation/ArgMaxNode.h b/runtimes/neurun/core/include/model/operation/ArgMaxNode.h index 3007015..684c150 100644 --- a/runtimes/neurun/core/include/model/operation/ArgMaxNode.h +++ b/runtimes/neurun/core/include/model/operation/ArgMaxNode.h @@ -44,7 +44,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ArgMax"; } public: diff --git a/runtimes/neurun/core/include/model/operation/AvgPool2DNode.h b/runtimes/neurun/core/include/model/operation/AvgPool2DNode.h index 766c933..bc04b2f 100644 --- a/runtimes/neurun/core/include/model/operation/AvgPool2DNode.h +++ b/runtimes/neurun/core/include/model/operation/AvgPool2DNode.h @@ -52,7 +52,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "AvgPool2D"; } public: diff --git a/runtimes/neurun/core/include/model/operation/CastNode.h b/runtimes/neurun/core/include/model/operation/CastNode.h index a75f8e1..394ca51 100644 --- a/runtimes/neurun/core/include/model/operation/CastNode.h +++ b/runtimes/neurun/core/include/model/operation/CastNode.h @@ -38,7 +38,7 @@ public: CastNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Cast"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ComparisonNode.h b/runtimes/neurun/core/include/model/operation/ComparisonNode.h index cea2ad9..40b561b 100644 --- a/runtimes/neurun/core/include/model/operation/ComparisonNode.h +++ b/runtimes/neurun/core/include/model/operation/ComparisonNode.h @@ -1,18 +1,18 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ + * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #ifndef __NEURUN_MODEL_OPERATION_COMPARISON_NODE_H__ #define __NEURUN_MODEL_OPERATION_COMPARISON_NODE_H__ @@ -55,7 +55,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Comparison"; } public: diff --git a/runtimes/neurun/core/include/model/operation/ConcatNode.h b/runtimes/neurun/core/include/model/operation/ConcatNode.h index a9e441f..4e00421 100644 --- a/runtimes/neurun/core/include/model/operation/ConcatNode.h +++ b/runtimes/neurun/core/include/model/operation/ConcatNode.h @@ -41,7 +41,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Concat"; } public: diff --git a/runtimes/neurun/core/include/model/operation/Conv2DNode.h b/runtimes/neurun/core/include/model/operation/Conv2DNode.h index 4b70610..0539c58 100644 --- a/runtimes/neurun/core/include/model/operation/Conv2DNode.h +++ b/runtimes/neurun/core/include/model/operation/Conv2DNode.h @@ -51,7 +51,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Conv2D"; } public: diff --git a/runtimes/neurun/core/include/model/operation/DepthToSpaceNode.h b/runtimes/neurun/core/include/model/operation/DepthToSpaceNode.h index 2a7b610..b9c1e8a 100644 --- a/runtimes/neurun/core/include/model/operation/DepthToSpaceNode.h +++ b/runtimes/neurun/core/include/model/operation/DepthToSpaceNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "DepthToSpace"; } public: diff --git a/runtimes/neurun/core/include/model/operation/DepthwiseConv2DNode.h b/runtimes/neurun/core/include/model/operation/DepthwiseConv2DNode.h index 32cf103..d90196d 100644 --- a/runtimes/neurun/core/include/model/operation/DepthwiseConv2DNode.h +++ b/runtimes/neurun/core/include/model/operation/DepthwiseConv2DNode.h @@ -52,7 +52,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "DepthwiseConv2D"; } public: diff --git a/runtimes/neurun/core/include/model/operation/DequantizeNode.h b/runtimes/neurun/core/include/model/operation/DequantizeNode.h index 70766f4..299bb71 100644 --- a/runtimes/neurun/core/include/model/operation/DequantizeNode.h +++ b/runtimes/neurun/core/include/model/operation/DequantizeNode.h @@ -38,7 +38,7 @@ public: DequantizeNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Dequantize"; } }; diff --git a/runtimes/neurun/core/include/model/operation/DivNode.h b/runtimes/neurun/core/include/model/operation/DivNode.h index 0d28ba3..f533d7f 100644 --- a/runtimes/neurun/core/include/model/operation/DivNode.h +++ b/runtimes/neurun/core/include/model/operation/DivNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Div"; } public: diff --git a/runtimes/neurun/core/include/model/operation/EmbeddingLookupNode.h b/runtimes/neurun/core/include/model/operation/EmbeddingLookupNode.h index 1413b50..ab9c5f6 100644 --- a/runtimes/neurun/core/include/model/operation/EmbeddingLookupNode.h +++ b/runtimes/neurun/core/include/model/operation/EmbeddingLookupNode.h @@ -39,7 +39,7 @@ public: EmbeddingLookupNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "EmbeddingLookup"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ExpNode.h b/runtimes/neurun/core/include/model/operation/ExpNode.h index 1d60b5d..3236298 100644 --- a/runtimes/neurun/core/include/model/operation/ExpNode.h +++ b/runtimes/neurun/core/include/model/operation/ExpNode.h @@ -38,7 +38,7 @@ public: ExpNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Exp"; } }; diff --git a/runtimes/neurun/core/include/model/operation/FloorNode.h b/runtimes/neurun/core/include/model/operation/FloorNode.h index 82e97c4..2ba7947 100644 --- a/runtimes/neurun/core/include/model/operation/FloorNode.h +++ b/runtimes/neurun/core/include/model/operation/FloorNode.h @@ -40,7 +40,7 @@ public: FloorNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Floor"; } }; diff --git a/runtimes/neurun/core/include/model/operation/FullyConnectedNode.h b/runtimes/neurun/core/include/model/operation/FullyConnectedNode.h index e15954c..e1a07ea 100644 --- a/runtimes/neurun/core/include/model/operation/FullyConnectedNode.h +++ b/runtimes/neurun/core/include/model/operation/FullyConnectedNode.h @@ -49,7 +49,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "FullyConnected"; } public: diff --git a/runtimes/neurun/core/include/model/operation/GatherNode.h b/runtimes/neurun/core/include/model/operation/GatherNode.h index 3ff6ea6..50d3708 100644 --- a/runtimes/neurun/core/include/model/operation/GatherNode.h +++ b/runtimes/neurun/core/include/model/operation/GatherNode.h @@ -47,7 +47,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Gather"; } public: diff --git a/runtimes/neurun/core/include/model/operation/HashtableLookupNode.h b/runtimes/neurun/core/include/model/operation/HashtableLookupNode.h index bdb1e17..4d8fe5c 100644 --- a/runtimes/neurun/core/include/model/operation/HashtableLookupNode.h +++ b/runtimes/neurun/core/include/model/operation/HashtableLookupNode.h @@ -46,7 +46,7 @@ public: HashtableLookupNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "HashTableLookup"; } }; diff --git a/runtimes/neurun/core/include/model/operation/L2NormalizationNode.h b/runtimes/neurun/core/include/model/operation/L2NormalizationNode.h index fb3afb4..6915c5a 100644 --- a/runtimes/neurun/core/include/model/operation/L2NormalizationNode.h +++ b/runtimes/neurun/core/include/model/operation/L2NormalizationNode.h @@ -38,7 +38,7 @@ public: L2NormalizationNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "L2Normalization"; } }; diff --git a/runtimes/neurun/core/include/model/operation/L2Pool2DNode.h b/runtimes/neurun/core/include/model/operation/L2Pool2DNode.h index 4586b87..52ce762 100644 --- a/runtimes/neurun/core/include/model/operation/L2Pool2DNode.h +++ b/runtimes/neurun/core/include/model/operation/L2Pool2DNode.h @@ -51,7 +51,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "L2Pool2D"; } public: diff --git a/runtimes/neurun/core/include/model/operation/LSTMNode.h b/runtimes/neurun/core/include/model/operation/LSTMNode.h index a9a59d1..59f5743 100644 --- a/runtimes/neurun/core/include/model/operation/LSTMNode.h +++ b/runtimes/neurun/core/include/model/operation/LSTMNode.h @@ -73,7 +73,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "LSTM"; } public: diff --git a/runtimes/neurun/core/include/model/operation/LocalResponseNormalizationNode.h b/runtimes/neurun/core/include/model/operation/LocalResponseNormalizationNode.h index 3f26575..f75aaa2 100644 --- a/runtimes/neurun/core/include/model/operation/LocalResponseNormalizationNode.h +++ b/runtimes/neurun/core/include/model/operation/LocalResponseNormalizationNode.h @@ -49,7 +49,7 @@ public: const OperandIndexSequence &outputs, const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "LocalResponseNormalization"; } public: diff --git a/runtimes/neurun/core/include/model/operation/LogicalAndNode.h b/runtimes/neurun/core/include/model/operation/LogicalAndNode.h index 5e1c3ab..726deaf 100644 --- a/runtimes/neurun/core/include/model/operation/LogicalAndNode.h +++ b/runtimes/neurun/core/include/model/operation/LogicalAndNode.h @@ -39,7 +39,7 @@ public: LogicalAndNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "LogicalAnd"; } }; diff --git a/runtimes/neurun/core/include/model/operation/LogicalNotNode.h b/runtimes/neurun/core/include/model/operation/LogicalNotNode.h index 5d24a2d..e1d6d9f 100644 --- a/runtimes/neurun/core/include/model/operation/LogicalNotNode.h +++ b/runtimes/neurun/core/include/model/operation/LogicalNotNode.h @@ -38,7 +38,7 @@ public: LogicalNotNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "LogicalNot"; } }; diff --git a/runtimes/neurun/core/include/model/operation/LogicalOrNode.h b/runtimes/neurun/core/include/model/operation/LogicalOrNode.h index 34208f8..37f10ba 100644 --- a/runtimes/neurun/core/include/model/operation/LogicalOrNode.h +++ b/runtimes/neurun/core/include/model/operation/LogicalOrNode.h @@ -39,7 +39,7 @@ public: LogicalOrNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "LogicalOr"; } }; diff --git a/runtimes/neurun/core/include/model/operation/LogisticNode.h b/runtimes/neurun/core/include/model/operation/LogisticNode.h index 3735bed..ce21507 100644 --- a/runtimes/neurun/core/include/model/operation/LogisticNode.h +++ b/runtimes/neurun/core/include/model/operation/LogisticNode.h @@ -38,7 +38,7 @@ public: LogisticNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Logistic"; } }; diff --git a/runtimes/neurun/core/include/model/operation/MaxPool2DNode.h b/runtimes/neurun/core/include/model/operation/MaxPool2DNode.h index 8492bcf..b99e21d 100644 --- a/runtimes/neurun/core/include/model/operation/MaxPool2DNode.h +++ b/runtimes/neurun/core/include/model/operation/MaxPool2DNode.h @@ -51,7 +51,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "MaxPool2D"; } public: diff --git a/runtimes/neurun/core/include/model/operation/MeanNode.h b/runtimes/neurun/core/include/model/operation/MeanNode.h index 9a905b0..f50899e 100644 --- a/runtimes/neurun/core/include/model/operation/MeanNode.h +++ b/runtimes/neurun/core/include/model/operation/MeanNode.h @@ -45,7 +45,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Mean"; } public: diff --git a/runtimes/neurun/core/include/model/operation/MulNode.h b/runtimes/neurun/core/include/model/operation/MulNode.h index 01c17a8..e873caa 100644 --- a/runtimes/neurun/core/include/model/operation/MulNode.h +++ b/runtimes/neurun/core/include/model/operation/MulNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Mul"; } public: diff --git a/runtimes/neurun/core/include/model/operation/NegNode.h b/runtimes/neurun/core/include/model/operation/NegNode.h index 95f19dd..043fa89 100644 --- a/runtimes/neurun/core/include/model/operation/NegNode.h +++ b/runtimes/neurun/core/include/model/operation/NegNode.h @@ -38,7 +38,7 @@ public: NegNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Neg"; } }; diff --git a/runtimes/neurun/core/include/model/operation/PReLUNode.h b/runtimes/neurun/core/include/model/operation/PReLUNode.h index ae1e668..b604cb9 100644 --- a/runtimes/neurun/core/include/model/operation/PReLUNode.h +++ b/runtimes/neurun/core/include/model/operation/PReLUNode.h @@ -39,7 +39,7 @@ public: PReLUNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "PReLU"; } }; diff --git a/runtimes/neurun/core/include/model/operation/PermuteNode.h b/runtimes/neurun/core/include/model/operation/PermuteNode.h index 513ff8d..59836f0 100644 --- a/runtimes/neurun/core/include/model/operation/PermuteNode.h +++ b/runtimes/neurun/core/include/model/operation/PermuteNode.h @@ -51,7 +51,7 @@ public: }; public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Permute"; } public: diff --git a/runtimes/neurun/core/include/model/operation/RNNNode.h b/runtimes/neurun/core/include/model/operation/RNNNode.h index a40597f..336bf46 100644 --- a/runtimes/neurun/core/include/model/operation/RNNNode.h +++ b/runtimes/neurun/core/include/model/operation/RNNNode.h @@ -54,7 +54,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "RNN"; } public: diff --git a/runtimes/neurun/core/include/model/operation/RSQRTNode.h b/runtimes/neurun/core/include/model/operation/RSQRTNode.h index ee3e56b..168dd2c 100644 --- a/runtimes/neurun/core/include/model/operation/RSQRTNode.h +++ b/runtimes/neurun/core/include/model/operation/RSQRTNode.h @@ -38,7 +38,7 @@ public: RSQRTNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "RSQRT"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ReLU1Node.h b/runtimes/neurun/core/include/model/operation/ReLU1Node.h index 1f95406..52f403a 100644 --- a/runtimes/neurun/core/include/model/operation/ReLU1Node.h +++ b/runtimes/neurun/core/include/model/operation/ReLU1Node.h @@ -38,7 +38,7 @@ public: ReLU1Node(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ReLU1"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ReLU6Node.h b/runtimes/neurun/core/include/model/operation/ReLU6Node.h index b492a43..78209fc 100644 --- a/runtimes/neurun/core/include/model/operation/ReLU6Node.h +++ b/runtimes/neurun/core/include/model/operation/ReLU6Node.h @@ -38,7 +38,7 @@ public: ReLU6Node(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ReLU6"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ReLUNode.h b/runtimes/neurun/core/include/model/operation/ReLUNode.h index 562a3f8..b3f9fde 100644 --- a/runtimes/neurun/core/include/model/operation/ReLUNode.h +++ b/runtimes/neurun/core/include/model/operation/ReLUNode.h @@ -38,7 +38,7 @@ public: ReLUNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ReLU"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ReduceMaxNode.h b/runtimes/neurun/core/include/model/operation/ReduceMaxNode.h index 7d24158..edf0752 100644 --- a/runtimes/neurun/core/include/model/operation/ReduceMaxNode.h +++ b/runtimes/neurun/core/include/model/operation/ReduceMaxNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ReduceMax"; } public: diff --git a/runtimes/neurun/core/include/model/operation/ReduceMinNode.h b/runtimes/neurun/core/include/model/operation/ReduceMinNode.h index 6921204..b6db18b 100644 --- a/runtimes/neurun/core/include/model/operation/ReduceMinNode.h +++ b/runtimes/neurun/core/include/model/operation/ReduceMinNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ReduceMin"; } public: diff --git a/runtimes/neurun/core/include/model/operation/ReduceSumNode.h b/runtimes/neurun/core/include/model/operation/ReduceSumNode.h index 34e7f63..35213f3 100644 --- a/runtimes/neurun/core/include/model/operation/ReduceSumNode.h +++ b/runtimes/neurun/core/include/model/operation/ReduceSumNode.h @@ -44,7 +44,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ReduceSum"; } public: diff --git a/runtimes/neurun/core/include/model/operation/ReshapeNode.h b/runtimes/neurun/core/include/model/operation/ReshapeNode.h index 508b200..45896e8 100644 --- a/runtimes/neurun/core/include/model/operation/ReshapeNode.h +++ b/runtimes/neurun/core/include/model/operation/ReshapeNode.h @@ -40,7 +40,7 @@ public: ReshapeNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Reshape"; } }; diff --git a/runtimes/neurun/core/include/model/operation/ResizeBilinearNode.h b/runtimes/neurun/core/include/model/operation/ResizeBilinearNode.h index 0c93479..a26f08c 100644 --- a/runtimes/neurun/core/include/model/operation/ResizeBilinearNode.h +++ b/runtimes/neurun/core/include/model/operation/ResizeBilinearNode.h @@ -47,7 +47,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "ResizeBilinear"; } public: diff --git a/runtimes/neurun/core/include/model/operation/SQRTNode.h b/runtimes/neurun/core/include/model/operation/SQRTNode.h index dc50f37..92974d9 100644 --- a/runtimes/neurun/core/include/model/operation/SQRTNode.h +++ b/runtimes/neurun/core/include/model/operation/SQRTNode.h @@ -38,7 +38,7 @@ public: SQRTNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "SQRT"; } }; diff --git a/runtimes/neurun/core/include/model/operation/SoftmaxNode.h b/runtimes/neurun/core/include/model/operation/SoftmaxNode.h index d344cb4..ac9d2a1 100644 --- a/runtimes/neurun/core/include/model/operation/SoftmaxNode.h +++ b/runtimes/neurun/core/include/model/operation/SoftmaxNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "SoftMax"; } public: diff --git a/runtimes/neurun/core/include/model/operation/SpaceToDepthNode.h b/runtimes/neurun/core/include/model/operation/SpaceToDepthNode.h index 0764140..5a04a33 100644 --- a/runtimes/neurun/core/include/model/operation/SpaceToDepthNode.h +++ b/runtimes/neurun/core/include/model/operation/SpaceToDepthNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "SpaceToDepth"; } public: diff --git a/runtimes/neurun/core/include/model/operation/SplitNode.h b/runtimes/neurun/core/include/model/operation/SplitNode.h index dbe5ff3..ac79b44 100644 --- a/runtimes/neurun/core/include/model/operation/SplitNode.h +++ b/runtimes/neurun/core/include/model/operation/SplitNode.h @@ -43,7 +43,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Split"; } public: diff --git a/runtimes/neurun/core/include/model/operation/SquaredDifferenceNode.h b/runtimes/neurun/core/include/model/operation/SquaredDifferenceNode.h index 7fedc73..9028cbb 100644 --- a/runtimes/neurun/core/include/model/operation/SquaredDifferenceNode.h +++ b/runtimes/neurun/core/include/model/operation/SquaredDifferenceNode.h @@ -39,7 +39,7 @@ public: SquaredDifferenceNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "SquaredDifference"; } }; diff --git a/runtimes/neurun/core/include/model/operation/SqueezeNode.h b/runtimes/neurun/core/include/model/operation/SqueezeNode.h index e72ef0c..ccc3965 100644 --- a/runtimes/neurun/core/include/model/operation/SqueezeNode.h +++ b/runtimes/neurun/core/include/model/operation/SqueezeNode.h @@ -44,7 +44,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Squeeze"; } const Param ¶m() const { return _param; } diff --git a/runtimes/neurun/core/include/model/operation/StridedSliceNode.h b/runtimes/neurun/core/include/model/operation/StridedSliceNode.h index 61a1823..9ec178e 100644 --- a/runtimes/neurun/core/include/model/operation/StridedSliceNode.h +++ b/runtimes/neurun/core/include/model/operation/StridedSliceNode.h @@ -51,7 +51,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "StridedSlice"; } public: diff --git a/runtimes/neurun/core/include/model/operation/SubNode.h b/runtimes/neurun/core/include/model/operation/SubNode.h index 89250b9..fed325f 100644 --- a/runtimes/neurun/core/include/model/operation/SubNode.h +++ b/runtimes/neurun/core/include/model/operation/SubNode.h @@ -46,7 +46,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Sub"; } public: diff --git a/runtimes/neurun/core/include/model/operation/TanhNode.h b/runtimes/neurun/core/include/model/operation/TanhNode.h index 4b721f6..b62375f 100644 --- a/runtimes/neurun/core/include/model/operation/TanhNode.h +++ b/runtimes/neurun/core/include/model/operation/TanhNode.h @@ -38,7 +38,7 @@ public: TanhNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Tanh"; } }; diff --git a/runtimes/neurun/core/include/model/operation/TopKV2Node.h b/runtimes/neurun/core/include/model/operation/TopKV2Node.h index cfdf005..b9e65c3 100644 --- a/runtimes/neurun/core/include/model/operation/TopKV2Node.h +++ b/runtimes/neurun/core/include/model/operation/TopKV2Node.h @@ -52,7 +52,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "TopKV2"; } public: diff --git a/runtimes/neurun/core/include/model/operation/TransposeConvNode.h b/runtimes/neurun/core/include/model/operation/TransposeConvNode.h index ef974da..48f883a 100644 --- a/runtimes/neurun/core/include/model/operation/TransposeConvNode.h +++ b/runtimes/neurun/core/include/model/operation/TransposeConvNode.h @@ -50,7 +50,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "TransposeConv"; } public: diff --git a/runtimes/neurun/core/include/model/operation/TransposeNode.h b/runtimes/neurun/core/include/model/operation/TransposeNode.h index 53f64a8..c3c38a9 100644 --- a/runtimes/neurun/core/include/model/operation/TransposeNode.h +++ b/runtimes/neurun/core/include/model/operation/TransposeNode.h @@ -49,7 +49,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Transpose"; } public: diff --git a/runtimes/neurun/core/include/model/operation/UnpackNode.h b/runtimes/neurun/core/include/model/operation/UnpackNode.h index 018e28c..0ee07cb 100644 --- a/runtimes/neurun/core/include/model/operation/UnpackNode.h +++ b/runtimes/neurun/core/include/model/operation/UnpackNode.h @@ -43,7 +43,7 @@ public: const Param ¶m); public: - virtual void accept(OperationVisitor &&) const override; + void accept(OperationVisitor &v) const override; virtual std::string getName() const override { return "Unpack"; } public: diff --git a/runtimes/neurun/core/src/compiler/ParamChecker.cc b/runtimes/neurun/core/src/compiler/ParamChecker.cc index 66fc07a..ec5a17f 100644 --- a/runtimes/neurun/core/src/compiler/ParamChecker.cc +++ b/runtimes/neurun/core/src/compiler/ParamChecker.cc @@ -25,9 +25,8 @@ namespace compiler void ParamChecker::operator()() { - _model->operations().iterate([&](const model::OperationIndex &, const model::Operation &node) { - node.accept(std::move(*this)); - }); + _model->operations().iterate( + [&](const model::OperationIndex &, const model::Operation &node) { node.accept(*this); }); } void ParamChecker::visit(const model::operation::AddNode &) diff --git a/runtimes/neurun/core/src/exec/interp/Interpreter.cc b/runtimes/neurun/core/src/exec/interp/Interpreter.cc index bc0dadf..6576f83 100644 --- a/runtimes/neurun/core/src/exec/interp/Interpreter.cc +++ b/runtimes/neurun/core/src/exec/interp/Interpreter.cc @@ -63,7 +63,7 @@ public: const auto nodeName = _env->model().operations.at(idx).getName(); VERBOSE(INTERPRETER) << "Prepare output operands and execute " << nodeName << " operation (id: " << idx.value() << ")" << std::endl; - _env->model().operations.at(idx).accept(std::move(*this)); + _env->model().operations.at(idx).accept(*this); } private: diff --git a/runtimes/neurun/core/src/linear/Linear.cc b/runtimes/neurun/core/src/linear/Linear.cc index 381632e..8be9441 100644 --- a/runtimes/neurun/core/src/linear/Linear.cc +++ b/runtimes/neurun/core/src/linear/Linear.cc @@ -149,7 +149,7 @@ void Linear::accept(model::OperationVisitor &&visitor) const { for (const auto &e : *_elements) { - e.subgraph->accept(std::move(visitor)); + e.subgraph->accept(visitor); } } diff --git a/runtimes/neurun/core/src/model/Subgraph.cc b/runtimes/neurun/core/src/model/Subgraph.cc index d16f4c4..b0a2e49 100644 --- a/runtimes/neurun/core/src/model/Subgraph.cc +++ b/runtimes/neurun/core/src/model/Subgraph.cc @@ -29,7 +29,7 @@ Subgraph::Subgraph(const graph::operand::Layout &layout) // DO NOTHING } -void Subgraph::accept(OperationVisitor &&v) const { v.visit(*this); } +void Subgraph::accept(OperationVisitor &v) const { v.visit(*this); } // TODO: Impl Dumper instead of this method std::string Subgraph::getStr() const @@ -56,4 +56,4 @@ std::string Subgraph::getStr() const } } // namespace model -} // neurun +} // namespace neurun diff --git a/runtimes/neurun/core/src/model/operation/AbsNode.cc b/runtimes/neurun/core/src/model/operation/AbsNode.cc index aa088d2..dd9566d 100644 --- a/runtimes/neurun/core/src/model/operation/AbsNode.cc +++ b/runtimes/neurun/core/src/model/operation/AbsNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void AbsNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void AbsNode::accept(OperationVisitor &v) const { v.visit(*this); } AbsNode::AbsNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/AddNode.cc b/runtimes/neurun/core/src/model/operation/AddNode.cc index 9c105cd..43ad724 100644 --- a/runtimes/neurun/core/src/model/operation/AddNode.cc +++ b/runtimes/neurun/core/src/model/operation/AddNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void AddNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void AddNode::accept(OperationVisitor &v) const { v.visit(*this); } AddNode::AddNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/ArgMaxNode.cc b/runtimes/neurun/core/src/model/operation/ArgMaxNode.cc index 3f743f3..2486f54 100644 --- a/runtimes/neurun/core/src/model/operation/ArgMaxNode.cc +++ b/runtimes/neurun/core/src/model/operation/ArgMaxNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ArgMaxNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ArgMaxNode::accept(OperationVisitor &v) const { v.visit(*this); } ArgMaxNode::ArgMaxNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/AvgPool2DNode.cc b/runtimes/neurun/core/src/model/operation/AvgPool2DNode.cc index 8752622..4c625f9 100644 --- a/runtimes/neurun/core/src/model/operation/AvgPool2DNode.cc +++ b/runtimes/neurun/core/src/model/operation/AvgPool2DNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void AvgPool2DNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void AvgPool2DNode::accept(OperationVisitor &v) const { v.visit(*this); } AvgPool2DNode::AvgPool2DNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/CastNode.cc b/runtimes/neurun/core/src/model/operation/CastNode.cc index 963af5f..85d11e3 100644 --- a/runtimes/neurun/core/src/model/operation/CastNode.cc +++ b/runtimes/neurun/core/src/model/operation/CastNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void CastNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void CastNode::accept(OperationVisitor &v) const { v.visit(*this); } CastNode::CastNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/ComparisonNode.cc b/runtimes/neurun/core/src/model/operation/ComparisonNode.cc index dade6b4..598e619 100644 --- a/runtimes/neurun/core/src/model/operation/ComparisonNode.cc +++ b/runtimes/neurun/core/src/model/operation/ComparisonNode.cc @@ -1,18 +1,18 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ + * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include "model/operation/ComparisonNode.h" @@ -27,7 +27,7 @@ namespace model namespace operation { -void ComparisonNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ComparisonNode::accept(OperationVisitor &v) const { v.visit(*this); } ComparisonNode::ComparisonNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/ConcatNode.cc b/runtimes/neurun/core/src/model/operation/ConcatNode.cc index 7bc62f8..1959526 100644 --- a/runtimes/neurun/core/src/model/operation/ConcatNode.cc +++ b/runtimes/neurun/core/src/model/operation/ConcatNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ConcatNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ConcatNode::accept(OperationVisitor &v) const { v.visit(*this); } ConcatNode::ConcatNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/Conv2DNode.cc b/runtimes/neurun/core/src/model/operation/Conv2DNode.cc index 375a01b..218c5d1 100644 --- a/runtimes/neurun/core/src/model/operation/Conv2DNode.cc +++ b/runtimes/neurun/core/src/model/operation/Conv2DNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void Conv2DNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void Conv2DNode::accept(OperationVisitor &v) const { v.visit(*this); } Conv2DNode::Conv2DNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/DepthToSpaceNode.cc b/runtimes/neurun/core/src/model/operation/DepthToSpaceNode.cc index 6642f42..ec3e543 100644 --- a/runtimes/neurun/core/src/model/operation/DepthToSpaceNode.cc +++ b/runtimes/neurun/core/src/model/operation/DepthToSpaceNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void DepthToSpaceNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void DepthToSpaceNode::accept(OperationVisitor &v) const { v.visit(*this); } DepthToSpaceNode::DepthToSpaceNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/DepthwiseConv2DNode.cc b/runtimes/neurun/core/src/model/operation/DepthwiseConv2DNode.cc index fb16a3a..70d107a 100644 --- a/runtimes/neurun/core/src/model/operation/DepthwiseConv2DNode.cc +++ b/runtimes/neurun/core/src/model/operation/DepthwiseConv2DNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void DepthwiseConv2DNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void DepthwiseConv2DNode::accept(OperationVisitor &v) const { v.visit(*this); } DepthwiseConv2DNode::DepthwiseConv2DNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/DequantizeNode.cc b/runtimes/neurun/core/src/model/operation/DequantizeNode.cc index 2dac1dc..634d36b 100644 --- a/runtimes/neurun/core/src/model/operation/DequantizeNode.cc +++ b/runtimes/neurun/core/src/model/operation/DequantizeNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void DequantizeNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void DequantizeNode::accept(OperationVisitor &v) const { v.visit(*this); } DequantizeNode::DequantizeNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/DivNode.cc b/runtimes/neurun/core/src/model/operation/DivNode.cc index be9f1ff..814491a 100644 --- a/runtimes/neurun/core/src/model/operation/DivNode.cc +++ b/runtimes/neurun/core/src/model/operation/DivNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void DivNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void DivNode::accept(OperationVisitor &v) const { v.visit(*this); } DivNode::DivNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/EmbeddingLookupNode.cc b/runtimes/neurun/core/src/model/operation/EmbeddingLookupNode.cc index 2e9721a..d49ca19 100644 --- a/runtimes/neurun/core/src/model/operation/EmbeddingLookupNode.cc +++ b/runtimes/neurun/core/src/model/operation/EmbeddingLookupNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void EmbeddingLookupNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void EmbeddingLookupNode::accept(OperationVisitor &v) const { v.visit(*this); } EmbeddingLookupNode::EmbeddingLookupNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/ExpNode.cc b/runtimes/neurun/core/src/model/operation/ExpNode.cc index c1c2322..3f420f8 100644 --- a/runtimes/neurun/core/src/model/operation/ExpNode.cc +++ b/runtimes/neurun/core/src/model/operation/ExpNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ExpNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ExpNode::accept(OperationVisitor &v) const { v.visit(*this); } ExpNode::ExpNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/FloorNode.cc b/runtimes/neurun/core/src/model/operation/FloorNode.cc index 2caa835..47b56fb 100644 --- a/runtimes/neurun/core/src/model/operation/FloorNode.cc +++ b/runtimes/neurun/core/src/model/operation/FloorNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void FloorNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void FloorNode::accept(OperationVisitor &v) const { v.visit(*this); } FloorNode::FloorNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/FullyConnectedNode.cc b/runtimes/neurun/core/src/model/operation/FullyConnectedNode.cc index 08658bd..42f18c7 100644 --- a/runtimes/neurun/core/src/model/operation/FullyConnectedNode.cc +++ b/runtimes/neurun/core/src/model/operation/FullyConnectedNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void FullyConnectedNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void FullyConnectedNode::accept(OperationVisitor &v) const { v.visit(*this); } FullyConnectedNode::FullyConnectedNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/GatherNode.cc b/runtimes/neurun/core/src/model/operation/GatherNode.cc index 4276f18..1ecb6f8 100644 --- a/runtimes/neurun/core/src/model/operation/GatherNode.cc +++ b/runtimes/neurun/core/src/model/operation/GatherNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void GatherNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void GatherNode::accept(OperationVisitor &v) const { v.visit(*this); } GatherNode::GatherNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/HashtableLookupNode.cc b/runtimes/neurun/core/src/model/operation/HashtableLookupNode.cc index 8012616..d2c144e 100644 --- a/runtimes/neurun/core/src/model/operation/HashtableLookupNode.cc +++ b/runtimes/neurun/core/src/model/operation/HashtableLookupNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void HashtableLookupNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void HashtableLookupNode::accept(OperationVisitor &v) const { v.visit(*this); } HashtableLookupNode::HashtableLookupNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/L2NormalizationNode.cc b/runtimes/neurun/core/src/model/operation/L2NormalizationNode.cc index b9895d0..1169785 100644 --- a/runtimes/neurun/core/src/model/operation/L2NormalizationNode.cc +++ b/runtimes/neurun/core/src/model/operation/L2NormalizationNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void L2NormalizationNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void L2NormalizationNode::accept(OperationVisitor &v) const { v.visit(*this); } L2NormalizationNode::L2NormalizationNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/L2Pool2DNode.cc b/runtimes/neurun/core/src/model/operation/L2Pool2DNode.cc index bdb22db..fb53f52 100644 --- a/runtimes/neurun/core/src/model/operation/L2Pool2DNode.cc +++ b/runtimes/neurun/core/src/model/operation/L2Pool2DNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void L2Pool2DNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void L2Pool2DNode::accept(OperationVisitor &v) const { v.visit(*this); } L2Pool2DNode::L2Pool2DNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/LSTMNode.cc b/runtimes/neurun/core/src/model/operation/LSTMNode.cc index fb1228b..31443e8 100644 --- a/runtimes/neurun/core/src/model/operation/LSTMNode.cc +++ b/runtimes/neurun/core/src/model/operation/LSTMNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void LSTMNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void LSTMNode::accept(OperationVisitor &v) const { v.visit(*this); } LSTMNode::LSTMNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/LocalResponseNormalizationNode.cc b/runtimes/neurun/core/src/model/operation/LocalResponseNormalizationNode.cc index 802347d..4b1dded 100644 --- a/runtimes/neurun/core/src/model/operation/LocalResponseNormalizationNode.cc +++ b/runtimes/neurun/core/src/model/operation/LocalResponseNormalizationNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void LocalResponseNormalizationNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void LocalResponseNormalizationNode::accept(OperationVisitor &v) const { v.visit(*this); } LocalResponseNormalizationNode::LocalResponseNormalizationNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, diff --git a/runtimes/neurun/core/src/model/operation/LogicalAndNode.cc b/runtimes/neurun/core/src/model/operation/LogicalAndNode.cc index 6efaec8..9e9a3db 100644 --- a/runtimes/neurun/core/src/model/operation/LogicalAndNode.cc +++ b/runtimes/neurun/core/src/model/operation/LogicalAndNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void LogicalAndNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void LogicalAndNode::accept(OperationVisitor &v) const { v.visit(*this); } LogicalAndNode::LogicalAndNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/LogicalNotNode.cc b/runtimes/neurun/core/src/model/operation/LogicalNotNode.cc index 324d4be..1a3c324 100644 --- a/runtimes/neurun/core/src/model/operation/LogicalNotNode.cc +++ b/runtimes/neurun/core/src/model/operation/LogicalNotNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void LogicalNotNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void LogicalNotNode::accept(OperationVisitor &v) const { v.visit(*this); } LogicalNotNode::LogicalNotNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/LogicalOrNode.cc b/runtimes/neurun/core/src/model/operation/LogicalOrNode.cc index d682854..53fa305 100644 --- a/runtimes/neurun/core/src/model/operation/LogicalOrNode.cc +++ b/runtimes/neurun/core/src/model/operation/LogicalOrNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void LogicalOrNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void LogicalOrNode::accept(OperationVisitor &v) const { v.visit(*this); } LogicalOrNode::LogicalOrNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/LogisticNode.cc b/runtimes/neurun/core/src/model/operation/LogisticNode.cc index 004c3a4..358ce6a 100644 --- a/runtimes/neurun/core/src/model/operation/LogisticNode.cc +++ b/runtimes/neurun/core/src/model/operation/LogisticNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void LogisticNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void LogisticNode::accept(OperationVisitor &v) const { v.visit(*this); } LogisticNode::LogisticNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/MaxPool2DNode.cc b/runtimes/neurun/core/src/model/operation/MaxPool2DNode.cc index a21bb1e..596aa2d 100644 --- a/runtimes/neurun/core/src/model/operation/MaxPool2DNode.cc +++ b/runtimes/neurun/core/src/model/operation/MaxPool2DNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void MaxPool2DNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void MaxPool2DNode::accept(OperationVisitor &v) const { v.visit(*this); } MaxPool2DNode::MaxPool2DNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/MeanNode.cc b/runtimes/neurun/core/src/model/operation/MeanNode.cc index 1e59287..22b23b2 100644 --- a/runtimes/neurun/core/src/model/operation/MeanNode.cc +++ b/runtimes/neurun/core/src/model/operation/MeanNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void MeanNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void MeanNode::accept(OperationVisitor &v) const { v.visit(*this); } MeanNode::MeanNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/MulNode.cc b/runtimes/neurun/core/src/model/operation/MulNode.cc index fbd483d..23a6684 100644 --- a/runtimes/neurun/core/src/model/operation/MulNode.cc +++ b/runtimes/neurun/core/src/model/operation/MulNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void MulNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void MulNode::accept(OperationVisitor &v) const { v.visit(*this); } MulNode::MulNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/NegNode.cc b/runtimes/neurun/core/src/model/operation/NegNode.cc index f63168f..6f3cf5a 100644 --- a/runtimes/neurun/core/src/model/operation/NegNode.cc +++ b/runtimes/neurun/core/src/model/operation/NegNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void NegNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void NegNode::accept(OperationVisitor &v) const { v.visit(*this); } NegNode::NegNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/PReLUNode.cc b/runtimes/neurun/core/src/model/operation/PReLUNode.cc index 2b4f51c..aa8aecd 100644 --- a/runtimes/neurun/core/src/model/operation/PReLUNode.cc +++ b/runtimes/neurun/core/src/model/operation/PReLUNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void PReLUNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void PReLUNode::accept(OperationVisitor &v) const { v.visit(*this); } PReLUNode::PReLUNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(2u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/PermuteNode.cc b/runtimes/neurun/core/src/model/operation/PermuteNode.cc index e1b1800..c3ce988 100644 --- a/runtimes/neurun/core/src/model/operation/PermuteNode.cc +++ b/runtimes/neurun/core/src/model/operation/PermuteNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void PermuteNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void PermuteNode::accept(OperationVisitor &v) const { v.visit(*this); } PermuteNode::PermuteNode(const OperandIndex &input, const OperandIndex &output, const backend::Backend *input_backend, diff --git a/runtimes/neurun/core/src/model/operation/RNNNode.cc b/runtimes/neurun/core/src/model/operation/RNNNode.cc index 3e47605..fa32059 100644 --- a/runtimes/neurun/core/src/model/operation/RNNNode.cc +++ b/runtimes/neurun/core/src/model/operation/RNNNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void RNNNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void RNNNode::accept(OperationVisitor &v) const { v.visit(*this); } RNNNode::RNNNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/RSQRTNode.cc b/runtimes/neurun/core/src/model/operation/RSQRTNode.cc index 64bca51..faed116 100644 --- a/runtimes/neurun/core/src/model/operation/RSQRTNode.cc +++ b/runtimes/neurun/core/src/model/operation/RSQRTNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void RSQRTNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void RSQRTNode::accept(OperationVisitor &v) const { v.visit(*this); } RSQRTNode::RSQRTNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/ReLU1Node.cc b/runtimes/neurun/core/src/model/operation/ReLU1Node.cc index d82ee5f..b1fe14e 100644 --- a/runtimes/neurun/core/src/model/operation/ReLU1Node.cc +++ b/runtimes/neurun/core/src/model/operation/ReLU1Node.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReLU1Node::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReLU1Node::accept(OperationVisitor &v) const { v.visit(*this); } ReLU1Node::ReLU1Node(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/ReLU6Node.cc b/runtimes/neurun/core/src/model/operation/ReLU6Node.cc index 4c9defc..de7c35e 100644 --- a/runtimes/neurun/core/src/model/operation/ReLU6Node.cc +++ b/runtimes/neurun/core/src/model/operation/ReLU6Node.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReLU6Node::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReLU6Node::accept(OperationVisitor &v) const { v.visit(*this); } ReLU6Node::ReLU6Node(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/ReLUNode.cc b/runtimes/neurun/core/src/model/operation/ReLUNode.cc index 8071878..d79819d 100644 --- a/runtimes/neurun/core/src/model/operation/ReLUNode.cc +++ b/runtimes/neurun/core/src/model/operation/ReLUNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReLUNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReLUNode::accept(OperationVisitor &v) const { v.visit(*this); } ReLUNode::ReLUNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/ReduceMaxNode.cc b/runtimes/neurun/core/src/model/operation/ReduceMaxNode.cc index fc5f345..486646a 100644 --- a/runtimes/neurun/core/src/model/operation/ReduceMaxNode.cc +++ b/runtimes/neurun/core/src/model/operation/ReduceMaxNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReduceMaxNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReduceMaxNode::accept(OperationVisitor &v) const { v.visit(*this); } ReduceMaxNode::ReduceMaxNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/ReduceMinNode.cc b/runtimes/neurun/core/src/model/operation/ReduceMinNode.cc index abbb8d0..9f55251 100644 --- a/runtimes/neurun/core/src/model/operation/ReduceMinNode.cc +++ b/runtimes/neurun/core/src/model/operation/ReduceMinNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReduceMinNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReduceMinNode::accept(OperationVisitor &v) const { v.visit(*this); } ReduceMinNode::ReduceMinNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/ReduceSumNode.cc b/runtimes/neurun/core/src/model/operation/ReduceSumNode.cc index cd3ec5e..5a06ef8 100644 --- a/runtimes/neurun/core/src/model/operation/ReduceSumNode.cc +++ b/runtimes/neurun/core/src/model/operation/ReduceSumNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReduceSumNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReduceSumNode::accept(OperationVisitor &v) const { v.visit(*this); } ReduceSumNode::ReduceSumNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/ReshapeNode.cc b/runtimes/neurun/core/src/model/operation/ReshapeNode.cc index b7bc3cd..cfd987f 100644 --- a/runtimes/neurun/core/src/model/operation/ReshapeNode.cc +++ b/runtimes/neurun/core/src/model/operation/ReshapeNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ReshapeNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ReshapeNode::accept(OperationVisitor &v) const { v.visit(*this); } ReshapeNode::ReshapeNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/ResizeBilinearNode.cc b/runtimes/neurun/core/src/model/operation/ResizeBilinearNode.cc index 76d9d13..263668a 100644 --- a/runtimes/neurun/core/src/model/operation/ResizeBilinearNode.cc +++ b/runtimes/neurun/core/src/model/operation/ResizeBilinearNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void ResizeBilinearNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void ResizeBilinearNode::accept(OperationVisitor &v) const { v.visit(*this); } ResizeBilinearNode::ResizeBilinearNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/SQRTNode.cc b/runtimes/neurun/core/src/model/operation/SQRTNode.cc index cd5e4aa..835aa3f 100644 --- a/runtimes/neurun/core/src/model/operation/SQRTNode.cc +++ b/runtimes/neurun/core/src/model/operation/SQRTNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void SQRTNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SQRTNode::accept(OperationVisitor &v) const { v.visit(*this); } SQRTNode::SQRTNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/SoftmaxNode.cc b/runtimes/neurun/core/src/model/operation/SoftmaxNode.cc index 05bd7cb..39e6d2b 100644 --- a/runtimes/neurun/core/src/model/operation/SoftmaxNode.cc +++ b/runtimes/neurun/core/src/model/operation/SoftmaxNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void SoftmaxNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SoftmaxNode::accept(OperationVisitor &v) const { v.visit(*this); } SoftmaxNode::SoftmaxNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/SpaceToDepthNode.cc b/runtimes/neurun/core/src/model/operation/SpaceToDepthNode.cc index 45292f2..2622881 100644 --- a/runtimes/neurun/core/src/model/operation/SpaceToDepthNode.cc +++ b/runtimes/neurun/core/src/model/operation/SpaceToDepthNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void SpaceToDepthNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SpaceToDepthNode::accept(OperationVisitor &v) const { v.visit(*this); } SpaceToDepthNode::SpaceToDepthNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/SplitNode.cc b/runtimes/neurun/core/src/model/operation/SplitNode.cc index b8c76f6..9a542f4 100644 --- a/runtimes/neurun/core/src/model/operation/SplitNode.cc +++ b/runtimes/neurun/core/src/model/operation/SplitNode.cc @@ -22,7 +22,7 @@ namespace model { namespace operation { -void SplitNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SplitNode::accept(OperationVisitor &v) const { v.visit(*this); } SplitNode::SplitNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs}, _param{param} diff --git a/runtimes/neurun/core/src/model/operation/SquaredDifferenceNode.cc b/runtimes/neurun/core/src/model/operation/SquaredDifferenceNode.cc index 3d375c7..6672e08 100644 --- a/runtimes/neurun/core/src/model/operation/SquaredDifferenceNode.cc +++ b/runtimes/neurun/core/src/model/operation/SquaredDifferenceNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void SquaredDifferenceNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SquaredDifferenceNode::accept(OperationVisitor &v) const { v.visit(*this); } SquaredDifferenceNode::SquaredDifferenceNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) diff --git a/runtimes/neurun/core/src/model/operation/SqueezeNode.cc b/runtimes/neurun/core/src/model/operation/SqueezeNode.cc index 363334a..1a82d65 100644 --- a/runtimes/neurun/core/src/model/operation/SqueezeNode.cc +++ b/runtimes/neurun/core/src/model/operation/SqueezeNode.cc @@ -24,7 +24,7 @@ namespace model namespace operation { -void SqueezeNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SqueezeNode::accept(OperationVisitor &v) const { v.visit(*this); } SqueezeNode::SqueezeNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/StridedSliceNode.cc b/runtimes/neurun/core/src/model/operation/StridedSliceNode.cc index 121f0e2..9d60645 100644 --- a/runtimes/neurun/core/src/model/operation/StridedSliceNode.cc +++ b/runtimes/neurun/core/src/model/operation/StridedSliceNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void StridedSliceNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void StridedSliceNode::accept(OperationVisitor &v) const { v.visit(*this); } StridedSliceNode::StridedSliceNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/SubNode.cc b/runtimes/neurun/core/src/model/operation/SubNode.cc index 51bc9e9..6a64c4b 100644 --- a/runtimes/neurun/core/src/model/operation/SubNode.cc +++ b/runtimes/neurun/core/src/model/operation/SubNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void SubNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void SubNode::accept(OperationVisitor &v) const { v.visit(*this); } SubNode::SubNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/TanhNode.cc b/runtimes/neurun/core/src/model/operation/TanhNode.cc index 8c8c7a8..6372b4c 100644 --- a/runtimes/neurun/core/src/model/operation/TanhNode.cc +++ b/runtimes/neurun/core/src/model/operation/TanhNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void TanhNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void TanhNode::accept(OperationVisitor &v) const { v.visit(*this); } TanhNode::TanhNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs} diff --git a/runtimes/neurun/core/src/model/operation/TopKV2Node.cc b/runtimes/neurun/core/src/model/operation/TopKV2Node.cc index cfbbdc8..6ebcd50 100644 --- a/runtimes/neurun/core/src/model/operation/TopKV2Node.cc +++ b/runtimes/neurun/core/src/model/operation/TopKV2Node.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void TopKV2Node::accept(OperationVisitor &&v) const { v.visit(*this); } +void TopKV2Node::accept(OperationVisitor &v) const { v.visit(*this); } TopKV2Node::TopKV2Node(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/TransposeConvNode.cc b/runtimes/neurun/core/src/model/operation/TransposeConvNode.cc index a882d71..7ad2d1d 100644 --- a/runtimes/neurun/core/src/model/operation/TransposeConvNode.cc +++ b/runtimes/neurun/core/src/model/operation/TransposeConvNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void TransposeConvNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void TransposeConvNode::accept(OperationVisitor &v) const { v.visit(*this); } TransposeConvNode::TransposeConvNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/TransposeNode.cc b/runtimes/neurun/core/src/model/operation/TransposeNode.cc index 0ef58da..73542a0 100644 --- a/runtimes/neurun/core/src/model/operation/TransposeNode.cc +++ b/runtimes/neurun/core/src/model/operation/TransposeNode.cc @@ -27,7 +27,7 @@ namespace model namespace operation { -void TransposeNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void TransposeNode::accept(OperationVisitor &v) const { v.visit(*this); } TransposeNode::TransposeNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) diff --git a/runtimes/neurun/core/src/model/operation/UnpackNode.cc b/runtimes/neurun/core/src/model/operation/UnpackNode.cc index cc68728..7717a01 100644 --- a/runtimes/neurun/core/src/model/operation/UnpackNode.cc +++ b/runtimes/neurun/core/src/model/operation/UnpackNode.cc @@ -22,7 +22,7 @@ namespace model { namespace operation { -void UnpackNode::accept(OperationVisitor &&v) const { v.visit(*this); } +void UnpackNode::accept(OperationVisitor &v) const { v.visit(*this); } UnpackNode::UnpackNode(const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param ¶m) : model::Operation{OperandConstraint::createExact(1u), inputs, outputs}, _param{param} diff --git a/runtimes/neurun/test/graph/MockNode.h b/runtimes/neurun/test/graph/MockNode.h index 7cf6a17..9a5df73 100644 --- a/runtimes/neurun/test/graph/MockNode.h +++ b/runtimes/neurun/test/graph/MockNode.h @@ -37,7 +37,7 @@ public: } public: - void accept(neurun::model::OperationVisitor &&) const override {} + void accept(neurun::model::OperationVisitor &) const override {} std::string getName() const override { return "SimpleMockNode"; } };