From add078b7f9a658d52ee6e8fe6771ea0517c07674 Mon Sep 17 00:00:00 2001 From: mathad01 Date: Mon, 10 May 2021 16:51:20 +0100 Subject: IVGCVSW-5908 Update 21.05 Doxygen Documents Signed-off-by: mathad01 Change-Id: I95316d4fc5f9d10185492dc835bb2411c1daea7b --- 21.05/classarmnn_1_1_cl_layer_support.xhtml | 3960 +++++++++++++++++++++++++++ 1 file changed, 3960 insertions(+) create mode 100644 21.05/classarmnn_1_1_cl_layer_support.xhtml (limited to '21.05/classarmnn_1_1_cl_layer_support.xhtml') diff --git a/21.05/classarmnn_1_1_cl_layer_support.xhtml b/21.05/classarmnn_1_1_cl_layer_support.xhtml new file mode 100644 index 0000000000..04d78d1be7 --- /dev/null +++ b/21.05/classarmnn_1_1_cl_layer_support.xhtml @@ -0,0 +1,3960 @@ + + + + + + + + + + + + + +ArmNN: ClLayerSupport Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClLayerSupport Class Reference
+
+
+ +

#include <ClLayerSupport.hpp>

+
+Inheritance diagram for ClLayerSupport:
+
+
+ + +LayerSupportBase +ILayerSupport + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 ClLayerSupport (const IBackendInternal::IBackendSpecificModelContextPtr &modelContextPtr)
 
 ClLayerSupport ()
 
 ~ClLayerSupport ()
 
