ArmNN
 22.05
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 IsBatchNormalizationSupported(const TensorInfo& input,
38  const TensorInfo& output,
39  const TensorInfo& mean,
40  const TensorInfo& var,
41  const TensorInfo& beta,
42  const TensorInfo& gamma,
43  const BatchNormalizationDescriptor& descriptor,
44  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
45 
46  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
47  const TensorInfo& output,
48  const BatchToSpaceNdDescriptor& descriptor,
49  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
50 
51  bool IsCastSupported(const TensorInfo& input,
52  const TensorInfo& output,
53  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
54 
55  bool IsChannelShuffleSupported(const TensorInfo& input,
56  const TensorInfo& output,
57  const ChannelShuffleDescriptor& descriptor,
58  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
59 
60  bool IsComparisonSupported(const TensorInfo& input0,
61  const TensorInfo& input1,
62  const TensorInfo& output,
63  const ComparisonDescriptor& descriptor,
64  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
65 
66  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
67  const TensorInfo& output,
68  const OriginsDescriptor& descriptor,
69  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
70 
71  bool IsConstantSupported(const TensorInfo& output,
72  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
73 
74  bool IsConvertBf16ToFp32Supported(const TensorInfo& input,
75  const TensorInfo& output,
76  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
77 
78  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
79  const TensorInfo& output,
80  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
81 
82  bool IsConvertFp32ToBf16Supported(const TensorInfo& input,
83  const TensorInfo& output,
84  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
85 
86  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
87  const TensorInfo& output,
88  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
89 
90  bool IsConvolution2dSupported(const TensorInfo& input,
91  const TensorInfo& output,
92  const Convolution2dDescriptor& descriptor,
93  const TensorInfo& weights,
95  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
96 
97  bool IsConvolution3dSupported(const TensorInfo& input,
98  const TensorInfo& output,
99  const Convolution3dDescriptor& descriptor,
100  const TensorInfo& weights,
101  const Optional<TensorInfo>& biases,
102  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
103 
104  bool IsDebugSupported(const TensorInfo& input,
105  const TensorInfo& output,
106  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
107 
108  bool IsDepthToSpaceSupported(const TensorInfo& input,
109  const TensorInfo& output,
110  const DepthToSpaceDescriptor& descriptor,
111  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
112 
114  const TensorInfo& output,
115  const DepthwiseConvolution2dDescriptor& descriptor,
116  const TensorInfo& weights,
117  const Optional<TensorInfo>& biases,
118  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
119 
120  bool IsDequantizeSupported(const TensorInfo& input,
121  const TensorInfo& output,
122  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
123 
124  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
125  const TensorInfo& scores,
126  const TensorInfo& anchors,
127  const TensorInfo& detectionBoxes,
130  const TensorInfo& numDetections,
131  const DetectionPostProcessDescriptor& descriptor,
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&> reasonIfUnsupported =
140  EmptyOptional()) const override;
141 
142  bool IsDivisionSupported(const TensorInfo& input0,
143  const TensorInfo& input1,
144  const TensorInfo& output,
145  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
146 
147  bool IsElementwiseUnarySupported(const TensorInfo& input,
148  const TensorInfo& output,
149  const ElementwiseUnaryDescriptor& descriptor,
150  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
151 
152  bool IsFakeQuantizationSupported(const TensorInfo& input,
153  const FakeQuantizationDescriptor& descriptor,
154  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
155 
156  bool IsFillSupported(const TensorInfo& input,
157  const TensorInfo& output,
158  const FillDescriptor& descriptor,
159  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
160 
161  bool IsFloorSupported(const TensorInfo& input,
162  const TensorInfo& output,
163  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
164 
165  bool IsFullyConnectedSupported(const TensorInfo& input,
166  const TensorInfo& output,
167  const TensorInfo& weights,
168  const TensorInfo& biases,
169  const FullyConnectedDescriptor& descriptor,
170  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
171 
172  bool IsGatherNdSupported(const TensorInfo& input0,
173  const TensorInfo& input1,
174  const TensorInfo& output,
175  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
176 
177  bool IsGatherSupported(const TensorInfo& input0,
178  const TensorInfo& input1,
179  const TensorInfo& output,
180  const GatherDescriptor& descriptor,
181  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
182 
183  bool IsInputSupported(const TensorInfo& input,
184  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
185 
187  const TensorInfo& output,
188  const InstanceNormalizationDescriptor& descriptor,
189  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
190 
191  bool IsL2NormalizationSupported(const TensorInfo& input,
192  const TensorInfo& output,
193  const L2NormalizationDescriptor& descriptor,
194  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
195 
196  bool IsLogicalBinarySupported(const TensorInfo& input0,
197  const TensorInfo& input1,
198  const TensorInfo& output,
199  const LogicalBinaryDescriptor& descriptor,
200  Optional<std::string&> reasonIfUnsupported) const override;
201 
202  bool IsLogSoftmaxSupported(const TensorInfo& input,
203  const TensorInfo& output,
204  const LogSoftmaxDescriptor& descriptor,
205  Optional<std::string&> reasonIfUnsupported) const override;
206 
207  bool IsLstmSupported(const TensorInfo& input,
208  const TensorInfo& outputStateIn,
209  const TensorInfo& cellStateIn,
210  const TensorInfo& scratchBuffer,
211  const TensorInfo& outputStateOut,
212  const TensorInfo& cellStateOut,
213  const TensorInfo& output,
214  const LstmDescriptor& descriptor,
216  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
217 
218  bool IsMaximumSupported(const TensorInfo& input0,
219  const TensorInfo& input1,
220  const TensorInfo& output,
221  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
222 
223  bool IsMeanSupported(const TensorInfo& input,
224  const TensorInfo& output,
225  const MeanDescriptor& descriptor,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
227 
228  bool IsMemCopySupported(const TensorInfo& input,
229  const TensorInfo& output,
230  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
231 
232  bool IsMinimumSupported(const TensorInfo& input0,
233  const TensorInfo& input1,
234  const TensorInfo& output,
235  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
236 
237  bool IsMultiplicationSupported(const TensorInfo& input0,
238  const TensorInfo& input1,
239  const TensorInfo& output,
240  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
241 
242  bool IsNormalizationSupported(const TensorInfo& input,
243  const TensorInfo& output,
244  const NormalizationDescriptor& descriptor,
245  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
246 
247  bool IsOutputSupported(const TensorInfo& output,
248  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
249 
250  bool IsPadSupported(const TensorInfo& input,
251  const TensorInfo& output,
252  const PadDescriptor& descriptor,
253  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
254 
255  bool IsPermuteSupported(const TensorInfo& input,
256  const TensorInfo& output,
257  const PermuteDescriptor& descriptor,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
259 
260  bool IsPooling2dSupported(const TensorInfo& input,
261  const TensorInfo& output,
262  const Pooling2dDescriptor& descriptor,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsPooling3dSupported(const TensorInfo& input,
266  const TensorInfo& output,
267  const Pooling3dDescriptor& descriptor,
268  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
269 
270  bool IsQuantizeSupported(const TensorInfo& input,
271  const TensorInfo& output,
272  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
273 
274  bool IsQLstmSupported(const TensorInfo& input,
277  const TensorInfo& outputStateOut,
278  const TensorInfo& cellStateOut,
279  const TensorInfo& output,
280  const QLstmDescriptor& descriptor,
281  const LstmInputParamsInfo& paramsInfo,
282  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
283 
284  bool IsRankSupported(const TensorInfo& input,
285  const TensorInfo& output,
286  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
287 
288  bool IsReduceSupported(const TensorInfo& input,
289  const TensorInfo& output,
290  const ReduceDescriptor& descriptor,
291  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
292 
293  bool IsReshapeSupported(const TensorInfo& input,
294  const TensorInfo& output,
295  const ReshapeDescriptor& descriptor,
296  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
297 
298  bool IsResizeSupported(const TensorInfo& input,
299  const TensorInfo& output,
300  const ResizeDescriptor& descriptor,
301  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
302 
303  bool IsShapeSupported(const TensorInfo& input,
304  const TensorInfo& output,
305  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
306 
307  bool IsSliceSupported(const TensorInfo& input,
308  const TensorInfo& output,
309  const SliceDescriptor& descriptor,
310  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
311 
312  bool IsSoftmaxSupported(const TensorInfo& input,
313  const TensorInfo& output,
314  const SoftmaxDescriptor& descriptor,
315  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
316 
317  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
318  const TensorInfo& output,
319  const SpaceToBatchNdDescriptor& descriptor,
320  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
321 
322  bool IsSpaceToDepthSupported(const TensorInfo& input,
323  const TensorInfo& output,
324  const SpaceToDepthDescriptor& descriptor,
325  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
326  const override;
327 
328  bool IsSplitterSupported(const TensorInfo& input,
329  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
330  const ViewsDescriptor& descriptor,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
332 
333  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
334  const TensorInfo& output,
335  const StackDescriptor& descriptor,
336  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
337 
338  bool IsStridedSliceSupported(const TensorInfo& input,
339  const TensorInfo& output,
340  const StridedSliceDescriptor& descriptor,
341  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
342 
343  bool IsSubtractionSupported(const TensorInfo& input0,
344  const TensorInfo& input1,
345  const TensorInfo& output,
346  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
347 
348  bool IsPreluSupported(const TensorInfo& input,
349  const TensorInfo& alpha,
350  const TensorInfo& output,
351  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
352 
354  const TensorInfo& input,
355  const TensorInfo& output,
356  const TransposeConvolution2dDescriptor& descriptor,
357  const TensorInfo& weights,
358  const Optional<TensorInfo>& biases,
359  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
360 
361  bool IsTransposeSupported(const TensorInfo& input,
362  const TensorInfo& output,
363  const TransposeDescriptor& descriptor,
364  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
365 
367  const TensorInfo& input,
368  const TensorInfo& outputStateIn,
369  const TensorInfo& cellStateIn,
370  const TensorInfo& outputStateOut,
371  const TensorInfo& cellStateOut,
372  const TensorInfo& output,
373  const UnidirectionalSequenceLstmDescriptor& descriptor,
374  const LstmInputParamsInfo& paramsInfo,
375  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
376 };
377 
378 } // 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 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 ResizeBilinearDescriptor for the ResizeBilinearLayer.
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 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:467