ArmNN
 23.02
BackendHelper.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017,2022 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  bool IsAdditionSupported(const TensorInfo& input0,
46  const TensorInfo& input1,
47  const TensorInfo& output,
48  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
49 
50  bool IsArgMinMaxSupported(const TensorInfo& input,
51  const TensorInfo& output,
52  const ArgMinMaxDescriptor& descriptor,
53  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
54 
55  bool IsBatchMatMulSupported(const TensorInfo& input0,
56  const TensorInfo& input1,
57  const TensorInfo& output,
58  const BatchMatMulDescriptor& descriptor,
59  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
60 
61  bool IsBatchNormalizationSupported(const TensorInfo& input,
62  const TensorInfo& output,
63  const TensorInfo& mean,
64  const TensorInfo& var,
65  const TensorInfo& beta,
66  const TensorInfo& gamma,
67  const BatchNormalizationDescriptor& descriptor,
68  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
69 
70  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
71  const TensorInfo& output,
72  const BatchToSpaceNdDescriptor& descriptor,
73  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
74 
75  bool IsCastSupported(const TensorInfo& input,
76  const TensorInfo& output,
77  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
78 
79  bool IsChannelShuffleSupported(const TensorInfo& input,
80  const TensorInfo& output,
81  const ChannelShuffleDescriptor& descriptor,
82  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
83 
84  bool IsComparisonSupported(const TensorInfo& input0,
85  const TensorInfo& input1,
86  const TensorInfo& output,
87  const ComparisonDescriptor& descriptor,
88  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
89 
90  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
91  const TensorInfo& output,
92  const OriginsDescriptor& descriptor,
93  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
94 
95  bool IsConstantSupported(const TensorInfo& output,
96  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
97 
98  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
99  const TensorInfo& output,
100  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
101 
102  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
103  const TensorInfo& output,
104  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
105 
106  bool IsConvolution2dSupported(const TensorInfo& input,
107  const TensorInfo& output,
108  const Convolution2dDescriptor& descriptor,
109  const TensorInfo& weights,
110  const Optional<TensorInfo>& biases,
111  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
112 
113  bool IsConvolution3dSupported(const TensorInfo& input,
114  const TensorInfo& output,
115  const Convolution3dDescriptor& descriptor,
116  const TensorInfo& weights,
117  const Optional<TensorInfo>& biases,
118  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
119 
120  bool IsDebugSupported(const TensorInfo& input,
121  const TensorInfo& output,
122  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
123 
124  bool IsDepthToSpaceSupported(const TensorInfo& input,
125  const TensorInfo& output,
126  const DepthToSpaceDescriptor& descriptor,
127  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
128 
130  const TensorInfo& input,
131  const TensorInfo& output,
132  const DepthwiseConvolution2dDescriptor& descriptor,
133  const TensorInfo& weights,
134  const Optional<TensorInfo>& biases,
135  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
136 
137  bool IsDequantizeSupported(const TensorInfo& input,
138  const TensorInfo& output,
139  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
140 
141  bool IsDetectionPostProcessSupported(const TensorInfo& boxEncodings,
142  const TensorInfo& scores,
143  const TensorInfo& anchors,
144  const TensorInfo& detectionBoxes,
145  const TensorInfo& detectionClasses,
146  const TensorInfo& detectionScores,
147  const TensorInfo& numDetections,
148  const DetectionPostProcessDescriptor& descriptor,
149  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
150 
152  const TensorInfo& input,
153  const TensorInfo& output,
154  const DepthwiseConvolution2dDescriptor& descriptor,
155  const TensorInfo& weights,
156  const Optional<TensorInfo>& biases,
157  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
158 
159  bool IsDivisionSupported(const TensorInfo& input0,
160  const TensorInfo& input1,
161  const TensorInfo& output,
162  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
163 
164  bool IsElementwiseUnarySupported(const TensorInfo& input,
165  const TensorInfo& output,
166  const ElementwiseUnaryDescriptor& descriptor,
167  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
168 
169  bool IsFakeQuantizationSupported(const TensorInfo& input,
170  const FakeQuantizationDescriptor& descriptor,
171  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
172 
173  bool IsFillSupported(const TensorInfo& input,
174  const TensorInfo& output,
175  const FillDescriptor& descriptor,
176  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
177 
178  bool IsFloorSupported(const TensorInfo& input,
179  const TensorInfo& output,
180  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
181 
182  bool IsFullyConnectedSupported(const TensorInfo& input,
183  const TensorInfo& output,
184  const TensorInfo& weights,
185  const TensorInfo& biases,
186  const FullyConnectedDescriptor& descriptor,
187  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
188 
189  bool IsGatherSupported(const TensorInfo& input0,
190  const TensorInfo& input1,
191  const TensorInfo& output,
192  const GatherDescriptor& descriptor,
193  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
194 
195  bool IsGatherNdSupported(const TensorInfo& input0,
196  const TensorInfo& input1,
197  const TensorInfo& output,
198  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
199 
200  bool IsInputSupported(const TensorInfo& input,
201  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
202 
204  const TensorInfo& input,
205  const TensorInfo& output,
206  const InstanceNormalizationDescriptor& descriptor,
207  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
208 
209  bool IsL2NormalizationSupported(const TensorInfo& input,
210  const TensorInfo& output,
211  const L2NormalizationDescriptor& descriptor,
212  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
213 
214  bool IsLogicalBinarySupported(const TensorInfo& input0,
215  const TensorInfo& input1,
216  const TensorInfo& output,
217  const LogicalBinaryDescriptor& descriptor,
218  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
219 
220  bool IsLogicalUnarySupported(const TensorInfo& input,
221  const TensorInfo& output,
222  const ElementwiseUnaryDescriptor& descriptor,
223  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
224 
225  bool IsLogSoftmaxSupported(const TensorInfo& input,
226  const TensorInfo& output,
227  const LogSoftmaxDescriptor& descriptor,
228  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
229 
230  bool IsLstmSupported(const TensorInfo& input,
231  const TensorInfo& outputStateIn,
232  const TensorInfo& cellStateIn,
233  const TensorInfo& scratchBuffer,
234  const TensorInfo& outputStateOut,
235  const TensorInfo& cellStateOut,
236  const TensorInfo& output,
237  const LstmDescriptor& descriptor,
238  const LstmInputParamsInfo& paramsInfo,
239  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
240 
241  bool IsMaximumSupported(const TensorInfo& input0,
242  const TensorInfo& input1,
243  const TensorInfo& output,
244  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
245 
246  bool IsMeanSupported(const TensorInfo& input,
247  const TensorInfo& output,
248  const MeanDescriptor& descriptor,
249  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
250 
251  bool IsMemCopySupported(const TensorInfo& input,
252  const TensorInfo& output,
253  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
254 
255  bool IsMemImportSupported(const TensorInfo& input,
256  const TensorInfo& output,
257  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
258 
259  bool IsMergeSupported(const TensorInfo& input0,
260  const TensorInfo& input1,
261  const TensorInfo& output,
262  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
263 
264  bool IsMinimumSupported(const TensorInfo& input0,
265  const TensorInfo& input1,
266  const TensorInfo& output,
267  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
268 
269  bool IsMultiplicationSupported(const TensorInfo& input0,
270  const TensorInfo& input1,
271  const TensorInfo& output,
272  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
273 
274  bool IsNormalizationSupported(const TensorInfo& input,
275  const TensorInfo& output,
276  const NormalizationDescriptor& descriptor,
277  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
278 
279  bool IsOutputSupported(const TensorInfo& output,
280  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
281 
282  bool IsPadSupported(const TensorInfo& input,
283  const TensorInfo& output,
284  const PadDescriptor& descriptor,
285  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
286 
287  bool IsPermuteSupported(const TensorInfo& input,
288  const TensorInfo& output,
289  const PermuteDescriptor& descriptor,
290  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
291 
292  bool IsPooling2dSupported(const TensorInfo& input,
293  const TensorInfo& output,
294  const Pooling2dDescriptor& descriptor,
295  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
296 
297  bool IsPooling3dSupported(const TensorInfo& input,
298  const TensorInfo& output,
299  const Pooling3dDescriptor& descriptor,
300  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
301 
302  bool IsPreCompiledSupported(const TensorInfo& input,
303  const PreCompiledDescriptor& descriptor,
304  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
305 
306  bool IsPreluSupported(const TensorInfo& input,
307  const TensorInfo& alpha,
308  const TensorInfo& output,
309  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
310 
311  bool IsQuantizeSupported(const TensorInfo& input,
312  const TensorInfo& output,
313  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
314 
315  bool IsQLstmSupported(const TensorInfo& input,
316  const TensorInfo& previousOutputIn,
317  const TensorInfo& previousCellStateIn,
318  const TensorInfo& outputStateOut,
319  const TensorInfo& cellStateOut,
320  const TensorInfo& output,
321  const QLstmDescriptor& descriptor,
322  const LstmInputParamsInfo& paramsInfo,
323  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
324 
325  bool IsQuantizedLstmSupported(const TensorInfo& input,
326  const TensorInfo& previousCellStateIn,
327  const TensorInfo& previousOutputIn,
328  const TensorInfo& cellStateOut,
329  const TensorInfo& output,
330  const QuantizedLstmInputParamsInfo& paramsInfo,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
332 
333  bool IsRankSupported(const TensorInfo& input,
334  const TensorInfo& output,
335  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
336 
337  bool IsReduceSupported(const TensorInfo& input,
338  const TensorInfo& output,
339  const ReduceDescriptor& descriptor,
340  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
341 
342  bool IsReshapeSupported(const TensorInfo& input,
343  const TensorInfo& output,
344  const ReshapeDescriptor& descriptor,
345  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
346 
347  bool IsResizeSupported(const TensorInfo& input,
348  const TensorInfo& output,
349  const ResizeDescriptor& descriptor,
350  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
351 
352  bool IsShapeSupported(const TensorInfo& input,
353  const TensorInfo& output,
354  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
355 
356  bool IsSliceSupported(const TensorInfo& input,
357  const TensorInfo& output,
358  const SliceDescriptor& descriptor,
359  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
360 
361  bool IsSoftmaxSupported(const TensorInfo& input,
362  const TensorInfo& output,
363  const SoftmaxDescriptor& descriptor,
364  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
365 
366  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
367  const TensorInfo& output,
368  const SpaceToBatchNdDescriptor& descriptor,
369  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
370 
371  bool IsSpaceToDepthSupported(const TensorInfo& input,
372  const TensorInfo& output,
373  const SpaceToDepthDescriptor& descriptor,
374  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
375 
376  bool IsSplitterSupported(const TensorInfo& input,
377  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
378  const ViewsDescriptor& descriptor,
379  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
380 
381  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
382  const TensorInfo& output,
383  const StackDescriptor& descriptor,
384  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
385 
386  bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs,
387  const std::vector<const TensorInfo*>& outputs,
388  const StandInDescriptor& descriptor,
389  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
390 
391 
392  bool IsStridedSliceSupported(const TensorInfo& input,
393  const TensorInfo& output,
394  const StridedSliceDescriptor& descriptor,
395  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
396 
397  bool IsSubtractionSupported(const TensorInfo& input0,
398  const TensorInfo& input1,
399  const TensorInfo& output,
400  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
401 
402  bool IsSwitchSupported(const TensorInfo& input0,
403  const TensorInfo& input1,
404  const TensorInfo& output0,
405  const TensorInfo& output1,
406  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
407 
409  const TensorInfo& input,
410  const TensorInfo& output,
411  const TransposeConvolution2dDescriptor& descriptor,
412  const TensorInfo& weights,
413  const Optional<TensorInfo>& biases,
414  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
415 
416  bool IsTransposeSupported(const TensorInfo& input,
417  const TensorInfo& output,
418  const TransposeDescriptor& descriptor,
419  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
420 
422  const TensorInfo& input,
423  const TensorInfo& outputStateIn,
424  const TensorInfo& cellStateIn,
425  const TensorInfo& outputStateOut,
426  const TensorInfo& cellStateOut,
427  const TensorInfo& output,
428  const LstmDescriptor& descriptor,
429  const LstmInputParamsInfo& paramsInfo,
430  Optional<std::string&> reasonIfUnsupported = EmptyOptional());
431 
432 private:
433  std::shared_ptr<ILayerSupport> m_LayerSupport;
434  const BackendId m_BackendId;
435 };
436 
437 /// Convenience function to retrieve the ILayerSupportHandle for a backend
438 LayerSupportHandle GetILayerSupportByBackendId(const armnn::BackendId& backend);
439 
440 /// Convenience function to check if a capability exists in a BackendCapabilites struct
441 bool HasCapability(const std::string& name,const BackendCapabilities& capabilities);
442 
443 /// Convenience function to check if a capability exists in a backend
444 bool HasCapability(const std::string& name, const armnn::BackendId& backend);
445 
446 /// Convenience function to check if a given capability matches a capability in a BackendCapabilities struct
447 bool HasCapability(const BackendOptions::BackendOption& capability, const BackendCapabilities& capabilities);
448 
449 /// Convenience function to check if a given capability matches a capability in a backend
450 bool HasCapability(const BackendOptions::BackendOption& backendOption, const armnn::BackendId& backend);
451 
452 /// Returns a BackendCapability if the backend lists the capability
453 /// The BackendCapability must then be inspected to check whether or not that BackendCapability is supported
454 /// Otherwise returns an EmptyOptional if the BackendCapability is unlisted
455 Optional<const BackendOptions::BackendOption> GetCapability(const std::string& backendCapabilityName,
456  const BackendCapabilities& capabilities);
457 
458 /// Returns a BackendCapability if the backend lists the capability
459 /// The BackendCapability must then be inspected to check whether or not that BackendCapability is supported
460 /// Otherwise returns an EmptyOptional if the BackendCapability is unlisted
461 Optional<const BackendOptions::BackendOption> GetCapability(const std::string& backendCapabilityName,
462  const armnn::BackendId& backend);
463 
464 /// Returns the number of cached files if backend supports caching
465 unsigned int GetNumberOfCacheFiles(const armnn::BackendId& backend);
466 
467 }
armnn::LayerSupportHandle::IsTransposeSupported
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1400
armnn::BackendId
Definition: BackendId.hpp:75
armnn::LstmInputParamsInfo
Definition: LstmParams.hpp:63
armnn::LayerSupportHandle::IsShapeSupported
bool IsShapeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1198
armnn::LayerSupportHandle::IsLogicalUnarySupported
bool IsLogicalUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:816
armnn::GatherDescriptor
A GatherDescriptor for the GatherLayer.
Definition: Descriptors.hpp:912
armnn::NormalizationDescriptor
A NormalizationDescriptor for the NormalizationLayer.
Definition: Descriptors.hpp:737
armnn::TransposeDescriptor
A TransposeDescriptor for the TransposeLayer.
Definition: Descriptors.hpp:1437
armnn::LayerSupportHandle::IsStridedSliceSupported
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1335
armnn::LayerSupportHandle::IsReshapeSupported
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1168
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:345
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:205
armnn::ElementwiseUnaryDescriptor
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:109
armnn::PadDescriptor
A PadDescriptor for the PadLayer.
Definition: Descriptors.hpp:1143
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:1365
armnn::SoftmaxDescriptor
A SoftmaxDescriptor for the SoftmaxLayer.
Definition: Descriptors.hpp:157
armnn::StackDescriptor
A StackDescriptor for the StackLayer.
Definition: Descriptors.hpp:1198
armnn::LayerSupportHandle::IsOutputSupported
bool IsOutputSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:985
armnn::LayerSupportHandle::LayerSupportHandle
LayerSupportHandle(std::shared_ptr< ILayerSupport > layerSupport, const BackendId &backendId)
Definition: BackendHelper.hpp:35
armnn::SliceDescriptor
A SliceDescriptor for the SliceLayer.
Definition: Descriptors.hpp:1175
armnn::LayerSupportHandle::IsGatherNdSupported
bool IsGatherNdSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:741
armnn::LayerSupportHandle::IsSpaceToDepthSupported
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1257
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:399
armnn::ActivationDescriptor
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
armnn::LayerSupportHandle::IsFakeQuantizationSupported
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:618
Optional.hpp
armnn::LstmDescriptor
An LstmDescriptor for the LstmLayer.
Definition: Descriptors.hpp:1049
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:446
armnn::FullyConnectedDescriptor
A FullyConnectedDescriptor for the FullyConnectedLayer.
Definition: Descriptors.hpp:475
armnn::LayerSupportHandle::IsPooling3dSupported
bool IsPooling3dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling3dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1043
armnn::LayerSupportHandle::IsNormalizationSupported
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:970
armnn::BatchMatMulDescriptor
A BatchMatMulDescriptor for the BatchMatMul operator.
Definition: Descriptors.hpp:1531
armnn::ResizeDescriptor
A ResizeDescriptor for the ResizeLayer.
Definition: Descriptors.hpp:932
armnn::LayerSupportHandle::IsConvertFp16ToFp32Supported
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:317
armnn::LayerSupportHandle::IsPermuteSupported
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1013
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::StridedSliceDescriptor
A StridedSliceDescriptor for the StridedSliceLayer.
Definition: Descriptors.hpp:1250
armnn::LayerSupportHandle::IsDebugSupported
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:417
armnn::LayerSupportHandle::IsPadSupported
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:998
armnn::LayerSupportHandle::IsMeanSupported
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:882
armnn::Pooling3dDescriptor
A Pooling3dDescriptor for the Pooling3dLayer.
Definition: Descriptors.hpp:399
armnn::ReduceDescriptor
A ReduceDescriptor for the REDUCE operators.
Definition: Descriptors.hpp:1485
armnn::LayerSupportHandle::IsL2NormalizationSupported
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:785
armnn::ComparisonDescriptor
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:89
armnn::LayerSupportHandle::IsPreCompiledSupported
bool IsPreCompiledSupported(const TensorInfo &input, const PreCompiledDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1058
armnn::StandInDescriptor
A StandInDescriptor for the StandIn layer.
Definition: Descriptors.hpp:1228
armnn::ViewsDescriptor
A ViewsDescriptor for the SplitterLayer.
Definition: Descriptors.hpp:224
armnn::LayerSupportHandle::IsMultiplicationSupported
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:955
armnn::PreCompiledDescriptor
A PreCompiledDescriptor for the PreCompiledLayer.
Definition: Descriptors.hpp:1314
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:514
armnn::GetNumberOfCacheFiles
unsigned int GetNumberOfCacheFiles(const armnn::BackendId &backend)
Returns the number of cached files if backend supports caching.
Definition: BackendHelper.cpp:120
armnn::Compute
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
Definition: BackendId.hpp:21
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:534
armnn::LayerSupportHandle::IsDepthToSpaceSupported
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:431
armnn::LayerSupportHandle::IsSpaceToBatchNdSupported
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1242
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
BackendId.hpp
armnn::BatchToSpaceNdDescriptor
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
Definition: Descriptors.hpp:843
armnn::LayerSupportHandle::IsBatchToSpaceNdSupported
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:224
armnn::SpaceToDepthDescriptor
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
Definition: Descriptors.hpp:1022
armnn::LayerSupportHandle::IsCastSupported
bool IsCastSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:239
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:1415
armnn::LayerSupportHandle::IsActivationSupported
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:144
armnn::LayerSupportHandle::IsDivisionSupported
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:588
armnn::DetectionPostProcessDescriptor
Definition: Descriptors.hpp:681
armnn::LayerSupportHandle::IsPreluSupported
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1072
armnn::FillDescriptor
A FillDescriptor for the FillLayer.
Definition: Descriptors.hpp:893
armnn::LayerSupportHandle::IsMemCopySupported
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:897
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:1311
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:1381
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:1121
armnn::LayerSupportHandle::IsMaximumSupported
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:867
armnn::DepthwiseConvolution2dDescriptor
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
Definition: Descriptors.hpp:627
armnn::MeanDescriptor
A MeanDescriptor for the MeanLayer.
Definition: Descriptors.hpp:1119
armnn::LayerSupportHandle::IsPooling2dSupported
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1028
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:189
armnn::LayerSupportHandle::IsSoftmaxSupported
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1227
armnn::L2NormalizationDescriptor
A L2NormalizationDescriptor for the L2NormalizationLayer.
Definition: Descriptors.hpp:777
armnn::ChannelShuffleDescriptor
A ChannelShuffleDescriptor for the ChannelShuffle operator.
Definition: Descriptors.hpp:1509
armnn::Convolution3dDescriptor
A Convolution3dDescriptor for the Convolution3dLayer.
Definition: Descriptors.hpp:556
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:268
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::LayerSupportHandle::IsDequantizeSupported
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:500
armnn::Convolution2dDescriptor
A Convolution2dDescriptor for the Convolution2dLayer.
Definition: Descriptors.hpp:502
armnn::LayerSupportHandle::IsReduceSupported
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1153
armnn::BackendCapabilities
BackendOptions BackendCapabilities
Definition: BackendOptions.hpp:19
armnn::BatchNormalizationDescriptor
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
Definition: Descriptors.hpp:796
armnn::LayerSupportHandle::IsResizeSupported
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1183
armnn::QLstmDescriptor
A QLstmDescriptor for the QLstmLayer.
Definition: Descriptors.hpp:1327
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::LayerSupportHandle::IsFillSupported
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:632
armnn::LayerSupportHandle::LayerSupportHandle
LayerSupportHandle(std::shared_ptr< ILayerSupport > layerSupport)
Definition: BackendHelper.hpp:32
armnn::LayerSupportHandle::IsLogSoftmaxSupported
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:831
armnn::Compute::Undefined
@ Undefined
armnn::LayerSupportHandle::IsChannelShuffleSupported
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:253
armnn::LayerSupportHandle::IsRankSupported
bool IsRankSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1139
armnn::LayerSupportHandle::IsConstantSupported
bool IsConstantSupported(const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:304
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:1101
armnn::OriginsDescriptor
An OriginsDescriptor for the ConcatLayer.
Definition: Descriptors.hpp:181
armnn::ReshapeDescriptor
A ReshapeDescriptor for the ReshapeLayer.
Definition: Descriptors.hpp:970
armnn::LayerSupportHandle::IsConvertFp32ToFp16Supported
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:331
armnn::PermuteDescriptor
A PermuteDescriptor for the PermuteLayer.
Definition: Descriptors.hpp:129
armnn::TransposeConvolution2dDescriptor
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
Definition: Descriptors.hpp:1387
armnn::LayerSupportHandle
Definition: BackendHelper.hpp:29
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:284
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:1272
armnn::LayerSupportHandle::IsMinimumSupported
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:940
armnn::Pooling2dDescriptor
A Pooling2dDescriptor for the Pooling2dLayer.
Definition: Descriptors.hpp:339
armnn::LogicalBinaryDescriptor
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
Definition: Descriptors.hpp:1465
armnn::Optional< std::string & >
Descriptors.hpp
armnn::GetILayerSupportByBackendId
LayerSupportHandle GetILayerSupportByBackendId(const armnn::BackendId &backend)
Convenience function to retrieve the ILayerSupportHandle for a backend.
Definition: BackendHelper.cpp:23
armnn::ArgMinMaxDescriptor
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:67
armnn::LayerSupportHandle::IsArgMinMaxSupported
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:174
armnn::FakeQuantizationDescriptor
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
Definition: Descriptors.hpp:874
armnn::LayerSupportHandle::IsSubtractionSupported
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1350
armnn::LayerSupportHandle::IsAdditionSupported
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:159
armnn::LayerSupportHandle::IsQuantizeSupported
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1087
armnn::LayerSupportHandle::IsInstanceNormalizationSupported
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:769
armnn::QuantizedLstmInputParamsInfo
Definition: QuantizedLstmParams.hpp:119
std
Definition: BackendId.hpp:149
armnn::LayerSupportHandle::IsMemImportSupported
bool IsMemImportSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:911
BackendOptions.hpp
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:725
armnn::LayerSupportHandle::IsBackendRegistered
bool IsBackendRegistered() const
Definition: BackendHelper.cpp:132
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:1291
armnn::LayerSupportHandle::IsInputSupported
bool IsInputSupported(const TensorInfo &input, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:756
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:846
armnn::InstanceNormalizationDescriptor
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
Definition: Descriptors.hpp:815
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:800
armnn::LayerSupportHandle::IsSliceSupported
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:1212
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:661
armnn::LayerSupportHandle::IsMergeSupported
bool IsMergeSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:925
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::IsElementwiseUnarySupported
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:603
armnn::LayerSupportHandle::IsFloorSupported
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string & > reasonIfUnsupported=EmptyOptional())
Definition: BackendHelper.cpp:647
armnn::SpaceToBatchNdDescriptor
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
Definition: Descriptors.hpp:990