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