23.05
|
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 Execute() const override
arm::pipe::ProfilingGuid GetGuid() const final
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
arm_compute::Status ClMeanValidate(const TensorInfo &input, const TensorInfo &output, const MeanDescriptor &descriptor)
std::vector< unsigned int > m_Axis
Values for the dimensions to reduce.
MeanQueueDescriptor m_Data
Copyright (c) 2021 ARM Limited and Contributors.
ClMeanWorkload(const MeanQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
A MeanDescriptor for the MeanLayer.
unsigned int GetNumDimensions() const
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Contains information about TensorInfos of a layer.
LayerDescriptor m_Parameters
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
bool m_KeepDims
Enable/disable keep dimensions. If true, then the reduced dimensions that are of length 1 are kept.
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates
std::vector< ITensorHandle * > m_Inputs