From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_map_layer_8cpp_source.xhtml | 142 +++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 21.02/_map_layer_8cpp_source.xhtml (limited to '21.02/_map_layer_8cpp_source.xhtml') diff --git a/21.02/_map_layer_8cpp_source.xhtml b/21.02/_map_layer_8cpp_source.xhtml new file mode 100644 index 0000000000..7d6b4cec79 --- /dev/null +++ b/21.02/_map_layer_8cpp_source.xhtml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/layers/MapLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
MapLayer.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include "MapLayer.hpp"
6 
7 #include "LayerCloneBase.hpp"
8 
9 #include <armnn/TypesUtils.hpp>
13 
14 namespace armnn
15 {
16 
17 MapLayer::MapLayer(const char* name)
18  : Layer(1, 0, LayerType::Map, name)
19 {
20 }
21 
23 {
24  return CloneBase<MapLayer>(graph, GetName());
25 }
26 
27 std::unique_ptr<IWorkload> MapLayer::CreateWorkload(const IWorkloadFactory& factory) const
28 {
29  IgnoreUnused(factory);
30  MapQueueDescriptor descriptor;
31  SetAdditionalInfo(descriptor);
32 
33  //This is different from other workloads. Does not get created by the workload factory.
34  return std::make_unique<MapWorkload>(descriptor, PrepInfoAndDesc(descriptor));
35 }
36 
38 {
39  // validates that the input is connected.
42 }
43 
44 void MapLayer::Accept(ILayerVisitor& visitor) const
45 {
46  IgnoreUnused(visitor);
47  throw armnn::Exception("MapLayer should not appear in an input graph");
48 }
49 
50 } // namespace armnn
+ + + + + +
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of MapLayer.
Definition: MapLayer.cpp:37
+
Copyright (c) 2021 ARM Limited and Contributors.
+
void IgnoreUnused(Ts &&...)
+
unsigned int GetNumOutputSlots() const override
Returns the number of connectable output slots.
Definition: Layer.hpp:314
+
MapLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
Definition: MapLayer.cpp:22
+
This layer represents a memory copy operation.
Definition: MapLayer.hpp:13
+
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
Definition: Layer.cpp:348
+
void Accept(ILayerVisitor &visitor) const override
Apply a visitor to this layer.
Definition: MapLayer.cpp:44
+ +
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
Definition: Layer.hpp:381
+
MapLayer(const char *name)
Constructor to create a MapLayer.
Definition: MapLayer.cpp:17
+
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+ +
void SetAdditionalInfo(QueueDescriptor &descriptor) const
Definition: Layer.cpp:245
+
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Map type.
Definition: MapLayer.cpp:27
+ +
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+ +
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:311
+ + +
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below...
Definition: Types.hpp:419
+
+
+ + + + -- cgit v1.2.1