ArmNN
 20.02
LayerSupportBase.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 namespace armnn
11 {
12 
14 {
15 public:
16  ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead")
17  bool IsAbsSupported(const TensorInfo& input,
18  const TensorInfo& output,
19  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
20 
21  bool IsActivationSupported(const TensorInfo& input,
22  const TensorInfo& output,
23  const ActivationDescriptor& descriptor,
24  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
25 
26  bool IsAdditionSupported(const TensorInfo& input0,
27  const TensorInfo& input1,
28  const TensorInfo& output,
29  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
30 
31  bool IsArgMinMaxSupported(const TensorInfo& input,
32  const TensorInfo& output,
33  const ArgMinMaxDescriptor& descriptor,
34  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
35 
36  bool IsBatchNormalizationSupported(const TensorInfo& input,
37  const TensorInfo& output,
38  const TensorInfo& mean,
39  const TensorInfo& var,
40  const TensorInfo& beta,
41  const TensorInfo& gamma,
42  const BatchNormalizationDescriptor& descriptor,
43  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
44 
45  bool IsBatchToSpaceNdSupported(const TensorInfo& input,
46  const TensorInfo& output,
47  const BatchToSpaceNdDescriptor& descriptor,
48  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
49 
50  bool IsComparisonSupported(const TensorInfo& input0,
51  const TensorInfo& input1,
52  const TensorInfo& output,
53  const ComparisonDescriptor& descriptor,
54  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
55 
56  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
57  const TensorInfo& output,
58  const OriginsDescriptor& descriptor,
59  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
60 
61  bool IsConstantSupported(const TensorInfo& output,
62  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
63 
64  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
65  const TensorInfo& output,
66  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
67 
69  const TensorInfo& input,
70  const TensorInfo& output,
71  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
72 
73  bool IsConvolution2dSupported(const TensorInfo& input,
74  const TensorInfo& output,
75  const Convolution2dDescriptor& descriptor,
76  const TensorInfo& weights,
77  const Optional<TensorInfo>& biases,
78  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
79 
80  bool IsDebugSupported(const TensorInfo& input,
81  const TensorInfo& output,
82  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
83 
84  bool IsDepthToSpaceSupported(const TensorInfo& input,
85  const TensorInfo& output,
86  const DepthToSpaceDescriptor& descriptor,
87  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
88 
90  const TensorInfo& output,
91  const DepthwiseConvolution2dDescriptor& descriptor,
92  const TensorInfo& weights,
93  const Optional<TensorInfo>& biases,
94  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
95 
96  bool IsDequantizeSupported(const TensorInfo& input,
97  const TensorInfo& output,
98  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
99 
101  const TensorInfo& scores,
102  const TensorInfo& anchors,
103  const TensorInfo& detectionBoxes,
104  const TensorInfo& detectionClasses,
105  const TensorInfo& detectionScores,
106  const TensorInfo& numDetections,
107  const DetectionPostProcessDescriptor& descriptor,
108  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
109 
111  const TensorInfo& output,
112  const DepthwiseConvolution2dDescriptor& descriptor,
113  const TensorInfo& weights,
114  const Optional<TensorInfo>& biases,
115  Optional<std::string&> reasonIfUnsupported =
116  EmptyOptional()) const override;
117 
118  bool IsDivisionSupported(const TensorInfo& input0,
119  const TensorInfo& input1,
120  const TensorInfo& output,
121  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
122 
123  bool IsElementwiseUnarySupported(const TensorInfo& input,
124  const TensorInfo& output,
125  const ElementwiseUnaryDescriptor& descriptor,
126  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
127 
128  ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead")
129  bool IsEqualSupported(const TensorInfo& input0,
130  const TensorInfo& input1,
131  const TensorInfo& output,
132  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
133 
134  bool IsFakeQuantizationSupported(const TensorInfo& input,
135  const FakeQuantizationDescriptor& descriptor,
136  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
137 
138  bool IsFloorSupported(const TensorInfo& input,
139  const TensorInfo& output,
140  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
141 
142  bool IsFullyConnectedSupported(const TensorInfo& input,
143  const TensorInfo& output,
144  const TensorInfo& weights,
145  const TensorInfo& biases,
146  const FullyConnectedDescriptor& descriptor,
147  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
148 
149  bool IsGatherSupported(const TensorInfo& input0,
150  const TensorInfo& input1,
151  const TensorInfo& output,
152  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
153 
154  ARMNN_DEPRECATED_MSG("Use IsComparisonSupported instead")
155  bool IsGreaterSupported(const TensorInfo& input0,
156  const TensorInfo& input1,
157  const TensorInfo& output,
158  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
159 
160  bool IsInputSupported(const TensorInfo& input,
161  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
162 
164  const TensorInfo& input,
165  const TensorInfo& output,
166  const InstanceNormalizationDescriptor& descriptor,
167  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
168 
169  bool IsL2NormalizationSupported(const TensorInfo& input,
170  const TensorInfo& output,
171  const L2NormalizationDescriptor& descriptor,
172  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
173 
174  bool IsLogSoftmaxSupported(const TensorInfo& input,
175  const TensorInfo& output,
176  const LogSoftmaxDescriptor& descriptor,
177  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
178 
179  bool IsLstmSupported(const TensorInfo& input,
180  const TensorInfo& outputStateIn,
181  const TensorInfo& cellStateIn,
182  const TensorInfo& scratchBuffer,
183  const TensorInfo& outputStateOut,
184  const TensorInfo& cellStateOut,
185  const TensorInfo& output,
186  const LstmDescriptor& descriptor,
187  const LstmInputParamsInfo& paramsInfo,
188  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
189 
190  bool IsMaximumSupported(const TensorInfo& input0,
191  const TensorInfo& input1,
192  const TensorInfo& output,
193  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
194 
195  bool IsMeanSupported(const TensorInfo& input,
196  const TensorInfo& output,
197  const MeanDescriptor& descriptor,
198  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
199 
200  bool IsMemCopySupported(const TensorInfo& input,
201  const TensorInfo& output,
202  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
203 
204  bool IsMemImportSupported(const TensorInfo& input,
205  const TensorInfo& output,
206  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
207 
208  bool IsMergeSupported(const TensorInfo& input0,
209  const TensorInfo& input1,
210  const TensorInfo& output,
211  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
212 
213  ARMNN_DEPRECATED_MSG("Use IsConcatSupported instead")
214  bool IsMergerSupported(const std::vector<const TensorInfo*> inputs,
215  const TensorInfo& output,
216  const OriginsDescriptor& descriptor,
217  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
218 
219  bool IsMinimumSupported(const TensorInfo& input0,
220  const TensorInfo& input1,
221  const TensorInfo& output,
222  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
223 
224  bool IsMultiplicationSupported(const TensorInfo& input0,
225  const TensorInfo& input1,
226  const TensorInfo& output,
227  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
228 
229  bool IsNormalizationSupported(const TensorInfo& input,
230  const TensorInfo& output,
231  const NormalizationDescriptor& descriptor,
232  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
233 
234  bool IsOutputSupported(const TensorInfo& output,
235  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
236 
237  bool IsPadSupported(const TensorInfo& input,
238  const TensorInfo& output,
239  const PadDescriptor& descriptor,
240  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
241 
242  bool IsPermuteSupported(const TensorInfo& input,
243  const TensorInfo& output,
244  const PermuteDescriptor& descriptor,
245  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
246 
247  bool IsPooling2dSupported(const TensorInfo& input,
248  const TensorInfo& output,
249  const Pooling2dDescriptor& descriptor,
250  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
251 
252  bool IsPreCompiledSupported(const TensorInfo& input,
253  const PreCompiledDescriptor& descriptor,
254  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
255 
256  bool IsPreluSupported(const TensorInfo& input,
257  const TensorInfo& alpha,
258  const TensorInfo& output,
259  Optional<std::string &> reasonIfUnsupported) const override;
260 
261  bool IsQuantizeSupported(const TensorInfo& input,
262  const TensorInfo& output,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsQuantizedLstmSupported(const TensorInfo& input,
266  const TensorInfo& previousCellStateIn,
267  const TensorInfo& previousOutputIn,
268  const TensorInfo& cellStateOut,
269  const TensorInfo& output,
270  const QuantizedLstmInputParamsInfo& paramsInfo,
271  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
272 
273  bool IsReshapeSupported(const TensorInfo& input,
274  const TensorInfo& output,
275  const ReshapeDescriptor& descriptor,
276  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
277 
278  bool IsResizeSupported(const TensorInfo& input,
279  const TensorInfo& output,
280  const ResizeDescriptor& descriptor,
281  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
282 
283  ARMNN_DEPRECATED_MSG("Use IsResizeSupported instead")
284  bool IsResizeBilinearSupported(const TensorInfo& input,
285  const TensorInfo& output,
286  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
287 
288  ARMNN_DEPRECATED_MSG("Use IsElementwiseUnarySupported instead")
289  bool IsRsqrtSupported(const TensorInfo& input,
290  const TensorInfo& output,
291  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
292 
293  bool IsSliceSupported(const TensorInfo& input,
294  const TensorInfo& output,
295  const SliceDescriptor& descriptor,
296  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
297 
298  bool IsSoftmaxSupported(const TensorInfo& input,
299  const TensorInfo& output,
300  const SoftmaxDescriptor& descriptor,
301  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
302 
303  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
304  const TensorInfo& output,
305  const SpaceToBatchNdDescriptor& descriptor,
306  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
307 
308  bool IsSpaceToDepthSupported(const TensorInfo& input,
309  const TensorInfo& output,
310  const SpaceToDepthDescriptor& descriptor,
311  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
312 
313  ARMNN_DEPRECATED_MSG("Use IsSplitterSupported with outputs instead")
314  bool IsSplitterSupported(const TensorInfo& input,
315  const ViewsDescriptor& descriptor,
316  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
317 
318  bool IsSplitterSupported(const TensorInfo& input,
319  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
320  const ViewsDescriptor& descriptor,
321  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
322 
323  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
324  const TensorInfo& output,
325  const StackDescriptor& descriptor,
326  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
327 
328  bool IsStandInSupported(const std::vector<const TensorInfo*>& inputs,
329  const std::vector<const TensorInfo*>& outputs,
330  const StandInDescriptor& descriptor,
331  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
332 
333  bool IsStridedSliceSupported(const TensorInfo& input,
334  const TensorInfo& output,
335  const StridedSliceDescriptor& descriptor,
336  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
337 
338  bool IsSubtractionSupported(const TensorInfo& input0,
339  const TensorInfo& input1,
340  const TensorInfo& output,
341  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
342 
343  bool IsSwitchSupported(const TensorInfo& input0,
344  const TensorInfo& input1,
345  const TensorInfo& output0,
346  const TensorInfo& output1,
347  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
348 
350  const TensorInfo& input,
351  const TensorInfo& output,
352  const TransposeConvolution2dDescriptor& descriptor,
353  const TensorInfo& weights,
354  const Optional<TensorInfo>& biases,
355  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
356 
357  bool IsTransposeSupported(const TensorInfo& input,
358  const TensorInfo& output,
359  const TransposeDescriptor& descriptor,
360  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
361 
362 };
363 
364 } // namespace armnn
bool IsEqualSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ViewsDescriptor for the SplitterLayer.
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const override
A ReshapeDescriptor for the ReshapeLayer.
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()) const override
bool IsMemImportSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:62
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMultiplicationSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsQuantizedLstmSupported(const TensorInfo &input, const TensorInfo &previousCellStateIn, const TensorInfo &previousOutputIn, const TensorInfo &cellStateOut, const TensorInfo &output, const QuantizedLstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDebugSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsRsqrtSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsActivationSupported(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMeanSupported(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSpaceToBatchNdSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
std::vector< float > boxEncodings({ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f })
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
Copyright (c) 2020 ARM Limited.
bool IsStandInSupported(const std::vector< const TensorInfo *> &inputs, const std::vector< const TensorInfo *> &outputs, const StandInDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsL2NormalizationSupported(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFakeQuantizationSupported(const TensorInfo &input, const FakeQuantizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
bool IsPreCompiledSupported(const TensorInfo &input, const PreCompiledDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ResizeDescriptor for the ResizeLayer.
A StackDescriptor for the StackLayer.
A PadDescriptor for the PadLayer.
bool IsSwitchSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output0, const TensorInfo &output1, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMergerSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsAbsSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An LstmDescriptor for the LstmLayer.
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:43
An OriginsDescriptor for the ConcatLayer.
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A FullyConnectedDescriptor for the FullyConnectedLayer.
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
bool IsConvertFp32ToFp16Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A StandInDescriptor for the StandIn layer.
bool IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMergeSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsStackSupported(const std::vector< const TensorInfo *> &inputs, const TensorInfo &output, const StackDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:20
bool IsMemCopySupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsInstanceNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SliceDescriptor for the SliceLayer.
bool IsTransposeConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
bool IsSplitterSupported(const TensorInfo &input, const ViewsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:82
bool IsConvolution2dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
std::vector< float > scores({ 0.0f, 0.9f, 0.8f, 0.0f, 0.75f, 0.72f, 0.0f, 0.6f, 0.5f, 0.0f, 0.93f, 0.95f, 0.0f, 0.5f, 0.4f, 0.0f, 0.3f, 0.2f })
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsLstmSupported(const TensorInfo &input, const TensorInfo &outputStateIn, const TensorInfo &cellStateIn, const TensorInfo &scratchBuffer, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const LstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A MeanDescriptor for the MeanLayer.
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConstantSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsOutputSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
#define ARMNN_DEPRECATED_MSG(message)
Definition: Deprecated.hpp:43
A PreCompiledDescriptor for the PreCompiledLayer.
A Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SoftmaxDescriptor for the SoftmaxLayer.
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const OriginsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsBatchNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &mean, const TensorInfo &var, const TensorInfo &beta, const TensorInfo &gamma, const BatchNormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsResizeBilinearSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsGreaterSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A PermuteDescriptor for the PermuteLayer.
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
std::vector< float > anchors({ 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 100.5f, 1.0f, 1.0f })