24.02
|
Go to the documentation of this file.
15 using namespace armcomputetensorutils;
21 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
28 return arm_compute::CLReduceMean::validate(&aclInputInfo, coords, descriptor.
m_KeepDims, &aclOutputInfo);
33 const arm_compute::CLCompileContext& clCompileContext)
47 info.m_InputTensorInfos[0].GetNumDimensions(),
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
void Execute() const override
unsigned int GetNumDimensions() const
arm_compute::Status ClMeanValidate(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor)
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
bool m_KeepDims
Enable/disable keep dimensions. If true, then the reduced dimensions that are of length 1 are kept.
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.
Contains information about TensorInfos of a layer.
std::vector< ITensorHandle * > m_Outputs
ClMeanWorkload(const MeanQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
std::vector< unsigned int > m_Axis
Values for the dimensions to reduce.
MeanQueueDescriptor m_Data
Copyright (c) 2021 ARM Limited and Contributors.
A MeanDescriptor for the MeanLayer.
std::vector< ITensorHandle * > m_Inputs