ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsReverseV2Supported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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...
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsBatchMatMulSupported(const TensorInfo &inputX, const TensorInfo &inputY, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsBroadcastToSupported(const TensorInfo &input, const TensorInfo &output, const BroadcastToDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsScatterNdSupported(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &updates, const TensorInfo &output, const ScatterNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Copyright (c) 2021 ARM Limited and Contributors.
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition: Types.hpp:494
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:37
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:68
Base class for all descriptors.
Definition: Descriptors.hpp:23
A BatchMatMulDescriptor for the BatchMatMul operator.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
A ChannelShuffleDescriptor for the ChannelShuffle operator.
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:90
A Convolution2dDescriptor for the Convolution2dLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
A FillDescriptor for the FillLayer.
A FullyConnectedDescriptor for the FullyConnectedLayer.
A GatherDescriptor for the GatherLayer.
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
A L2NormalizationDescriptor for the L2NormalizationLayer.
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
An LstmDescriptor for the LstmLayer.
A MeanDescriptor for the MeanLayer.
A NormalizationDescriptor for the NormalizationLayer.
An OriginsDescriptor for the ConcatLayer.
A PadDescriptor for the PadLayer.
A PermuteDescriptor for the PermuteLayer.
A Pooling2dDescriptor for the Pooling2dLayer.
A Pooling3dDescriptor for the Pooling3dLayer.
A QLstmDescriptor for the QLstmLayer.
A ReduceDescriptor for the REDUCE operators.
A ReshapeDescriptor for the ReshapeLayer.
A ResizeDescriptor for the ResizeLayer.
A ScatterNdDescriptor for the ScatterNdLayer.
A SliceDescriptor for the SliceLayer.
A SoftmaxDescriptor for the SoftmaxLayer.
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
A StackDescriptor for the StackLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
A TransposeDescriptor for the TransposeLayer.
A ViewsDescriptor for the SplitterLayer.