ArmNN
 24.02
RefLayerSupport.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017-2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 namespace armnn
10 {
11 
13 {
14 public:
15  bool IsLayerSupported(const LayerType& type,
16  const std::vector<TensorInfo>& infos,
17  const BaseDescriptor& descriptor,
18  const Optional<LstmInputParamsInfo>& lstmParamsInfo,
20  Optional<std::string&> reasonIfUnsupported) const override;
21 
22  bool IsActivationSupported(const TensorInfo& input,
23  const TensorInfo& output,
24  const ActivationDescriptor& descriptor,
25  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
26 
27  bool IsAdditionSupported(const TensorInfo& input0,
28  const TensorInfo& input1,
29  const TensorInfo& output,
30  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
31 
32  bool IsArgMinMaxSupported(const TensorInfo& input,
33  const TensorInfo& output,
34  const ArgMinMaxDescriptor& descriptor,
35  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
36 
37  bool IsBatchMatMulSupported(const TensorInfo& inputX,
38  const TensorInfo& inputY,
39  const TensorInfo& output,
40  const BatchMatMulDescriptor& descriptor,
41  Optional<std::string &> reasonIfUnsupported = EmptyOptional()) const;
42 
43  bool IsBatchNormalizationSupported(const TensorInfo& input,
44  const TensorInfo& output,
45  const TensorInfo& mean,
46  const TensorInfo& var,
47  const TensorInfo& beta,
48  const TensorInfo& gamma,
49  const BatchNormalizationDescriptor& descriptor,
50  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
51 
52  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
53  const TensorInfo& output,
54  const BatchToSpaceNdDescriptor& descriptor,
55  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
56 
57  bool IsBroadcastToSupported(const TensorInfo& input,
58  const TensorInfo& output,
59  const BroadcastToDescriptor& descriptor,
60  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
61 
62  bool IsCastSupported(const TensorInfo& input,
63  const TensorInfo& output,
64  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
65 
66  bool IsChannelShuffleSupported(const TensorInfo& input,
67  const TensorInfo& output,
68  const ChannelShuffleDescriptor& descriptor,
69  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
70 
71  bool IsComparisonSupported(const TensorInfo& input0,
72  const TensorInfo& input1,
73  const TensorInfo& output,
74  const ComparisonDescriptor& descriptor,
75  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
76 
77  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
78  const TensorInfo& output,
79  const OriginsDescriptor& descriptor,
80  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
81 
82  bool IsConstantSupported(const TensorInfo& output,
83  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
84 
85  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
86  const TensorInfo& output,
87  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
88 
89 
90  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
91  const TensorInfo& output,
92  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
93 
94  bool IsConvolution2dSupported(const TensorInfo& input,
95  const TensorInfo& output,
96  const Convolution2dDescriptor& descriptor,
97  const TensorInfo& weights,
98  const Optional<TensorInfo>& biases,
99  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
100 
101  bool IsConvolution3dSupported(const TensorInfo& input,
102  const TensorInfo& output,
103  const Convolution3dDescriptor& descriptor,
104  const TensorInfo& weights,
105  const Optional<TensorInfo>& biases,
106  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
107 
108  bool IsDebugSupported(const TensorInfo& input,
109  const TensorInfo& output,
110  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
111 
112  bool IsDepthToSpaceSupported(const TensorInfo& input,
113  const TensorInfo& output,
114  const DepthToSpaceDescriptor& descriptor,
115  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
116 
118  const TensorInfo& output,
119  const DepthwiseConvolution2dDescriptor& descriptor,
120  const TensorInfo& weights,
121  const Optional<TensorInfo>& biases,
122  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
123 
124  bool IsDequantizeSupported(const TensorInfo& input,
125  const TensorInfo& output,
126  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
127 
128  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
129  const TensorInfo& scores,
130  const TensorInfo& anchors,
131  const TensorInfo& detectionBoxes,
132  const TensorInfo& detectionClasses,
133  const TensorInfo& detectionScores,
134  const TensorInfo& numDetections,
135  const DetectionPostProcessDescriptor& descriptor,
136  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
137 
139  const TensorInfo& output,
140  const DepthwiseConvolution2dDescriptor& descriptor,
141  const TensorInfo& weights,
142  const Optional<TensorInfo>& biases,
143  Optional<std::string&> reasonIfUnsupported =
144  EmptyOptional()) const;
145 
146  bool IsDivisionSupported(const TensorInfo& input0,
147  const TensorInfo& input1,
148  const TensorInfo& output,
149  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
150 
151  bool IsElementwiseUnarySupported(const TensorInfo& input,
152  const TensorInfo& output,
153  const ElementwiseUnaryDescriptor& descriptor,
154  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
155 
156  bool IsFakeQuantizationSupported(const TensorInfo& input,
157  const FakeQuantizationDescriptor& descriptor,
158  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
159 
160  bool IsFillSupported(const TensorInfo& input,
161  const TensorInfo& output,
162  const FillDescriptor& descriptor,
163  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
164 
165  bool IsFloorSupported(const TensorInfo& input,
166  const TensorInfo& output,
167  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
168 
169  bool IsFullyConnectedSupported(const TensorInfo& input,
170  const TensorInfo& output,
171  const TensorInfo& weights,
172  const TensorInfo& biases,
173  const FullyConnectedDescriptor& descriptor,
174  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
175 
176  bool IsGatherNdSupported(const TensorInfo& input0,
177  const TensorInfo& input1,
178  const TensorInfo& output,
179  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
180 
181  bool IsGatherSupported(const TensorInfo& input0,
182  const TensorInfo& input1,
183  const TensorInfo& output,
184  const GatherDescriptor& descriptor,
185  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
186 
187  bool IsInputSupported(const TensorInfo& input,
188  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
189 
191  const TensorInfo& output,
192  const InstanceNormalizationDescriptor& descriptor,
193  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
194 
195  bool IsL2NormalizationSupported(const TensorInfo& input,
196  const TensorInfo& output,
197  const L2NormalizationDescriptor& descriptor,
198  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
199 
200  bool IsLogicalBinarySupported(const TensorInfo& input0,
201  const TensorInfo& input1,
202  const TensorInfo& output,
203  const LogicalBinaryDescriptor& descriptor,
204  Optional<std::string&> reasonIfUnsupported) const;
205 
206  bool IsLogSoftmaxSupported(const TensorInfo& input,
207  const TensorInfo& output,
208  const LogSoftmaxDescriptor& descriptor,
209  Optional<std::string&> reasonIfUnsupported) const;
210 
211  bool IsLstmSupported(const TensorInfo& input,
212  const TensorInfo& outputStateIn,
213  const TensorInfo& cellStateIn,
214  const TensorInfo& scratchBuffer,
215  const TensorInfo& outputStateOut,
216  const TensorInfo& cellStateOut,
217  const TensorInfo& output,
218  const LstmDescriptor& descriptor,
219  const LstmInputParamsInfo& paramsInfo,
220  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
221 
222  bool IsMaximumSupported(const TensorInfo& input0,
223  const TensorInfo& input1,
224  const TensorInfo& output,
225  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
226 
227  bool IsMeanSupported(const TensorInfo& input,
228  const TensorInfo& output,
229  const MeanDescriptor& descriptor,
230  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
231 
232  bool IsMemCopySupported(const TensorInfo& input,
233  const TensorInfo& output,
234  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
235 
236  bool IsMinimumSupported(const TensorInfo& input0,
237  const TensorInfo& input1,
238  const TensorInfo& output,
239  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
240 
241  bool IsMultiplicationSupported(const TensorInfo& input0,
242  const TensorInfo& input1,
243  const TensorInfo& output,
244  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
245 
246  bool IsNormalizationSupported(const TensorInfo& input,
247  const TensorInfo& output,
248  const NormalizationDescriptor& descriptor,
249  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
250 
251  bool IsOutputSupported(const TensorInfo& output,
252  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
253 
254  bool IsPadSupported(const TensorInfo& input,
255  const TensorInfo& output,
256  const PadDescriptor& descriptor,
257  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
258 
259  bool IsPermuteSupported(const TensorInfo& input,
260  const TensorInfo& output,
261  const PermuteDescriptor& descriptor,
262  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
263 
264  bool IsPooling2dSupported(const TensorInfo& input,
265  const TensorInfo& output,
266  const Pooling2dDescriptor& descriptor,
267  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
268 
269  bool IsPooling3dSupported(const TensorInfo& input,
270  const TensorInfo& output,
271  const Pooling3dDescriptor& descriptor,
272  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
273 
274  bool IsQuantizeSupported(const TensorInfo& input,
275  const TensorInfo& output,
276  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
277 
278  bool IsQLstmSupported(const TensorInfo& input,
279  const TensorInfo& previousOutputIn,
280  const TensorInfo& previousCellStateIn,
281  const TensorInfo& outputStateOut,
282  const TensorInfo& cellStateOut,
283  const TensorInfo& output,
284  const QLstmDescriptor& descriptor,
285  const LstmInputParamsInfo& paramsInfo,
286  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
287 
288  bool IsRankSupported(const TensorInfo& input,
289  const TensorInfo& output,
290  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
291 
292  bool IsReduceSupported(const TensorInfo& input,
293  const TensorInfo& output,
294  const ReduceDescriptor& descriptor,
295  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
296 
297  bool IsReshapeSupported(const TensorInfo& input,
298  const TensorInfo& output,
299  const ReshapeDescriptor& descriptor,
300  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
301 
302  bool IsResizeSupported(const TensorInfo& input,
303  const TensorInfo& output,
304  const ResizeDescriptor& descriptor,
305  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
306 
307  bool IsReverseV2Supported(const TensorInfo& input0,
308  const TensorInfo& input1,
309  const TensorInfo& output,
310  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
311 
312  bool IsShapeSupported(const TensorInfo& input,
313  const TensorInfo& output,
314  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
315 
316  bool IsSliceSupported(const TensorInfo& input,
317  const TensorInfo& output,
318  const SliceDescriptor& descriptor,
319  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
320 
321  bool IsSoftmaxSupported(const TensorInfo& input,
322  const TensorInfo& output,
323  const SoftmaxDescriptor& descriptor,
324  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
325 
326  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
327  const TensorInfo& output,
328  const SpaceToBatchNdDescriptor& descriptor,
329  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
330 
331  bool IsSpaceToDepthSupported(const TensorInfo& input,
332  const TensorInfo& output,
333  const SpaceToDepthDescriptor& descriptor,
334  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
335  const;
336 
337  bool IsSplitterSupported(const TensorInfo& input,
338  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
339  const ViewsDescriptor& descriptor,
340  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
341 
342  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
343  const TensorInfo& output,
344  const StackDescriptor& descriptor,
345  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
346 
347  bool IsStridedSliceSupported(const TensorInfo& input,
348  const TensorInfo& output,
349  const StridedSliceDescriptor& descriptor,
350  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
351 
352  bool IsSubtractionSupported(const TensorInfo& input0,
353  const TensorInfo& input1,
354  const TensorInfo& output,
355  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
356 
357  bool IsPreluSupported(const TensorInfo& input,
358  const TensorInfo& alpha,
359  const TensorInfo& output,
360  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
361 
362  bool IsTileSupported(const TensorInfo& input,
363  const TensorInfo& output,
364  const TileDescriptor& descriptor,
365  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
366 
368  const TensorInfo& input,
369  const TensorInfo& output,
370  const TransposeConvolution2dDescriptor& descriptor,
371  const TensorInfo& weights,
372  const Optional<TensorInfo>& biases,
373  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
374 
375  bool IsTransposeSupported(const TensorInfo& input,
376  const TensorInfo& output,
377  const TransposeDescriptor& descriptor,
378  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
379 
381  const TensorInfo& input,
382  const TensorInfo& outputStateIn,
383  const TensorInfo& cellStateIn,
384  const TensorInfo& outputStateOut,
385  const TensorInfo& cellStateOut,
386  const TensorInfo& output,
387  const UnidirectionalSequenceLstmDescriptor& descriptor,
388  const LstmInputParamsInfo& paramsInfo,
389  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
390 };
391 
392 } // namespace armnn
armnn::RefLayerSupport::IsLstmSupported
bool IsLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &scratchBuffer, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const LstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1777
armnn::BatchNormalizationDescriptor
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
Definition: Descriptors.hpp:828
armnn::RefLayerSupport::IsDepthwiseConvolutionSupported
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1226
armnn::ViewsDescriptor
A ViewsDescriptor for the SplitterLayer.
Definition: Descriptors.hpp:244
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
armnn::RefLayerSupport::IsPooling3dSupported
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2219
armnn::FullyConnectedDescriptor
A FullyConnectedDescriptor for the FullyConnectedLayer.
Definition: Descriptors.hpp:507
armnn::RefLayerSupport::IsReverseV2Supported
bool IsReverseV2Supported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2407
armnn::QLstmDescriptor
A QLstmDescriptor for the QLstmLayer.
Definition: Descriptors.hpp:1380
armnn::Optional
Definition: Optional.hpp:270
armnn::RefLayerSupport::IsQLstmSupported
bool IsQLstmSupported(const TensorInfo &input, const TensorInfo &previousOutputIn, const TensorInfo &previousCellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const QLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2250
armnn::RefLayerSupport::IsTileSupported
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2742
armnn::Pooling3dDescriptor
A Pooling3dDescriptor for the Pooling3dLayer.
Definition: Descriptors.hpp:431
armnn::RefLayerSupport::IsConvolution2dSupported
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1030
armnn::RefLayerSupport::IsFloorSupported
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1503
armnn::RefLayerSupport::IsDequantizeSupported
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1295
armnn::RefLayerSupport::IsPooling2dSupported
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2189
armnn::ResizeDescriptor
A ResizeDescriptor for the ResizeLayer.
Definition: Descriptors.hpp:985
armnn::ArgMinMaxDescriptor
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:67
armnn::RefLayerSupport::IsLayerSupported
bool IsLayerSupported(const LayerType &type, const std::vector< TensorInfo > &infos, const BaseDescriptor &descriptor, const Optional< LstmInputParamsInfo > &lstmParamsInfo, const Optional< QuantizedLstmInputParamsInfo > &, Optional< std::string & > reasonIfUnsupported) const override
Default implementation of the ILayerSupport interface, Backends should implement this as a switch sta...
Definition: RefLayerSupport.cpp:61
armnn::InstanceNormalizationDescriptor
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
Definition: Descriptors.hpp:847
armnn::GatherDescriptor
A GatherDescriptor for the GatherLayer.
Definition: Descriptors.hpp:965
armnn::RefLayerSupport::IsDetectionPostProcessSupported
bool IsDetectionPostProcessSupported(const TensorInfo &boxEncodings, const TensorInfo &scores, const TensorInfo &anchors, const TensorInfo &detectionBoxes, const TensorInfo &detectionClasses, const TensorInfo &detectionScores, const TensorInfo &numDetections, const DetectionPostProcessDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1330
armnn::RefLayerSupport
Definition: RefLayerSupport.hpp:12
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::L2NormalizationDescriptor
A L2NormalizationDescriptor for the L2NormalizationLayer.
Definition: Descriptors.hpp:809
armnn::RefLayerSupport::IsAdditionSupported
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:621
armnn::RefLayerSupport::IsInputSupported
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1655
armnn::NormalizationDescriptor
A NormalizationDescriptor for the NormalizationLayer.
Definition: Descriptors.hpp:769
armnn::RefLayerSupport::IsMeanSupported
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1925
armnn::RefLayerSupport::IsTransposeConvolution2dSupported
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2771
armnn::ChannelShuffleDescriptor
A ChannelShuffleDescriptor for the ChannelShuffle operator.
Definition: Descriptors.hpp:1562
armnn::RefLayerSupport::IsRankSupported
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2309
armnn::StackDescriptor
A StackDescriptor for the StackLayer.
Definition: Descriptors.hpp:1251
armnn::RefLayerSupport::IsSplitterSupported
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2580
armnn::RefLayerSupport::IsConvolution3dSupported
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1099
armnn::RefLayerSupport::IsBatchMatMulSupported
bool IsBatchMatMulSupported(const TensorInfo &inputX, const TensorInfo &inputY, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:690
armnn::RefLayerSupport::IsSubtractionSupported
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2671
armnn::RefLayerSupport::IsQuantizeSupported
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2274
armnn::RefLayerSupport::IsArgMinMaxSupported
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:658
armnn::RefLayerSupport::IsPermuteSupported
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2158
armnn::RefLayerSupport::IsComparisonSupported
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:908
armnn::RefLayerSupport::IsBatchNormalizationSupported
bool IsBatchNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &mean, const TensorInfo &var, const TensorInfo &beta, const TensorInfo &gamma, const BatchNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:735
LayerSupportBase.hpp
armnn::RefLayerSupport::IsDilatedDepthwiseConvolutionSupported
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1362
armnn::RefLayerSupport::IsSpaceToDepthSupported
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2550
armnn::RefLayerSupport::IsActivationSupported
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:553
armnn::RefLayerSupport::IsFakeQuantizationSupported
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1460
armnn::RefLayerSupport::IsElementwiseUnarySupported
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1409
armnn::RefLayerSupport::IsConcatSupported
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:939
armnn::RefLayerSupport::IsReduceSupported
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2324
armnn::PadDescriptor
A PadDescriptor for the PadLayer.
Definition: Descriptors.hpp:1196
armnn::TransposeDescriptor
A TransposeDescriptor for the TransposeLayer.
Definition: Descriptors.hpp:1490
armnn::RefLayerSupport::IsResizeSupported
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2377
armnn::RefLayerSupport::IsDepthToSpaceSupported
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1197
armnn::EmptyOptional
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
armnn::SliceDescriptor
A SliceDescriptor for the SliceLayer.
Definition: Descriptors.hpp:1228
armnn::RefLayerSupport::IsBatchToSpaceNdSupported
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:781
armnn::RefLayerSupport::IsBroadcastToSupported
bool IsBroadcastToSupported(const TensorInfo &input, const TensorInfo &output, const BroadcastToDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:816
armnn::RefLayerSupport::IsSpaceToBatchNdSupported
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2522
armnn::ReshapeDescriptor
A ReshapeDescriptor for the ReshapeLayer.
Definition: Descriptors.hpp:1023
armnn::RefLayerSupport::IsL2NormalizationSupported
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1692
armnn::RefLayerSupport::IsMaximumSupported
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1888
armnn::PermuteDescriptor
A PermuteDescriptor for the PermuteLayer.
Definition: Descriptors.hpp:149
armnn::BatchMatMulDescriptor
A BatchMatMulDescriptor for the BatchMatMul operator.
Definition: Descriptors.hpp:1584
armnn::SpaceToBatchNdDescriptor
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
Definition: Descriptors.hpp:1043
armnn::RefLayerSupport::IsReshapeSupported
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2353
armnn::Convolution3dDescriptor
A Convolution3dDescriptor for the Convolution3dLayer.
Definition: Descriptors.hpp:588
armnn::BaseDescriptor
Base class for all descriptors.
Definition: Descriptors.hpp:22
armnn::RefLayerSupport::IsCastSupported
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:846
armnn::RefLayerSupport::IsFullyConnectedSupported
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1525
armnn::RefLayerSupport::IsOutputSupported
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2122
armnn::RefLayerSupport::IsDebugSupported
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1167
armnn::BatchToSpaceNdDescriptor
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
Definition: Descriptors.hpp:875
armnn::Convolution2dDescriptor
A Convolution2dDescriptor for the Convolution2dLayer.
Definition: Descriptors.hpp:534
armnn::ComparisonDescriptor
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:89
armnn::FillDescriptor
A FillDescriptor for the FillLayer.
Definition: Descriptors.hpp:925
armnn::RefLayerSupport::IsConvertFp16ToFp32Supported
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:990
armnn::RefLayerSupport::IsLogicalBinarySupported
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
Definition: RefLayerSupport.cpp:1726
armnn::RefLayerSupport::IsDivisionSupported
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1372
armnn::RefLayerSupport::IsNormalizationSupported
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2090
armnn::LstmDescriptor
An LstmDescriptor for the LstmLayer.
Definition: Descriptors.hpp:1102
armnn::StridedSliceDescriptor
A StridedSliceDescriptor for the StridedSliceLayer.
Definition: Descriptors.hpp:1303
armnn::RefLayerSupport::IsPreluSupported
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2708
armnn::RefLayerSupport::IsFillSupported
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1478
armnn::LogicalBinaryDescriptor
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
Definition: Descriptors.hpp:1518
armnn::RefLayerSupport::IsMultiplicationSupported
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2053
armnn::RefLayerSupport::IsStridedSliceSupported
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2643
armnn::RefLayerSupport::IsMemCopySupported
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1987
armnn::OriginsDescriptor
An OriginsDescriptor for the ConcatLayer.
Definition: Descriptors.hpp:201
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::ElementwiseUnaryDescriptor
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:129
armnn::TransposeConvolution2dDescriptor
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
Definition: Descriptors.hpp:1440
armnn::RefLayerSupport::IsConstantSupported
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:972
armnn::LstmInputParamsInfo
Definition: LstmParams.hpp:63
armnn::RefLayerSupport::IsChannelShuffleSupported
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:876
armnn::RefLayerSupport::IsShapeSupported
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2446
armnn::RefLayerSupport::IsTransposeSupported
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2839
armnn::DetectionPostProcessDescriptor
Definition: Descriptors.hpp:713
armnn::RefLayerSupport::IsConvertFp32ToFp16Supported
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1010
armnn::RefLayerSupport::IsGatherSupported
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1622
armnn::RefLayerSupport::IsStackSupported
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2610
armnn::RefLayerSupport::IsLogSoftmaxSupported
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
Definition: RefLayerSupport.cpp:1751
armnn::Pooling2dDescriptor
A Pooling2dDescriptor for the Pooling2dLayer.
Definition: Descriptors.hpp:371
armnn::BroadcastToDescriptor
Definition: Descriptors.hpp:1659
armnn::DepthwiseConvolution2dDescriptor
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
Definition: Descriptors.hpp:659
armnn::ReduceDescriptor
A ReduceDescriptor for the REDUCE operators.
Definition: Descriptors.hpp:1538
armnn::RefLayerSupport::IsSoftmaxSupported
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2493
armnn::FakeQuantizationDescriptor
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
Definition: Descriptors.hpp:906
armnn::RefLayerSupport::IsSliceSupported
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2464
armnn::LayerType
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition: Types.hpp:491
armnn::MeanDescriptor
A MeanDescriptor for the MeanLayer.
Definition: Descriptors.hpp:1172
armnn::RefLayerSupport::IsPadSupported
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2128
armnn::RefLayerSupport::IsGatherNdSupported
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1591
armnn::TileDescriptor
Definition: Descriptors.hpp:1640
armnn::RefLayerSupport::IsUnidirectionalSequenceLstmSupported
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const UnidirectionalSequenceLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2870
armnn::RefLayerSupport::IsInstanceNormalizationSupported
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1661
armnn::SoftmaxDescriptor
A SoftmaxDescriptor for the SoftmaxLayer.
Definition: Descriptors.hpp:177
armnn::SpaceToDepthDescriptor
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
Definition: Descriptors.hpp:1075
armnn::RefLayerSupport::IsMinimumSupported
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2016
armnn::LayerSupportBase
Definition: LayerSupportBase.hpp:13