24.08
|
Go to the documentation of this file.
17 using namespace armcomputetensorutils;
25 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
26 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
32 return arm_compute::NEReductionOperation::validate(&aclInputInfo,
34 static_cast<unsigned int>(coords[0]),
62 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::ReductionOperation ConvertReductionOperationToAcl(const ReduceDescriptor &descriptor)
arm_compute::Status NeonReduceWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ReduceDescriptor &descriptor)
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.
std::vector< ITensorHandle * > m_Outputs
bool m_KeepDims
if true then output shape has no change.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
NeonReduceWorkload(const ReduceQueueDescriptor &descriptor, const WorkloadInfo &info)
ReduceQueueDescriptor m_Data
std::vector< uint32_t > m_vAxis
The indices of the dimensions to reduce.
Copyright (c) 2021 ARM Limited and Contributors.
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
A ReduceDescriptor for the REDUCE operators.
void Execute() const override
std::vector< ITensorHandle * > m_Inputs