ArmNN
 24.02
BackendHelper.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017-2019,2021-2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/BackendId.hpp>
10 #include <armnn/Descriptors.hpp>
11 #include <armnn/Optional.hpp>
12 #include <functional>
13 #include <memory>
14 #include <string>
15 #include <utility>
16 #include <vector>
17 
18 namespace armnn
19 {
20 class ILayerSupport;
21 class TensorInfo;
22 struct LstmInputParamsInfo;
23 struct QuantizedLstmInputParamsInfo;
24 
25 // This handle calls its own IsXXXLayerSupported() functions which then call the polymorphic
26 // ILayerSupport::IsXXXLayerSupported() at the framework level so there is no risk of VTable misalignment.
27 // This is to make ILayerSupport in its abstract form a solely Backend interface alongside a
28 // separate ABI stable frontend class free of virtual functions via an added layer of indirection.
30 {
31 public:
32  explicit LayerSupportHandle(std::shared_ptr<ILayerSupport> layerSupport)
33  : m_LayerSupport(std::move(layerSupport)), m_BackendId(Compute::Undefined) {};
34 
35  explicit LayerSupportHandle(std::shared_ptr<ILayerSupport> layerSupport, const BackendId& backendId)
36  : m_LayerSupport(std::move(layerSupport)), m_BackendId(backendId) {};
37 
38  bool IsBackendRegistered() const;
39 
40  bool IsActivationSupported(const TensorInfo& input,
41  const TensorInfo& output,
42  const ActivationDescriptor& descriptor,
43  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
44 
45  ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use IsElementwiseBinarySupported instead", "24.02")
46  bool IsAdditionSupported(const TensorInfo& input0,
47  const TensorInfo& input1,
48  const TensorInfo& output,
49  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
50 
51  bool IsArgMinMaxSupported(const TensorInfo& input,
52  const TensorInfo& output,
53  const ArgMinMaxDescriptor& descriptor,
54  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
55 
56  bool IsBatchMatMulSupported(const TensorInfo& input0,
57  const TensorInfo& input1,
58  const TensorInfo& output,
59  const BatchMatMulDescriptor& descriptor,
60  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
61 
62  bool IsBatchNormalizationSupported(const TensorInfo& input,
63  const TensorInfo& output,
64  const TensorInfo& mean,
65  const TensorInfo& var,
66  const TensorInfo& beta,
67  const TensorInfo& gamma,
68  const BatchNormalizationDescriptor& descriptor,
69  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
70 
71  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
72  const TensorInfo& output,
73  const BatchToSpaceNdDescriptor& descriptor,
74  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
75 
76 
77  bool IsBroadcastToSupported(const TensorInfo& input,
78  const TensorInfo& output,
79  const BroadcastToDescriptor& descriptor,
80  Optional<std::string&> reasonIfUnsupported);
81 
82  bool IsCastSupported(const TensorInfo& input,
83  const TensorInfo& output,
84  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
85 
86  bool IsChannelShuffleSupported(const TensorInfo& input,
87  const TensorInfo& output,
88  const ChannelShuffleDescriptor& descriptor,
89  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
90 
91  bool IsComparisonSupported(const TensorInfo& input0,
92  const TensorInfo& input1,
93  const TensorInfo& output,
94  const ComparisonDescriptor& descriptor,
95  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
96 
97  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
98  const TensorInfo& output,
99  const OriginsDescriptor& descriptor,
100  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
101 
102  bool IsConstantSupported(const TensorInfo& output,
103  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
104 
105  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
106  const TensorInfo& output,
107  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
108 
109  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
110  const TensorInfo& output,
111  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
112 
113  bool IsConvolution2dSupported(const TensorInfo& input,
114  const TensorInfo& output,
115  const Convolution2dDescriptor& descriptor,
116  const TensorInfo& weights,
117  const Optional<TensorInfo>& biases,
118  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
119 
120  bool IsConvolution3dSupported(const TensorInfo& input,
121  const TensorInfo& output,
122  const Convolution3dDescriptor& descriptor,
123  const TensorInfo& weights,
124  const Optional<TensorInfo>& biases,
125  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
126 
127  bool IsDebugSupported(const TensorInfo& input,
128  const TensorInfo& output,
129  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
130 
131  bool IsDepthToSpaceSupported(const TensorInfo& input,
132  const TensorInfo& output,
133  const DepthToSpaceDescriptor& descriptor,
134  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
135 
137  const TensorInfo& input,
138  const TensorInfo& output,
139  const DepthwiseConvolution2dDescriptor& descriptor,
140  const TensorInfo& weights,
141  const Optional<TensorInfo>& biases,
142  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
143 
144  bool IsDequantizeSupported(const TensorInfo& input,
145  const TensorInfo& output,
146  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
147 
148  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
149  const TensorInfo& scores,
150  const TensorInfo& anchors,
151  const TensorInfo& detectionBoxes,
152  const TensorInfo& detectionClasses,
153  const TensorInfo& detectionScores,
154  const TensorInfo& numDetections,
155  const DetectionPostProcessDescriptor& descriptor,
156  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
157 
159  const TensorInfo& input,
160  const TensorInfo& output,
161  const DepthwiseConvolution2dDescriptor& descriptor,
162  const TensorInfo& weights,
163  const Optional<TensorInfo>& biases,
164  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
165 
167  bool IsDivisionSupported(const TensorInfo& input0,
168  const TensorInfo& input1,
169  const TensorInfo& output,
170  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
171 
172  bool IsElementwiseBinarySupported(const TensorInfo& input0,
173  const TensorInfo& input1,
174  const TensorInfo& output,
175  const ElementwiseBinaryDescriptor& descriptor,
176  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
177 
178  bool IsElementwiseUnarySupported(const TensorInfo& input,
179  const TensorInfo& output,
180  const ElementwiseUnaryDescriptor& descriptor,
181  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
182 
183  bool IsFakeQuantizationSupported(const TensorInfo& input,
184  const FakeQuantizationDescriptor& descriptor,
185  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
186 
187  bool IsFillSupported(const TensorInfo& input,
188  const TensorInfo& output,
189  const FillDescriptor& descriptor,
190  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
191 
192  bool IsFloorSupported(const TensorInfo& input,
193  const TensorInfo& output,
194  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
195 
196  bool IsFullyConnectedSupported(const TensorInfo& input,
197  const TensorInfo& output,
198  const TensorInfo& weights,
199  const TensorInfo& biases,
200  const FullyConnectedDescriptor& descriptor,
201  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
202 
203  bool IsFusedSupported(const std::vector<std::reference_wrapper<TensorInfo>>& inputs,
204  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
205  const FusedDescriptor& descriptor,
206  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
207 
208  bool IsGatherSupported(const TensorInfo& input0,
209  const TensorInfo& input1,
210  const TensorInfo& output,
211  const GatherDescriptor& descriptor,
212  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
213 
214  bool IsGatherNdSupported(const TensorInfo& input0,
215  const TensorInfo& input1,
216  const TensorInfo& output,
217  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
218 
219  bool IsInputSupported(const TensorInfo& input,
220  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
221 
223  const TensorInfo& input,
224  const TensorInfo& output,
225  const InstanceNormalizationDescriptor& descriptor,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
227 
228  bool IsL2NormalizationSupported(const TensorInfo& input,
229  const TensorInfo& output,
230  const L2NormalizationDescriptor& descriptor,
231  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
232 
233  bool IsLogicalBinarySupported(const TensorInfo& input0,
234  const TensorInfo& input1,
235  const TensorInfo& output,
236  const LogicalBinaryDescriptor& descriptor,
237  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
238 
239  bool IsLogicalUnarySupported(const TensorInfo& input,
240  const TensorInfo& output,
241  const ElementwiseUnaryDescriptor& descriptor,
242  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
243 
244  bool IsLogSoftmaxSupported(const TensorInfo& input,
245  const TensorInfo& output,
246  const LogSoftmaxDescriptor& descriptor,
247  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
248 
249  bool IsLstmSupported(const TensorInfo& input,
250  const TensorInfo& outputStateIn,
251  const TensorInfo& cellStateIn,
252  const TensorInfo& scratchBuffer,
253  const TensorInfo& outputStateOut,
254  const TensorInfo& cellStateOut,
255  const TensorInfo& output,
256  const LstmDescriptor& descriptor,
257  const LstmInputParamsInfo& paramsInfo,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
259 
261  bool IsMaximumSupported(const TensorInfo& input0,
262  const TensorInfo& input1,
263  const TensorInfo& output,
264  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
265 
266  bool IsMeanSupported(const TensorInfo& input,
267  const TensorInfo& output,
268  const MeanDescriptor& descriptor,
269  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
270 
271  bool IsMemCopySupported(const TensorInfo& input,
272  const TensorInfo& output,
273  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
274 
275  bool IsMemImportSupported(const TensorInfo& input,
276  const TensorInfo& output,
277  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
278 
279  bool IsMergeSupported(const TensorInfo& input0,
280  const TensorInfo& input1,
281  const TensorInfo& output,
282  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
283 
285  bool IsMinimumSupported(const TensorInfo& input0,
286  const TensorInfo& input1,
287  const TensorInfo& output,
288  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
289 
291  bool IsMultiplicationSupported(const TensorInfo& input0,
292  const TensorInfo& input1,
293  const TensorInfo& output,
294  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
295 
296  bool IsNormalizationSupported(const TensorInfo& input,
297  const TensorInfo& output,
298  const NormalizationDescriptor& descriptor,
299  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
300 
301  bool IsOutputSupported(const TensorInfo& output,
302  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
303 
304  bool IsPadSupported(const TensorInfo& input,
305  const TensorInfo& output,
306  const PadDescriptor& descriptor,
307  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
308 
309  bool IsPermuteSupported(const TensorInfo& input,
310  const TensorInfo& output,
311  const PermuteDescriptor& descriptor,
312  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
313 
314  bool IsPooling2dSupported(const TensorInfo& input,
315  const TensorInfo& output,
316  const Pooling2dDescriptor& descriptor,
317  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
318 
319  bool IsPooling3dSupported(const TensorInfo& input,
320  const TensorInfo& output,
321  const Pooling3dDescriptor& descriptor,
322  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
323 
324  bool IsPreCompiledSupported(const TensorInfo& input,
325  const PreCompiledDescriptor& descriptor,
326  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
327 
328  bool IsPreluSupported(const TensorInfo& input,
329  const TensorInfo& alpha,
330  const TensorInfo& output,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
332 
333  bool IsQuantizeSupported(const TensorInfo& input,
334  const TensorInfo& output,
335  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
336 
337  bool IsQLstmSupported(const TensorInfo& input,
338  const TensorInfo& previousOutputIn,
339  const TensorInfo& previousCellStateIn,
340  const TensorInfo& outputStateOut,
341  const TensorInfo& cellStateOut,
342  const TensorInfo& output,
343  const QLstmDescriptor& descriptor,
344  const LstmInputParamsInfo& paramsInfo,
345  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
346 
347  bool IsQuantizedLstmSupported(const TensorInfo& input,
348  const TensorInfo& previousCellStateIn,
349  const TensorInfo& previousOutputIn,
350  const TensorInfo& cellStateOut,
351  const TensorInfo& output,
352  const QuantizedLstmInputParamsInfo& paramsInfo,
353  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
354 
355  bool IsRankSupported(const TensorInfo& input,
356  const TensorInfo& output,
357  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
358 
359  bool IsReduceSupported(const TensorInfo& input,
360  const TensorInfo& output,
361  const ReduceDescriptor& descriptor,
362  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
363 
364  bool IsReshapeSupported(const TensorInfo& input,
365  const TensorInfo& output,
366  const ReshapeDescriptor& descriptor,
367  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
368 
369  bool IsResizeSupported(const TensorInfo& input,
370  const TensorInfo& output,
371  const ResizeDescriptor& descriptor,
372  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
373 
374  bool IsReverseV2Supported(const TensorInfo& input0,
375  const TensorInfo& input1,
376  const TensorInfo& output,
377  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
378 
379  bool IsShapeSupported(const TensorInfo& input,
380  const TensorInfo& output,
381  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
382 
383  bool IsSliceSupported(const TensorInfo& input,
384  const TensorInfo& output,
385  const SliceDescriptor& descriptor,
386  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
387 
388  bool IsSoftmaxSupported(const TensorInfo& input,
389  const TensorInfo& output,
390  const SoftmaxDescriptor& descriptor,
391  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
392 
393  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
394  const TensorInfo& output,
395  const SpaceToBatchNdDescriptor& descriptor,
396  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
397 
398  bool IsSpaceToDepthSupported(const TensorInfo& input,
399  const TensorInfo& output,
400  const SpaceToDepthDescriptor& descriptor,
401  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
402 
403  bool IsSplitterSupported(const TensorInfo& input,
404  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
405  const ViewsDescriptor& descriptor,
406  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
407 
408  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
409  const TensorInfo& output,
410  const StackDescriptor& descriptor,
411  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
412 
413  bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs,
414  const std::vector<const TensorInfo*>& outputs,
415  const StandInDescriptor& descriptor,
416  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
417 
418 
419  bool IsStridedSliceSupported(const TensorInfo& input,
420  const TensorInfo& output,
421  const StridedSliceDescriptor& descriptor,
422  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
423 
425  bool IsSubtractionSupported(const TensorInfo& input0,
426  const TensorInfo& input1,
427  const TensorInfo& output,
428  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
429 
430  bool IsSwitchSupported(const TensorInfo& input0,
431  const TensorInfo& input1,
432  const TensorInfo& output0,
433  const TensorInfo& output1,
434  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
435 
436  bool IsTileSupported(const TensorInfo& input,
437  const TensorInfo& output,
438  const TileDescriptor& descriptor,
439  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
440 
442  const TensorInfo& input,
443  const TensorInfo& output,
444  const TransposeConvolution2dDescriptor& descriptor,
445  const TensorInfo& weights,
446  const Optional<TensorInfo>& biases,
447  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
448 
449  bool IsTransposeSupported(const TensorInfo& input,
450  const TensorInfo& output,
451  const TransposeDescriptor& descriptor,
452  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
453 
455  const TensorInfo& input,
456  const TensorInfo& outputStateIn,
457  const TensorInfo& cellStateIn,
458  const TensorInfo& outputStateOut,
459  const TensorInfo& cellStateOut,
460  const TensorInfo& output,
461  const LstmDescriptor& descriptor,
462  const LstmInputParamsInfo& paramsInfo,
463  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
464 
465 private:
466  std::shared_ptr<ILayerSupport> m_LayerSupport;
467  const BackendId m_BackendId;
468 };
469 
470 /// Convenience function to retrieve the ILayerSupportHandle for a backend
472 
473 /// Convenience function to check if a capability exists in a BackendCapabilites struct
474 bool HasCapability(const std::string& name,const BackendCapabilities& capabilities);
475 
476 /// Convenience function to check if a capability exists in a backend
477 bool HasCapability(const std::string& name, const armnn::BackendId& backend);
478 
479 /// Convenience function to check if a given capability matches a capability in a BackendCapabilities struct
481 bool HasCapability(const BackendOptions::BackendOption& capability, const BackendCapabilities& capabilities);
482 
483 /// Convenience function to check if a given capability matches a capability in a backend
485 bool HasCapability(const BackendOptions::BackendOption& backendOption, const armnn::BackendId& backend);
486 
487 /// Convenience function to check if a given capability matches a capability in a BackendCapabilities struct
488 bool HasMatchingCapability(const BackendOptions::BackendOption& capability, const BackendCapabilities& capabilities);
489 
490 /// Convenience function to check if a given capability matches a capability in a backend
491 bool HasMatchingCapability(const BackendOptions::BackendOption& backendOption, const armnn::BackendId& backend);
492 
493 /// Returns a BackendCapability if the backend lists the capability
494 /// The BackendCapability must then be inspected to check whether or not that BackendCapability is supported
495 /// Otherwise returns an EmptyOptional if the BackendCapability is unlisted
496 Optional<const BackendOptions::BackendOption> GetCapability(const std::string& backendCapabilityName,
497  const BackendCapabilities& capabilities);
498 
499 /// Returns a BackendCapability if the backend lists the capability
500 /// The BackendCapability must then be inspected to check whether or not that BackendCapability is supported
501 /// Otherwise returns an EmptyOptional if the BackendCapability is unlisted
502 Optional<const BackendOptions::BackendOption> GetCapability(const std::string& backendCapabilityName,
503  const armnn::BackendId& backend);
504 
505 /// Returns the number of cached files if backend supports caching
506 unsigned int GetNumberOfCacheFiles(const armnn::BackendId& backend);
507 
508 }
armnn::BatchNormalizationDescriptor
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
Definition: Descriptors.hpp:828
armnn::Compute::Undefined
@ Undefined
armnn::ViewsDescriptor
A ViewsDescriptor for the SplitterLayer.
Definition: Descriptors.hpp:244
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
armnn::LayerSupportHandle::IsSpaceToDepthSupported
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1338
armnn::FullyConnectedDescriptor
A FullyConnectedDescriptor for the FullyConnectedLayer.
Definition: Descriptors.hpp:507
armnn::LayerSupportHandle::LayerSupportHandle
LayerSupportHandle(std::shared_ptr< ILayerSupport > layerSupport, const BackendId &backendId)
Definition: BackendHelper.hpp:35
armnn::LayerSupportHandle::IsStackSupported
bool IsStackSupported(const std::vector< const TensorInfo * > &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1372
armnn::QLstmDescriptor
A QLstmDescriptor for the QLstmLayer.
Definition: Descriptors.hpp:1380
armnn::LayerSupportHandle::IsDetectionPostProcessSupported
bool IsDetectionPostProcessSupported(const TensorInfo &boxEncodings, const TensorInfo &scores, const TensorInfo &anchors, const TensorInfo &detectionBoxes, const TensorInfo &detectionClasses, const TensorInfo &detectionScores, const TensorInfo &numDetections, const DetectionPostProcessDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:540
armnn::Optional
Definition: Optional.hpp:270
armnn::LayerSupportHandle::IsOutputSupported
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1051
Descriptors.hpp
armnn::LayerSupportHandle::IsMemImportSupported
bool IsMemImportSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:977
armnn::LayerSupportHandle::IsMultiplicationSupported
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1021
armnn::Pooling3dDescriptor
A Pooling3dDescriptor for the Pooling3dLayer.
Definition: Descriptors.hpp:431
armnn::LayerSupportHandle::IsTransposeConvolution2dSupported
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1477
armnn::LayerSupportHandle::IsArgMinMaxSupported
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:184
armnn::ResizeDescriptor
A ResizeDescriptor for the ResizeLayer.
Definition: Descriptors.hpp:985
armnn::ArgMinMaxDescriptor
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:67
armnn::InstanceNormalizationDescriptor
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
Definition: Descriptors.hpp:847
armnn::LayerSupportHandle::IsMeanSupported
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:948
armnn::GatherDescriptor
A GatherDescriptor for the GatherLayer.
Definition: Descriptors.hpp:965
armnn::LayerSupportHandle::IsShapeSupported
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1279
armnn::LayerSupportHandle::IsDepthToSpaceSupported
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:457
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::L2NormalizationDescriptor
A L2NormalizationDescriptor for the L2NormalizationLayer.
Definition: Descriptors.hpp:809
armnn::LayerSupportHandle::IsMinimumSupported
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1006
armnn::LayerSupportHandle::IsFullyConnectedSupported
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:703
armnn::NormalizationDescriptor
A NormalizationDescriptor for the NormalizationLayer.
Definition: Descriptors.hpp:769
armnn::LayerSupportHandle::IsPermuteSupported
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1079
BackendId.hpp
armnn::ChannelShuffleDescriptor
A ChannelShuffleDescriptor for the ChannelShuffle operator.
Definition: Descriptors.hpp:1562
armnn::LayerSupportHandle::IsNormalizationSupported
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1036
armnn::LayerSupportHandle::IsReverseV2Supported
bool IsReverseV2Supported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1264
armnn::LayerSupportHandle::IsLogicalBinarySupported
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:866
armnn::LayerSupportHandle::IsStridedSliceSupported
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1416
armnn::LayerSupportHandle::IsGatherNdSupported
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:807
armnn::LayerSupportHandle::IsElementwiseBinarySupported
bool IsElementwiseBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ElementwiseBinaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:629
armnn::LayerSupportHandle::IsPooling2dSupported
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1094
armnn::StackDescriptor
A StackDescriptor for the StackLayer.
Definition: Descriptors.hpp:1251
armnn::LayerSupportHandle::IsSoftmaxSupported
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1308
armnn::LayerSupportHandle::IsGatherSupported
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:791
armnn::GetILayerSupportByBackendId
LayerSupportHandle GetILayerSupportByBackendId(const armnn::BackendId &backend)
Convenience function to retrieve the ILayerSupportHandle for a backend.
Definition: BackendHelper.cpp:23
armnn::LayerSupportHandle::IsInputSupported
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:822
armnn::LayerSupportHandle::IsLogSoftmaxSupported
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:897
armnn::LayerSupportHandle::LayerSupportHandle
LayerSupportHandle(std::shared_ptr< ILayerSupport > layerSupport)
Definition: BackendHelper.hpp:32
armnn::LayerSupportHandle::IsL2NormalizationSupported
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:851
armnn::LayerSupportHandle::IsDebugSupported
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:443
armnn::LayerSupportHandle::IsBatchToSpaceNdSupported
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:234
armnn::Compute
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
Definition: BackendId.hpp:21
armnn::QuantizedLstmInputParamsInfo
Definition: QuantizedLstmParams.hpp:119
armnn::ElementwiseBinaryDescriptor
A ElementwiseBinaryDescriptor for the ElementwiseBinaryLayer.
Definition: Descriptors.hpp:109
armnn::LayerSupportHandle::IsComparisonSupported
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:294
Optional.hpp
armnn::LayerSupportHandle::IsPadSupported
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1064
armnn::FusedDescriptor
A FusedDescriptor for the FusedLayer.
Definition: Descriptors.hpp:944
armnn::LayerSupportHandle::IsFusedSupported
bool IsFusedSupported(const std::vector< std::reference_wrapper< TensorInfo >> &inputs, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const FusedDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:767
armnn::LayerSupportHandle::IsDepthwiseConvolutionSupported
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:472
armnn::LayerSupportHandle::IsSplitterSupported
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1353
armnn::LayerSupportHandle::IsSliceSupported
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1293
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
armnn::LayerSupportHandle::IsBatchMatMulSupported
bool IsBatchMatMulSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const BatchMatMulDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:199
armnn::ReshapeDescriptor
A ReshapeDescriptor for the ReshapeLayer.
Definition: Descriptors.hpp:1023
armnn::LayerSupportHandle::IsRankSupported
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1205
armnn::LayerSupportHandle::IsTransposeSupported
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1496
armnn::LayerSupportHandle::IsMemCopySupported
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:963
armnn::LayerSupportHandle::IsTileSupported
bool IsTileSupported(const TensorInfo &input, const TensorInfo &output, const TileDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1462
armnn::LayerSupportHandle::IsUnidirectionalSequenceLstmSupported
bool IsUnidirectionalSequenceLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const LstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1511
armnn::PermuteDescriptor
A PermuteDescriptor for the PermuteLayer.
Definition: Descriptors.hpp:149
armnn::BatchMatMulDescriptor
A BatchMatMulDescriptor for the BatchMatMul operator.
Definition: Descriptors.hpp:1584
armnn::LayerSupportHandle::IsCastSupported
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:265
armnn::SpaceToBatchNdDescriptor
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
Definition: Descriptors.hpp:1043
armnn::Convolution3dDescriptor
A Convolution3dDescriptor for the Convolution3dLayer.
Definition: Descriptors.hpp:588
armnn::LayerSupportHandle::IsBroadcastToSupported
bool IsBroadcastToSupported(const TensorInfo &input, const TensorInfo &output, const BroadcastToDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported)
Definition: BackendHelper.cpp:250
armnn::LayerSupportHandle::IsFloorSupported
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:689
armnn::LayerSupportHandle::IsDivisionSupported
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:614
armnn::LayerSupportHandle::IsPooling3dSupported
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1109
armnn::LayerSupportHandle::IsMergeSupported
bool IsMergeSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:991
armnn::HasCapability
bool HasCapability(const std::string &name, const BackendCapabilities &capabilities)
Convenience function to check if a capability exists in a BackendCapabilites struct.
Definition: BackendHelper.cpp:65
armnn::LayerSupportHandle::IsConcatSupported
bool IsConcatSupported(const std::vector< const TensorInfo * > inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:310
armnn::BatchToSpaceNdDescriptor
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
Definition: Descriptors.hpp:875
armnn::LayerSupportHandle::IsLogicalUnarySupported
bool IsLogicalUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:882
armnn::Convolution2dDescriptor
A Convolution2dDescriptor for the Convolution2dLayer.
Definition: Descriptors.hpp:534
armnn::LayerSupportHandle::IsFakeQuantizationSupported
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:660
armnn::LayerSupportHandle::IsConvolution3dSupported
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:425
armnn::ComparisonDescriptor
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:89
armnn::FillDescriptor
A FillDescriptor for the FillLayer.
Definition: Descriptors.hpp:925
armnn::LayerSupportHandle
Definition: BackendHelper.hpp:29
armnn::LayerSupportHandle::IsDilatedDepthwiseConvolutionSupported
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:560
armnn::LayerSupportHandle::IsConvolution2dSupported
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:371
armnn::StandInDescriptor
A StandInDescriptor for the StandIn layer.
Definition: Descriptors.hpp:1281
armnn::LayerSupportHandle::IsInstanceNormalizationSupported
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:835
armnn::BackendOptions
Struct for the users to pass backend specific options.
Definition: BackendOptions.hpp:22
armnn::LayerSupportHandle::IsMaximumSupported
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:933
armnn::LstmDescriptor
An LstmDescriptor for the LstmLayer.
Definition: Descriptors.hpp:1102
armnn::StridedSliceDescriptor
A StridedSliceDescriptor for the StridedSliceLayer.
Definition: Descriptors.hpp:1303
armnn::LayerSupportHandle::IsBackendRegistered
bool IsBackendRegistered() const
Definition: BackendHelper.cpp:142
armnn::LayerSupportHandle::IsPreCompiledSupported
bool IsPreCompiledSupported(const TensorInfo &input, const PreCompiledDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1124
armnn::LayerSupportHandle::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())
Definition: BackendHelper.cpp:215
armnn::LogicalBinaryDescriptor
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
Definition: Descriptors.hpp:1518
armnn::LayerSupportHandle::IsChannelShuffleSupported
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:279
std
Definition: BackendId.hpp:149
armnn::LayerSupportHandle::IsPreluSupported
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1138
ARMNN_DEPRECATED_MSG_REMOVAL_DATE
#define ARMNN_DEPRECATED_MSG_REMOVAL_DATE(message, removed_in_release)
Definition: Deprecated.hpp:44
armnn::ILayerSupport
Definition: ILayerSupport.hpp:23
BackendOptions.hpp
armnn::BackendId
Definition: BackendId.hpp:75
armnn::LayerSupportHandle::IsDequantizeSupported
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:526
armnn::OriginsDescriptor
An OriginsDescriptor for the ConcatLayer.
Definition: Descriptors.hpp:201
armnn::GetNumberOfCacheFiles
unsigned int GetNumberOfCacheFiles(const armnn::BackendId &backend)
Returns the number of cached files if backend supports caching.
Definition: BackendHelper.cpp:130
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::LayerSupportHandle::IsSpaceToBatchNdSupported
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1323
armnn::LstmInputParamsInfo
Definition: LstmParams.hpp:63
armnn::LayerSupportHandle::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())
Definition: BackendHelper.cpp:912
armnn::LayerSupportHandle::IsConvertFp16ToFp32Supported
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:343
armnn::LayerSupportHandle::IsReshapeSupported
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1234
armnn::LayerSupportHandle::IsConvertFp32ToFp16Supported
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:357
armnn::LayerSupportHandle::IsSubtractionSupported
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1431
armnn::DetectionPostProcessDescriptor
Definition: Descriptors.hpp:713
armnn::PreCompiledDescriptor
A PreCompiledDescriptor for the PreCompiledLayer.
Definition: Descriptors.hpp:1367
armnn::LayerSupportHandle::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())
Definition: BackendHelper.cpp:1187
armnn::Pooling2dDescriptor
A Pooling2dDescriptor for the Pooling2dLayer.
Definition: Descriptors.hpp:371
armnn::BroadcastToDescriptor
Definition: Descriptors.hpp:1659
armnn::DepthwiseConvolution2dDescriptor
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
Definition: Descriptors.hpp:659
armnn::LayerSupportHandle::IsConstantSupported
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:330
armnn::LayerSupportHandle::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())
Definition: BackendHelper.cpp:1167
armnn::ReduceDescriptor
A ReduceDescriptor for the REDUCE operators.
Definition: Descriptors.hpp:1538
armnn::LayerSupportHandle::IsSwitchSupported
bool IsSwitchSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output0, const TensorInfo &output1, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1446
armnn::FakeQuantizationDescriptor
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
Definition: Descriptors.hpp:906
armnn::LayerSupportHandle::IsReduceSupported
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1219
armnn::LayerSupportHandle::IsStandInSupported
bool IsStandInSupported(const std::vector< const TensorInfo * > &inputs, const std::vector< const TensorInfo * > &outputs, const StandInDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1392
armnn::MeanDescriptor
A MeanDescriptor for the MeanLayer.
Definition: Descriptors.hpp:1172
armnn::LayerSupportHandle::IsQuantizeSupported
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1153
armnn::TileDescriptor
Definition: Descriptors.hpp:1640
armnn::LayerSupportHandle::IsAdditionSupported
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:169
armnn::SoftmaxDescriptor
A SoftmaxDescriptor for the SoftmaxLayer.
Definition: Descriptors.hpp:177
armnn::LayerSupportHandle::IsElementwiseUnarySupported
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:645
armnn::LayerSupportHandle::IsResizeSupported
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1249
armnn::SpaceToDepthDescriptor
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
Definition: Descriptors.hpp:1075
armnn::LayerSupportHandle::IsActivationSupported
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:154
armnn::GetCapability
Optional< const BackendOptions::BackendOption > GetCapability(const std::string &backendCapabilityName, const BackendCapabilities &capabilities)
Returns a BackendCapability if the backend lists the capability The BackendCapability must then be in...
Definition: BackendHelper.cpp:37
armnn::LayerSupportHandle::IsFillSupported
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:674
armnn::HasMatchingCapability
bool HasMatchingCapability(const BackendOptions::BackendOption &capability, const BackendCapabilities &capabilities)
Convenience function to check if a given capability matches a capability in a BackendCapabilities str...
Definition: BackendHelper.cpp:85