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