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