ArmNN
 22.02
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 IsGatherSupported(const TensorInfo& input0,
173  const TensorInfo& input1,
174  const TensorInfo& output,
175  const GatherDescriptor& descriptor,
176  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
177 
178  bool IsInputSupported(const TensorInfo& input,
179  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
180 
182  const TensorInfo& output,
183  const InstanceNormalizationDescriptor& descriptor,
184  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
185 
186  bool IsL2NormalizationSupported(const TensorInfo& input,
187  const TensorInfo& output,
188  const L2NormalizationDescriptor& descriptor,
189  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
190 
191  bool IsLogicalBinarySupported(const TensorInfo& input0,
192  const TensorInfo& input1,
193  const TensorInfo& output,
194  const LogicalBinaryDescriptor& descriptor,
195  Optional<std::string&> reasonIfUnsupported) const override;
196 
197  bool IsLogSoftmaxSupported(const TensorInfo& input,
198  const TensorInfo& output,
199  const LogSoftmaxDescriptor& descriptor,
200  Optional<std::string&> reasonIfUnsupported) const override;
201 
202  bool IsLstmSupported(const TensorInfo& input,
203  const TensorInfo& outputStateIn,
204  const TensorInfo& cellStateIn,
205  const TensorInfo& scratchBuffer,
206  const TensorInfo& outputStateOut,
207  const TensorInfo& cellStateOut,
208  const TensorInfo& output,
209  const LstmDescriptor& descriptor,
211  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
212 
213  bool IsMaximumSupported(const TensorInfo& input0,
214  const TensorInfo& input1,
215  const TensorInfo& output,
216  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
217 
218  bool IsMeanSupported(const TensorInfo& input,
219  const TensorInfo& output,
220  const MeanDescriptor& descriptor,
221  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
222 
223  bool IsMemCopySupported(const TensorInfo& input,
224  const TensorInfo& output,
225  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
226 
227  bool IsMinimumSupported(const TensorInfo& input0,
228  const TensorInfo& input1,
229  const TensorInfo& output,
230  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
231 
232  bool IsMultiplicationSupported(const TensorInfo& input0,
233  const TensorInfo& input1,
234  const TensorInfo& output,
235  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
236 
237  bool IsNormalizationSupported(const TensorInfo& input,
238  const TensorInfo& output,
239  const NormalizationDescriptor& descriptor,
240  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
241 
242  bool IsOutputSupported(const TensorInfo& output,
243  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
244 
245  bool IsPadSupported(const TensorInfo& input,
246  const TensorInfo& output,
247  const PadDescriptor& descriptor,
248  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
249 
250  bool IsPermuteSupported(const TensorInfo& input,
251  const TensorInfo& output,
252  const PermuteDescriptor& descriptor,
253  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
254 
255  bool IsPooling2dSupported(const TensorInfo& input,
256  const TensorInfo& output,
257  const Pooling2dDescriptor& descriptor,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
259 
260  bool IsPooling3dSupported(const TensorInfo& input,
261  const TensorInfo& output,
262  const Pooling3dDescriptor& descriptor,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsQuantizeSupported(const TensorInfo& input,
266  const TensorInfo& output,
267  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
268 
269  bool IsQLstmSupported(const TensorInfo& input,
272  const TensorInfo& outputStateOut,
273  const TensorInfo& cellStateOut,
274  const TensorInfo& output,
275  const QLstmDescriptor& descriptor,
276  const LstmInputParamsInfo& paramsInfo,
277  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
278 
279  bool IsRankSupported(const TensorInfo& input,
280  const TensorInfo& output,
281  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
282 
283  bool IsReduceSupported(const TensorInfo& input,
284  const TensorInfo& output,
285  const ReduceDescriptor& descriptor,
286  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
287 
288  bool IsReshapeSupported(const TensorInfo& input,
289  const TensorInfo& output,
290  const ReshapeDescriptor& descriptor,
291  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
292 
293  bool IsResizeSupported(const TensorInfo& input,
294  const TensorInfo& output,
295  const ResizeDescriptor& descriptor,
296  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
297 
298  bool IsShapeSupported(const TensorInfo& input,
299  const TensorInfo& output,
300  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
301 
302  bool IsSliceSupported(const TensorInfo& input,
303  const TensorInfo& output,
304  const SliceDescriptor& descriptor,
305  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
306 
307  bool IsSoftmaxSupported(const TensorInfo& input,
308  const TensorInfo& output,
309  const SoftmaxDescriptor& descriptor,
310  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
311 
312  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
313  const TensorInfo& output,
314  const SpaceToBatchNdDescriptor& descriptor,
315  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
316 
317  bool IsSpaceToDepthSupported(const TensorInfo& input,
318  const TensorInfo& output,
319  const SpaceToDepthDescriptor& descriptor,
320  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
321  const override;
322 
323  bool IsSplitterSupported(const TensorInfo& input,
324  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
325  const ViewsDescriptor& descriptor,
326  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
327 
328  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
329  const TensorInfo& output,
330  const StackDescriptor& descriptor,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
332 
333  bool IsStridedSliceSupported(const TensorInfo& input,
334  const TensorInfo& output,
335  const StridedSliceDescriptor& descriptor,
336  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
337 
338  bool IsSubtractionSupported(const TensorInfo& input0,
339  const TensorInfo& input1,
340  const TensorInfo& output,
341  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
342 
343  bool IsPreluSupported(const TensorInfo& input,
344  const TensorInfo& alpha,
345  const TensorInfo& output,
346  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
347 
349  const TensorInfo& input,
350  const TensorInfo& output,
351  const TransposeConvolution2dDescriptor& descriptor,
352  const TensorInfo& weights,
353  const Optional<TensorInfo>& biases,
354  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
355 
356  bool IsTransposeSupported(const TensorInfo& input,
357  const TensorInfo& output,
358  const TransposeDescriptor& descriptor,
359  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
360 
362  const TensorInfo& input,
363  const TensorInfo& outputStateIn,
364  const TensorInfo& cellStateIn,
365  const TensorInfo& output,
368  const UnidirectionalSequenceLstmDescriptor& descriptor,
369  const LstmInputParamsInfo& paramsInfo,
370  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
371 };
372 
373 } // namespace armnn
const TensorInfo const TensorInfo const TensorInfo const Optional< TensorInfo > & hiddenStateOutput
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
const TensorInfo const TensorInfo const TensorInfo const Optional< TensorInfo > const Optional< TensorInfo > & cellStateOutput
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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 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
const TensorInfo const TensorInfo const TensorInfo const TensorInfo & outputStateOut
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 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
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &output, const Optional< TensorInfo > &hiddenStateOutput, const Optional< TensorInfo > &cellStateOutput, const UnidirectionalSequenceLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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
const TensorInfo & output
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
const TensorInfo const TensorInfo const TensorInfo const TensorInfo const TensorInfo & cellStateOut
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:458