24.08
|
Go to the documentation of this file.
11 using namespace armnn::armcomputetensorutils;
20 const arm_compute::TensorInfo aclInput = BuildArmComputeTensorInfo(input);
21 const arm_compute::TensorInfo aclIndices = BuildArmComputeTensorInfo(indices);
22 const arm_compute::TensorInfo aclOutput = BuildArmComputeTensorInfo(output);
26 return arm_compute::CLGather::validate(&aclInput, &aclIndices, &aclOutput, aclAxis);
31 const arm_compute::CLCompileContext& clCompileContext)
50 m_Layer.configure(clCompileContext, &input, &indices, &output, aclAxis);
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
A GatherDescriptor for the GatherLayer.
void Execute() const override
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.
ClGatherWorkload(const GatherQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
int32_t m_Axis
The axis in params to gather indices from.
arm_compute::Status ClGatherWorkloadValidate(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &output, const GatherDescriptor &descriptor)
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
GatherQueueDescriptor m_Data
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
Copyright (c) 2021 ARM Limited and Contributors.
int ComputeAclAxis(const int &armnnAxis, const armnn::TensorInfo &tensor)
Function to convert ArmNN axis (left to right) to ACL axis (right to left) ranging from [-rank,...
std::vector< ITensorHandle * > m_Inputs