From 6f92c8e9f8bb38dcf5dccf8deeff5112ecd8e37c Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 22 Nov 2023 11:41:15 +0000 Subject: Update Doxygen for 23.11 Signed-off-by: Nikhil Raj Change-Id: I47cd933f5002cb94a73aa97689d7b3d9c93cb849 --- 23.11/_fused_layer_8cpp_source.html | 187 ++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 23.11/_fused_layer_8cpp_source.html (limited to '23.11/_fused_layer_8cpp_source.html') diff --git a/23.11/_fused_layer_8cpp_source.html b/23.11/_fused_layer_8cpp_source.html new file mode 100644 index 0000000000..b6d4a4c0fd --- /dev/null +++ b/23.11/_fused_layer_8cpp_source.html @@ -0,0 +1,187 @@ + + + + + + + + +Arm NN: src/armnn/layers/FusedLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
FusedLayer.cpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "FusedLayer.hpp"
+
7 #include "LayerCloneBase.hpp"
+
8 
+ +
10 #include <armnn/TypesUtils.hpp>
+
11 
+
12 namespace armnn
+
13 {
+
14 
+
15 FusedLayer::FusedLayer(const FusedDescriptor& param, const char* name)
+
16  : LayerWithParameters(param.m_NumInputSlots, param.m_NumOutputSlots, LayerType::Fused, param, name)
+
17 {}
+
18 
+ +
20 {}
+
21 
+ +
23 {
+
24  FusedLayer* clonedLayer = CloneBase<FusedLayer>(graph, m_Param, GetName());
+
25  clonedLayer->m_AdditionalInfoObject = const_cast<FusedLayer*>(this)->m_AdditionalInfoObject;
+
26  return clonedLayer;
+
27 }
+
28 
+
29 std::unique_ptr<IWorkload> FusedLayer::CreateWorkload(const armnn::IWorkloadFactory& factory) const
+
30 {
+
31  FusedQueueDescriptor descriptor;
+
32  SetAdditionalInfo(descriptor);
+
33 
+
34  return factory.CreateWorkload(LayerType::Fused, descriptor, PrepInfoAndDesc(descriptor));
+
35 }
+
36 
+ +
38 {
+
39  // NOTE: since the FusedLayer is an internal layer created from a valid SubgraphView,
+
40  // we do not need to validate its input shapes
+
41 }
+
42 
+ +
44 {
+
45  strategy.ExecuteStrategy(this, GetParameters(), {}, GetName());
+
46 }
+
47 
+
48 } // namespace armnn
+
+
+
AdditionalInfoObjectPtr m_AdditionalInfoObject
Definition: Layer.hpp:427
+ + +
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
Definition: FusedLayer.cpp:43
+ + + +
const FusedDescriptor & GetParameters() const override
+ +
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:332
+
A FusedDescriptor for the FusedLayer.
+
FusedDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
+
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Definition: FusedLayer.cpp:29
+
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *Layer::CreateWorkload.
+ + + +
void SetAdditionalInfo(QueueDescriptor &descriptor) const
Definition: Layer.cpp:287
+
FusedLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
Definition: FusedLayer.cpp:22
+
FusedLayer(const FusedDescriptor &param, const char *name)
Definition: FusedLayer.cpp:15
+ +
Copyright (c) 2021 ARM Limited and Contributors.
+
void ValidateTensorShapesFromInputs() override
Definition: FusedLayer.cpp:37
+
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition: Types.hpp:491
+ +
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