ArmNN
 21.05
RefLayerSupport.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 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  ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead")
16  bool IsAbsSupported(const TensorInfo& input,
17  const TensorInfo& output,
18  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
19 
20  bool IsActivationSupported(const TensorInfo& input,
21  const TensorInfo& output,
22  const ActivationDescriptor& descriptor,
23  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
24 
25  bool IsAdditionSupported(const TensorInfo& input0,
26  const TensorInfo& input1,
27  const TensorInfo& output,
28  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
29 
30  bool IsArgMinMaxSupported(const TensorInfo& input,
31  const TensorInfo& output,
32  const ArgMinMaxDescriptor& descriptor,
33  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
34 
35  bool IsBatchNormalizationSupported(const TensorInfo& input,
36  const TensorInfo& output,
37  const TensorInfo& mean,
38  const TensorInfo& var,
39  const TensorInfo& beta,
40  const TensorInfo& gamma,
41  const BatchNormalizationDescriptor& descriptor,
42  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
43 
44  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
45  const TensorInfo& output,
46  const BatchToSpaceNdDescriptor& descriptor,
47  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
48 
49  bool IsCastSupported(const TensorInfo& input,
50  const TensorInfo& output,
51  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
52 
53  bool IsComparisonSupported(const TensorInfo& input0,
54  const TensorInfo& input1,
55  const TensorInfo& output,
56  const ComparisonDescriptor& descriptor,
57  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
58 
59  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
60  const TensorInfo& output,
61  const ConcatDescriptor& descriptor,
62  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
63 
64  bool IsConstantSupported(const TensorInfo& output,
65  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
66 
67  bool IsConvertBf16ToFp32Supported(const TensorInfo& input,
68  const TensorInfo& output,
69  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
70 
71  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
72  const TensorInfo& output,
73  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
74 
75  bool IsConvertFp32ToBf16Supported(const TensorInfo& input,
76  const TensorInfo& output,
77  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
78 
79  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
80  const TensorInfo& output,
81  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
82 
83  bool IsConvolution2dSupported(const TensorInfo& input,
84  const TensorInfo& output,
85  const Convolution2dDescriptor& descriptor,
86  const TensorInfo& weights,
87  const Optional<TensorInfo>& biases,
88  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
89 
90  bool IsDebugSupported(const TensorInfo& input,
91  const TensorInfo& output,
92  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
93 
94  bool IsDepthToSpaceSupported(const TensorInfo& input,
95  const TensorInfo& output,
96  const DepthToSpaceDescriptor& descriptor,
97  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
98 
100  const TensorInfo& output,
101  const DepthwiseConvolution2dDescriptor& descriptor,
102  const TensorInfo& weights,
103  const Optional<TensorInfo>& biases,
104  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
105 
106  bool IsDequantizeSupported(const TensorInfo& input,
107  const TensorInfo& output,
108  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
109 
111  const TensorInfo& scores,
112  const TensorInfo& anchors,
113  const TensorInfo& detectionBoxes,
114  const TensorInfo& detectionClasses,
115  const TensorInfo& detectionScores,
116  const TensorInfo& numDetections,
117  const DetectionPostProcessDescriptor& descriptor,
118  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
119 
121  const TensorInfo& output,
122  const DepthwiseConvolution2dDescriptor& descriptor,
123  const TensorInfo& weights,
124  const Optional<TensorInfo>& biases,
125  Optional<std::string&> reasonIfUnsupported =
126  EmptyOptional()) const override;
127 
128  bool IsDivisionSupported(const TensorInfo& input0,
129  const TensorInfo& input1,
130  const TensorInfo& output,
131  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
132 
133  bool IsElementwiseUnarySupported(const TensorInfo& input,
134  const TensorInfo& output,
135  const ElementwiseUnaryDescriptor& descriptor,
136  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
137 
138  ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead")
139  bool IsEqualSupported(const TensorInfo& input0,
140  const TensorInfo& input1,
141  const TensorInfo& output,
142  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
143 
144  bool IsFakeQuantizationSupported(const TensorInfo& input,
145  const FakeQuantizationDescriptor& descriptor,
146  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
147 
148  bool IsFillSupported(const TensorInfo& input,
149  const TensorInfo& output,
150  const FillDescriptor& descriptor,
151  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
152 
153  bool IsFloorSupported(const TensorInfo& input,
154  const TensorInfo& output,
155  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
156 
157  bool IsFullyConnectedSupported(const TensorInfo& input,
158  const TensorInfo& output,
159  const TensorInfo& weights,
160  const TensorInfo& biases,
161  const FullyConnectedDescriptor& descriptor,
162  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
163 
164  bool IsGatherSupported(const TensorInfo& input0,
165  const TensorInfo& input1,
166  const TensorInfo& output,
167  const GatherDescriptor& descriptor,
168  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
169 
170  ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead")
171  bool IsGreaterSupported(const TensorInfo& input0,
172  const TensorInfo& input1,
173  const TensorInfo& output,
174  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
175 
176  bool IsInputSupported(const TensorInfo& input,
177  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
178 
180  const TensorInfo& output,
181  const InstanceNormalizationDescriptor& descriptor,
182  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
183 
184  bool IsL2NormalizationSupported(const TensorInfo& input,
185  const TensorInfo& output,
186  const L2NormalizationDescriptor& descriptor,
187  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
188 
189  bool IsLogicalBinarySupported(const TensorInfo& input0,
190  const TensorInfo& input1,
191  const TensorInfo& output,
192  const LogicalBinaryDescriptor& descriptor,
193  Optional<std::string&> reasonIfUnsupported) const override;
194 
195  bool IsLogSoftmaxSupported(const TensorInfo& input,
196  const TensorInfo& output,
197  const LogSoftmaxDescriptor& descriptor,
198  Optional<std::string&> reasonIfUnsupported) const override;
199 
200  bool IsLstmSupported(const TensorInfo& input,
201  const TensorInfo& outputStateIn,
202  const TensorInfo& cellStateIn,
203  const TensorInfo& scratchBuffer,
204  const TensorInfo& outputStateOut,
205  const TensorInfo& cellStateOut,
206  const TensorInfo& output,
207  const LstmDescriptor& descriptor,
208  const LstmInputParamsInfo& paramsInfo,
209  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
210 
211  bool IsMaximumSupported(const TensorInfo& input0,
212  const TensorInfo& input1,
213  const TensorInfo& output,
214  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
215 
216  bool IsMeanSupported(const TensorInfo& input,
217  const TensorInfo& output,
218  const MeanDescriptor& descriptor,
219  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
220 
221  ARMNN_DEPRECATED_MSG("Use IsConcatSupported instead")
222  bool IsMergerSupported(const std::vector<const TensorInfo*> inputs,
223  const TensorInfo& output,
224  const MergerDescriptor& descriptor,
225  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
226 
227  bool IsMemCopySupported(const TensorInfo& input,
228  const TensorInfo& output,
229  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
230 
231  bool IsMinimumSupported(const TensorInfo& input0,
232  const TensorInfo& input1,
233  const TensorInfo& output,
234  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
235 
236  bool IsMultiplicationSupported(const TensorInfo& input0,
237  const TensorInfo& input1,
238  const TensorInfo& output,
239  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
240 
241  bool IsNormalizationSupported(const TensorInfo& input,
242  const TensorInfo& output,
243  const NormalizationDescriptor& descriptor,
244  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
245 
246  bool IsOutputSupported(const TensorInfo& output,
247  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
248 
249  bool IsPadSupported(const TensorInfo& input,
250  const TensorInfo& output,
251  const PadDescriptor& descriptor,
252  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
253 
254  bool IsPermuteSupported(const TensorInfo& input,
255  const TensorInfo& output,
256  const PermuteDescriptor& descriptor,
257  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
258 
259  bool IsPooling2dSupported(const TensorInfo& input,
260  const TensorInfo& output,
261  const Pooling2dDescriptor& descriptor,
262  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
263 
264  bool IsQuantizeSupported(const TensorInfo& input,
265  const TensorInfo& output,
266  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
267 
268  bool IsQLstmSupported(const TensorInfo& input,
269  const TensorInfo& previousOutputIn,
270  const TensorInfo& previousCellStateIn,
271  const TensorInfo& outputStateOut,
272  const TensorInfo& cellStateOut,
273  const TensorInfo& output,
274  const QLstmDescriptor& descriptor,
275  const LstmInputParamsInfo& paramsInfo,
276  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
277 
278  bool IsRankSupported(const TensorInfo& input,
279  const TensorInfo& output,
280  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
281 
282  bool IsReduceSupported(const TensorInfo& input,
283  const TensorInfo& output,
284  const ReduceDescriptor& descriptor,
285  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
286 
287  bool IsReshapeSupported(const TensorInfo& input,
288  const TensorInfo& output,
289  const ReshapeDescriptor& descriptor,
290  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
291 
292  bool IsResizeBilinearSupported(const TensorInfo& input,
293  const TensorInfo& output,
294  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
295 
296  bool IsResizeSupported(const TensorInfo& input,
297  const TensorInfo& output,
298  const ResizeDescriptor& descriptor,
299  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
300 
301  ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead")
302  bool IsRsqrtSupported(const TensorInfo& input,
303  const TensorInfo& output,
304  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
305 
306  bool IsSliceSupported(const TensorInfo& input,
307  const TensorInfo& output,
308  const SliceDescriptor& descriptor,
309  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
310 
311  bool IsSoftmaxSupported(const TensorInfo& input,
312  const TensorInfo& output,
313  const SoftmaxDescriptor& descriptor,
314  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
315 
316  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
317  const TensorInfo& output,
318  const SpaceToBatchNdDescriptor& descriptor,
319  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
320 
321  bool IsSpaceToDepthSupported(const TensorInfo& input,
322  const TensorInfo& output,
323  const SpaceToDepthDescriptor& descriptor,
324  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
325  const override;
326 
327  ARMNN_DEPRECATED_MSG("Use IsSplitterSupported with outputs instead")
328  bool IsSplitterSupported(const TensorInfo& input,
329  const ViewsDescriptor& descriptor,
330  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
331 
332  bool IsSplitterSupported(const TensorInfo& input,
333  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
334  const ViewsDescriptor& descriptor,
335  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
336 
337  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
338  const TensorInfo& output,
339  const StackDescriptor& descriptor,
340  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
341 
342  bool IsStridedSliceSupported(const TensorInfo& input,
343  const TensorInfo& output,
344  const StridedSliceDescriptor& descriptor,
345  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
346 
347  bool IsSubtractionSupported(const TensorInfo& input0,
348  const TensorInfo& input1,
349  const TensorInfo& output,
350  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
351 
352  bool IsPreluSupported(const TensorInfo& input,
353  const TensorInfo& alpha,
354  const TensorInfo& output,
355  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
356 
358  const TensorInfo& input,
359  const TensorInfo& output,
360  const TransposeConvolution2dDescriptor& descriptor,
361  const TensorInfo& weights,
362  const Optional<TensorInfo>& biases,
363  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
364 
365  bool IsTransposeSupported(const TensorInfo& input,
366  const TensorInfo& output,
367  const TransposeDescriptor& descriptor,
368  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
369 };
370 
371 } // namespace armnn
bool IsEqualSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ViewsDescriptor for the SplitterLayer.
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) const override
A ReshapeDescriptor for the ReshapeLayer.
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:78
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsStackSupported(const std::vector< const TensorInfo *> &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConvertBf16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) const override
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 override
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
std::vector< float > boxEncodings({ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f })
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 override
Copyright (c) 2021 ARM Limited and Contributors.
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsResizeBilinearSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
bool IsMergerSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const MergerDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ResizeDescriptor for the ResizeLayer.
A StackDescriptor for the StackLayer.
bool IsOutputSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A PadDescriptor for the PadLayer.
bool IsConstantSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An LstmDescriptor for the LstmLayer.
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsRsqrtSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:56
An OriginsDescriptor for the ConcatLayer.
A ReduceDescriptor for the REDUCE operators.
A FullyConnectedDescriptor for the FullyConnectedLayer.
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A GatherDescriptor for the GatherLayer.
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A QLstmDescriptor for the QLstmLayer.
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:25
bool IsConvertFp32ToBf16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SliceDescriptor for the SliceLayer.
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 override
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:98
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
std::vector< float > scores({ 0.0f, 0.9f, 0.8f, 0.0f, 0.75f, 0.72f, 0.0f, 0.6f, 0.5f, 0.0f, 0.93f, 0.95f, 0.0f, 0.5f, 0.4f, 0.0f, 0.3f, 0.2f })
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const ConcatDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A MeanDescriptor for the MeanLayer.
bool IsGreaterSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsAbsSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
#define ARMNN_DEPRECATED_MSG(message)
Definition: Deprecated.hpp:43
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 override
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSplitterSupported(const TensorInfo &input, const ViewsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SoftmaxDescriptor for the SoftmaxLayer.
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A PermuteDescriptor for the PermuteLayer.
std::vector< float > anchors({ 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 100.5f, 1.0f, 1.0f })