ArmNN
 21.11
ClLayerSupport.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
10 
11 namespace armnn
12 {
13 
15 {
16 public:
20 
21  bool 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 IsCastSupported(const TensorInfo& input,
51  const TensorInfo& output,
52  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
53 
54  bool IsChannelShuffleSupported(const TensorInfo& input,
55  const TensorInfo& output,
56  const ChannelShuffleDescriptor& descriptor,
57  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
58 
59  bool IsComparisonSupported(const TensorInfo& input0,
60  const TensorInfo& input1,
61  const TensorInfo& ouput,
62  const ComparisonDescriptor& descriptor,
63  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
64 
65  bool IsConcatSupported(const std::vector<const TensorInfo*> inputs,
66  const TensorInfo& output,
67  const ConcatDescriptor& descriptor,
68  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
69 
70  bool IsConstantSupported(const TensorInfo& output,
71  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
72 
73  bool IsConvertFp16ToFp32Supported(const TensorInfo& input,
74  const TensorInfo& output,
75  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
76 
77  bool IsConvertFp32ToFp16Supported(const TensorInfo& input,
78  const TensorInfo& output,
79  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
80 
81  bool IsConvolution2dSupported(const TensorInfo& input,
82  const TensorInfo& output,
83  const Convolution2dDescriptor& descriptor,
84  const TensorInfo& weights,
85  const Optional<TensorInfo>& biases,
86  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
87 
88  bool IsConvolution3dSupported(const TensorInfo& input,
89  const TensorInfo& output,
90  const Convolution3dDescriptor& descriptor,
91  const TensorInfo& weights,
92  const Optional<TensorInfo>& biases,
93  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
94 
95  bool IsDequantizeSupported(const TensorInfo& input,
96  const TensorInfo& output,
97  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
98 
99  bool IsDepthToSpaceSupported(const TensorInfo& input,
100  const TensorInfo& output,
101  const DepthToSpaceDescriptor& descriptor,
102  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
103 
105  const TensorInfo& output,
106  const DepthwiseConvolution2dDescriptor& descriptor,
107  const TensorInfo& weights,
108  const Optional<TensorInfo>& biases,
109  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
110 
112  const TensorInfo& output,
113  const DepthwiseConvolution2dDescriptor& descriptor,
114  const TensorInfo& weights,
115  const Optional<TensorInfo>& biases,
116  Optional<std::string&> reason = 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& ouput,
125  const ElementwiseUnaryDescriptor& descriptor,
126  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
127 
128  bool IsFillSupported(const TensorInfo& input,
129  const TensorInfo& output,
130  const FillDescriptor& descriptor,
131  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
132 
133  bool IsFloorSupported(const TensorInfo& input,
134  const TensorInfo& output,
135  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
136 
137  bool IsFullyConnectedSupported(const TensorInfo& input,
138  const TensorInfo& output,
139  const TensorInfo& weights,
140  const TensorInfo& biases,
141  const FullyConnectedDescriptor& descriptor,
142  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
143 
144  bool IsGatherSupported(const TensorInfo& input0,
145  const TensorInfo& input1,
146  const TensorInfo& output,
147  const GatherDescriptor& descriptor,
148  Optional<std::string&> reasonIfUnsupported) const override;
149 
150  bool IsInputSupported(const TensorInfo& input,
151  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
152 
154  const TensorInfo& output,
155  const InstanceNormalizationDescriptor& descriptor,
156  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
157 
158  bool IsL2NormalizationSupported(const TensorInfo& input,
159  const TensorInfo& output,
160  const L2NormalizationDescriptor& descriptor,
161  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
162 
163  bool IsLogicalBinarySupported(const TensorInfo& input0,
164  const TensorInfo& input1,
165  const TensorInfo& output,
166  const LogicalBinaryDescriptor& descriptor,
167  Optional<std::string&> reasonIfUnsupported) const override;
168 
169  bool IsLogSoftmaxSupported(const TensorInfo& input,
170  const TensorInfo& output,
171  const LogSoftmaxDescriptor& descriptor,
172  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
173 
174  bool IsLstmSupported(const TensorInfo& input,
175  const TensorInfo& outputStateIn,
176  const TensorInfo& cellStateIn,
177  const TensorInfo& scratchBuffer,
178  const TensorInfo& outputStateOut,
179  const TensorInfo& cellStateOut,
180  const TensorInfo& output,
181  const LstmDescriptor& descriptor,
182  const LstmInputParamsInfo& paramsInfo,
183  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
184 
185  bool IsMaximumSupported(const TensorInfo& input0,
186  const TensorInfo& input1,
187  const TensorInfo& output,
188  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
189 
190  bool IsMeanSupported(const TensorInfo& input,
191  const TensorInfo& output,
192  const MeanDescriptor& descriptor,
193  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
194 
195  bool IsMinimumSupported(const TensorInfo& input0,
196  const TensorInfo& input1,
197  const TensorInfo& output,
198  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
199 
200  bool IsMultiplicationSupported(const TensorInfo& input0,
201  const TensorInfo& input1,
202  const TensorInfo& output,
203  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
204 
205  bool IsNormalizationSupported(const TensorInfo& input,
206  const TensorInfo& output,
207  const NormalizationDescriptor& descriptor,
208  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
209 
210  bool IsOutputSupported(const TensorInfo& output,
211  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
212 
213  bool IsPadSupported(const TensorInfo& input,
214  const TensorInfo& output,
215  const PadDescriptor& descriptor,
216  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
217 
218  bool IsPermuteSupported(const TensorInfo& input,
219  const TensorInfo& output,
220  const PermuteDescriptor& descriptor,
221  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
222 
223  bool IsPooling2dSupported(const TensorInfo& input,
224  const TensorInfo& output,
225  const Pooling2dDescriptor& descriptor,
226  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
227 
228  bool IsPreluSupported(const TensorInfo& input,
229  const TensorInfo& alpha,
230  const TensorInfo& output,
231  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
232 
233  bool IsQLstmSupported(const TensorInfo& input,
234  const TensorInfo& previousOutputIn,
235  const TensorInfo& previousCellStateIn,
236  const TensorInfo& outputStateOut,
237  const TensorInfo& cellStateOut,
238  const TensorInfo& output,
239  const QLstmDescriptor& descriptor,
240  const LstmInputParamsInfo& paramsInfo,
241  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
242 
243  bool IsQuantizedLstmSupported(const TensorInfo& input,
244  const TensorInfo& previousCellStateIn,
245  const TensorInfo& previousOutputIn,
246  const TensorInfo& cellStateOut,
247  const TensorInfo& output,
248  const QuantizedLstmInputParamsInfo& paramsInfo,
249  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
250 
251  bool IsQuantizeSupported(const TensorInfo& input,
252  const TensorInfo& output,
253  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
254 
255  bool IsReduceSupported(const TensorInfo& input,
256  const TensorInfo& output,
257  const ReduceDescriptor& descriptor,
258  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
259 
260  bool IsReshapeSupported(const TensorInfo& input,
261  const TensorInfo& output,
262  const ReshapeDescriptor& descriptor,
263  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
264 
265  bool IsResizeSupported(const TensorInfo& input,
266  const TensorInfo& output,
267  const ResizeDescriptor& descriptor,
268  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
269 
270  bool IsSliceSupported(const TensorInfo& input,
271  const TensorInfo& output,
272  const SliceDescriptor& descriptor,
273  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
274 
275  bool IsSoftmaxSupported(const TensorInfo& input,
276  const TensorInfo& output,
277  const SoftmaxDescriptor& descriptor,
278  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
279 
280  bool IsSpaceToBatchNdSupported(const TensorInfo& input,
281  const TensorInfo& output,
282  const SpaceToBatchNdDescriptor& descriptor,
283  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
284 
285  bool IsSpaceToDepthSupported(const TensorInfo& input,
286  const TensorInfo& output,
287  const SpaceToDepthDescriptor& descriptor,
288  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
289 
290  bool IsSplitterSupported(const TensorInfo& input,
291  const std::vector<std::reference_wrapper<TensorInfo>>& outputs,
292  const ViewsDescriptor& descriptor,
293  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
294 
295  bool IsStackSupported(const std::vector<const TensorInfo*>& inputs,
296  const TensorInfo& output,
297  const StackDescriptor& descriptor,
298  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
299 
300  bool IsStridedSliceSupported(const TensorInfo& input,
301  const TensorInfo& output,
302  const StridedSliceDescriptor& descriptor,
303  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
304 
305  bool IsSubtractionSupported(const TensorInfo& input0,
306  const TensorInfo& input1,
307  const TensorInfo& output,
308  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
309 
311  const TensorInfo& output,
312  const TransposeConvolution2dDescriptor& descriptor,
313  const TensorInfo& weights,
314  const Optional<TensorInfo>& biases,
315  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
316 
317  bool IsTransposeSupported(const TensorInfo& input,
318  const TensorInfo& output,
319  const TransposeDescriptor& descriptor,
320  Optional<std::string&> reasonIfUnsupported = EmptyOptional()) const override;
321 
322 private:
324 
325 };
326 
327 } // namespace armnn
bool IsMinimumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsOutputSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsTransposeSupported(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFloorSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ViewsDescriptor for the SplitterLayer.
bool IsArgMinMaxSupported(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsReduceSupported(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
A ReshapeDescriptor for the ReshapeLayer.
bool IsSubtractionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPreluSupported(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:78
bool IsSliceSupported(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A Convolution2dDescriptor for the Convolution2dLayer.
bool IsQuantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsPadSupported(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor, 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
bool IsStridedSliceSupported(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
bool IsLogicalBinarySupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const LogicalBinaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) const override
bool IsLogSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
Copyright (c) 2021 ARM Limited and Contributors.
bool IsPermuteSupported(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &ouput, const ComparisonDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
bool IsNormalizationSupported(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
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
bool IsConvolution3dSupported(const TensorInfo &input, const TensorInfo &output, const Convolution3dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
A StackDescriptor for the StackLayer.
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 PadDescriptor for the PadLayer.
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &ouput, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsGatherSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) 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
An LstmDescriptor for the LstmLayer.
bool IsConvertFp16ToFp32Supported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDepthToSpaceSupported(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &descriptor, 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 IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
std::shared_ptr< IBackendModelContext > IBackendSpecificModelContextPtr
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:56
An OriginsDescriptor for the ConcatLayer.
A ReduceDescriptor for the REDUCE operators.
A FullyConnectedDescriptor for the FullyConnectedLayer.
A GatherDescriptor for the GatherLayer.
bool IsSplitterSupported(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsFillSupported(const TensorInfo &input, const TensorInfo &output, const FillDescriptor &descriptor, 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 IsReshapeSupported(const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDilatedDepthwiseConvolutionSupported(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reason=EmptyOptional()) const override
A QLstmDescriptor for the QLstmLayer.
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:25
bool IsChannelShuffleSupported(const TensorInfo &input, const TensorInfo &output, const ChannelShuffleDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsQLstmSupported(const TensorInfo &input, const TensorInfo &previousOutputIn, const TensorInfo &previousCellStateIn, const TensorInfo &outputStateOut, const TensorInfo &cellStateOut, const TensorInfo &output, const QLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SliceDescriptor for the SliceLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
bool IsDivisionSupported(const TensorInfo &input0, const TensorInfo &input1, 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 IsFullyConnectedSupported(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsDequantizeSupported(const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
bool IsCastSupported(const TensorInfo &input, 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
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
Definition: Descriptors.hpp:98
bool IsAdditionSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsMaximumSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, 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
A MeanDescriptor for the MeanLayer.
bool IsInputSupported(const TensorInfo &input, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
bool IsSoftmaxSupported(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const ConcatDescriptor &descriptor, 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
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
A Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
bool IsConvertFp32ToFp16Supported(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 ChannelShuffleDescriptor for the ChannelShuffle operator.
bool IsPooling2dSupported(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor, 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
A SoftmaxDescriptor for the SoftmaxLayer.
bool IsSpaceToDepthSupported(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
A PermuteDescriptor for the PermuteLayer.
bool IsBatchToSpaceNdSupported(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
bool IsConstantSupported(const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
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