ArmNN
 22.02
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 IsBatchNormalizationSupported(const TensorInfo& input,
45  const TensorInfo& output,
46  const TensorInfo& mean,
47  const TensorInfo& var,
48  const TensorInfo& beta,
49  const TensorInfo& gamma,
50  const BatchNormalizationDescriptor& descriptor,
51  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
52 
53  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
54  const TensorInfo& output,
55  const BatchToSpaceNdDescriptor& descriptor,
56  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
57 
58  bool IsCastSupported(const TensorInfo& input,
59  const TensorInfo& output,
60  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
61 
62  bool IsChannelShuffleSupported(const TensorInfo& input,
63  const TensorInfo& output,
64  const ChannelShuffleDescriptor& descriptor,
65  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
66 
67  bool IsComparisonSupported(const TensorInfo& input0,
68  const TensorInfo& input1,
69  const TensorInfo& output,
70  const ComparisonDescriptor& descriptor,
71  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
72 
73  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
74  const TensorInfo& output,
75  const OriginsDescriptor& descriptor,
76  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
77 
78  bool IsConstantSupported(const TensorInfo& output,
79  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
80 
81  bool IsConvertBf16ToFp32Supported(const TensorInfo& input,
82  const TensorInfo& output,
83  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
84 
85  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
86  const TensorInfo& output,
87  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
88 
89  bool IsConvertFp32ToBf16Supported(const TensorInfo& input,
90  const TensorInfo& output,
91  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
92 
93  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
94  const TensorInfo& output,
95  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
96 
97  bool IsConvolution2dSupported(const TensorInfo& input,
98  const TensorInfo& output,
99  const Convolution2dDescriptor& descriptor,
100  const TensorInfo& weights,
102  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
103 
104  bool IsConvolution3dSupported(const TensorInfo& input,
105  const TensorInfo& output,
106  const Convolution3dDescriptor& descriptor,
107  const TensorInfo& weights,
108  const Optional<TensorInfo>& biases,
109  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
110 
111  bool IsDepthToSpaceSupported(const TensorInfo& input,
112  const TensorInfo& output,
113  const DepthToSpaceDescriptor& descriptor,
114  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
115 
116 
118  const TensorInfo& output,
119  const DepthwiseConvolution2dDescriptor& descriptor,
120  const TensorInfo& weights,
121  const Optional<TensorInfo>& biases,
122  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
123 
124  bool IsDequantizeSupported(const TensorInfo& input,
125  const TensorInfo& output,
126  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
127 
129  const TensorInfo& output,
130  const DepthwiseConvolution2dDescriptor& descriptor,
131  const TensorInfo& weights,
132  const Optional<TensorInfo>& biases,
133  Optional<std::string&> reason = EmptyOptional()) const override;
134 
135  bool IsElementwiseUnarySupported(const TensorInfo& input,
136  const TensorInfo& output,
137  const ElementwiseUnaryDescriptor& descriptor,
138  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
139 
140  bool IsFillSupported(const TensorInfo& input,
141  const TensorInfo& output,
142  const FillDescriptor& descriptor,
143  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
144 
145  bool IsFloorSupported(const TensorInfo& input,
146  const TensorInfo& output,
147  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
148 
149  bool IsFullyConnectedSupported(const TensorInfo& input,
150  const TensorInfo& output,
151  const TensorInfo& weights,
152  const TensorInfo& biases,
153  const FullyConnectedDescriptor& descriptor,
154  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
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 IsDivisionSupported(const TensorInfo& input0,
218  const TensorInfo& input1,
219  const TensorInfo& output,
220  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
221 
222  bool IsNormalizationSupported(const TensorInfo& input,
223  const TensorInfo& output,
224  const NormalizationDescriptor& descriptor,
225  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
226 
227  bool IsOutputSupported(const TensorInfo& output,
228  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
229 
230  bool IsPadSupported(const TensorInfo& input,
231  const TensorInfo& output,
232  const PadDescriptor& descriptor,
233  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
234 
235  bool IsPermuteSupported(const TensorInfo& input,
236  const TensorInfo& output,
237  const PermuteDescriptor& descriptor,
238  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
239 
240  bool IsPooling2dSupported(const TensorInfo& input,
241  const TensorInfo& output,
242  const Pooling2dDescriptor& 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 IsQuantizeSupported(const TensorInfo& input,
261  const TensorInfo& output,
262  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
263 
264  bool IsQuantizedLstmSupported(const TensorInfo& input,
265  const TensorInfo& cellStateIn,
266  const TensorInfo& outputStateIn,
267  const TensorInfo& cellStateOut,
268  const TensorInfo& outputStateOut,
269  const QuantizedLstmInputParamsInfo& paramsInfo,
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 
339 private:
341 
342 }; // class NeonLayerSupport
343 
344 } // 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
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.
const TensorInfo const ActivationDescriptor Optional< std::string & > reasonIfUnsupported
const TensorInfo const TensorInfo const TensorInfo const TensorInfo & outputStateOut
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 ResizeBilinearDescriptor for the ResizeBilinearLayer.
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.
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A GatherDescriptor for the GatherLayer.
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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
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
const TensorInfo & output
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
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.
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.
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & cellStateOut
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:458
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override