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