ArmNN
 21.08
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 IsCastSupported(const TensorInfo& input,
56  const TensorInfo& output,
57  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
58 
59  bool IsComparisonSupported(const TensorInfo& input0,
60  const TensorInfo& input1,
61  const TensorInfo& ouput,
62  const ComparisonDescriptor& descriptor,
63  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
64 
65  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
66  const TensorInfo& output,
67  const ConcatDescriptor& descriptor,
68  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
69 
70  bool IsConstantSupported(const TensorInfo& output,
71  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
72 
73  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
74  const TensorInfo& output,
75  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
76 
77  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
78  const TensorInfo& output,
79  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
80 
81  bool IsConvolution2dSupported(const TensorInfo& input,
82  const TensorInfo& output,
83  const Convolution2dDescriptor& descriptor,
84  const TensorInfo& weights,
85  const Optional<TensorInfo>& biases,
86  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
87 
88  bool IsDequantizeSupported(const TensorInfo& input,
89  const TensorInfo& output,
90  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
91 
92  bool IsDepthToSpaceSupported(const TensorInfo& input,
93  const TensorInfo& output,
94  const DepthToSpaceDescriptor& descriptor,
95  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
96 
98  const TensorInfo& output,
99  const DepthwiseConvolution2dDescriptor& descriptor,
100  const TensorInfo& weights,
101  const Optional<TensorInfo>& biases,
102  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
103 
105  const TensorInfo& output,
106  const DepthwiseConvolution2dDescriptor& descriptor,
107  const TensorInfo& weights,
108  const Optional<TensorInfo>& biases,
109  Optional<std::string&> reason = EmptyOptional()) const override;
110 
111  bool IsDivisionSupported(const TensorInfo& input0,
112  const TensorInfo& input1,
113  const TensorInfo& output,
114  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
115 
116  bool IsElementwiseUnarySupported(const TensorInfo& input,
117  const TensorInfo& ouput,
118  const ElementwiseUnaryDescriptor& descriptor,
119  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
120 
121  bool IsFillSupported(const TensorInfo& input,
122  const TensorInfo& output,
123  const FillDescriptor& descriptor,
124  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
125 
126  bool IsFloorSupported(const TensorInfo& input,
127  const TensorInfo& output,
128  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
129 
130  bool IsFullyConnectedSupported(const TensorInfo& input,
131  const TensorInfo& output,
132  const TensorInfo& weights,
133  const TensorInfo& biases,
134  const FullyConnectedDescriptor& descriptor,
135  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
136 
137  bool IsGatherSupported(const TensorInfo& input0,
138  const TensorInfo& input1,
139  const TensorInfo& output,
140  const GatherDescriptor& descriptor,
141  Optional<std::string&> reasonIfUnsupported) const override;
142 
143  ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead")
144  bool IsGreaterSupported(const TensorInfo& input0,
145  const TensorInfo& input1,
146  const TensorInfo& ouput,
147  Optional<std::string&> reasonIfUnsupported) const override;
148 
149  bool IsInputSupported(const TensorInfo& input,
150  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
151 
153  const TensorInfo& output,
154  const InstanceNormalizationDescriptor& descriptor,
155  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
156 
157  bool IsL2NormalizationSupported(const TensorInfo& input,
158  const TensorInfo& output,
159  const L2NormalizationDescriptor& descriptor,
160  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
161 
162  bool IsLogicalBinarySupported(const TensorInfo& input0,
163  const TensorInfo& input1,
164  const TensorInfo& output,
165  const LogicalBinaryDescriptor& descriptor,
166  Optional<std::string&> reasonIfUnsupported) const override;
167 
168  bool IsLogSoftmaxSupported(const TensorInfo& input,
169  const TensorInfo& output,
170  const LogSoftmaxDescriptor& descriptor,
171  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
172 
173  bool IsLstmSupported(const TensorInfo& input,
174  const TensorInfo& outputStateIn,
175  const TensorInfo& cellStateIn,
176  const TensorInfo& scratchBuffer,
177  const TensorInfo& outputStateOut,
178  const TensorInfo& cellStateOut,
179  const TensorInfo& output,
180  const LstmDescriptor& descriptor,
181  const LstmInputParamsInfo& paramsInfo,
182  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
183 
184  bool IsMaximumSupported(const TensorInfo& input0,
185  const TensorInfo& input1,
186  const TensorInfo& output,
187  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
188 
189  bool IsMeanSupported(const TensorInfo& input,
190  const TensorInfo& output,
191  const MeanDescriptor& descriptor,
192  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
193 
194  ARMNN_DEPRECATED_MSG("Use IsConcatSupported instead")
195  bool IsMergerSupported(const std::vector<const TensorInfo*> inputs,
196  const TensorInfo& output,
197  const MergerDescriptor& descriptor,
198  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
199 
200  bool IsMinimumSupported(const TensorInfo& input0,
201  const TensorInfo& input1,
202  const TensorInfo& output,
203  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
204 
205  bool IsMultiplicationSupported(const TensorInfo& input0,
206  const TensorInfo& input1,
207  const TensorInfo& output,
208  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
209 
210  bool IsNormalizationSupported(const TensorInfo& input,
211  const TensorInfo& output,
212  const NormalizationDescriptor& descriptor,
213  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
214 
215  bool IsOutputSupported(const TensorInfo& output,
216  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
217 
218  bool IsPadSupported(const TensorInfo& input,
219  const TensorInfo& output,
220  const PadDescriptor& descriptor,
221  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
222 
223  bool IsPermuteSupported(const TensorInfo& input,
224  const TensorInfo& output,
225  const PermuteDescriptor& descriptor,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
227 
228  bool IsPooling2dSupported(const TensorInfo& input,
229  const TensorInfo& output,
230  const Pooling2dDescriptor& descriptor,
231  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
232 
233  bool IsPreluSupported(const TensorInfo& input,
234  const TensorInfo& alpha,
235  const TensorInfo& output,
236  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
237 
238  bool IsQLstmSupported(const TensorInfo& input,
239  const TensorInfo& previousOutputIn,
240  const TensorInfo& previousCellStateIn,
241  const TensorInfo& outputStateOut,
242  const TensorInfo& cellStateOut,
243  const TensorInfo& output,
244  const QLstmDescriptor& descriptor,
245  const LstmInputParamsInfo& paramsInfo,
246  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
247 
248  bool IsQuantizedLstmSupported(const TensorInfo& input,
249  const TensorInfo& previousCellStateIn,
250  const TensorInfo& previousOutputIn,
251  const TensorInfo& cellStateOut,
252  const TensorInfo& output,
253  const QuantizedLstmInputParamsInfo& paramsInfo,
254  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
255 
256  bool IsQuantizeSupported(const TensorInfo& input,
257  const TensorInfo& output,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
259 
260  bool IsReduceSupported(const TensorInfo& input,
261  const TensorInfo& output,
262  const ReduceDescriptor& descriptor,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsReshapeSupported(const TensorInfo& input,
266  const TensorInfo& output,
267  const ReshapeDescriptor& descriptor,
268  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
269 
270  bool IsResizeSupported(const TensorInfo& input,
271  const TensorInfo& output,
272  const ResizeDescriptor& descriptor,
273  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
274 
275  ARMNN_DEPRECATED_MSG("Use IsResizeSupported instead")
276  bool IsResizeBilinearSupported(const TensorInfo& input,
277  const TensorInfo& output,
278  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
279 
280  ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead")
281  bool IsRsqrtSupported(const TensorInfo& input,
282  const TensorInfo& output,
283  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
284 
285  bool IsSliceSupported(const TensorInfo& input,
286  const TensorInfo& output,
287  const SliceDescriptor& descriptor,
288  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
289 
290  bool IsSoftmaxSupported(const TensorInfo& input,
291  const TensorInfo& output,
292  const SoftmaxDescriptor& descriptor,
293  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
294 
295  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
296  const TensorInfo& output,
297  const SpaceToBatchNdDescriptor& descriptor,
298  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
299 
300  bool IsSpaceToDepthSupported(const TensorInfo& input,
301  const TensorInfo& output,
302  const SpaceToDepthDescriptor& descriptor,
303  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
304 
305  ARMNN_DEPRECATED_MSG("Use IsSplitterSupported with outputs instead")
306  bool IsSplitterSupported(const TensorInfo& input,
307  const ViewsDescriptor& descriptor,
308  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
309 
310  bool IsSplitterSupported(const TensorInfo& input,
311  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
312  const ViewsDescriptor& descriptor,
313  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
314 
315  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
316  const TensorInfo& output,
317  const StackDescriptor& descriptor,
318  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
319 
320  bool IsStridedSliceSupported(const TensorInfo& input,
321  const TensorInfo& output,
322  const StridedSliceDescriptor& descriptor,
323  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
324 
325  bool IsSubtractionSupported(const TensorInfo& input0,
326  const TensorInfo& input1,
327  const TensorInfo& output,
328  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
329 
331  const TensorInfo& output,
332  const TransposeConvolution2dDescriptor& descriptor,
333  const TensorInfo& weights,
334  const Optional<TensorInfo>& biases,
335  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
336 
337  bool IsTransposeSupported(const TensorInfo& input,
338  const TensorInfo& output,
339  const TransposeDescriptor& descriptor,
340  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
341 
342 private:
344 
345 };
346 
347 } // 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.
bool IsCastSupported(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 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