ArmNN
 21.11
LayerSupportBase.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 
6 #pragma once
7 
9 
10 namespace armnn
11 {
12 
14 {
15 public:
16  bool IsActivationSupported(const TensorInfo& input,
17  const TensorInfo& output,
18  const ActivationDescriptor& descriptor,
19  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
20 
21  bool IsAdditionSupported(const TensorInfo& input0,
22  const TensorInfo& input1,
23  const TensorInfo& output,
24  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
25 
26  bool IsArgMinMaxSupported(const TensorInfo& input,
27  const TensorInfo& output,
28  const ArgMinMaxDescriptor& descriptor,
29  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
30 
31  bool IsBatchNormalizationSupported(const TensorInfo& input,
32  const TensorInfo& output,
33  const TensorInfo& mean,
34  const TensorInfo& var,
35  const TensorInfo& beta,
36  const TensorInfo& gamma,
37  const BatchNormalizationDescriptor& descriptor,
38  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
39 
40  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
41  const TensorInfo& output,
42  const BatchToSpaceNdDescriptor& descriptor,
43  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
44 
45  bool IsCastSupported(const TensorInfo& input,
46  const TensorInfo& output,
47  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
48 
49  bool IsChannelShuffleSupported(const TensorInfo& input,
50  const TensorInfo& output,
51  const ChannelShuffleDescriptor& descriptor,
52  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
53 
54  bool IsComparisonSupported(const TensorInfo& input0,
55  const TensorInfo& input1,
56  const TensorInfo& output,
57  const ComparisonDescriptor& descriptor,
58  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
59 
60  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
61  const TensorInfo& output,
62  const OriginsDescriptor& descriptor,
63  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
64 
65  bool IsConstantSupported(const TensorInfo& output,
66  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
67 
68  bool IsConvertBf16ToFp32Supported(const TensorInfo& input,
69  const TensorInfo& output,
70  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
71 
72  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
73  const TensorInfo& output,
74  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
75 
76  bool IsConvertFp32ToBf16Supported(const TensorInfo& input,
77  const TensorInfo& output,
78  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
79 
81  const TensorInfo& input,
82  const TensorInfo& output,
83  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
84 
85  bool IsConvolution2dSupported(const TensorInfo& input,
86  const TensorInfo& output,
87  const Convolution2dDescriptor& descriptor,
88  const TensorInfo& weights,
89  const Optional<TensorInfo>& biases,
90  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
91 
92  bool IsConvolution3dSupported(const TensorInfo& input,
93  const TensorInfo& output,
94  const Convolution3dDescriptor& descriptor,
95  const TensorInfo& weights,
96  const Optional<TensorInfo>& biases,
97  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
98 
99  bool IsDebugSupported(const TensorInfo& input,
100  const TensorInfo& output,
101  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
102 
103  bool IsDepthToSpaceSupported(const TensorInfo& input,
104  const TensorInfo& output,
105  const DepthToSpaceDescriptor& descriptor,
106  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
107 
109  const TensorInfo& output,
110  const DepthwiseConvolution2dDescriptor& descriptor,
111  const TensorInfo& weights,
112  const Optional<TensorInfo>& biases,
113  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
114 
115  bool IsDequantizeSupported(const TensorInfo& input,
116  const TensorInfo& output,
117  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
118 
119  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
120  const TensorInfo& scores,
121  const TensorInfo& anchors,
122  const TensorInfo& detectionBoxes,
123  const TensorInfo& detectionClasses,
124  const TensorInfo& detectionScores,
125  const TensorInfo& numDetections,
126  const DetectionPostProcessDescriptor& descriptor,
127  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
128 
130  const TensorInfo& output,
131  const DepthwiseConvolution2dDescriptor& descriptor,
132  const TensorInfo& weights,
133  const Optional<TensorInfo>& biases,
134  Optional<std::string&> reasonIfUnsupported =
135  EmptyOptional()) const override;
136 
137  bool IsDivisionSupported(const TensorInfo& input0,
138  const TensorInfo& input1,
139  const TensorInfo& output,
140  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
141 
142  bool IsElementwiseUnarySupported(const TensorInfo& input,
143  const TensorInfo& output,
144  const ElementwiseUnaryDescriptor& descriptor,
145  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
146 
147  bool IsFakeQuantizationSupported(const TensorInfo& input,
148  const FakeQuantizationDescriptor& descriptor,
149  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
150 
151  virtual bool IsFillSupported(const TensorInfo& input,
152  const TensorInfo& output,
153  const FillDescriptor& descriptor,
154  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
155 
156  bool IsFloorSupported(const TensorInfo& input,
157  const TensorInfo& output,
158  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
159 
160  bool IsFullyConnectedSupported(const TensorInfo& input,
161  const TensorInfo& output,
162  const TensorInfo& weights,
163  const TensorInfo& biases,
164  const FullyConnectedDescriptor& descriptor,
165  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
166 
167  bool IsGatherSupported(const TensorInfo& input0,
168  const TensorInfo& input1,
169  const TensorInfo& output,
170  const GatherDescriptor& descriptor,
171  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
172 
173  bool IsInputSupported(const TensorInfo& input,
174  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
175 
177  const TensorInfo& input,
178  const TensorInfo& output,
179  const InstanceNormalizationDescriptor& descriptor,
180  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
181 
182  bool IsL2NormalizationSupported(const TensorInfo& input,
183  const TensorInfo& output,
184  const L2NormalizationDescriptor& descriptor,
185  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
186 
187  bool IsLogicalBinarySupported(const TensorInfo& input0,
188  const TensorInfo& input1,
189  const TensorInfo& output,
190  const LogicalBinaryDescriptor& descriptor,
191  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
192 
193  bool IsLogicalUnarySupported(const TensorInfo& input,
194  const TensorInfo& output,
195  const ElementwiseUnaryDescriptor& descriptor,
196  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
197 
198  bool IsLogSoftmaxSupported(const TensorInfo& input,
199  const TensorInfo& output,
200  const LogSoftmaxDescriptor& descriptor,
201  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
202 
203  bool IsLstmSupported(const TensorInfo& input,
204  const TensorInfo& outputStateIn,
205  const TensorInfo& cellStateIn,
206  const TensorInfo& scratchBuffer,
207  const TensorInfo& outputStateOut,
208  const TensorInfo& cellStateOut,
209  const TensorInfo& output,
210  const LstmDescriptor& descriptor,
211  const LstmInputParamsInfo& paramsInfo,
212  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
213 
214  bool IsMaximumSupported(const TensorInfo& input0,
215  const TensorInfo& input1,
216  const TensorInfo& output,
217  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
218 
219  bool IsMeanSupported(const TensorInfo& input,
220  const TensorInfo& output,
221  const MeanDescriptor& descriptor,
222  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
223 
224  bool IsMemCopySupported(const TensorInfo& input,
225  const TensorInfo& output,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
227 
228  bool IsMemImportSupported(const TensorInfo& input,
229  const TensorInfo& output,
230  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
231 
232  bool IsMergeSupported(const TensorInfo& input0,
233  const TensorInfo& input1,
234  const TensorInfo& output,
235  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
236 
237  bool IsMinimumSupported(const TensorInfo& input0,
238  const TensorInfo& input1,
239  const TensorInfo& output,
240  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
241 
242  bool IsMultiplicationSupported(const TensorInfo& input0,
243  const TensorInfo& input1,
244  const TensorInfo& output,
245  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
246 
247  bool IsNormalizationSupported(const TensorInfo& input,
248  const TensorInfo& output,
249  const NormalizationDescriptor& descriptor,
250  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
251 
252  bool IsOutputSupported(const TensorInfo& output,
253  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
254 
255  bool IsPadSupported(const TensorInfo& input,
256  const TensorInfo& output,
257  const PadDescriptor& descriptor,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
259 
260  bool IsPermuteSupported(const TensorInfo& input,
261  const TensorInfo& output,
262  const PermuteDescriptor& descriptor,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsPooling2dSupported(const TensorInfo& input,
266  const TensorInfo& output,
267  const Pooling2dDescriptor& descriptor,
268  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
269 
270  bool IsPreCompiledSupported(const TensorInfo& input,
271  const PreCompiledDescriptor& descriptor,
272  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
273 
274  bool IsPreluSupported(const TensorInfo& input,
275  const TensorInfo& alpha,
276  const TensorInfo& output,
277  Optional<std::string &> reasonIfUnsupported) const override;
278 
279  bool IsQuantizeSupported(const TensorInfo& input,
280  const TensorInfo& output,
281  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
282 
283  bool IsQLstmSupported(const TensorInfo& input,
284  const TensorInfo& previousOutputIn,
285  const TensorInfo& previousCellStateIn,
286  const TensorInfo& outputStateOut,
287  const TensorInfo& cellStateOut,
288  const TensorInfo& output,
289  const QLstmDescriptor& descriptor,
290  const LstmInputParamsInfo& paramsInfo,
291  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
292 
293  bool IsQuantizedLstmSupported(const TensorInfo& input,
294  const TensorInfo& previousCellStateIn,
295  const TensorInfo& previousOutputIn,
296  const TensorInfo& cellStateOut,
297  const TensorInfo& output,
298  const QuantizedLstmInputParamsInfo& paramsInfo,
299  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
300 
301  bool IsRankSupported(const TensorInfo& input,
302  const TensorInfo& output,
303  Optional<std::string&> reasonIfUnsupported) const override;
304 
305  bool IsReduceSupported(const TensorInfo& input,
306  const TensorInfo& output,
307  const ReduceDescriptor& descriptor,
308  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
309 
310  bool IsReshapeSupported(const TensorInfo& input,
311  const TensorInfo& output,
312  const ReshapeDescriptor& descriptor,
313  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
314 
315  bool IsResizeSupported(const TensorInfo& input,
316  const TensorInfo& output,
317  const ResizeDescriptor& descriptor,
318  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
319 
320  bool IsShapeSupported(const TensorInfo& input,
321  const TensorInfo& output,
322  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
323 
324  bool IsSliceSupported(const TensorInfo& input,
325  const TensorInfo& output,
326  const SliceDescriptor& descriptor,
327  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
328 
329  bool IsSoftmaxSupported(const TensorInfo& input,
330  const TensorInfo& output,
331  const SoftmaxDescriptor& descriptor,
332  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
333 
334  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
335  const TensorInfo& output,
336  const SpaceToBatchNdDescriptor& descriptor,
337  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
338 
339  bool IsSpaceToDepthSupported(const TensorInfo& input,
340  const TensorInfo& output,
341  const SpaceToDepthDescriptor& descriptor,
342  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
343 
344  bool IsSplitterSupported(const TensorInfo& input,
345  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
346  const ViewsDescriptor& descriptor,
347  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
348 
349  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
350  const TensorInfo& output,
351  const StackDescriptor& descriptor,
352  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
353 
354  bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs,
355  const std::vector<const TensorInfo*>& outputs,
356  const StandInDescriptor& descriptor,
357  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
358 
359  bool IsStridedSliceSupported(const TensorInfo& input,
360  const TensorInfo& output,
361  const StridedSliceDescriptor& descriptor,
362  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
363 
364  bool IsSubtractionSupported(const TensorInfo& input0,
365  const TensorInfo& input1,
366  const TensorInfo& output,
367  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
368 
369  bool IsSwitchSupported(const TensorInfo& input0,
370  const TensorInfo& input1,
371  const TensorInfo& output0,
372  const TensorInfo& output1,
373  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
374 
376  const TensorInfo& input,
377  const TensorInfo& output,
378  const TransposeConvolution2dDescriptor& descriptor,
379  const TensorInfo& weights,
380  const Optional<TensorInfo>& biases,
381  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
382 
383  bool IsTransposeSupported(const TensorInfo& input,
384  const TensorInfo& output,
385  const TransposeDescriptor& descriptor,
386  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
387 
389  const TensorInfo& input,
390  const TensorInfo& outputStateIn,
391  const TensorInfo& cellStateIn,
392  const TensorInfo& output,
393  const Optional<TensorInfo>& hiddenStateOutput,
394  const Optional<TensorInfo>& cellStateOutput,
395  const LstmDescriptor& descriptor,
396  const LstmInputParamsInfo& paramsInfo,
397  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
398 
399 };
400 
401 } // namespace armnn
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ViewsDescriptor for the SplitterLayer.
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
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const override
A ReshapeDescriptor for the ReshapeLayer.
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
bool IsMemImportSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:78
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
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, 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 IsQuantizedLstmSupported(const TensorInfo &input, const TensorInfo &previousCellStateIn, const TensorInfo &previousOutputIn, const TensorInfo &cellStateOut, const TensorInfo &output, const QuantizedLstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDebugSupported(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 IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &output, const Optional< TensorInfo > &hiddenStateOutput, const Optional< TensorInfo > &cellStateOutput, const LstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
Copyright (c) 2021 ARM Limited and Contributors.
bool IsStandInSupported(const std::vector< const TensorInfo *> &inputs, const std::vector< const TensorInfo *> &outputs, const StandInDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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 IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
virtual bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPreCompiledSupported(const TensorInfo &input, const PreCompiledDescriptor &descriptor, 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
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
A StackDescriptor for the StackLayer.
A PadDescriptor for the PadLayer.
bool IsSwitchSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output0, const TensorInfo &output1, 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 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
An LstmDescriptor for the LstmLayer.
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:56
An OriginsDescriptor for the ConcatLayer.
A ReduceDescriptor for the REDUCE operators.
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A FullyConnectedDescriptor for the FullyConnectedLayer.
bool IsLogicalUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A GatherDescriptor for the GatherLayer.
A StandInDescriptor for the StandIn layer.
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A QLstmDescriptor for the QLstmLayer.
bool IsMergeSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, 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
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:25
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, 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 SliceDescriptor for the SliceLayer.
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const override
A Convolution3dDescriptor for the Convolution3dLayer.
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 SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &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
bool IsConvertBf16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
bool 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 ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:98
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 IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &scratchBuffer, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const LstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A MeanDescriptor for the MeanLayer.
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConstantSupported(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
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
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 IsOutputSupported(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
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A PreCompiledDescriptor for the PreCompiledLayer.
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
bool IsConvertFp32ToBf16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
A ChannelShuffleDescriptor for the ChannelShuffle operator.
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SoftmaxDescriptor for the SoftmaxLayer.
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsBatchNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &mean, const TensorInfo &var, const TensorInfo &beta, const TensorInfo &gamma, const BatchNormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A PermuteDescriptor for the PermuteLayer.
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