ArmNN
 20.08
LayerSupportBase.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 
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  virtual bool IsFillSupported(const TensorInfo& input,
147  const TensorInfo& output,
148  const FillDescriptor& descriptor,
149  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
150 
151  bool IsFloorSupported(const TensorInfo& input,
152  const TensorInfo& output,
153  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
154 
155  bool IsFullyConnectedSupported(const TensorInfo& input,
156  const TensorInfo& output,
157  const TensorInfo& weights,
158  const TensorInfo& biases,
159  const FullyConnectedDescriptor& descriptor,
160  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
161 
162  ARMNN_DEPRECATED_MSG("Use IsGatherSupported with descriptor instead")
163  bool IsGatherSupported(const TensorInfo& input0,
164  const TensorInfo& input1,
165  const TensorInfo& output,
166  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
167 
168  bool IsGatherSupported(const TensorInfo& input0,
169  const TensorInfo& input1,
170  const TensorInfo& output,
171  const GatherDescriptor& descriptor,
172  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
173 
174  ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead")
175  bool IsGreaterSupported(const TensorInfo& input0,
176  const TensorInfo& input1,
177  const TensorInfo& output,
178  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
179 
180  bool IsInputSupported(const TensorInfo& input,
181  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
182 
184  const TensorInfo& input,
185  const TensorInfo& output,
186  const InstanceNormalizationDescriptor& descriptor,
187  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
188 
189  bool IsL2NormalizationSupported(const TensorInfo& input,
190  const TensorInfo& output,
191  const L2NormalizationDescriptor& descriptor,
192  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
193 
194  bool IsLogSoftmaxSupported(const TensorInfo& input,
195  const TensorInfo& output,
196  const LogSoftmaxDescriptor& descriptor,
197  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
198 
199  bool IsLstmSupported(const TensorInfo& input,
200  const TensorInfo& outputStateIn,
201  const TensorInfo& cellStateIn,
202  const TensorInfo& scratchBuffer,
203  const TensorInfo& outputStateOut,
204  const TensorInfo& cellStateOut,
205  const TensorInfo& output,
206  const LstmDescriptor& descriptor,
207  const LstmInputParamsInfo& paramsInfo,
208  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
209 
210  bool IsMaximumSupported(const TensorInfo& input0,
211  const TensorInfo& input1,
212  const TensorInfo& output,
213  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
214 
215  bool IsMeanSupported(const TensorInfo& input,
216  const TensorInfo& output,
217  const MeanDescriptor& descriptor,
218  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
219 
220  bool IsMemCopySupported(const TensorInfo& input,
221  const TensorInfo& output,
222  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
223 
224  bool IsMemImportSupported(const TensorInfo& input,
225  const TensorInfo& output,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
227 
228  bool IsMergeSupported(const TensorInfo& input0,
229  const TensorInfo& input1,
230  const TensorInfo& output,
231  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
232 
233  ARMNN_DEPRECATED_MSG("Use IsConcatSupported instead")
234  bool IsMergerSupported(const std::vector<const TensorInfo*> inputs,
235  const TensorInfo& output,
236  const OriginsDescriptor& descriptor,
237  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
238 
239  bool IsMinimumSupported(const TensorInfo& input0,
240  const TensorInfo& input1,
241  const TensorInfo& output,
242  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
243 
244  bool IsMultiplicationSupported(const TensorInfo& input0,
245  const TensorInfo& input1,
246  const TensorInfo& output,
247  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
248 
249  bool IsNormalizationSupported(const TensorInfo& input,
250  const TensorInfo& output,
251  const NormalizationDescriptor& descriptor,
252  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
253 
254  bool IsOutputSupported(const TensorInfo& output,
255  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
256 
257  bool IsPadSupported(const TensorInfo& input,
258  const TensorInfo& output,
259  const PadDescriptor& descriptor,
260  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
261 
262  bool IsPermuteSupported(const TensorInfo& input,
263  const TensorInfo& output,
264  const PermuteDescriptor& descriptor,
265  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
266 
267  bool IsPooling2dSupported(const TensorInfo& input,
268  const TensorInfo& output,
269  const Pooling2dDescriptor& descriptor,
270  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
271 
272  bool IsPreCompiledSupported(const TensorInfo& input,
273  const PreCompiledDescriptor& descriptor,
274  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
275 
276  bool IsPreluSupported(const TensorInfo& input,
277  const TensorInfo& alpha,
278  const TensorInfo& output,
279  Optional<std::string &> reasonIfUnsupported) const override;
280 
281  bool IsQuantizeSupported(const TensorInfo& input,
282  const TensorInfo& output,
283  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
284 
285  bool IsQLstmSupported(const TensorInfo& input,
286  const TensorInfo& previousOutputIn,
287  const TensorInfo& previousCellStateIn,
288  const TensorInfo& outputStateOut,
289  const TensorInfo& cellStateOut,
290  const TensorInfo& output,
291  const QLstmDescriptor& descriptor,
292  const LstmInputParamsInfo& paramsInfo,
293  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
294 
295  bool IsQuantizedLstmSupported(const TensorInfo& input,
296  const TensorInfo& previousCellStateIn,
297  const TensorInfo& previousOutputIn,
298  const TensorInfo& cellStateOut,
299  const TensorInfo& output,
300  const QuantizedLstmInputParamsInfo& paramsInfo,
301  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
302 
303  bool IsRankSupported(const TensorInfo& input,
304  const TensorInfo& output,
305  Optional<std::string&> reasonIfUnsupported) const override;
306 
307  bool IsReshapeSupported(const TensorInfo& input,
308  const TensorInfo& output,
309  const ReshapeDescriptor& descriptor,
310  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
311 
312  bool IsResizeSupported(const TensorInfo& input,
313  const TensorInfo& output,
314  const ResizeDescriptor& descriptor,
315  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
316 
317  ARMNN_DEPRECATED_MSG("Use IsResizeSupported instead")
318  bool IsResizeBilinearSupported(const TensorInfo& input,
319  const TensorInfo& output,
320  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
321 
322  ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead")
323  bool IsRsqrtSupported(const TensorInfo& input,
324  const TensorInfo& output,
325  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
326 
327  bool IsSliceSupported(const TensorInfo& input,
328  const TensorInfo& output,
329  const SliceDescriptor& descriptor,
330  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
331 
332  bool IsSoftmaxSupported(const TensorInfo& input,
333  const TensorInfo& output,
334  const SoftmaxDescriptor& descriptor,
335  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
336 
337  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
338  const TensorInfo& output,
339  const SpaceToBatchNdDescriptor& descriptor,
340  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
341 
342  bool IsSpaceToDepthSupported(const TensorInfo& input,
343  const TensorInfo& output,
344  const SpaceToDepthDescriptor& descriptor,
345  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
346 
347  ARMNN_DEPRECATED_MSG("Use IsSplitterSupported with outputs instead")
348  bool IsSplitterSupported(const TensorInfo& input,
349  const ViewsDescriptor& descriptor,
350  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
351 
352  bool IsSplitterSupported(const TensorInfo& input,
353  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
354  const ViewsDescriptor& descriptor,
355  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
356 
357  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
358  const TensorInfo& output,
359  const StackDescriptor& descriptor,
360  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
361 
362  bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs,
363  const std::vector<const TensorInfo*>& outputs,
364  const StandInDescriptor& descriptor,
365  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
366 
367  bool IsStridedSliceSupported(const TensorInfo& input,
368  const TensorInfo& output,
369  const StridedSliceDescriptor& descriptor,
370  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
371 
372  bool IsSubtractionSupported(const TensorInfo& input0,
373  const TensorInfo& input1,
374  const TensorInfo& output,
375  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
376 
377  bool IsSwitchSupported(const TensorInfo& input0,
378  const TensorInfo& input1,
379  const TensorInfo& output0,
380  const TensorInfo& output1,
381  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
382 
384  const TensorInfo& input,
385  const TensorInfo& output,
386  const TransposeConvolution2dDescriptor& descriptor,
387  const TensorInfo& weights,
388  const Optional<TensorInfo>& biases,
389  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
390 
391  bool IsTransposeSupported(const TensorInfo& input,
392  const TensorInfo& output,
393  const TransposeDescriptor& descriptor,
394  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
395 
396 };
397 
398 } // 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.
virtual bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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 GatherDescriptor for the GatherLayer.
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 IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) 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 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 FillDescriptor for the FillLayer.
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 })