bool IsAbsSupported (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 IsAdditionSupported (const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, 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 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 IsBatchToSpaceNdSupported (const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsCastSupported (const TensorInfo &input, const TensorInfo &output, 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
 
bool IsConcatSupported (const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const ConcatDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsConstantSupported (const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsConvertFp16ToFp32Supported (const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsConvertFp32ToFp16Supported (const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
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 IsDequantizeSupported (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 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 IsDilatedDepthwiseConvolutionSupported (const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, Optional< std::string &> reason=EmptyOptional()) const override
 
bool IsDivisionSupported (const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsElementwiseUnarySupported (const TensorInfo &input, const TensorInfo &ouput, const ElementwiseUnaryDescriptor &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 IsFloorSupported (const TensorInfo &input, 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 IsGatherSupported (const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const GatherDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported) const override
 
bool IsGreaterSupported (const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &ouput, Optional< std::string &> reasonIfUnsupported) const override
 
bool IsInputSupported (const TensorInfo &input, 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
 
bool IsL2NormalizationSupported (const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
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
 
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 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
 
bool IsMergerSupported (const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const MergerDescriptor &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
 
bool IsMultiplicationSupported (const TensorInfo &input0, const TensorInfo &input1, 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
 
bool IsOutputSupported (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 IsPermuteSupported (const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &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
 
bool IsPreluSupported (const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output, 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
 
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
 
bool IsQuantizeSupported (const TensorInfo &input, const TensorInfo &output, 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
 
bool IsReshapeSupported (const TensorInfo &input, const TensorInfo &output, const ReshapeDescriptor &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
 
bool IsResizeBilinearSupported (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 IsSliceSupported (const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &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
 
bool IsSpaceToBatchNdSupported (const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &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
 
bool IsSplitterSupported (const TensorInfo &input, const ViewsDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsSplitterSupported (const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, const ViewsDescriptor &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 IsStridedSliceSupported (const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsSubtractionSupported (const TensorInfo &input0, const TensorInfo &input1, 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
 
bool IsTransposeSupported (const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
- Public Member Functions inherited from LayerSupportBase
bool IsConvertBf16ToFp32Supported (const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsConvertFp32ToBf16Supported (const TensorInfo &input, 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 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 IsEqualSupported (const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsFakeQuantizationSupported (const TensorInfo &input, const FakeQuantizationDescriptor &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 IsLogicalUnarySupported (const TensorInfo &input, const TensorInfo &output, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsMemCopySupported (const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsMemImportSupported (const TensorInfo &input, const TensorInfo &output, 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 IsPreCompiledSupported (const TensorInfo &input, const PreCompiledDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
bool IsRankSupported (const TensorInfo &input, const TensorInfo &output, Optional< std::string &> reasonIfUnsupported) const override
 
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 IsSwitchSupported (const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output0, const TensorInfo &output1, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
 
+ + + + + + +

+Additional Inherited Members

- Protected Member Functions inherited from ILayerSupport
 ILayerSupport ()
 
virtual ~ILayerSupport ()
 
+

Detailed Description

+
+

Definition at line 14 of file ClLayerSupport.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClLayerSupport() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
ClLayerSupport (const IBackendInternal::IBackendSpecificModelContextPtrmodelContextPtr)
+
+explicit
+
+ +

Definition at line 166 of file ClLayerSupport.cpp.

+
167  : m_ModelContextPtr(modelContextPtr)
168 {
169 }
+
+
+ +

◆ ClLayerSupport() [2/2]

+ +
+
+ + + + + + + +
ClLayerSupport ()
+
+ +

Definition at line 171 of file ClLayerSupport.cpp.

+
172  : m_ModelContextPtr(nullptr)
173 {
174 }
+
+
+ +

◆ ~ClLayerSupport()

+ +
+
+ + + + + +
+ + + + + + + +
~ClLayerSupport ()
+
+inline
+
+ +

Definition at line 19 of file ClLayerSupport.hpp.

+ +

References ARMNN_DEPRECATED_MSG, ClLayerSupport::IsAbsSupported(), ClLayerSupport::IsActivationSupported(), ClLayerSupport::IsAdditionSupported(), ClLayerSupport::IsArgMinMaxSupported(), ClLayerSupport::IsBatchNormalizationSupported(), ClLayerSupport::IsBatchToSpaceNdSupported(), ClLayerSupport::IsCastSupported(), ClLayerSupport::IsComparisonSupported(), ClLayerSupport::IsConcatSupported(), ClLayerSupport::IsConstantSupported(), ClLayerSupport::IsConvertFp16ToFp32Supported(), ClLayerSupport::IsConvertFp32ToFp16Supported(), ClLayerSupport::IsConvolution2dSupported(), ClLayerSupport::IsDepthToSpaceSupported(), ClLayerSupport::IsDepthwiseConvolutionSupported(), ClLayerSupport::IsDequantizeSupported(), ClLayerSupport::IsDilatedDepthwiseConvolutionSupported(), ClLayerSupport::IsDivisionSupported(), ClLayerSupport::IsElementwiseUnarySupported(), ClLayerSupport::IsFillSupported(), ClLayerSupport::IsFloorSupported(), ClLayerSupport::IsFullyConnectedSupported(), ClLayerSupport::IsGatherSupported(), ClLayerSupport::IsGreaterSupported(), ClLayerSupport::IsInputSupported(), ClLayerSupport::IsInstanceNormalizationSupported(), ClLayerSupport::IsL2NormalizationSupported(), ClLayerSupport::IsLogicalBinarySupported(), ClLayerSupport::IsLogSoftmaxSupported(), ClLayerSupport::IsLstmSupported(), ClLayerSupport::IsMaximumSupported(), ClLayerSupport::IsMeanSupported(), ClLayerSupport::IsMergerSupported(), ClLayerSupport::IsMinimumSupported(), ClLayerSupport::IsMultiplicationSupported(), ClLayerSupport::IsNormalizationSupported(), ClLayerSupport::IsOutputSupported(), ClLayerSupport::IsPadSupported(), ClLayerSupport::IsPermuteSupported(), ClLayerSupport::IsPooling2dSupported(), ClLayerSupport::IsPreluSupported(), ClLayerSupport::IsQLstmSupported(), ClLayerSupport::IsQuantizedLstmSupported(), ClLayerSupport::IsQuantizeSupported(), ClLayerSupport::IsReduceSupported(), ClLayerSupport::IsReshapeSupported(), ClLayerSupport::IsResizeBilinearSupported(), ClLayerSupport::IsResizeSupported(), ClLayerSupport::IsRsqrtSupported(), ClLayerSupport::IsSliceSupported(), ClLayerSupport::IsSoftmaxSupported(), ClLayerSupport::IsSpaceToBatchNdSupported(), ClLayerSupport::IsSpaceToDepthSupported(), ClLayerSupport::IsSplitterSupported(), ClLayerSupport::IsStackSupported(), ClLayerSupport::IsStridedSliceSupported(), ClLayerSupport::IsSubtractionSupported(), ClLayerSupport::IsTransposeConvolution2dSupported(), and ClLayerSupport::IsTransposeSupported().

+
19 {}
+
+
+

Member Function Documentation

+ +

◆ IsAbsSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsAbsSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 176 of file ClLayerSupport.cpp.

+ +

References armnn::Abs, and ClLayerSupport::IsElementwiseUnarySupported().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
179 {
180  ElementwiseUnaryDescriptor descriptor(UnaryOperation::Abs);
181  return IsElementwiseUnarySupported(input, output, descriptor, reasonIfUnsupported);
182 }
+
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &ouput, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
+
+
+
+ +

◆ IsActivationSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsActivationSupported (const TensorInfoinput,
const TensorInfooutput,
const ActivationDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 184 of file ClLayerSupport.cpp.

+ +

References armnn::ClActivationWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
188 {
190  reasonIfUnsupported,
191  input,
192  output,
193  descriptor);
194 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClActivationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor)
+
+
+
+ +

◆ IsAdditionSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsAdditionSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 196 of file ClLayerSupport.cpp.

+ +

References armnn::ClAdditionValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
200 {
202  reasonIfUnsupported,
203  input0,
204  input1,
205  output,
206  nullptr);
207 }
arm_compute::Status ClAdditionValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ActivationDescriptor *activationDescriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsArgMinMaxSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsArgMinMaxSupported (const TensorInfoinput,
const TensorInfooutput,
const ArgMinMaxDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 209 of file ClLayerSupport.cpp.

+ +

References armnn::ClArgMinMaxWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
213 {
214 
216  reasonIfUnsupported,
217  input,
218  output,
219  descriptor);
220 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClArgMinMaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ArgMinMaxDescriptor &descriptor)
+
+
+
+ +

◆ IsBatchNormalizationSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsBatchNormalizationSupported (const TensorInfoinput,
const TensorInfooutput,
const TensorInfomean,
const TensorInfovar,
const TensorInfobeta,
const TensorInfogamma,
const BatchNormalizationDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 222 of file ClLayerSupport.cpp.

+ +

References armnn::ClBatchNormalizationValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
230 {
232  reasonIfUnsupported,
233  input,
234  output,
235  mean,
236  var,
237  beta,
238  gamma,
239  descriptor,
240  nullptr);
241 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClBatchNormalizationValidate(const TensorInfo &input, const TensorInfo &output, const TensorInfo &mean, const TensorInfo &var, const TensorInfo &beta, const TensorInfo &gamma, const BatchNormalizationDescriptor &desc, const ActivationDescriptor *activationDescriptor)
+
+
+
+ +

◆ IsBatchToSpaceNdSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsBatchToSpaceNdSupported (const TensorInfoinput,
const TensorInfooutput,
const BatchToSpaceNdDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 253 of file ClLayerSupport.cpp.

+ +

References armnn::ClBatchToSpaceNdWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
257 {
259  reasonIfUnsupported,
260  input,
261  output,
262  descriptor);
263 }
arm_compute::Status ClBatchToSpaceNdWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const BatchToSpaceNdDescriptor &desc)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsCastSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsCastSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 243 of file ClLayerSupport.cpp.

+ +

References armnn::ClCastValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
246 {
248  reasonIfUnsupported,
249  input,
250  output);
251 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClCastValidate(const TensorInfo &input, const TensorInfo &output)
+
+
+
+ +

◆ IsComparisonSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsComparisonSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfoouput,
const ComparisonDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 265 of file ClLayerSupport.cpp.

+ +

References armnn::ClComparisonWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::IsGreaterSupported(), and ClLayerSupport::~ClLayerSupport().

+
270 {
272  reasonIfUnsupported,
273  input0,
274  input1,
275  output,
276  descriptor);
277 }
arm_compute::Status ClComparisonWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ComparisonDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsConcatSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsConcatSupported (const std::vector< const TensorInfo *> inputs,
const TensorInfooutput,
const ConcatDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 279 of file ClLayerSupport.cpp.

+ +

References armnn::ClConcatWorkloadValidate(), FORWARD_WORKLOAD_VALIDATE_FUNC, OriginsDescriptor::GetConcatAxis(), OriginsDescriptor::GetNumDimensions(), TensorInfo::IsTypeSpaceMatch(), and armnn::SetValueChecked().

+ +

Referenced by ClLayerSupport::IsMergerSupported(), and ClLayerSupport::~ClLayerSupport().

+
283 {
284  if (descriptor.GetNumDimensions() <= descriptor.GetConcatAxis())
285  {
286  SetValueChecked(reasonIfUnsupported, "Cl Concat: Concat axis > Number of dimensions.");
287  return false;
288  }
289 
290  unsigned int concatInnerAxis = (descriptor.GetNumDimensions() - descriptor.GetConcatAxis()) - 1;
291  if(concatInnerAxis < 3) // Width, height, or channels
292  {
294  reasonIfUnsupported,
295  inputs,
296  output,
297  descriptor);
298  }
299  else if (concatInnerAxis == 3)
300  {
301  // We rely on the sub-tensor optimization to handle the batch dimension for 4D tensors. If we can't use
302  // sub-tensors for this then we can't support it. Here is where we check that the sub-tensors will work.
303  for (auto& input : inputs)
304  {
305  if (input && !output.IsTypeSpaceMatch(*input)) // Cannot use sub-tensors if the types are not same space
306  {
307  SetValueChecked(reasonIfUnsupported, "Cl Concat: Types and quantization parameters must match.");
308  return false;
309  }
310  }
311  return true; // Sub-tensors support concat along batch
312  }
313  else // > 4 dimensions not supported.
314  {
315  SetValueChecked(reasonIfUnsupported, "Cl Concat: Maximum of 4 dimensions supported.");
316  return false;
317  }
318 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
void SetValueChecked(Optional< T &> optionalRef, V &&val)
+
arm_compute::Status ClConcatWorkloadValidate(const std::vector< const TensorInfo *> &inputs, const TensorInfo &output, const OriginsDescriptor &descriptor)
+
+
+
+ +

◆ IsConstantSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
bool IsConstantSupported (const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 320 of file ClLayerSupport.cpp.

+ +

References armnn::ClConstantWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
322 {
324  reasonIfUnsupported,
325  output);
326 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClConstantWorkloadValidate(const TensorInfo &output)
+
+
+
+ +

◆ IsConvertFp16ToFp32Supported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsConvertFp16ToFp32Supported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 328 of file ClLayerSupport.cpp.

+ +

References armnn::ClConvertFp16ToFp32WorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
331 {
333  reasonIfUnsupported,
334  input,
335  output);
336 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClConvertFp16ToFp32WorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
+
+
+ +

◆ IsConvertFp32ToFp16Supported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsConvertFp32ToFp16Supported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 338 of file ClLayerSupport.cpp.

+ +

References armnn::ClConvertFp32ToFp16WorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
341 {
343  reasonIfUnsupported,
344  input,
345  output);
346 }
arm_compute::Status ClConvertFp32ToFp16WorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsConvolution2dSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsConvolution2dSupported (const TensorInfoinput,
const TensorInfooutput,
const Convolution2dDescriptordescriptor,
const TensorInfoweights,
const Optional< TensorInfo > & biases,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 348 of file ClLayerSupport.cpp.

+ +

References armnn::ClConvolution2dWorkloadValidate(), FORWARD_WORKLOAD_VALIDATE_FUNC, and ClBackendModelContext::IsFastMathEnabled().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
354 {
355  bool isFastMathEnabled = false;
356 #if defined(ARMCOMPUTECL_ENABLED)
357  if (m_ModelContextPtr)
358  {
359  if (m_ModelContextPtr.get() != nullptr)
360  {
361  auto modelOptions = dynamic_cast<ClBackendModelContext*>(m_ModelContextPtr.get());
362  if (modelOptions)
363  {
364  isFastMathEnabled = modelOptions->IsFastMathEnabled();
365  }
366  }
367  }
368 #endif
369 
371  reasonIfUnsupported,
372  input,
373  output,
374  descriptor,
375  weights,
376  biases,
377  isFastMathEnabled,
378  nullptr);
379 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClConvolution2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, bool isFastMathEnabled, const ActivationDescriptor *activationDescriptor)
+
+
+
+ +

◆ IsDepthToSpaceSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsDepthToSpaceSupported (const TensorInfoinput,
const TensorInfooutput,
const DepthToSpaceDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 391 of file ClLayerSupport.cpp.

+ +

References armnn::ClDepthToSpaceWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
395 {
397  reasonIfUnsupported,
398  input,
399  output,
400  descriptor);
401 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClDepthToSpaceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthToSpaceDescriptor &desc)
+
+
+
+ +

◆ IsDepthwiseConvolutionSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsDepthwiseConvolutionSupported (const TensorInfoinput,
const TensorInfooutput,
const DepthwiseConvolution2dDescriptordescriptor,
const TensorInfoweights,
const Optional< TensorInfo > & biases,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 403 of file ClLayerSupport.cpp.

+ +

References armnn::ClDepthwiseConvolutionWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
409 {
411  reasonIfUnsupported,
412  input,
413  output,
414  descriptor,
415  weights,
416  biases,
417  nullptr);
418 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClDepthwiseConvolutionWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, const ActivationDescriptor *activationDescriptor)
+
+
+
+ +

◆ IsDequantizeSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsDequantizeSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 381 of file ClLayerSupport.cpp.

+ +

References armnn::ClDequantizeWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
384 {
386  reasonIfUnsupported,
387  input,
388  output);
389 }
arm_compute::Status ClDequantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsDilatedDepthwiseConvolutionSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsDilatedDepthwiseConvolutionSupported (const TensorInfoinput,
const TensorInfooutput,
const DepthwiseConvolution2dDescriptordescriptor,
const TensorInfoweights,
const Optional< TensorInfo > & biases,
Optional< std::string &> reason = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 420 of file ClLayerSupport.cpp.

+ +

References armnn::ClDepthwiseConvolutionWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
426 {
428  reasonIfUnsupported,
429  input,
430  output,
431  descriptor,
432  weights,
433  biases,
434  nullptr);
435 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClDepthwiseConvolutionWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, const ActivationDescriptor *activationDescriptor)
+
+
+
+ +

◆ IsDivisionSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsDivisionSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 438 of file ClLayerSupport.cpp.

+ +

References armnn::ClDivisionWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
442 {
444  reasonIfUnsupported,
445  input0,
446  input1,
447  output,
448  nullptr);
449 }
arm_compute::Status ClDivisionWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ActivationDescriptor *activationDescriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsElementwiseUnarySupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsElementwiseUnarySupported (const TensorInfoinput,
const TensorInfoouput,
const ElementwiseUnaryDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 451 of file ClLayerSupport.cpp.

+ +

References armnn::Abs, armnn::ClAbsWorkloadValidate(), armnn::ClExpWorkloadValidate(), armnn::ClLogicalNotWorkloadValidate(), armnn::ClNegWorkloadValidate(), armnn::ClRsqrtWorkloadValidate(), armnn::Exp, FORWARD_WORKLOAD_VALIDATE_FUNC, armnn::LogicalNot, ElementwiseUnaryDescriptor::m_Operation, armnn::Neg, and armnn::Rsqrt.

+ +

Referenced by ClLayerSupport::IsAbsSupported(), ClLayerSupport::IsRsqrtSupported(), and ClLayerSupport::~ClLayerSupport().

+
455 {
456  switch(descriptor.m_Operation)
457  {
458  case UnaryOperation::Abs:
460  reasonIfUnsupported,
461  input,
462  output);
463  case UnaryOperation::Exp:
465  reasonIfUnsupported,
466  input,
467  output);
468  case UnaryOperation::Neg:
470  reasonIfUnsupported,
471  input,
472  output);
475  reasonIfUnsupported,
476  input,
477  output);
480  reasonIfUnsupported,
481  input,
482  output);
483  default:
484  return false;
485  }
486 }
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+ + +
arm_compute::Status ClLogicalNotWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
arm_compute::Status ClAbsWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
arm_compute::Status ClNegWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
arm_compute::Status ClExpWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+ + +
arm_compute::Status ClRsqrtWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
+
+
+ +

◆ IsFillSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsFillSupported (const TensorInfoinput,
const TensorInfooutput,
const FillDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 488 of file ClLayerSupport.cpp.

+ +

References armnn::IgnoreUnused().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
492 {
493  armnn::IgnoreUnused(input);
494  armnn::IgnoreUnused(output);
495  armnn::IgnoreUnused(descriptor);
496 
497  return IsClBackendSupported(reasonIfUnsupported);
498 }
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ IsFloorSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsFloorSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 500 of file ClLayerSupport.cpp.

+ +

References armnn::ClFloorWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
503 {
505  reasonIfUnsupported,
506  input,
507  output);
508 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClFloorWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
+
+
+ +

◆ IsFullyConnectedSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsFullyConnectedSupported (const TensorInfoinput,
const TensorInfooutput,
const TensorInfoweights,
const TensorInfobiases,
const FullyConnectedDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 510 of file ClLayerSupport.cpp.

+ +

References armnn::ClFullyConnectedWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
516 {
518  reasonIfUnsupported,
519  input,
520  output,
521  weights,
522  biases,
523  descriptor,
524  nullptr);
525 }
arm_compute::Status ClFullyConnectedWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const TensorInfo &biases, const FullyConnectedDescriptor &descriptor, const ActivationDescriptor *activationDescriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsGatherSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsGatherSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
const GatherDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 527 of file ClLayerSupport.cpp.

+ +

References armnn::ClGatherWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
532 {
534  reasonIfUnsupported,
535  input0,
536  input1,
537  output,
538  descriptor);
539 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClGatherWorkloadValidate(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &output, const GatherDescriptor &descriptor)
+
+
+
+ +

◆ IsGreaterSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsGreaterSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfoouput,
Optional< std::string &> reasonIfUnsupported 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 541 of file ClLayerSupport.cpp.

+ +

References armnn::Greater, and ClLayerSupport::IsComparisonSupported().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
545 {
546  ComparisonDescriptor descriptor(ComparisonOperation::Greater);
547  return IsComparisonSupported(input0, input1, output, descriptor, reasonIfUnsupported);
548 }
+
bool IsComparisonSupported(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &ouput, const ComparisonDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
+
+
+
+ +

◆ IsInputSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
bool IsInputSupported (const TensorInfoinput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 550 of file ClLayerSupport.cpp.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
552 {
553  return IsClBackendSupported(reasonIfUnsupported, input);
554 }
+
+
+ +

◆ IsInstanceNormalizationSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsInstanceNormalizationSupported (const TensorInfoinput,
const TensorInfooutput,
const InstanceNormalizationDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 556 of file ClLayerSupport.cpp.

+ +

References armnn::ClInstanceNormalizationWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
560 {
562  reasonIfUnsupported,
563  input,
564  output,
565  descriptor);
566 }
arm_compute::Status ClInstanceNormalizationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const InstanceNormalizationDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsL2NormalizationSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsL2NormalizationSupported (const TensorInfoinput,
const TensorInfooutput,
const L2NormalizationDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 568 of file ClLayerSupport.cpp.

+ +

References armnn::ClL2NormalizationWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
572 {
574  reasonIfUnsupported,
575  input,
576  output,
577  descriptor);
578 }
arm_compute::Status ClL2NormalizationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const L2NormalizationDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsLogicalBinarySupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsLogicalBinarySupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
const LogicalBinaryDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 580 of file ClLayerSupport.cpp.

+ +

References armnn::ClLogicalAndWorkloadValidate(), armnn::ClLogicalOrWorkloadValidate(), FORWARD_WORKLOAD_VALIDATE_FUNC, armnn::IgnoreUnused(), armnn::LogicalAnd, armnn::LogicalOr, and LogicalBinaryDescriptor::m_Operation.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
585 {
586  IgnoreUnused(output);
587 
588  switch(descriptor.m_Operation)
589  {
592  reasonIfUnsupported,
593  input0,
594  input1,
595  output);
598  reasonIfUnsupported,
599  input0,
600  input1,
601  output);
602  default:
603  return false;
604  }
605 }
arm_compute::Status ClLogicalOrWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output)
+ +
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
void IgnoreUnused(Ts &&...)
+ +
arm_compute::Status ClLogicalAndWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output)
+
+
+
+ +

◆ IsLogSoftmaxSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsLogSoftmaxSupported (const TensorInfoinput,
const TensorInfooutput,
const LogSoftmaxDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 608 of file ClLayerSupport.cpp.

+ +

References armnn::ClLogSoftmaxWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
612 {
614  reasonIfUnsupported,
615  input,
616  output,
617  descriptor);
618 }
arm_compute::Status ClLogSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsLstmSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsLstmSupported (const TensorInfoinput,
const TensorInfooutputStateIn,
const TensorInfocellStateIn,
const TensorInfoscratchBuffer,
const TensorInfooutputStateOut,
const TensorInfocellStateOut,
const TensorInfooutput,
const LstmDescriptordescriptor,
const LstmInputParamsInfoparamsInfo,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 620 of file ClLayerSupport.cpp.

+ +

References armnn::ClLstmFloatWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
630 {
632  reasonIfUnsupported,
633  input,
634  outputStateIn,
635  cellStateIn,
636  scratchBuffer,
637  outputStateOut,
638  cellStateOut,
639  output,
640  descriptor,
641  paramsInfo);
642 }
arm_compute::Status ClLstmFloatWorkloadValidate(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)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsMaximumSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsMaximumSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 644 of file ClLayerSupport.cpp.

+ +

References armnn::ClMaximumWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
648 {
650  reasonIfUnsupported,
651  input0,
652  input1,
653  output);
654 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClMaximumWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output)
+
+
+
+ +

◆ IsMeanSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsMeanSupported (const TensorInfoinput,
const TensorInfooutput,
const MeanDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 656 of file ClLayerSupport.cpp.

+ +

References armnn::ClMeanValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
660 {
662  reasonIfUnsupported,
663  input,
664  output,
665  descriptor);
666 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClMeanValidate(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &desc)
+
+
+
+ +

◆ IsMergerSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsMergerSupported (const std::vector< const TensorInfo *> inputs,
const TensorInfooutput,
const MergerDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 668 of file ClLayerSupport.cpp.

+ +

References ClLayerSupport::IsConcatSupported().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
672 {
673  return IsConcatSupported(inputs, output, descriptor, reasonIfUnsupported);
674 }
bool IsConcatSupported(const std::vector< const TensorInfo *> inputs, const TensorInfo &output, const ConcatDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
+
+
+
+ +

◆ IsMinimumSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsMinimumSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 676 of file ClLayerSupport.cpp.

+ +

References armnn::ClMinimumWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
680 {
682  reasonIfUnsupported,
683  input0,
684  input1,
685  output);
686 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClMinimumWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output)
+
+
+
+ +

◆ IsMultiplicationSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsMultiplicationSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 688 of file ClLayerSupport.cpp.

+ +

References armnn::ClMultiplicationWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
692 {
694  reasonIfUnsupported,
695  input0,
696  input1,
697  output,
698  nullptr);
699 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClMultiplicationWorkloadValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ActivationDescriptor *activationDescriptor)
+
+
+
+ +

◆ IsNormalizationSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsNormalizationSupported (const TensorInfoinput,
const TensorInfooutput,
const NormalizationDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 701 of file ClLayerSupport.cpp.

+ +

References armnn::ClNormalizationWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
705 {
706  FORWARD_WORKLOAD_VALIDATE_FUNC(ClNormalizationWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
707 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClNormalizationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor)
+
+
+
+ +

◆ IsOutputSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
bool IsOutputSupported (const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 709 of file ClLayerSupport.cpp.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
711 {
712  return IsClBackendSupported(reasonIfUnsupported, output);
713 }
+
+
+ +

◆ IsPadSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsPadSupported (const TensorInfoinput,
const TensorInfooutput,
const PadDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 715 of file ClLayerSupport.cpp.

+ +

References armnn::ClPadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
719 {
721  reasonIfUnsupported,
722  input,
723  output,
724  descriptor);
725 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClPadValidate(const TensorInfo &input, const TensorInfo &output, const PadDescriptor &descriptor)
+
+
+
+ +

◆ IsPermuteSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsPermuteSupported (const TensorInfoinput,
const TensorInfooutput,
const PermuteDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 727 of file ClLayerSupport.cpp.

+ +

References armnn::ClPermuteWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
731 {
732  FORWARD_WORKLOAD_VALIDATE_FUNC(ClPermuteWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
733 }
arm_compute::Status ClPermuteWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsPooling2dSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsPooling2dSupported (const TensorInfoinput,
const TensorInfooutput,
const Pooling2dDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 735 of file ClLayerSupport.cpp.

+ +

References armnn::ClPooling2dWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
739 {
740  FORWARD_WORKLOAD_VALIDATE_FUNC(ClPooling2dWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
741 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClPooling2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const Pooling2dDescriptor &descriptor)
+
+
+
+ +

◆ IsPreluSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsPreluSupported (const TensorInfoinput,
const TensorInfoalpha,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 743 of file ClLayerSupport.cpp.

+ +

References armnn::ClPreluWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
747 {
748  FORWARD_WORKLOAD_VALIDATE_FUNC(ClPreluWorkloadValidate, reasonIfUnsupported, input, alpha, output);
749 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClPreluWorkloadValidate(const TensorInfo &input, const TensorInfo &alpha, const TensorInfo &output)
+
+
+
+ +

◆ IsQLstmSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsQLstmSupported (const TensorInfoinput,
const TensorInfopreviousOutputIn,
const TensorInfopreviousCellStateIn,
const TensorInfooutputStateOut,
const TensorInfocellStateOut,
const TensorInfooutput,
const QLstmDescriptordescriptor,
const LstmInputParamsInfoparamsInfo,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 751 of file ClLayerSupport.cpp.

+ +

References armnn::ClQLstmWorkloadValidate(), FORWARD_WORKLOAD_VALIDATE_FUNC, TensorInfo::GetDataType(), armnn::QAsymmS8, and armnn::QSymmS16.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
760 {
761  if (input.GetDataType() == armnn::DataType::QAsymmS8 &&
762  previousOutputIn.GetDataType() == armnn::DataType::QAsymmS8 &&
763  previousCellStateIn.GetDataType() == armnn::DataType::QSymmS16 &&
764  outputStateOut.GetDataType() == armnn::DataType::QAsymmS8 &&
765  cellStateOut.GetDataType() == armnn::DataType::QSymmS16 &&
766  output.GetDataType() == armnn::DataType::QAsymmS8)
767  {
769  reasonIfUnsupported,
770  input,
771  previousCellStateIn,
772  previousOutputIn,
773  cellStateOut,
774  outputStateOut,
775  output,
776  descriptor,
777  paramsInfo);
778  }
779  else
780  {
781  return false;
782  }
783 }
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+ +
arm_compute::Status ClQLstmWorkloadValidate(const TensorInfo &input, const TensorInfo &cellStateIn, const TensorInfo &outputStateIn, const TensorInfo &cellStateOut, const TensorInfo &outputStateOut, const TensorInfo &output, const QLstmDescriptor &descriptor, const LstmInputParamsInfo &paramsInfo)
+
+
+
+ +

◆ IsQuantizedLstmSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsQuantizedLstmSupported (const TensorInfoinput,
const TensorInfopreviousCellStateIn,
const TensorInfopreviousOutputIn,
const TensorInfocellStateOut,
const TensorInfooutput,
const QuantizedLstmInputParamsInfoparamsInfo,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 785 of file ClLayerSupport.cpp.

+ +

References armnn::ClQuantizedLstmWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
792 {
794  reasonIfUnsupported,
795  input,
796  previousCellStateIn,
797  previousOutputIn,
798  cellStateOut,
799  output,
800  paramsInfo);
801 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClQuantizedLstmWorkloadValidate(const TensorInfo &input, const TensorInfo &previousCellStateIn, const TensorInfo &previousOutputIn, const TensorInfo &cellStateOut, const TensorInfo &output, const QuantizedLstmInputParamsInfo &paramsInfo)
+
+
+
+ +

◆ IsQuantizeSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsQuantizeSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 803 of file ClLayerSupport.cpp.

+ +

References armnn::ClQuantizeWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
806 {
808  reasonIfUnsupported,
809  input,
810  output);
811 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClQuantizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
+
+
+ +

◆ IsReduceSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsReduceSupported (const TensorInfoinput,
const TensorInfooutput,
const ReduceDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 813 of file ClLayerSupport.cpp.

+ +

References armnn::ClReduceWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
817 {
819  reasonIfUnsupported,
820  input,
821  output,
822  descriptor);
823 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClReduceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &desc)
+
+
+
+ +

◆ IsReshapeSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsReshapeSupported (const TensorInfoinput,
const TensorInfooutput,
const ReshapeDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 825 of file ClLayerSupport.cpp.

+ +

References armnn::ClReshapeWorkloadValidate(), FORWARD_WORKLOAD_VALIDATE_FUNC, and armnn::IgnoreUnused().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
829 {
830  IgnoreUnused(descriptor);
831  FORWARD_WORKLOAD_VALIDATE_FUNC(ClReshapeWorkloadValidate, reasonIfUnsupported, input, output);
832 }
arm_compute::Status ClReshapeWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ IsResizeBilinearSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsResizeBilinearSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 842 of file ClLayerSupport.cpp.

+ +

References armnn::Bilinear, TensorInfo::GetShape(), ClLayerSupport::IsResizeSupported(), ResizeDescriptor::m_DataLayout, ResizeDescriptor::m_Method, ResizeDescriptor::m_TargetHeight, ResizeDescriptor::m_TargetWidth, and armnn::NCHW.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
845 {
846  ResizeDescriptor descriptor;
847  descriptor.m_Method = ResizeMethod::Bilinear;
848  descriptor.m_DataLayout = DataLayout::NCHW;
849 
850  const TensorShape& outputShape = output.GetShape();
851  descriptor.m_TargetHeight = outputShape[2];
852  descriptor.m_TargetWidth = outputShape[3];
853 
854  return IsResizeSupported(input, output, descriptor, reasonIfUnsupported);
855 }
bool IsResizeSupported(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
+ + +
+
+
+ +

◆ IsResizeSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsResizeSupported (const TensorInfoinput,
const TensorInfooutput,
const ResizeDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 834 of file ClLayerSupport.cpp.

+ +

References armnn::ClResizeWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::IsResizeBilinearSupported(), and ClLayerSupport::~ClLayerSupport().

+
838 {
839  FORWARD_WORKLOAD_VALIDATE_FUNC(ClResizeWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
840 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClResizeWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ResizeDescriptor &descriptor)
+
+
+
+ +

◆ IsRsqrtSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsRsqrtSupported (const TensorInfoinput,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 857 of file ClLayerSupport.cpp.

+ +

References ClLayerSupport::IsElementwiseUnarySupported(), and armnn::Rsqrt.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
860 {
861  ElementwiseUnaryDescriptor descriptor(UnaryOperation::Rsqrt);
862  return IsElementwiseUnarySupported(input, output, descriptor, reasonIfUnsupported);
863 }
bool IsElementwiseUnarySupported(const TensorInfo &input, const TensorInfo &ouput, const ElementwiseUnaryDescriptor &descriptor, Optional< std::string &> reasonIfUnsupported=EmptyOptional()) const override
+ +
+
+
+ +

◆ IsSliceSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSliceSupported (const TensorInfoinput,
const TensorInfooutput,
const SliceDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 865 of file ClLayerSupport.cpp.

+ +

References armnn::ClSliceWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
869 {
870  FORWARD_WORKLOAD_VALIDATE_FUNC(ClSliceWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
871 }
arm_compute::Status ClSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SliceDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsSoftmaxSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSoftmaxSupported (const TensorInfoinput,
const TensorInfooutput,
const SoftmaxDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 873 of file ClLayerSupport.cpp.

+ +

References armnn::ClSoftmaxWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
877 {
878  FORWARD_WORKLOAD_VALIDATE_FUNC(ClSoftmaxWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
879 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor)
+
+
+
+ +

◆ IsSpaceToBatchNdSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSpaceToBatchNdSupported (const TensorInfoinput,
const TensorInfooutput,
const SpaceToBatchNdDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 881 of file ClLayerSupport.cpp.

+ +

References armnn::ClSpaceToBatchNdWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
885 {
887  reasonIfUnsupported,
888  input,
889  output,
890  descriptor);
891 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClSpaceToBatchNdWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SpaceToBatchNdDescriptor &descriptor)
+
+
+
+ +

◆ IsSpaceToDepthSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSpaceToDepthSupported (const TensorInfoinput,
const TensorInfooutput,
const SpaceToDepthDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 893 of file ClLayerSupport.cpp.

+ +

References armnn::ClSpaceToDepthWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
897 {
899  reasonIfUnsupported,
900  input,
901  output,
902  descriptor);
903 }
arm_compute::Status ClSpaceToDepthWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SpaceToDepthDescriptor &desc)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsSplitterSupported() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSplitterSupported (const TensorInfoinput,
const ViewsDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 905 of file ClLayerSupport.cpp.

+ +

References TensorInfo::GetDataType(), and armnn::IgnoreUnused().

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
908 {
909  IgnoreUnused(descriptor);
910  return IsSupportedForDataTypeCl(reasonIfUnsupported,
911  input.GetDataType(),
912  &TrueFunc<>,
913  &TrueFunc<>);
914 }
void IgnoreUnused(Ts &&...)
+
+
+
+ +

◆ IsSplitterSupported() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSplitterSupported (const TensorInfoinput,
const std::vector< std::reference_wrapper< TensorInfo >> & outputs,
const ViewsDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 916 of file ClLayerSupport.cpp.

+ +

References armnn::ClSplitterWorkloadValidate(), armnn::ComputeSplitAxis(), FORWARD_WORKLOAD_VALIDATE_FUNC, ViewsDescriptor::GetNumDimensions(), TensorInfo::GetShape(), armnn::IgnoreUnused(), TensorInfo::IsTypeSpaceMatch(), and armnn::SetValueChecked().

+
920 {
921 #if defined(ARMCOMPUTECL_ENABLED)
922  // Split along the last dimension, cannot use sub-tensors
923  // as width and height of the sub-tensors do not match
924  // the width and height of the parent tensor
925  // in case of input with more than 2D.
926  std::set<unsigned int> splitAxis = ComputeSplitAxis(descriptor, input.GetShape());
927  if (descriptor.GetNumDimensions() > 2 && splitAxis.size() == 1 &&
928  *splitAxis.begin() == descriptor.GetNumDimensions() - 1 )
929  {
931  reasonIfUnsupported,
932  input,
933  outputs,
934  *splitAxis.begin());
935  }
936 #endif
937  IgnoreUnused(descriptor);
938  for (auto output : outputs)
939  {
940  if (!input.IsTypeSpaceMatch(output)) // Cannot use sub-tensors if the types are not same space
941  {
942  SetValueChecked(reasonIfUnsupported, "Cl Splitter: Types and quantization parameters must match.");
943  return false;
944  }
945  }
946  return true;
947 }
arm_compute::Status ClSplitterWorkloadValidate(const TensorInfo &input, const std::vector< std::reference_wrapper< TensorInfo >> &outputs, unsigned int splitAxis)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
void IgnoreUnused(Ts &&...)
+
std::set< unsigned int > ComputeSplitAxis(const armnn::SplitterDescriptor &desc, const TensorShape &input)
+
void SetValueChecked(Optional< T &> optionalRef, V &&val)
+
+
+
+ +

◆ IsStackSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsStackSupported (const std::vector< const TensorInfo *> & inputs,
const TensorInfooutput,
const StackDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 949 of file ClLayerSupport.cpp.

+ +

References armnn::ClStackWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
953 {
955  reasonIfUnsupported,
956  inputs,
957  output,
958  descriptor);
959 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClStackWorkloadValidate(const std::vector< const TensorInfo *> &inputs, const TensorInfo &output, const StackDescriptor &descriptor)
+
+
+
+ +

◆ IsStridedSliceSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsStridedSliceSupported (const TensorInfoinput,
const TensorInfooutput,
const StridedSliceDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 961 of file ClLayerSupport.cpp.

+ +

References armnn::ClStridedSliceWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
965 {
967  reasonIfUnsupported,
968  input,
969  output,
970  descriptor);
971 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClStridedSliceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const StridedSliceDescriptor &descriptor)
+
+
+
+ +

◆ IsSubtractionSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsSubtractionSupported (const TensorInfoinput0,
const TensorInfoinput1,
const TensorInfooutput,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 973 of file ClLayerSupport.cpp.

+ +

References armnn::ClSubtractionValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
977 {
979  reasonIfUnsupported,
980  input0,
981  input1,
982  output,
983  nullptr);
984 }
arm_compute::Status ClSubtractionValidate(const TensorInfo &input0, const TensorInfo &input1, const TensorInfo &output, const ActivationDescriptor *activationDescriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+ +

◆ IsTransposeConvolution2dSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsTransposeConvolution2dSupported (const TensorInfoinput,
const TensorInfooutput,
const TransposeConvolution2dDescriptordescriptor,
const TensorInfoweights,
const Optional< TensorInfo > & biases,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 986 of file ClLayerSupport.cpp.

+ +

References armnn::ClTransposeConvolution2dWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
992 {
994  reasonIfUnsupported,
995  input,
996  output,
997  descriptor,
998  weights,
999  biases);
1000 }
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
arm_compute::Status ClTransposeConvolution2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases)
+
+
+
+ +

◆ IsTransposeSupported()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool IsTransposeSupported (const TensorInfoinput,
const TensorInfooutput,
const TransposeDescriptordescriptor,
Optional< std::string &> reasonIfUnsupported = EmptyOptional() 
) const
+
+overridevirtual
+
+ +

Reimplemented from LayerSupportBase.

+ +

Definition at line 1002 of file ClLayerSupport.cpp.

+ +

References armnn::ClTransposeWorkloadValidate(), and FORWARD_WORKLOAD_VALIDATE_FUNC.

+ +

Referenced by ClLayerSupport::~ClLayerSupport().

+
1006 {
1007  FORWARD_WORKLOAD_VALIDATE_FUNC(ClTransposeWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
1008 }
arm_compute::Status ClTransposeWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor)
+
#define FORWARD_WORKLOAD_VALIDATE_FUNC(func, reasonIfUnsupported,...)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1