ArmNN
 22.11
RefLayerSupport.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 
9 namespace armnn
10 {
11 
13 {
14 public:
15  bool IsLayerSupported(const LayerType& type,
16  const std::vector<TensorInfo>& infos,
18  const Optional<LstmInputParamsInfo>& lstmParamsInfo,
21 
22  bool IsActivationSupported(const TensorInfo& input,
23  const TensorInfo& output,
24  const ActivationDescriptor& descriptor,
25  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
26 
27  bool IsAdditionSupported(const TensorInfo& input0,
28  const TensorInfo& input1,
29  const TensorInfo& output,
30  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
31 
32  bool IsArgMinMaxSupported(const TensorInfo& input,
33  const TensorInfo& output,
34  const ArgMinMaxDescriptor& descriptor,
35  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
36 
37  bool IsBatchMatMulSupported(const TensorInfo& inputX,
38  const TensorInfo& inputY,
39  const TensorInfo& output,
40  const BatchMatMulDescriptor& descriptor,
41  Optional<std::string &> reasonIfUnsupported = EmptyOptional()) const;
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& output,
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 IsConvertBf16ToFp32Supported(const TensorInfo& input,
81  const TensorInfo& output,
82  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
83 
84  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
85  const TensorInfo& output,
86  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
87 
88  bool IsConvertFp32ToBf16Supported(const TensorInfo& input,
89  const TensorInfo& output,
90  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
91 
92  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
93  const TensorInfo& output,
94  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
95 
96  bool IsConvolution2dSupported(const TensorInfo& input,
97  const TensorInfo& output,
98  const Convolution2dDescriptor& descriptor,
99  const TensorInfo& weights,
101  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
102 
103  bool IsConvolution3dSupported(const TensorInfo& input,
104  const TensorInfo& output,
105  const Convolution3dDescriptor& descriptor,
106  const TensorInfo& weights,
107  const Optional<TensorInfo>& biases,
108  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
109 
110  bool IsDebugSupported(const TensorInfo& input,
111  const TensorInfo& output,
112  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
113 
114  bool IsDepthToSpaceSupported(const TensorInfo& input,
115  const TensorInfo& output,
116  const DepthToSpaceDescriptor& descriptor,
117  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
118 
120  const TensorInfo& output,
121  const DepthwiseConvolution2dDescriptor& descriptor,
122  const TensorInfo& weights,
123  const Optional<TensorInfo>& biases,
124  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
125 
126  bool IsDequantizeSupported(const TensorInfo& input,
127  const TensorInfo& output,
128  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
129 
130  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
131  const TensorInfo& scores,
132  const TensorInfo& anchors,
133  const TensorInfo& detectionBoxes,
136  const TensorInfo& numDetections,
137  const DetectionPostProcessDescriptor& descriptor,
138  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
139 
141  const TensorInfo& output,
142  const DepthwiseConvolution2dDescriptor& descriptor,
143  const TensorInfo& weights,
144  const Optional<TensorInfo>& biases,
145  Optional<std::string&> reasonIfUnsupported =
146  EmptyOptional()) const override;
147 
148  bool IsDivisionSupported(const TensorInfo& input0,
149  const TensorInfo& input1,
150  const TensorInfo& output,
151  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
152 
153  bool IsElementwiseUnarySupported(const TensorInfo& input,
154  const TensorInfo& output,
155  const ElementwiseUnaryDescriptor& descriptor,
156  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
157 
158  bool IsFakeQuantizationSupported(const TensorInfo& input,
159  const FakeQuantizationDescriptor& descriptor,
160  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
161 
162  bool IsFillSupported(const TensorInfo& input,
163  const TensorInfo& output,
164  const FillDescriptor& descriptor,
165  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
166 
167  bool IsFloorSupported(const TensorInfo& input,
168  const TensorInfo& output,
169  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
170 
171  bool IsFullyConnectedSupported(const TensorInfo& input,
172  const TensorInfo& output,
173  const TensorInfo& weights,
174  const TensorInfo& biases,
175  const FullyConnectedDescriptor& descriptor,
176  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
177 
178  bool IsGatherNdSupported(const TensorInfo& input0,
179  const TensorInfo& input1,
180  const TensorInfo& output,
181  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
182 
183  bool IsGatherSupported(const TensorInfo& input0,
184  const TensorInfo& input1,
185  const TensorInfo& output,
186  const GatherDescriptor& descriptor,
187  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
188 
189  bool IsInputSupported(const TensorInfo& input,
190  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
191 
193  const TensorInfo& output,
194  const InstanceNormalizationDescriptor& descriptor,
195  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
196 
197  bool IsL2NormalizationSupported(const TensorInfo& input,
198  const TensorInfo& output,
199  const L2NormalizationDescriptor& descriptor,
200  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
201 
202  bool IsLogicalBinarySupported(const TensorInfo& input0,
203  const TensorInfo& input1,
204  const TensorInfo& output,
205  const LogicalBinaryDescriptor& descriptor,
206  Optional<std::string&> reasonIfUnsupported) const override;
207 
208  bool IsLogSoftmaxSupported(const TensorInfo& input,
209  const TensorInfo& output,
210  const LogSoftmaxDescriptor& descriptor,
211  Optional<std::string&> reasonIfUnsupported) const override;
212 
213  bool IsLstmSupported(const TensorInfo& input,
214  const TensorInfo& outputStateIn,
215  const TensorInfo& cellStateIn,
216  const TensorInfo& scratchBuffer,
217  const TensorInfo& outputStateOut,
218  const TensorInfo& cellStateOut,
219  const TensorInfo& output,
220  const LstmDescriptor& descriptor,
222  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
223 
224  bool IsMaximumSupported(const TensorInfo& input0,
225  const TensorInfo& input1,
226  const TensorInfo& output,
227  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
228 
229  bool IsMeanSupported(const TensorInfo& input,
230  const TensorInfo& output,
231  const MeanDescriptor& descriptor,
232  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
233 
234  bool IsMemCopySupported(const TensorInfo& input,
235  const TensorInfo& output,
236  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
237 
238  bool IsMinimumSupported(const TensorInfo& input0,
239  const TensorInfo& input1,
240  const TensorInfo& output,
241  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
242 
243  bool IsMultiplicationSupported(const TensorInfo& input0,
244  const TensorInfo& input1,
245  const TensorInfo& output,
246  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
247 
248  bool IsNormalizationSupported(const TensorInfo& input,
249  const TensorInfo& output,
250  const NormalizationDescriptor& descriptor,
251  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
252 
253  bool IsOutputSupported(const TensorInfo& output,
254  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
255 
256  bool IsPadSupported(const TensorInfo& input,
257  const TensorInfo& output,
258  const PadDescriptor& descriptor,
259  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
260 
261  bool IsPermuteSupported(const TensorInfo& input,
262  const TensorInfo& output,
263  const PermuteDescriptor& descriptor,
264  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
265 
266  bool IsPooling2dSupported(const TensorInfo& input,
267  const TensorInfo& output,
268  const Pooling2dDescriptor& descriptor,
269  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
270 
271  bool IsPooling3dSupported(const TensorInfo& input,
272  const TensorInfo& output,
273  const Pooling3dDescriptor& descriptor,
274  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
275 
276  bool IsQuantizeSupported(const TensorInfo& input,
277  const TensorInfo& output,
278  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
279 
280  bool IsQLstmSupported(const TensorInfo& input,
283  const TensorInfo& outputStateOut,
284  const TensorInfo& cellStateOut,
285  const TensorInfo& output,
286  const QLstmDescriptor& descriptor,
287  const LstmInputParamsInfo& paramsInfo,
288  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
289 
290  bool IsRankSupported(const TensorInfo& input,
291  const TensorInfo& output,
292  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
293 
294  bool IsReduceSupported(const TensorInfo& input,
295  const TensorInfo& output,
296  const ReduceDescriptor& descriptor,
297  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
298 
299  bool IsReshapeSupported(const TensorInfo& input,
300  const TensorInfo& output,
301  const ReshapeDescriptor& descriptor,
302  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
303 
304  bool IsResizeSupported(const TensorInfo& input,
305  const TensorInfo& output,
306  const ResizeDescriptor& descriptor,
307  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
308 
309  bool IsShapeSupported(const TensorInfo& input,
310  const TensorInfo& output,
311  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
312 
313  bool IsSliceSupported(const TensorInfo& input,
314  const TensorInfo& output,
315  const SliceDescriptor& descriptor,
316  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
317 
318  bool IsSoftmaxSupported(const TensorInfo& input,
319  const TensorInfo& output,
320  const SoftmaxDescriptor& descriptor,
321  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
322 
323  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
324  const TensorInfo& output,
325  const SpaceToBatchNdDescriptor& descriptor,
326  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
327 
328  bool IsSpaceToDepthSupported(const TensorInfo& input,
329  const TensorInfo& output,
330  const SpaceToDepthDescriptor& descriptor,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
332  const override;
333 
334  bool IsSplitterSupported(const TensorInfo& input,
335  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
336  const ViewsDescriptor& descriptor,
337  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
338 
339  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
340  const TensorInfo& output,
341  const StackDescriptor& descriptor,
342  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
343 
344  bool IsStridedSliceSupported(const TensorInfo& input,
345  const TensorInfo& output,
346  const StridedSliceDescriptor& descriptor,
347  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
348 
349  bool IsSubtractionSupported(const TensorInfo& input0,
350  const TensorInfo& input1,
351  const TensorInfo& output,
352  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
353 
354  bool IsPreluSupported(const TensorInfo& input,
355  const TensorInfo& alpha,
356  const TensorInfo& output,
357  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
358 
360  const TensorInfo& input,
361  const TensorInfo& output,
362  const TransposeConvolution2dDescriptor& descriptor,
363  const TensorInfo& weights,
364  const Optional<TensorInfo>& biases,
365  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
366 
367  bool IsTransposeSupported(const TensorInfo& input,
368  const TensorInfo& output,
369  const TransposeDescriptor& descriptor,
370  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
371 
373  const TensorInfo& input,
374  const TensorInfo& outputStateIn,
375  const TensorInfo& cellStateIn,
376  const TensorInfo& outputStateOut,
377  const TensorInfo& cellStateOut,
378  const TensorInfo& output,
379  const UnidirectionalSequenceLstmDescriptor& descriptor,
380  const LstmInputParamsInfo& paramsInfo,
381  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
382 };
383 
384 } // namespace armnn
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &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
A ViewsDescriptor for the SplitterLayer.
const TensorInfo const TensorInfo & anchors
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &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
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, 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 & output
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) const override
A ReshapeDescriptor for the ReshapeLayer.
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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=EmptyOptional()) const override
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:89
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & gamma
const std::vector< std::reference_wrapper< TensorInfo > > & outputs
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &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
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConvertBf16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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 const ActivationDescriptor Optional< std::string & > reasonIfUnsupported
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) 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
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) 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
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
const TensorInfo & scores
bool IsBatchMatMulSupported(const TensorInfo &inputX, const TensorInfo &inputY, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const
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 & detectionClasses
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const
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
Copyright (c) 2021 ARM Limited and Contributors.
const TensorInfo const ActivationDescriptor & descriptor
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
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 IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &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
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
const TensorInfo & outputStateIn
const TensorInfo const TensorInfo & previousCellStateIn
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & numDetections
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 ResizeDescriptor for the ResizeLayer.
const TensorInfo & alpha
Base class for all descriptors.
Definition: Descriptors.hpp:22
A StackDescriptor for the StackLayer.
bool IsOutputSupported(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 IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, 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
A PadDescriptor for the PadLayer.
bool IsConstantSupported(const TensorInfo &output, 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
const TensorInfo const TensorInfo & cellStateIn
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An LstmDescriptor for the LstmLayer.
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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.
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo const TensorInfo const TensorInfo const TensorInfo & outputStateOut
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & cellStateOut
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A GatherDescriptor for the GatherLayer.
const TensorInfo const TensorInfo const TensorInfo const TensorInfo & beta
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A QLstmDescriptor for the QLstmLayer.
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, 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
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
bool IsConvertFp32ToBf16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFloorSupported(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
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SliceDescriptor for the SliceLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
const TensorInfo & previousOutputIn
A BatchMatMulDescriptor for the BatchMatMul operator.
A Pooling3dDescriptor for the Pooling3dLayer.
bool IsDetectionPostProcessSupported(const TensorInfo &boxEncodings, const TensorInfo &scores, const TensorInfo &anchors, const TensorInfo &detectionBoxes, const TensorInfo &detectionClasses, const TensorInfo &detectionScores, const TensorInfo &numDetections, const DetectionPostProcessDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
bool IsLayerSupported(const LayerType &type, const std::vector< TensorInfo > &infos, const BaseDescriptor &descriptor, const Optional< LstmInputParamsInfo > &lstmParamsInfo, const Optional< QuantizedLstmInputParamsInfo > &, Optional< std::string &> reasonIfUnsupported) const override
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & detectionScores
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 IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &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
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo const Convolution2dDescriptor const TensorInfo const Optional< TensorInfo > & biases
A MeanDescriptor for the MeanLayer.
const TensorInfo const TensorInfo const TensorInfo & detectionBoxes
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
const TensorInfo & input1
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 IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsCastSupported(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.
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
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SoftmaxDescriptor for the SoftmaxLayer.
const TensorInfo const Convolution2dDescriptor const TensorInfo & weights
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &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