16 using namespace armcomputetensorutils;
22 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
23 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
29 return arm_compute::NEReduceMean::validate(&aclInputInfo, coords, descriptor.
m_KeepDims, &aclOutputInfo);
47 info.m_InputTensorInfos[0].GetNumDimensions(),
48 m_Data.m_Parameters.m_Axis);
50 m_Layer.configure(&input, coords,
m_Data.m_Parameters.m_KeepDims, &output);
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
NeonMeanWorkload(const MeanQueueDescriptor &descriptor, const WorkloadInfo &info)
void Execute() const override
unsigned int GetNumDimensions() const
Copyright (c) 2021 ARM Limited and Contributors.
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
arm_compute::Status NeonMeanWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor)
A MeanDescriptor for the MeanLayer.
std::vector< unsigned int > m_Axis
Values for the dimensions to reduce.
bool m_KeepDims
Enable/disable keep dimensions. If true, then the reduced dimensions that are of length 1 are kept.
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.