From 03c7ff3f6188240baaeaeb405a357a0c58195fec Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 22 Aug 2023 12:00:04 +0100 Subject: IVGCVSW-7702 Update Doxygen Docu for 23.08 Signed-off-by: Nikhil Raj Change-Id: I357a9f7e47614589327c1ac5d95b6224ff77103d --- 23.08/_addition_layer_8cpp_source.html | 175 +++++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 23.08/_addition_layer_8cpp_source.html (limited to '23.08/_addition_layer_8cpp_source.html') diff --git a/23.08/_addition_layer_8cpp_source.html b/23.08/_addition_layer_8cpp_source.html new file mode 100644 index 0000000000..be354c93c1 --- /dev/null +++ b/23.08/_addition_layer_8cpp_source.html @@ -0,0 +1,175 @@ + + + + + + + + +Arm NN: src/armnn/layers/AdditionLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
AdditionLayer.cpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "AdditionLayer.hpp"
+
7 
+
8 #include "LayerCloneBase.hpp"
+
9 
+
10 #include <armnn/TypesUtils.hpp>
+ + +
13 
+
14 namespace armnn
+
15 {
+
16 
+ + +
19 {
+
20 }
+
21 
+
22 std::unique_ptr<IWorkload> AdditionLayer::CreateWorkload(const IWorkloadFactory& factory) const
+
23 {
+
24  AdditionQueueDescriptor descriptor;
+
25  SetAdditionalInfo(descriptor);
+
26 
+
27  return factory.CreateWorkload(LayerType::Addition, descriptor, PrepInfoAndDesc(descriptor));
+
28 }
+
29 
+ +
31 {
+
32  return CloneBase<AdditionLayer>(graph, GetName());
+
33 }
+
34 
+ +
36 {
+
37  strategy.ExecuteStrategy(this, GetParameters(), {}, GetName());
+
38 }
+
39 
+
40 } // namespace armnn
+
+
+ +
AdditionLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
+ + +
NOTE: this is an abstract class to encapsulate the element wise operations, it does not implement: st...
+ + +
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:332
+
This layer represents an addition operation.
+
AdditionLayer(const char *name)
Constructor to create an AdditionLayer.
+
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *Layer::CreateWorkload.
Definition: Layer.hpp:409
+ + +
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Addition type.
+ +
void SetAdditionalInfo(QueueDescriptor &descriptor) const
Definition: Layer.cpp:287
+
virtual const BaseDescriptor & GetParameters() const override
If the layer has a descriptor return it.
Definition: Layer.hpp:378
+
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
+
Copyright (c) 2021 ARM Limited and Contributors.
+
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition: Types.hpp:483
+ +
virtual std::unique_ptr< IWorkload > CreateWorkload(LayerType type, const QueueDescriptor &descriptor, const WorkloadInfo &info) const =0
Backends should implement their own CreateWorkload function with a switch statement.
+
virtual void ExecuteStrategy(const IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0)=0
+ + + + + -- cgit v1.2.1