ArmNN
 21.11
NeonLayerSupport.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 
10 
11 namespace armnn
12 {
13 
15 {
16 public:
19 
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 ConcatDescriptor& 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,
94  const Optional<TensorInfo>& biases,
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 IsDepthToSpaceSupported(const TensorInfo& input,
105  const TensorInfo& output,
106  const DepthToSpaceDescriptor& descriptor,
107  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
108 
109 
111  const TensorInfo& output,
112  const DepthwiseConvolution2dDescriptor& descriptor,
113  const TensorInfo& weights,
114  const Optional<TensorInfo>& biases,
115  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
116 
117  bool IsDequantizeSupported(const TensorInfo& input,
118  const TensorInfo& output,
119  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
120 
122  const TensorInfo& output,
123  const DepthwiseConvolution2dDescriptor& descriptor,
124  const TensorInfo& weights,
125  const Optional<TensorInfo>& biases,
126  Optional<std::string&> reason = EmptyOptional()) const override;
127 
128  bool IsElementwiseUnarySupported(const TensorInfo& input,
129  const TensorInfo& output,
130  const ElementwiseUnaryDescriptor& descriptor,
131  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
132 
133  bool IsFillSupported(const TensorInfo& input,
134  const TensorInfo& output,
135  const FillDescriptor& descriptor,
136  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
137 
138  bool IsFloorSupported(const TensorInfo& input,
139  const TensorInfo& output,
140  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
141 
142  bool IsFullyConnectedSupported(const TensorInfo& input,
143  const TensorInfo& output,
144  const TensorInfo& weights,
145  const TensorInfo& biases,
146  const FullyConnectedDescriptor& descriptor,
147  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
148 
149  bool IsGatherSupported(const TensorInfo& input0,
150  const TensorInfo& input1,
151  const TensorInfo& output,
152  const GatherDescriptor& descriptor,
153  Optional<std::string&> reasonIfUnsupported) const override;
154 
155  bool IsInputSupported(const TensorInfo& input,
156  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
157 
159  const TensorInfo& output,
160  const InstanceNormalizationDescriptor& descriptor,
161  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
162 
163  bool IsL2NormalizationSupported(const TensorInfo& input,
164  const TensorInfo& output,
165  const L2NormalizationDescriptor& descriptor,
166  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
167 
168  bool IsLogicalBinarySupported(const TensorInfo& input0,
169  const TensorInfo& input1,
170  const TensorInfo& output,
171  const LogicalBinaryDescriptor& descriptor,
172  Optional<std::string&> reasonIfUnsupported) const override;
173 
174  bool IsLogSoftmaxSupported(const TensorInfo& input,
175  const TensorInfo& output,
176  const LogSoftmaxDescriptor& descriptor,
177  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
178 
179  bool IsLstmSupported(const TensorInfo& input,
180  const TensorInfo& outputStateIn,
181  const TensorInfo& cellStateIn,
182  const TensorInfo& scratchBuffer,
183  const TensorInfo& outputStateOut,
184  const TensorInfo& cellStateOut,
185  const TensorInfo& output,
186  const LstmDescriptor& descriptor,
187  const LstmInputParamsInfo& paramsInfo,
188  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
189 
190  bool IsMaximumSupported(const TensorInfo& input0,
191  const TensorInfo& input1,
192  const TensorInfo& output,
193  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
194 
195  bool IsMeanSupported(const TensorInfo& input,
196  const TensorInfo& output,
197  const MeanDescriptor& descriptor,
198  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
199 
200  bool IsMinimumSupported(const TensorInfo& input0,
201  const TensorInfo& input1,
202  const TensorInfo& output,
203  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
204 
205  bool IsMultiplicationSupported(const TensorInfo& input0,
206  const TensorInfo& input1,
207  const TensorInfo& output,
208  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
209 
210  bool IsDivisionSupported(const TensorInfo& input0,
211  const TensorInfo& input1,
212  const TensorInfo& output,
213  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
214 
215  bool IsNormalizationSupported(const TensorInfo& input,
216  const TensorInfo& output,
217  const NormalizationDescriptor& descriptor,
218  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
219 
220  bool IsOutputSupported(const TensorInfo& output,
221  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
222 
223  bool IsPadSupported(const TensorInfo& input,
224  const TensorInfo& output,
225  const PadDescriptor& descriptor,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
227 
228  bool IsPermuteSupported(const TensorInfo& input,
229  const TensorInfo& output,
230  const PermuteDescriptor& descriptor,
231  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
232 
233  bool IsPooling2dSupported(const TensorInfo& input,
234  const TensorInfo& output,
235  const Pooling2dDescriptor& descriptor,
236  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
237 
238  bool IsPreluSupported(const TensorInfo& input,
239  const TensorInfo& alpha,
240  const TensorInfo& output,
241  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
242 
243  bool IsQLstmSupported(const TensorInfo& input,
244  const TensorInfo& previousOutputIn,
245  const TensorInfo& previousCellStateIn,
246  const TensorInfo& outputStateOut,
247  const TensorInfo& cellStateOut,
248  const TensorInfo& output,
249  const QLstmDescriptor& descriptor,
250  const LstmInputParamsInfo& paramsInfo,
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 IsQuantizedLstmSupported(const TensorInfo& input,
258  const TensorInfo& cellStateIn,
259  const TensorInfo& outputStateIn,
260  const TensorInfo& cellStateOut,
261  const TensorInfo& outputStateOut,
262  const QuantizedLstmInputParamsInfo& paramsInfo,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsReduceSupported(const TensorInfo& input,
266  const TensorInfo& output,
267  const ReduceDescriptor& descriptor,
268  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
269 
270  bool IsReshapeSupported(const TensorInfo& input,
271  const TensorInfo& output,
272  const ReshapeDescriptor& descriptor,
273  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
274 
275  bool IsResizeSupported(const TensorInfo& input,
276  const TensorInfo& output,
277  const ResizeDescriptor& descriptor,
278  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
279 
280  bool IsSliceSupported(const TensorInfo& input,
281  const TensorInfo& output,
282  const SliceDescriptor& descriptor,
283  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
284 
285  bool IsSoftmaxSupported(const TensorInfo& input,
286  const TensorInfo& output,
287  const SoftmaxDescriptor& descriptor,
288  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
289 
290  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
291  const TensorInfo& output,
292  const SpaceToBatchNdDescriptor& descriptor,
293  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
294 
295  bool IsSpaceToDepthSupported(const TensorInfo& input,
296  const TensorInfo& output,
297  const SpaceToDepthDescriptor& descriptor,
298  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
299 
300  bool IsSplitterSupported(const TensorInfo& input,
301  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
302  const ViewsDescriptor& descriptor,
303  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
304 
305  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
306  const TensorInfo& output,
307  const StackDescriptor& descriptor,
308  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
309 
310  bool IsStridedSliceSupported(const TensorInfo& input,
311  const TensorInfo& output,
312  const StridedSliceDescriptor& descriptor,
313  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
314 
315  bool IsSubtractionSupported(const TensorInfo& input0,
316  const TensorInfo& input1,
317  const TensorInfo& output,
318  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
319 
321  const TensorInfo& output,
322  const TransposeConvolution2dDescriptor& descriptor,
323  const TensorInfo& weights,
324  const Optional<TensorInfo>& biases,
325  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
326 
327  bool IsTransposeSupported(const TensorInfo& input,
328  const TensorInfo& output,
329  const TransposeDescriptor& descriptor,
330  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
331 
332 private:
334 
335 }; // class NeonLayerSupport
336 
337 } // namespace armnn
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &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 IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ViewsDescriptor for the SplitterLayer.
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
A ReshapeDescriptor for the ReshapeLayer.
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) const override
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reason=EmptyOptional()) const override
bool IsQuantizedLstmSupported(const TensorInfo &input, const TensorInfo &cellStateIn, const TensorInfo &outputStateIn, const TensorInfo &cellStateOut, const TensorInfo &outputStateOut, const QuantizedLstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:78
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, 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 IsCastSupported(const TensorInfo &input, 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 IsConvertFp32ToBf16Supported(const TensorInfo &input, const TensorInfo &output, 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
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const ConcatDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
bool IsConstantSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
Copyright (c) 2021 ARM Limited and Contributors.
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &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 IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
A StackDescriptor for the StackLayer.
A PadDescriptor for the PadLayer.
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) 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
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An LstmDescriptor for the LstmLayer.
bool IsInputSupported(const TensorInfo &input, 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
std::shared_ptr< IBackendModelContext > IBackendSpecificModelContextPtr
A L2NormalizationDescriptor for the L2NormalizationLayer.
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsOutputSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:56
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An OriginsDescriptor for the ConcatLayer.
A ReduceDescriptor for the REDUCE operators.
A FullyConnectedDescriptor for the FullyConnectedLayer.
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, 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
A GatherDescriptor for the GatherLayer.
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, 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
A QLstmDescriptor for the QLstmLayer.
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:25
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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 SliceDescriptor for the SliceLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &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
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 SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
bool IsQuantizeSupported(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 IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:98
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
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A MeanDescriptor for the MeanLayer.
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 IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &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
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, 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
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 IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &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 Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
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 IsConvertBf16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
A ChannelShuffleDescriptor for the ChannelShuffle operator.
A SoftmaxDescriptor for the SoftmaxLayer.
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A PermuteDescriptor for the PermuteLayer.
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override