ArmNN
 21.11
RefLayerSupport.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 namespace armnn
10 {
11 
13 {
14 public:
15  bool IsActivationSupported(const TensorInfo& input,
16  const TensorInfo& output,
17  const ActivationDescriptor& descriptor,
18  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
19 
20  bool IsAdditionSupported(const TensorInfo& input0,
21  const TensorInfo& input1,
22  const TensorInfo& output,
23  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
24 
25  bool IsArgMinMaxSupported(const TensorInfo& input,
26  const TensorInfo& output,
27  const ArgMinMaxDescriptor& descriptor,
28  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
29 
30  bool IsBatchNormalizationSupported(const TensorInfo& input,
31  const TensorInfo& output,
32  const TensorInfo& mean,
33  const TensorInfo& var,
34  const TensorInfo& beta,
35  const TensorInfo& gamma,
36  const BatchNormalizationDescriptor& descriptor,
37  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
38 
39  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
40  const TensorInfo& output,
41  const BatchToSpaceNdDescriptor& descriptor,
42  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
43 
44  bool IsCastSupported(const TensorInfo& input,
45  const TensorInfo& output,
46  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
47 
48  bool IsChannelShuffleSupported(const TensorInfo& input,
49  const TensorInfo& output,
50  const ChannelShuffleDescriptor& descriptor,
51  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
52 
53  bool IsComparisonSupported(const TensorInfo& input0,
54  const TensorInfo& input1,
55  const TensorInfo& output,
56  const ComparisonDescriptor& descriptor,
57  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
58 
59  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
60  const TensorInfo& output,
61  const ConcatDescriptor& descriptor,
62  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
63 
64  bool IsConstantSupported(const TensorInfo& output,
65  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
66 
67  bool IsConvertBf16ToFp32Supported(const TensorInfo& input,
68  const TensorInfo& output,
69  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
70 
71  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
72  const TensorInfo& output,
73  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
74 
75  bool IsConvertFp32ToBf16Supported(const TensorInfo& input,
76  const TensorInfo& output,
77  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
78 
79  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
80  const TensorInfo& output,
81  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
82 
83  bool IsConvolution2dSupported(const TensorInfo& input,
84  const TensorInfo& output,
85  const Convolution2dDescriptor& descriptor,
86  const TensorInfo& weights,
87  const Optional<TensorInfo>& biases,
88  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
89 
90  bool IsConvolution3dSupported(const TensorInfo& input,
91  const TensorInfo& output,
92  const Convolution3dDescriptor& descriptor,
93  const TensorInfo& weights,
94  const Optional<TensorInfo>& biases,
95  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
96 
97  bool IsDebugSupported(const TensorInfo& input,
98  const TensorInfo& output,
99  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
100 
101  bool IsDepthToSpaceSupported(const TensorInfo& input,
102  const TensorInfo& output,
103  const DepthToSpaceDescriptor& descriptor,
104  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
105 
107  const TensorInfo& output,
108  const DepthwiseConvolution2dDescriptor& descriptor,
109  const TensorInfo& weights,
110  const Optional<TensorInfo>& biases,
111  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
112 
113  bool IsDequantizeSupported(const TensorInfo& input,
114  const TensorInfo& output,
115  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
116 
117  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
118  const TensorInfo& scores,
119  const TensorInfo& anchors,
120  const TensorInfo& detectionBoxes,
121  const TensorInfo& detectionClasses,
122  const TensorInfo& detectionScores,
123  const TensorInfo& numDetections,
124  const DetectionPostProcessDescriptor& descriptor,
125  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
126 
128  const TensorInfo& output,
129  const DepthwiseConvolution2dDescriptor& descriptor,
130  const TensorInfo& weights,
131  const Optional<TensorInfo>& biases,
132  Optional<std::string&> reasonIfUnsupported =
133  EmptyOptional()) const override;
134 
135  bool IsDivisionSupported(const TensorInfo& input0,
136  const TensorInfo& input1,
137  const TensorInfo& output,
138  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
139 
140  bool IsElementwiseUnarySupported(const TensorInfo& input,
141  const TensorInfo& output,
142  const ElementwiseUnaryDescriptor& descriptor,
143  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
144 
145  bool IsFakeQuantizationSupported(const TensorInfo& input,
146  const FakeQuantizationDescriptor& descriptor,
147  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
148 
149  bool IsFillSupported(const TensorInfo& input,
150  const TensorInfo& output,
151  const FillDescriptor& descriptor,
152  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
153 
154  bool IsFloorSupported(const TensorInfo& input,
155  const TensorInfo& output,
156  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
157 
158  bool IsFullyConnectedSupported(const TensorInfo& input,
159  const TensorInfo& output,
160  const TensorInfo& weights,
161  const TensorInfo& biases,
162  const FullyConnectedDescriptor& descriptor,
163  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
164 
165  bool IsGatherSupported(const TensorInfo& input0,
166  const TensorInfo& input1,
167  const TensorInfo& output,
168  const GatherDescriptor& descriptor,
169  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
170 
171  bool IsInputSupported(const TensorInfo& input,
172  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
173 
175  const TensorInfo& output,
176  const InstanceNormalizationDescriptor& descriptor,
177  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
178 
179  bool IsL2NormalizationSupported(const TensorInfo& input,
180  const TensorInfo& output,
181  const L2NormalizationDescriptor& descriptor,
182  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
183 
184  bool IsLogicalBinarySupported(const TensorInfo& input0,
185  const TensorInfo& input1,
186  const TensorInfo& output,
187  const LogicalBinaryDescriptor& descriptor,
188  Optional<std::string&> reasonIfUnsupported) const override;
189 
190  bool IsLogSoftmaxSupported(const TensorInfo& input,
191  const TensorInfo& output,
192  const LogSoftmaxDescriptor& descriptor,
193  Optional<std::string&> reasonIfUnsupported) const override;
194 
195  bool IsLstmSupported(const TensorInfo& input,
196  const TensorInfo& outputStateIn,
197  const TensorInfo& cellStateIn,
198  const TensorInfo& scratchBuffer,
199  const TensorInfo& outputStateOut,
200  const TensorInfo& cellStateOut,
201  const TensorInfo& output,
202  const LstmDescriptor& descriptor,
203  const LstmInputParamsInfo& paramsInfo,
204  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
205 
206  bool IsMaximumSupported(const TensorInfo& input0,
207  const TensorInfo& input1,
208  const TensorInfo& output,
209  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
210 
211  bool IsMeanSupported(const TensorInfo& input,
212  const TensorInfo& output,
213  const MeanDescriptor& descriptor,
214  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
215 
216  bool IsMemCopySupported(const TensorInfo& input,
217  const TensorInfo& output,
218  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
219 
220  bool IsMinimumSupported(const TensorInfo& input0,
221  const TensorInfo& input1,
222  const TensorInfo& output,
223  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
224 
225  bool IsMultiplicationSupported(const TensorInfo& input0,
226  const TensorInfo& input1,
227  const TensorInfo& output,
228  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
229 
230  bool IsNormalizationSupported(const TensorInfo& input,
231  const TensorInfo& output,
232  const NormalizationDescriptor& descriptor,
233  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
234 
235  bool IsOutputSupported(const TensorInfo& output,
236  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
237 
238  bool IsPadSupported(const TensorInfo& input,
239  const TensorInfo& output,
240  const PadDescriptor& descriptor,
241  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
242 
243  bool IsPermuteSupported(const TensorInfo& input,
244  const TensorInfo& output,
245  const PermuteDescriptor& descriptor,
246  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
247 
248  bool IsPooling2dSupported(const TensorInfo& input,
249  const TensorInfo& output,
250  const Pooling2dDescriptor& descriptor,
251  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
252 
253  bool IsQuantizeSupported(const TensorInfo& input,
254  const TensorInfo& output,
255  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
256 
257  bool IsQLstmSupported(const TensorInfo& input,
258  const TensorInfo& previousOutputIn,
259  const TensorInfo& previousCellStateIn,
260  const TensorInfo& outputStateOut,
261  const TensorInfo& cellStateOut,
262  const TensorInfo& output,
263  const QLstmDescriptor& descriptor,
264  const LstmInputParamsInfo& paramsInfo,
265  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
266 
267  bool IsRankSupported(const TensorInfo& input,
268  const TensorInfo& output,
269  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
270 
271  bool IsReduceSupported(const TensorInfo& input,
272  const TensorInfo& output,
273  const ReduceDescriptor& descriptor,
274  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
275 
276  bool IsReshapeSupported(const TensorInfo& input,
277  const TensorInfo& output,
278  const ReshapeDescriptor& descriptor,
279  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
280 
281  bool IsResizeSupported(const TensorInfo& input,
282  const TensorInfo& output,
283  const ResizeDescriptor& descriptor,
284  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
285 
286  bool IsShapeSupported(const TensorInfo& input,
287  const TensorInfo& output,
288  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
289 
290  bool IsSliceSupported(const TensorInfo& input,
291  const TensorInfo& output,
292  const SliceDescriptor& descriptor,
293  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
294 
295  bool IsSoftmaxSupported(const TensorInfo& input,
296  const TensorInfo& output,
297  const SoftmaxDescriptor& descriptor,
298  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
299 
300  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
301  const TensorInfo& output,
302  const SpaceToBatchNdDescriptor& descriptor,
303  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
304 
305  bool IsSpaceToDepthSupported(const TensorInfo& input,
306  const TensorInfo& output,
307  const SpaceToDepthDescriptor& descriptor,
308  Optional<std::string&> reasonIfUnsupported = EmptyOptional())
309  const override;
310 
311  bool IsSplitterSupported(const TensorInfo& input,
312  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
313  const ViewsDescriptor& descriptor,
314  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
315 
316  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
317  const TensorInfo& output,
318  const StackDescriptor& descriptor,
319  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
320 
321  bool IsStridedSliceSupported(const TensorInfo& input,
322  const TensorInfo& output,
323  const StridedSliceDescriptor& descriptor,
324  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
325 
326  bool IsSubtractionSupported(const TensorInfo& input0,
327  const TensorInfo& input1,
328  const TensorInfo& output,
329  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
330 
331  bool IsPreluSupported(const TensorInfo& input,
332  const TensorInfo& alpha,
333  const TensorInfo& output,
334  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
335 
337  const TensorInfo& input,
338  const TensorInfo& output,
339  const TransposeConvolution2dDescriptor& descriptor,
340  const TensorInfo& weights,
341  const Optional<TensorInfo>& biases,
342  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
343 
344  bool IsTransposeSupported(const TensorInfo& input,
345  const TensorInfo& output,
346  const TransposeDescriptor& descriptor,
347  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
348 
350  const TensorInfo& input,
351  const TensorInfo& outputStateIn,
352  const TensorInfo& cellStateIn,
353  const TensorInfo& output,
354  const Optional<TensorInfo>& hiddenStateOutput,
355  const Optional<TensorInfo>& cellStateOutput,
356  const UnidirectionalSequenceLstmDescriptor& descriptor,
357  const LstmInputParamsInfo& paramsInfo,
358  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
359 };
360 
361 } // 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.
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
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
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:78
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
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
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.
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &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
Copyright (c) 2021 ARM Limited and Contributors.
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
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
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.
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
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An LstmDescriptor for the LstmLayer.
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:56
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.
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:25
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.
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.
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.
Definition: Descriptors.hpp:98
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 IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const ConcatDescriptor &descriptor, 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
A MeanDescriptor for the MeanLayer.
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
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
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.
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
A PermuteDescriptor for the PermuteLayer.