ArmNN
 25.11
Loading...
Searching...
No Matches
ClLayerSupport.hpp
Go to the documentation of this file.
1//
2// Copyright © 2017-2024 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
8
10
11namespace armnn
12{
13
15{
16public:
20
21 bool IsLayerSupported(const LayerType& type,
22 const std::vector<TensorInfo>& infos,
23 const BaseDescriptor& descriptor,
24 const Optional<LstmInputParamsInfo>& lstmParamsInfo,
25 const Optional<QuantizedLstmInputParamsInfo>& quantizedLstmParamsInfo,
26 Optional<std::string&> reasonIfUnsupported) const;
27
28 bool IsActivationSupported(const TensorInfo& input,
29 const TensorInfo& output,
30 const ActivationDescriptor& descriptor,
31 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
32
33 ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsLayerSupported instead", "24.02")
34 bool IsAdditionSupported(const TensorInfo& input0,
35 const TensorInfo& input1,
36 const TensorInfo& output,
37 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
38
39 bool IsArgMinMaxSupported(const TensorInfo& input,
40 const TensorInfo& output,
41 const ArgMinMaxDescriptor& descriptor,
42 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
43
44 bool IsBatchMatMulSupported(const TensorInfo& inputX,
45 const TensorInfo& inputY,
46 const TensorInfo& output,
47 const BatchMatMulDescriptor& descriptor,
48 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
49
51 const TensorInfo& output,
52 const TensorInfo& mean,
53 const TensorInfo& var,
54 const TensorInfo& beta,
55 const TensorInfo& gamma,
56 const BatchNormalizationDescriptor& descriptor,
57 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
58
59 bool IsBatchToSpaceNdSupported(const TensorInfo& input,
60 const TensorInfo& output,
61 const BatchToSpaceNdDescriptor& descriptor,
62 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
63
64 bool IsCastSupported(const TensorInfo& input,
65 const TensorInfo& output,
66 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
67
68 bool IsChannelShuffleSupported(const TensorInfo& input,
69 const TensorInfo& output,
70 const ChannelShuffleDescriptor& descriptor,
71 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
72
73 bool IsComparisonSupported(const TensorInfo& input0,
74 const TensorInfo& input1,
75 const TensorInfo& ouput,
76 const ComparisonDescriptor& descriptor,
77 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
78
79 bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
80 const TensorInfo& output,
81 const OriginsDescriptor& descriptor,
82 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
83
84 bool IsConstantSupported(const TensorInfo& output,
85 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
86
88 const TensorInfo& output,
89 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
90
92 const TensorInfo& output,
93 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
94
95 bool IsConvolution2dSupported(const TensorInfo& input,
96 const TensorInfo& output,
97 const Convolution2dDescriptor& descriptor,
98 const TensorInfo& weights,
99 const Optional<TensorInfo>& biases,
100 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
101
102 bool IsConvolution3dSupported(const TensorInfo& input,
103 const TensorInfo& output,
104 const Convolution3dDescriptor& descriptor,
105 const TensorInfo& weights,
106 const Optional<TensorInfo>& biases,
107 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
108
109 bool IsDequantizeSupported(const TensorInfo& input,
110 const TensorInfo& output,
111 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
112
113 bool IsDepthToSpaceSupported(const TensorInfo& input,
114 const TensorInfo& output,
115 const DepthToSpaceDescriptor& descriptor,
116 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
117
119 const TensorInfo& output,
120 const DepthwiseConvolution2dDescriptor& descriptor,
121 const TensorInfo& weights,
122 const Optional<TensorInfo>& biases,
123 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
124
126 const TensorInfo& output,
127 const DepthwiseConvolution2dDescriptor& descriptor,
128 const TensorInfo& weights,
129 const Optional<TensorInfo>& biases,
130 Optional<std::string&> reason = EmptyOptional()) const;
131
132 ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsLayerSupported instead", "24.02")
133 bool IsDivisionSupported(const TensorInfo& input0,
134 const TensorInfo& input1,
135 const TensorInfo& output,
136 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
137
138 bool IsElementwiseUnarySupported(const TensorInfo& input,
139 const TensorInfo& output,
140 const ElementwiseUnaryDescriptor& descriptor,
141 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
142
143 bool IsFillSupported(const TensorInfo& input,
144 const TensorInfo& output,
145 const FillDescriptor& descriptor,
146 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
147
148 bool IsFloorSupported(const TensorInfo& input,
149 const TensorInfo& output,
150 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
151
152 bool IsFullyConnectedSupported(const TensorInfo& input,
153 const TensorInfo& output,
154 const TensorInfo& weights,
155 const TensorInfo& biases,
156 const FullyConnectedDescriptor& descriptor,
157 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
158
159 bool IsGatherNdSupported(const TensorInfo& input0,
160 const TensorInfo& input1,
161 const TensorInfo& output,
162 Optional<std::string&> reasonIfUnsupported) const;
163
164 bool IsGatherSupported(const TensorInfo& input0,
165 const TensorInfo& input1,
166 const TensorInfo& output,
167 const GatherDescriptor& descriptor,
168 Optional<std::string&> reasonIfUnsupported) const;
169
170 bool IsInputSupported(const TensorInfo& input,
171 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
172
174 const TensorInfo& output,
175 const InstanceNormalizationDescriptor& descriptor,
176 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
177
178 bool IsL2NormalizationSupported(const TensorInfo& input,
179 const TensorInfo& output,
180 const L2NormalizationDescriptor& descriptor,
181 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
182
183 bool IsLogicalBinarySupported(const TensorInfo& input0,
184 const TensorInfo& input1,
185 const TensorInfo& output,
186 const LogicalBinaryDescriptor& descriptor,
187 Optional<std::string&> reasonIfUnsupported) const;
188
189 bool IsLogSoftmaxSupported(const TensorInfo& input,
190 const TensorInfo& output,
191 const LogSoftmaxDescriptor& descriptor,
192 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
193
194 bool IsLstmSupported(const TensorInfo& input,
195 const TensorInfo& outputStateIn,
196 const TensorInfo& cellStateIn,
197 const TensorInfo& scratchBuffer,
198 const TensorInfo& outputStateOut,
199 const TensorInfo& cellStateOut,
200 const TensorInfo& output,
201 const LstmDescriptor& descriptor,
202 const LstmInputParamsInfo& paramsInfo,
203 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
204
205 ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsLayerSupported instead", "24.02")
206 bool IsMaximumSupported(const TensorInfo& input0,
207 const TensorInfo& input1,
208 const TensorInfo& output,
209 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
210
211 bool IsMeanSupported(const TensorInfo& input,
212 const TensorInfo& output,
213 const MeanDescriptor& descriptor,
214 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
215
216 ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsLayerSupported instead", "24.02")
217 bool IsMinimumSupported(const TensorInfo& input0,
218 const TensorInfo& input1,
219 const TensorInfo& output,
220 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
221
222 ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsLayerSupported instead", "24.02")
223 bool IsMultiplicationSupported(const TensorInfo& input0,
224 const TensorInfo& input1,
225 const TensorInfo& output,
226 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
227
228 bool IsNormalizationSupported(const TensorInfo& input,
229 const TensorInfo& output,
230 const NormalizationDescriptor& descriptor,
231 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
232
233 bool IsOutputSupported(const TensorInfo& output,
234 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
235
236 bool IsPadSupported(const TensorInfo& input,
237 const TensorInfo& output,
238 const PadDescriptor& descriptor,
239 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
240
241 bool IsPermuteSupported(const TensorInfo& input,
242 const TensorInfo& output,
243 const PermuteDescriptor& descriptor,
244 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
245
246 bool IsPooling2dSupported(const TensorInfo& input,
247 const TensorInfo& output,
248 const Pooling2dDescriptor& descriptor,
249 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
250
251 bool IsPooling3dSupported(const TensorInfo& input,
252 const TensorInfo& output,
253 const Pooling3dDescriptor& descriptor,
254 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
255
256 bool IsPreluSupported(const TensorInfo& input,
257 const TensorInfo& alpha,
258 const TensorInfo& output,
259 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
260
261 bool IsQLstmSupported(const TensorInfo& input,
262 const TensorInfo& previousOutputIn,
263 const TensorInfo& previousCellStateIn,
264 const TensorInfo& outputStateOut,
265 const TensorInfo& cellStateOut,
266 const TensorInfo& output,
267 const QLstmDescriptor& descriptor,
268 const LstmInputParamsInfo& paramsInfo,
269 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
270
271 bool IsQuantizedLstmSupported(const TensorInfo& input,
272 const TensorInfo& previousCellStateIn,
273 const TensorInfo& previousOutputIn,
274 const TensorInfo& cellStateOut,
275 const TensorInfo& output,
276 const QuantizedLstmInputParamsInfo& paramsInfo,
277 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
278
279 bool IsQuantizeSupported(const TensorInfo& input,
280 const TensorInfo& output,
281 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
282
283 bool IsReduceSupported(const TensorInfo& input,
284 const TensorInfo& output,
285 const ReduceDescriptor& descriptor,
286 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
287
288 bool IsReshapeSupported(const TensorInfo& input,
289 const TensorInfo& output,
290 const ReshapeDescriptor& descriptor,
291 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
292
293 bool IsResizeSupported(const TensorInfo& input,
294 const TensorInfo& output,
295 const ResizeDescriptor& descriptor,
296 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
297
298 bool IsReverseV2Supported(const TensorInfo& input,
299 const TensorInfo& axis,
300 const TensorInfo& output,
301 Optional<std::string&> reasonIfUnsupported) const;
302
303 bool IsScatterNdSupported(const TensorInfo& input,
304 const TensorInfo& indices,
305 const TensorInfo& updates,
306 const TensorInfo& output,
307 const ScatterNdDescriptor& descriptor,
308 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
309
310 bool IsSliceSupported(const TensorInfo& input,
311 const TensorInfo& output,
312 const SliceDescriptor& descriptor,
313 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
314
315 bool IsSoftmaxSupported(const TensorInfo& input,
316 const TensorInfo& output,
317 const SoftmaxDescriptor& descriptor,
318 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
319
320 bool IsSpaceToBatchNdSupported(const TensorInfo& input,
321 const TensorInfo& output,
322 const SpaceToBatchNdDescriptor& descriptor,
323 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
324
325 bool IsSpaceToDepthSupported(const TensorInfo& input,
326 const TensorInfo& output,
327 const SpaceToDepthDescriptor& descriptor,
328 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
329
330 bool IsSplitterSupported(const TensorInfo& input,
331 const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
332 const ViewsDescriptor& descriptor,
333 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
334
335 bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
336 const TensorInfo& output,
337 const StackDescriptor& descriptor,
338 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
339
340 bool IsStridedSliceSupported(const TensorInfo& input,
341 const TensorInfo& output,
342 const StridedSliceDescriptor& descriptor,
343 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
344
345 ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsLayerSupported instead", "24.02")
346 bool IsSubtractionSupported(const TensorInfo& input0,
347 const TensorInfo& input1,
348 const TensorInfo& output,
349 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
350
352 const TensorInfo& output,
353 const TransposeConvolution2dDescriptor& descriptor,
354 const TensorInfo& weights,
355 const Optional<TensorInfo>& biases,
356 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
357
358 bool IsTileSupported(const TensorInfo& input,
359 const TensorInfo& output,
360 const TileDescriptor& descriptor,
361 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
362
363 bool IsTransposeSupported(const TensorInfo& input,
364 const TensorInfo& output,
365 const TransposeDescriptor& descriptor,
366 Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
367
369 const TensorInfo& outputStateIn,
370 const TensorInfo& cellStateIn,
371 const TensorInfo& outputStateOut,
372 const TensorInfo& cellStateOut,
373 const TensorInfo& output,
374 const UnidirectionalSequenceLstmDescriptor& descriptor,
375 const LstmInputParamsInfo& paramsInfo,
376 Optional<std::string&> reasonIfUnsupported) const;
377
378private:
379 const IBackendInternal::IBackendSpecificModelContextPtr m_ModelContextPtr;
380
381};
382
383} // namespace armnn
#define ARMNN_DEPRECATED_MSG_REMOVAL_DATE(message, removed_in_release)
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsLayerSupported(const LayerType &type, const std::vector< TensorInfo > &infos, const BaseDescriptor &descriptor, const Optional< LstmInputParamsInfo > &lstmParamsInfo, const Optional< QuantizedLstmInputParamsInfo > &quantizedLstmParamsInfo, Optional< std::string & > reasonIfUnsupported) const
Default implementation of the ILayerSupport interface, Backends should implement this as a switch sta...
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsBatchMatMulSupported(const TensorInfo &inputX, const TensorInfo &inputY, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const UnidirectionalSequenceLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string & > reasonIfUnsupported) const
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo > > &outputs, const ViewsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reason=EmptyOptional()) const
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &ouput, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsScatterNdSupported(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &updates, const TensorInfo &output, const ScatterNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported) const
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
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
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
ClLayerSupport(const IBackendInternal::IBackendSpecificModelContextPtr &modelContextPtr)
bool IsReverseV2Supported(const TensorInfo &input, const TensorInfo &axis, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported) const
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsBatchNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &mean, const TensorInfo &var, const TensorInfo &beta, const TensorInfo &gamma, const BatchNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
std::shared_ptr< IBackendModelContext > IBackendSpecificModelContextPtr
Copyright (c) 2021 ARM Limited and Contributors.
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition Types.hpp:494
SpaceToDepthDescriptor DepthToSpaceDescriptor
A DepthToSpaceDescriptor for the DepthToSpaceLayer.
SoftmaxDescriptor LogSoftmaxDescriptor
A LogSoftmaxDescriptor for the LogSoftmaxLayer.
LstmDescriptor UnidirectionalSequenceLstmDescriptor
An ActivationDescriptor for the ActivationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Base class for all descriptors.
A BatchMatMulDescriptor for the BatchMatMul operator.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
A ChannelShuffleDescriptor for the ChannelShuffle operator.
A ComparisonDescriptor for the ComparisonLayer.
A Convolution2dDescriptor for the Convolution2dLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition Optional.hpp:32
A FillDescriptor for the FillLayer.
A FullyConnectedDescriptor for the FullyConnectedLayer.
A GatherDescriptor for the GatherLayer.
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
A L2NormalizationDescriptor for the L2NormalizationLayer.
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
An LstmDescriptor for the LstmLayer.
A MeanDescriptor for the MeanLayer.
A NormalizationDescriptor for the NormalizationLayer.
An OriginsDescriptor for the ConcatLayer.
A PadDescriptor for the PadLayer.
A PermuteDescriptor for the PermuteLayer.
A Pooling2dDescriptor for the Pooling2dLayer.
A Pooling3dDescriptor for the Pooling3dLayer.
A QLstmDescriptor for the QLstmLayer.
A ReduceDescriptor for the REDUCE operators.
A ReshapeDescriptor for the ReshapeLayer.
A ResizeDescriptor for the ResizeLayer.
A ScatterNdDescriptor for the ScatterNdLayer.
A SliceDescriptor for the SliceLayer.
A SoftmaxDescriptor for the SoftmaxLayer.
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
A StackDescriptor for the StackLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
A TransposeDescriptor for the TransposeLayer.
A ViewsDescriptor for the SplitterLayer.