diff options
author | Freddie Liardet <frederick.liardet@arm.com> | 2021-06-17 13:30:11 +0100 |
---|---|---|
committer | frederick.liardet <frederick.liardet@arm.com> | 2021-07-08 14:49:39 +0000 |
commit | dd23f2af4ee4f41f34499ada9c6cd28c9479c6d3 (patch) | |
tree | e5111c787cec863f4e188b0b155c158525c63e14 /src/graph/INodeVisitor.cpp | |
parent | cfac51c779f9bf05e8b2d386fbfb4022767d1d30 (diff) | |
download | ComputeLibrary-dd23f2af4ee4f41f34499ada9c6cd28c9479c6d3.tar.gz |
Add LayerData to all nodes
Create LayerData type to store information about inputs/outputs of
nodes, also adds convolution specific information.
Resolves: COMPMID-4422
Signed-off-by: Freddie Liardet <frederick.liardet@arm.com>
Change-Id: I1c3be1abe2fb5ed085108ab3d34b14a1b8561d38
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5876
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph/INodeVisitor.cpp')
-rw-r--r-- | src/graph/INodeVisitor.cpp | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/src/graph/INodeVisitor.cpp b/src/graph/INodeVisitor.cpp new file mode 100644 index 0000000000..2bbf519cf5 --- /dev/null +++ b/src/graph/INodeVisitor.cpp @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2021 Arm Limited. + * + * SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +#include "arm_compute/graph/INodeVisitor.h" +#include "arm_compute/graph/nodes/Nodes.h" + +namespace arm_compute +{ +namespace graph +{ +#ifndef DOXYGEN_SKIP_THIS +void DefaultNodeVisitor::visit(INode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(ActivationLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(BatchNormalizationLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(ConcatenateLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(ConstNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(ConvolutionLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(DequantizationLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(DetectionOutputLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(DetectionPostProcessLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(DepthwiseConvolutionLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(EltwiseLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(FlattenLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(FullyConnectedLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(FusedConvolutionBatchNormalizationNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(FusedDepthwiseConvolutionBatchNormalizationNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(InputNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(NormalizationLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(OutputNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(PermuteLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(PoolingLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(PReluLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(PrintLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(PriorBoxLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(QuantizationLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(ReshapeLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(SoftmaxLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(SplitLayerNode &n) +{ + default_visit(n); +} +void DefaultNodeVisitor::visit(StackLayerNode &n) +{ + default_visit(n); +} +#endif /* DOXYGEN_SKIP_THIS */ +} // namespace graph +} // namespace arm_compute
\ No newline at end of file |