ArmNN
 22.05.01
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  bool IsLayerSupported(const LayerType& type,
22  const std::vector<TensorInfo>& infos,
24  const Optional<LstmInputParamsInfo>& lstmParamsInfo,
25  const Optional<QuantizedLstmInputParamsInfo>& quantizedLstmParamsInfo,
27 
28  bool IsActivationSupported(const TensorInfo& input,
29  const TensorInfo& output,
30  const ActivationDescriptor& descriptor,
31  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
32 
33  bool IsAdditionSupported(const TensorInfo& input0,
34  const TensorInfo& input1,
35  const TensorInfo& output,
36  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
37 
38  bool IsArgMinMaxSupported(const TensorInfo& input,
39  const TensorInfo& output,
40  const ArgMinMaxDescriptor& descriptor,
41  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
42 
43  bool IsBatchNormalizationSupported(const TensorInfo& input,
44  const TensorInfo& output,
45  const TensorInfo& mean,
46  const TensorInfo& var,
47  const TensorInfo& beta,
48  const TensorInfo& gamma,
49  const BatchNormalizationDescriptor& descriptor,
50  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
51 
52  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
53  const TensorInfo& output,
54  const BatchToSpaceNdDescriptor& descriptor,
55  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
56 
57  bool IsCastSupported(const TensorInfo& input,
58  const TensorInfo& output,
59  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
60 
61  bool IsChannelShuffleSupported(const TensorInfo& input,
62  const TensorInfo& output,
63  const ChannelShuffleDescriptor& descriptor,
64  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
65 
66  bool IsComparisonSupported(const TensorInfo& input0,
67  const TensorInfo& input1,
68  const TensorInfo& ouput,
69  const ComparisonDescriptor& descriptor,
70  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
71 
72  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
73  const TensorInfo& output,
74  const OriginsDescriptor& descriptor,
75  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
76 
77  bool IsConstantSupported(const TensorInfo& output,
78  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
79 
80  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
81  const TensorInfo& output,
82  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
83 
84  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
85  const TensorInfo& output,
86  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
87 
88  bool IsConvolution2dSupported(const TensorInfo& input,
89  const TensorInfo& output,
90  const Convolution2dDescriptor& descriptor,
91  const TensorInfo& weights,
93  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
94 
95  bool IsConvolution3dSupported(const TensorInfo& input,
96  const TensorInfo& output,
97  const Convolution3dDescriptor& 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 
106  bool IsDepthToSpaceSupported(const TensorInfo& input,
107  const TensorInfo& output,
108  const DepthToSpaceDescriptor& descriptor,
109  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
110 
112  const TensorInfo& output,
113  const DepthwiseConvolution2dDescriptor& descriptor,
114  const TensorInfo& weights,
115  const Optional<TensorInfo>& biases,
116  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
117 
119  const TensorInfo& output,
120  const DepthwiseConvolution2dDescriptor& descriptor,
121  const TensorInfo& weights,
122  const Optional<TensorInfo>& biases,
123  Optional<std::string&> reason = EmptyOptional()) const override;
124 
125  bool IsDivisionSupported(const TensorInfo& input0,
126  const TensorInfo& input1,
127  const TensorInfo& output,
128  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
129 
130  bool IsElementwiseUnarySupported(const TensorInfo& input,
131  const TensorInfo& ouput,
132  const ElementwiseUnaryDescriptor& descriptor,
133  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
134 
135  bool IsFillSupported(const TensorInfo& input,
136  const TensorInfo& output,
137  const FillDescriptor& descriptor,
138  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
139 
140  bool IsFloorSupported(const TensorInfo& input,
141  const TensorInfo& output,
142  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
143 
144  bool IsFullyConnectedSupported(const TensorInfo& input,
145  const TensorInfo& output,
146  const TensorInfo& weights,
147  const TensorInfo& biases,
148  const FullyConnectedDescriptor& descriptor,
149  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
150 
151  bool IsGatherNdSupported(const TensorInfo& input0,
152  const TensorInfo& input1,
153  const TensorInfo& output,
154  Optional<std::string&> reasonIfUnsupported) const;
155 
156  bool IsGatherSupported(const TensorInfo& input0,
157  const TensorInfo& input1,
158  const TensorInfo& output,
159  const GatherDescriptor& descriptor,
160  Optional<std::string&> reasonIfUnsupported) const override;
161 
162  bool IsInputSupported(const TensorInfo& input,
163  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
164 
166  const TensorInfo& output,
167  const InstanceNormalizationDescriptor& descriptor,
168  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
169 
170  bool IsL2NormalizationSupported(const TensorInfo& input,
171  const TensorInfo& output,
172  const L2NormalizationDescriptor& descriptor,
173  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
174 
175  bool IsLogicalBinarySupported(const TensorInfo& input0,
176  const TensorInfo& input1,
177  const TensorInfo& output,
178  const LogicalBinaryDescriptor& descriptor,
179  Optional<std::string&> reasonIfUnsupported) const override;
180 
181  bool IsLogSoftmaxSupported(const TensorInfo& input,
182  const TensorInfo& output,
183  const LogSoftmaxDescriptor& descriptor,
184  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
185 
186  bool IsLstmSupported(const TensorInfo& input,
187  const TensorInfo& outputStateIn,
188  const TensorInfo& cellStateIn,
189  const TensorInfo& scratchBuffer,
190  const TensorInfo& outputStateOut,
191  const TensorInfo& cellStateOut,
192  const TensorInfo& output,
193  const LstmDescriptor& descriptor,
195  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
196 
197  bool IsMaximumSupported(const TensorInfo& input0,
198  const TensorInfo& input1,
199  const TensorInfo& output,
200  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
201 
202  bool IsMeanSupported(const TensorInfo& input,
203  const TensorInfo& output,
204  const MeanDescriptor& descriptor,
205  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
206 
207  bool IsMinimumSupported(const TensorInfo& input0,
208  const TensorInfo& input1,
209  const TensorInfo& output,
210  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
211 
212  bool IsMultiplicationSupported(const TensorInfo& input0,
213  const TensorInfo& input1,
214  const TensorInfo& output,
215  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
216 
217  bool IsNormalizationSupported(const TensorInfo& input,
218  const TensorInfo& output,
219  const NormalizationDescriptor& descriptor,
220  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
221 
222  bool IsOutputSupported(const TensorInfo& output,
223  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
224 
225  bool IsPadSupported(const TensorInfo& input,
226  const TensorInfo& output,
227  const PadDescriptor& descriptor,
228  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
229 
230  bool IsPermuteSupported(const TensorInfo& input,
231  const TensorInfo& output,
232  const PermuteDescriptor& descriptor,
233  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
234 
235  bool IsPooling2dSupported(const TensorInfo& input,
236  const TensorInfo& output,
237  const Pooling2dDescriptor& descriptor,
238  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
239 
240  bool IsPooling3dSupported(const TensorInfo& input,
241  const TensorInfo& output,
242  const Pooling3dDescriptor& descriptor,
243  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
244 
245  bool IsPreluSupported(const TensorInfo& input,
246  const TensorInfo& alpha,
247  const TensorInfo& output,
248  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
249 
250  bool IsQLstmSupported(const TensorInfo& input,
253  const TensorInfo& outputStateOut,
254  const TensorInfo& cellStateOut,
255  const TensorInfo& output,
256  const QLstmDescriptor& descriptor,
257  const LstmInputParamsInfo& paramsInfo,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
259 
260  bool IsQuantizedLstmSupported(const TensorInfo& input,
261  const TensorInfo& previousCellStateIn,
262  const TensorInfo& previousOutputIn,
263  const TensorInfo& cellStateOut,
264  const TensorInfo& output,
265  const QuantizedLstmInputParamsInfo& paramsInfo,
266  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
267 
268  bool IsQuantizeSupported(const TensorInfo& input,
269  const TensorInfo& output,
270  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
271 
272  bool IsReduceSupported(const TensorInfo& input,
273  const TensorInfo& output,
274  const ReduceDescriptor& descriptor,
275  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
276 
277  bool IsReshapeSupported(const TensorInfo& input,
278  const TensorInfo& output,
279  const ReshapeDescriptor& descriptor,
280  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
281 
282  bool IsResizeSupported(const TensorInfo& input,
283  const TensorInfo& output,
284  const ResizeDescriptor& descriptor,
285  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
286 
287  bool IsSliceSupported(const TensorInfo& input,
288  const TensorInfo& output,
289  const SliceDescriptor& descriptor,
290  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
291 
292  bool IsSoftmaxSupported(const TensorInfo& input,
293  const TensorInfo& output,
294  const SoftmaxDescriptor& descriptor,
295  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
296 
297  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
298  const TensorInfo& output,
299  const SpaceToBatchNdDescriptor& descriptor,
300  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
301 
302  bool IsSpaceToDepthSupported(const TensorInfo& input,
303  const TensorInfo& output,
304  const SpaceToDepthDescriptor& 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 
328  const TensorInfo& output,
329  const TransposeConvolution2dDescriptor& descriptor,
330  const TensorInfo& weights,
331  const Optional<TensorInfo>& biases,
332  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
333 
334  bool IsTransposeSupported(const TensorInfo& input,
335  const TensorInfo& output,
336  const TransposeDescriptor& descriptor,
337  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
338 
340  const TensorInfo& outputStateIn,
341  const TensorInfo& cellStateIn,
342  const TensorInfo& outputStateOut,
343  const TensorInfo& cellStateOut,
344  const TensorInfo& output,
345  const UnidirectionalSequenceLstmDescriptor& descriptor,
346  const LstmInputParamsInfo& paramsInfo,
347  Optional<std::string&> reasonIfUnsupported) const override;
348 
349 private:
351 
352 };
353 
354 } // 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.
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo const LstmDescriptor const LstmInputParamsInfo & paramsInfo
const TensorInfo & output
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const UnidirectionalSequenceLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported) const override
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:89
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & gamma
const TensorInfo const TensorInfo & ouput
const std::vector< std::reference_wrapper< TensorInfo > > & outputs
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
const TensorInfo const ActivationDescriptor Optional< std::string & > reasonIfUnsupported
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
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.
const TensorInfo const ActivationDescriptor & descriptor
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const OriginsDescriptor &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 IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo & outputStateIn
const TensorInfo const TensorInfo & previousCellStateIn
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
const TensorInfo & alpha
Base class for all descriptors.
Definition: Descriptors.hpp:22
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
const TensorInfo const TensorInfo & cellStateIn
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.
const TensorInfo const TensorInfo const TensorInfo & var
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:67
An OriginsDescriptor for the ConcatLayer.
A ReduceDescriptor for the REDUCE operators.
A FullyConnectedDescriptor for the FullyConnectedLayer.
const TensorInfo const TensorInfo const TensorInfo const TensorInfo & outputStateOut
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & cellStateOut
A GatherDescriptor for the GatherLayer.
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo const TensorInfo const TensorInfo const TensorInfo & beta
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:36
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, 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
A SliceDescriptor for the SliceLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo & previousOutputIn
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Pooling3dDescriptor for the Pooling3dLayer.
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
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
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
const TensorInfo const Convolution2dDescriptor const TensorInfo const Optional< TensorInfo > & biases
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
const TensorInfo & input1
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.
const TensorInfo const TensorInfo const TensorInfo & scratchBuffer
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
A ChannelShuffleDescriptor for the ChannelShuffle operator.
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, 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 IsLayerSupported(const LayerType &type, const std::vector< TensorInfo > &infos, const BaseDescriptor &descriptor, const Optional< LstmInputParamsInfo > &lstmParamsInfo, const Optional< QuantizedLstmInputParamsInfo > &quantizedLstmParamsInfo, Optional< std::string &> reasonIfUnsupported) const override
const TensorInfo const Convolution2dDescriptor const TensorInfo & weights
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &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 DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
const TensorInfo const TensorInfo & mean
A PermuteDescriptor for the PermuteLayer.
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below...
Definition: Types.hpp:467
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