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/_layers_fwd_8hpp_source.xhtml | 212 ++++++++++++++++++++++++++++++++++++ 1 file changed, 212 insertions(+) create mode 100644 21.02/_layers_fwd_8hpp_source.xhtml (limited to '21.02/_layers_fwd_8hpp_source.xhtml') diff --git a/21.02/_layers_fwd_8hpp_source.xhtml b/21.02/_layers_fwd_8hpp_source.xhtml new file mode 100644 index 0000000000..48622089d8 --- /dev/null +++ b/21.02/_layers_fwd_8hpp_source.xhtml @@ -0,0 +1,212 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/LayersFwd.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
LayersFwd.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include "InternalTypes.hpp"
8 
10 #include "layers/AdditionLayer.hpp"
15 #include "layers/ConcatLayer.hpp"
16 #include "layers/ConstantLayer.hpp"
22 #include "layers/DebugLayer.hpp"
27 #include "layers/DivisionLayer.hpp"
30 #include "layers/FillLayer.hpp"
31 #include "layers/FloorLayer.hpp"
33 #include "layers/GatherLayer.hpp"
34 #include "layers/InputLayer.hpp"
39 #include "layers/LstmLayer.hpp"
40 #include "layers/MapLayer.hpp"
41 #include "layers/MaximumLayer.hpp"
42 #include "layers/MeanLayer.hpp"
43 #include "layers/MemCopyLayer.hpp"
45 #include "layers/MergeLayer.hpp"
46 #include "layers/MinimumLayer.hpp"
49 #include "layers/OutputLayer.hpp"
50 #include "layers/PadLayer.hpp"
51 #include "layers/PermuteLayer.hpp"
54 #include "layers/PreluLayer.hpp"
55 #include "layers/QuantizeLayer.hpp"
56 #include "layers/QLstmLayer.hpp"
58 #include "layers/RankLayer.hpp"
59 #include "layers/ReduceLayer.hpp"
60 #include "layers/ReshapeLayer.hpp"
61 #include "layers/ResizeLayer.hpp"
62 #include "layers/SliceLayer.hpp"
63 #include "layers/SoftmaxLayer.hpp"
66 #include "layers/SplitterLayer.hpp"
67 #include "layers/StackLayer.hpp"
68 #include "layers/StandInLayer.hpp"
71 #include "layers/SwitchLayer.hpp"
74 #include "layers/UnmapLayer.hpp"
75 
76 namespace armnn
77 {
78 
79 template <LayerType Type>
81 
82 template <LayerType Type>
84 
85 template <typename T>
86 constexpr LayerType LayerEnumOf(const T* = nullptr);
87 
88 #define DECLARE_LAYER_IMPL(_, LayerName) \
89  class LayerName##Layer; \
90  template <> \
91  struct LayerTypeOfImpl<LayerType::_##LayerName> \
92  { \
93  using Type = LayerName##Layer; \
94  }; \
95  template <> \
96  constexpr LayerType LayerEnumOf(const LayerName##Layer*) \
97  { \
98  return LayerType::_##LayerName; \
99  }
100 
101 #define DECLARE_LAYER(LayerName) DECLARE_LAYER_IMPL(, LayerName)
102 
104 DECLARE_LAYER(Addition)
106 DECLARE_LAYER(BatchNormalization)
108 DECLARE_LAYER(Comparison)
110 DECLARE_LAYER(Constant)
111 DECLARE_LAYER(ConvertBf16ToFp32)
112 DECLARE_LAYER(ConvertFp16ToFp32)
113 DECLARE_LAYER(ConvertFp32ToBf16)
114 DECLARE_LAYER(ConvertFp32ToFp16)
115 DECLARE_LAYER(Convolution2d)
118 DECLARE_LAYER(DepthwiseConvolution2d)
121 DECLARE_LAYER(Division)
122 DECLARE_LAYER(ElementwiseUnary)
129 DECLARE_LAYER(InstanceNormalization)
130 DECLARE_LAYER(L2Normalization)
131 DECLARE_LAYER(LogicalBinary)
138 DECLARE_LAYER(MemImport)
141 DECLARE_LAYER(Multiplication)
142 DECLARE_LAYER(Normalization)
147 DECLARE_LAYER(PreCompiled)
151 DECLARE_LAYER(QuantizedLstm)
164 DECLARE_LAYER(Subtraction)
167 DECLARE_LAYER(TransposeConvolution2d)
169 
170 }
+
constexpr LayerType LayerEnumOf(const T *=nullptr)
+
float Dequantize(QuantizedType value, float scale, int32_t offset)
Dequantize an 8-bit data type into a floating point data type.
Definition: TypesUtils.cpp:46
+ +
void Slice(const TensorInfo &inputInfo, const SliceDescriptor &descriptor, const void *inputData, void *outputData, unsigned int dataTypeSize)
Definition: Slice.cpp:14
+ + + +
typename LayerTypeOfImpl< Type >::Type LayerTypeOf
Definition: LayersFwd.hpp:83
+ + + +
void Fill(Encoder< float > &output, const TensorShape &desiredOutputShape, const float value)
Creates a tensor and fills it with a scalar value.
Definition: Fill.cpp:13
+
void Reduce(const TensorInfo &inputInfo, const TensorInfo &outputInfo, Decoder< float > &input, Encoder< float > &output, const std::vector< uint32_t > axis, const ReduceOperation reduceOperation)
Definition: Reduce.cpp:71
+ + + + + + + + +
void Transpose(const armnn::TensorShape &dstShape, const armnn::PermutationVector &mappings, const void *src, void *dst, size_t dataTypeSize)
Definition: Transpose.cpp:120
+
void DepthToSpace(const TensorInfo &inputInfo, const DepthToSpaceDescriptor &descriptor, const void *inputData, void *outputData, unsigned int dataTypeSize)
+
void ArgMinMax(Decoder< float > &in, OUT *out, const TensorInfo &inputTensorInfo, const TensorInfo &outputTensorInfo, ArgMinMaxFunction function, int axis)
Definition: ArgMinMax.cpp:16
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + + +
void FakeQuantization(const float *inputData, float *outputData, uint32_t numElements, float min, float max)
+ + + + +
void FullyConnected(const TensorShape &rInputShape, Decoder< float > &rInputDecoder, const TensorShape &rOutputShape, Encoder< float > &rOutputEncoder, const TensorShape &rWeightsShape, Decoder< float > &rWeightDecoder, Decoder< float > &rBiasDecoder, const bool biasEnabled, const unsigned int K, const bool transposeWeights)
Performs a matrix multiplication and optionally adds a bias.
+ + + +
void Stack(const StackQueueDescriptor &data, std::vector< std::unique_ptr< Decoder< float >>> &inputs, Encoder< float > &output)
Definition: Stack.cpp:12
+ + +
+ + +
void Permute(const armnn::TensorShape &dstShape, const armnn::PermutationVector &mappings, const void *src, void *dst, size_t dataTypeSize)
Definition: Permute.cpp:131
+ +
void DetectionPostProcess(const TensorInfo &boxEncodingsInfo, const TensorInfo &scoresInfo, const TensorInfo &anchorsInfo, const TensorInfo &detectionBoxesInfo, const TensorInfo &detectionClassesInfo, const TensorInfo &detectionScoresInfo, const TensorInfo &numDetectionsInfo, const DetectionPostProcessDescriptor &desc, Decoder< float > &boxEncodings, Decoder< float > &scores, Decoder< float > &anchors, float *detectionBoxes, float *detectionClasses, float *detectionScores, float *numDetections)
+ + + +
void Gather(const TensorInfo &paramsInfo, const TensorInfo &indicesInfo, const TensorInfo &outputInfo, Decoder< float > &params, const int32_t *indices, Encoder< float > &output, const int32_t axis)
Definition: Gather.cpp:17
+ + + +
void Debug(const TensorInfo &inputInfo, const T *inputData, LayerGuid guid, const std::string &layerName, unsigned int slotIndex)
Definition: Debug.cpp:18
+ +
float Activation(float in, ActivationFunction function, float a, float b)
Definition: Activation.cpp:13
+ +
QuantizedType Quantize(float value, float scale, int32_t offset)
Quantize a floating point data type into an 8-bit data type.
Definition: TypesUtils.cpp:30
+ + +
void LogSoftmax(Decoder< float > &input, Encoder< float > &output, const TensorInfo &inputInfo, const LogSoftmaxDescriptor &descriptor)
Definition: LogSoftmax.cpp:29
+ + +
void SpaceToBatchNd(const TensorInfo &inputInfo, const TensorInfo &outputInfo, const SpaceToBatchNdDescriptor &params, Decoder< float > &inputData, Encoder< float > &outputData)
+ + + + + + + + + + + +
void StridedSlice(const TensorInfo &inputInfo, const StridedSliceDescriptor &params, const void *inputData, void *outputData, unsigned int dataTypeSize)
+
#define DECLARE_LAYER(LayerName)
Definition: LayersFwd.hpp:101
+ + + + + + +
void SpaceToDepth(const TensorInfo &inputInfo, const TensorInfo &outputInfo, const SpaceToDepthDescriptor &params, Decoder< float > &inputData, Encoder< float > &outputData)
+ +
void BatchToSpaceNd(const DataLayoutIndexed &dataLayout, const TensorInfo &inputTensorInfo, const TensorInfo &outputTensorInfo, const std::vector< unsigned int > &blockShape, const std::vector< std::pair< unsigned int, unsigned int >> &cropsData, Decoder< float > &inputDecoder, Encoder< float > &outputEncoder)
+
void Pad(const TensorInfo &inputInfo, const TensorInfo &outputInfo, const PadQueueDescriptor &data)
Definition: Pad.cpp:39
+ +
void Pooling2d(Decoder< float > &rInputDecoder, Encoder< float > &rOutputEncoder, const TensorInfo &inputInfo, const TensorInfo &outputInfo, const Pooling2dDescriptor &params)
Computes the Pooling2d operation.
Definition: Pooling2d.cpp:142
+ + + +
void Splitter(const SplitterQueueDescriptor &data)
Definition: Splitter.hpp:17
+
void Softmax(Decoder< float > &in, Encoder< float > &out, const TensorInfo &inputTensorInfo, float beta, int axis)
Computes the softmax function on some inputs, into outputs, with a shape given by tensorInfo...
Definition: Softmax.cpp:17
+ +
void Resize(Decoder< float > &in, const TensorInfo &inputInfo, Encoder< float > &out, const TensorInfo &outputInfo, DataLayoutIndexed dataLayout, armnn::ResizeMethod resizeMethod, bool alignCorners, bool halfPixelCenters)
Definition: Resize.cpp:65
+ +
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