24.08
|
Go to the documentation of this file.
16 using namespace armcomputetensorutils;
24 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
25 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
31 return arm_compute::CLReductionOperation::validate(&aclInputInfo,
33 static_cast<unsigned int>(coords[0]),
61 info.m_InputTensorInfos[0].GetNumDimensions(),
65 m_Layer.configure(&input,
67 static_cast<unsigned int>(coords[0]),
#define IS_MULTI_AXES_REDUCE_SUPPORTED(func, input, desc, status)
Macro function check if layer with multiple axes is supported on each backend.
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
unsigned int GetNumDimensions() const
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
arm_compute::Status ClReduceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor)
arm_compute::ReductionOperation ConvertReductionOperationToAcl(const ReduceDescriptor &descriptor)
LayerDescriptor m_Parameters
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
ClReduceWorkload(const ReduceQueueDescriptor &descriptor, const WorkloadInfo &info)
Contains information about TensorInfos of a layer.
std::vector< ITensorHandle * > m_Outputs
bool m_KeepDims
if true then output shape has no change.
void Execute() const override
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
ReduceQueueDescriptor m_Data
std::vector< uint32_t > m_vAxis
The indices of the dimensions to reduce.
Copyright (c) 2021 ARM Limited and Contributors.
A ReduceDescriptor for the REDUCE operators.
std::vector< ITensorHandle * > m_Inputs