ArmNN
 24.08
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 
11 namespace armnn
12 {
13 
15 {
16 public:
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 
50  bool IsBatchNormalizationSupported(const TensorInfo& input,
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 
87  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
88  const TensorInfo& output,
89  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
90 
91  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
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 
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 
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 
217  bool IsMinimumSupported(const TensorInfo& input0,
218  const TensorInfo& input1,
219  const TensorInfo& output,
220  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const;
221 
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 
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 
378 private:
379  const IBackendInternal::IBackendSpecificModelContextPtr m_ModelContextPtr;
380 
381 };
382 
383 } // namespace armnn
armnn::BatchNormalizationDescriptor
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
Definition: Descriptors.hpp:828
armnn::ClLayerSupport::IsPooling2dSupported
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1326
armnn::ClLayerSupport::IsBatchNormalizationSupported
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
Definition: ClLayerSupport.cpp:758
armnn::ViewsDescriptor
A ViewsDescriptor for the SplitterLayer.
Definition: Descriptors.hpp:244
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
armnn::FullyConnectedDescriptor
A FullyConnectedDescriptor for the FullyConnectedLayer.
Definition: Descriptors.hpp:507
armnn::ClLayerSupport::IsMinimumSupported
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1267
armnn::QLstmDescriptor
A QLstmDescriptor for the QLstmLayer.
Definition: Descriptors.hpp:1380
armnn::ClLayerSupport::IsPreluSupported
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1342
armnn::Optional
Definition: Optional.hpp:270
armnn::ClLayerSupport::IsConvolution2dSupported
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:896
armnn::ClLayerSupport::IsLstmSupported
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
Definition: ClLayerSupport.cpp:1219
armnn::ClLayerSupport::IsConcatSupported
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:827
armnn::Pooling3dDescriptor
A Pooling3dDescriptor for the Pooling3dLayer.
Definition: Descriptors.hpp:431
armnn::ResizeDescriptor
A ResizeDescriptor for the ResizeLayer.
Definition: Descriptors.hpp:985
armnn::ArgMinMaxDescriptor
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:67
armnn::ClLayerSupport::IsAdditionSupported
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:717
armnn::InstanceNormalizationDescriptor
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
Definition: Descriptors.hpp:847
armnn::ClLayerSupport::IsBatchMatMulSupported
bool IsBatchMatMulSupported(const TensorInfo &inputX, const TensorInfo &inputY, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:743
armnn::GatherDescriptor
A GatherDescriptor for the GatherLayer.
Definition: Descriptors.hpp:965
armnn::ClLayerSupport::IsMaximumSupported
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1243
armnn::ClLayerSupport::IsActivationSupported
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:705
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::L2NormalizationDescriptor
A L2NormalizationDescriptor for the L2NormalizationLayer.
Definition: Descriptors.hpp:809
armnn::NormalizationDescriptor
A NormalizationDescriptor for the NormalizationLayer.
Definition: Descriptors.hpp:769
armnn::ClLayerSupport::IsOutputSupported
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1300
armnn::ClLayerSupport::IsDepthwiseConvolutionSupported
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:984
armnn::ClLayerSupport::IsPadSupported
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1306
armnn::ClLayerSupport::IsFullyConnectedSupported
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1106
armnn::ClLayerSupport::IsLogicalBinarySupported
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
Definition: ClLayerSupport.cpp:1179
armnn::ChannelShuffleDescriptor
A ChannelShuffleDescriptor for the ChannelShuffle operator.
Definition: Descriptors.hpp:1562
armnn::ClLayerSupport::IsNormalizationSupported
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1292
armnn::ClLayerSupport::IsReduceSupported
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1412
armnn::StackDescriptor
A StackDescriptor for the StackLayer.
Definition: Descriptors.hpp:1251
armnn::ClLayerSupport::IsSliceSupported
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1469
armnn::IBackendInternal
Definition: IBackendInternal.hpp:77
armnn::ClLayerSupport::ClLayerSupport
ClLayerSupport()
Definition: ClLayerSupport.cpp:184
armnn::ClLayerSupport::~ClLayerSupport
~ClLayerSupport()
Definition: ClLayerSupport.hpp:19
armnn::ClLayerSupport::IsSoftmaxSupported
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1477
armnn::ClLayerSupport::IsMeanSupported
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1255
armnn::ClLayerSupport::IsChannelShuffleSupported
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:801
armnn::ClLayerSupport::IsConvertFp16ToFp32Supported
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:876
armnn::ClLayerSupport::IsFloorSupported
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1096
armnn::QuantizedLstmInputParamsInfo
Definition: QuantizedLstmParams.hpp:119
LayerSupportBase.hpp
armnn::ClLayerSupport::IsQuantizeSupported
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1402
armnn::ClLayerSupport::IsMultiplicationSupported
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1279
armnn::ClLayerSupport::IsTransposeConvolution2dSupported
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1591
armnn::ClLayerSupport::IsInstanceNormalizationSupported
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1155
armnn::ClLayerSupport::IsSpaceToDepthSupported
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1497
armnn::ClLayerSupport::IsReshapeSupported
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1424
armnn::ClLayerSupport::IsLayerSupported
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...
Definition: ClLayerSupport.cpp:189
armnn::PadDescriptor
A PadDescriptor for the PadLayer.
Definition: Descriptors.hpp:1196
armnn::TransposeDescriptor
A TransposeDescriptor for the TransposeLayer.
Definition: Descriptors.hpp:1490
armnn::EmptyOptional
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
armnn::SliceDescriptor
A SliceDescriptor for the SliceLayer.
Definition: Descriptors.hpp:1228
IBackendInternal.hpp
armnn::ClLayerSupport::IsUnidirectionalSequenceLstmSupported
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
Definition: ClLayerSupport.cpp:1615
armnn::ReshapeDescriptor
A ReshapeDescriptor for the ReshapeLayer.
Definition: Descriptors.hpp:1023
armnn::ClLayerSupport::IsComparisonSupported
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &ouput, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:813
armnn::ClLayerSupport::IsPooling3dSupported
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1334
armnn::ClLayerSupport
Definition: ClLayerSupport.hpp:14
armnn::PermuteDescriptor
A PermuteDescriptor for the PermuteLayer.
Definition: Descriptors.hpp:149
armnn::BatchMatMulDescriptor
A BatchMatMulDescriptor for the BatchMatMul operator.
Definition: Descriptors.hpp:1584
armnn::ClLayerSupport::IsTransposeSupported
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1607
armnn::ClLayerSupport::IsTileSupported
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1579
armnn::SpaceToBatchNdDescriptor
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
Definition: Descriptors.hpp:1043
armnn::Convolution3dDescriptor
A Convolution3dDescriptor for the Convolution3dLayer.
Definition: Descriptors.hpp:588
armnn::BaseDescriptor
Base class for all descriptors.
Definition: Descriptors.hpp:22
armnn::ClLayerSupport::IsSpaceToBatchNdSupported
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1485
armnn::ClLayerSupport::IsL2NormalizationSupported
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1167
armnn::ClLayerSupport::IsCastSupported
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:791
armnn::ClLayerSupport::IsDivisionSupported
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1019
armnn::BatchToSpaceNdDescriptor
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
Definition: Descriptors.hpp:875
armnn::Convolution2dDescriptor
A Convolution2dDescriptor for the Convolution2dLayer.
Definition: Descriptors.hpp:534
armnn::ComparisonDescriptor
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:89
armnn::FillDescriptor
A FillDescriptor for the FillLayer.
Definition: Descriptors.hpp:925
armnn::ClLayerSupport::IsInputSupported
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1149
armnn::ClLayerSupport::IsDepthToSpaceSupported
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:972
armnn::ClLayerSupport::IsArgMinMaxSupported
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:730
armnn::ClLayerSupport::IsBatchToSpaceNdSupported
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:779
armnn::ClLayerSupport::IsElementwiseUnarySupported
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1032
armnn::ClLayerSupport::IsResizeSupported
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1433
armnn::ClLayerSupport::IsFillSupported
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1084
armnn::ClLayerSupport::IsConvolution3dSupported
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:929
armnn::LstmDescriptor
An LstmDescriptor for the LstmLayer.
Definition: Descriptors.hpp:1102
armnn::StridedSliceDescriptor
A StridedSliceDescriptor for the StridedSliceLayer.
Definition: Descriptors.hpp:1303
armnn::ClLayerSupport::IsQuantizedLstmSupported
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
Definition: ClLayerSupport.cpp:1384
armnn::LogicalBinaryDescriptor
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
Definition: Descriptors.hpp:1518
armnn::ClLayerSupport::IsSubtractionSupported
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1566
armnn::ClLayerSupport::IsPermuteSupported
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1318
armnn::ClLayerSupport::IsGatherNdSupported
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported) const
Definition: ClLayerSupport.cpp:1137
std
Definition: BackendId.hpp:149
ARMNN_DEPRECATED_MSG_REMOVAL_DATE
#define ARMNN_DEPRECATED_MSG_REMOVAL_DATE(message, removed_in_release)
Definition: Deprecated.hpp:44
armnn::ClLayerSupport::IsSplitterSupported
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1509
armnn::OriginsDescriptor
An OriginsDescriptor for the ConcatLayer.
Definition: Descriptors.hpp:201
armnn::ClLayerSupport::IsDequantizeSupported
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:962
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::ElementwiseUnaryDescriptor
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:129
armnn::TransposeConvolution2dDescriptor
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
Definition: Descriptors.hpp:1440
armnn::ClLayerSupport::IsGatherSupported
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported) const
Definition: ClLayerSupport.cpp:1123
armnn::LstmInputParamsInfo
Definition: LstmParams.hpp:63
armnn::ClLayerSupport::IsStridedSliceSupported
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1554
armnn::ClLayerSupport::IsStackSupported
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1542
armnn::ClLayerSupport::IsLogSoftmaxSupported
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1207
armnn::ClLayerSupport::IsConstantSupported
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:868
armnn::Pooling2dDescriptor
A Pooling2dDescriptor for the Pooling2dLayer.
Definition: Descriptors.hpp:371
armnn::DepthwiseConvolution2dDescriptor
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
Definition: Descriptors.hpp:659
armnn::ScatterNdDescriptor
A ScatterNdDescriptor for the ScatterNdLayer.
Definition: Descriptors.hpp:1679
armnn::ReduceDescriptor
A ReduceDescriptor for the REDUCE operators.
Definition: Descriptors.hpp:1538
armnn::LayerType
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition: Types.hpp:491
armnn::ClLayerSupport::IsScatterNdSupported
bool IsScatterNdSupported(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &updates, const TensorInfo &output, const ScatterNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1453
armnn::MeanDescriptor
A MeanDescriptor for the MeanLayer.
Definition: Descriptors.hpp:1172
armnn::TileDescriptor
Definition: Descriptors.hpp:1640
armnn::SoftmaxDescriptor
A SoftmaxDescriptor for the SoftmaxLayer.
Definition: Descriptors.hpp:177
armnn::ClLayerSupport::IsReverseV2Supported
bool IsReverseV2Supported(const TensorInfo &input, const TensorInfo &axis, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported) const
Definition: ClLayerSupport.cpp:1441
armnn::ClLayerSupport::IsDilatedDepthwiseConvolutionSupported
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reason=EmptyOptional()) const
Definition: ClLayerSupport.cpp:1001
armnn::IBackendInternal::IBackendSpecificModelContextPtr
std::shared_ptr< IBackendModelContext > IBackendSpecificModelContextPtr
Definition: IBackendInternal.hpp:96
armnn::SpaceToDepthDescriptor
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
Definition: Descriptors.hpp:1075
armnn::LayerSupportBase
Definition: LayerSupportBase.hpp:13
armnn::ClLayerSupport::IsConvertFp32ToFp16Supported
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional()) const
Definition: ClLayerSupport.cpp:886
armnn::ClLayerSupport::IsQLstmSupported
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
Definition: ClLayerSupport.cpp:1350