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