ArmNN
 24.08
RefLayerSupport.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017-2024 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 IsScatterNdSupported(const TensorInfo& input,
313  const TensorInfo& indices,
314  const TensorInfo& updates,
315  const TensorInfo& output,
316  const ScatterNdDescriptor& descriptor,
317  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
318 
319  bool IsShapeSupported(const TensorInfo& input,
320  const TensorInfo& output,
321  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
322 
323  bool IsSliceSupported(const TensorInfo& input,
324  const TensorInfo& output,
325  const SliceDescriptor& descriptor,
326  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
327 
328  bool IsSoftmaxSupported(const TensorInfo& input,
329  const TensorInfo& output,
330  const SoftmaxDescriptor& descriptor,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
332 
333  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
334  const TensorInfo& output,
335  const SpaceToBatchNdDescriptor& descriptor,
336  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
337 
338  bool IsSpaceToDepthSupported(const TensorInfo& input,
339  const TensorInfo& output,
340  const SpaceToDepthDescriptor& descriptor,
341  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
342  const;
343 
344  bool IsSplitterSupported(const TensorInfo& input,
345  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
346  const ViewsDescriptor& descriptor,
347  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
348 
349  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
350  const TensorInfo& output,
351  const StackDescriptor& descriptor,
352  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
353 
354  bool IsStridedSliceSupported(const TensorInfo& input,
355  const TensorInfo& output,
356  const StridedSliceDescriptor& descriptor,
357  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
358 
359  bool IsSubtractionSupported(const TensorInfo& input0,
360  const TensorInfo& input1,
361  const TensorInfo& output,
362  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
363 
364  bool IsPreluSupported(const TensorInfo& input,
365  const TensorInfo& alpha,
366  const TensorInfo& output,
367  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
368 
369  bool IsTileSupported(const TensorInfo& input,
370  const TensorInfo& output,
371  const TileDescriptor& descriptor,
372  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
373 
375  const TensorInfo& input,
376  const TensorInfo& output,
377  const TransposeConvolution2dDescriptor& descriptor,
378  const TensorInfo& weights,
379  const Optional<TensorInfo>& biases,
380  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
381 
382  bool IsTransposeSupported(const TensorInfo& input,
383  const TensorInfo& output,
384  const TransposeDescriptor& descriptor,
385  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
386 
388  const TensorInfo& input,
389  const TensorInfo& outputStateIn,
390  const TensorInfo& cellStateIn,
391  const TensorInfo& outputStateOut,
392  const TensorInfo& cellStateOut,
393  const TensorInfo& output,
394  const UnidirectionalSequenceLstmDescriptor& descriptor,
395  const LstmInputParamsInfo& paramsInfo,
396  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
397 };
398 
399 } // 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:1790
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:1235
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:2233
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:2421
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:2264
armnn::RefLayerSupport::IsTileSupported
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2813
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:1039
armnn::RefLayerSupport::IsFloorSupported
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1512
armnn::RefLayerSupport::IsDequantizeSupported
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1304
armnn::RefLayerSupport::IsPooling2dSupported
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2203
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:1339
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:628
armnn::RefLayerSupport::IsInputSupported
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1665
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:1938
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:2842
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:2323
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:2652
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:1108
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:697
armnn::RefLayerSupport::IsSubtractionSupported
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2742
armnn::RefLayerSupport::IsQuantizeSupported
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2288
armnn::RefLayerSupport::IsArgMinMaxSupported
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:665
armnn::RefLayerSupport::IsPermuteSupported
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2172
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:915
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:742
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:1371
armnn::RefLayerSupport::IsSpaceToDepthSupported
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2622
armnn::RefLayerSupport::IsActivationSupported
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:560
armnn::RefLayerSupport::IsFakeQuantizationSupported
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1469
armnn::RefLayerSupport::IsElementwiseUnarySupported
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1418
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:949
armnn::RefLayerSupport::IsReduceSupported
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2338
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:2391
armnn::RefLayerSupport::IsDepthToSpaceSupported
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1206
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:788
armnn::RefLayerSupport::IsBroadcastToSupported
bool IsBroadcastToSupported(const TensorInfo &input, const TensorInfo &output, const BroadcastToDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:823
armnn::RefLayerSupport::IsSpaceToBatchNdSupported
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2594
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:1702
armnn::RefLayerSupport::IsMaximumSupported
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1901
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:2367
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:853
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:1534
armnn::RefLayerSupport::IsOutputSupported
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2136
armnn::RefLayerSupport::IsDebugSupported
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1176
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:999
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:1736
armnn::RefLayerSupport::IsDivisionSupported
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1381
armnn::RefLayerSupport::IsNormalizationSupported
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2104
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:2779
armnn::RefLayerSupport::IsFillSupported
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1487
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:2067
armnn::RefLayerSupport::IsStridedSliceSupported
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2714
armnn::RefLayerSupport::IsMemCopySupported
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2001
armnn::RefLayerSupport::IsScatterNdSupported
bool IsScatterNdSupported(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &updates, const TensorInfo &output, const ScatterNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2460
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:981
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:883
armnn::RefLayerSupport::IsShapeSupported
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2518
armnn::RefLayerSupport::IsTransposeSupported
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:2910
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:1019
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:1632
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:2682
armnn::RefLayerSupport::IsLogSoftmaxSupported
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
Definition: RefLayerSupport.cpp:1764
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::ScatterNdDescriptor
A ScatterNdDescriptor for the ScatterNdLayer.
Definition: Descriptors.hpp:1679
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:2565
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:2536
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:2142
armnn::RefLayerSupport::IsGatherNdSupported
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1601
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:2941
armnn::RefLayerSupport::IsInstanceNormalizationSupported
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: RefLayerSupport.cpp:1671
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:2030
armnn::LayerSupportBase
Definition: LayerSupportBase.hpp:13