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