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);
41 m_Layer.configure(&input, &indices, &output, aclAxis);
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...
#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
const GatherQueueDescriptor m_Data
ClGatherWorkload(const GatherQueueDescriptor &descriptor, const WorkloadInfo &info)
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
Copyright (c) 2020 ARM Limited.
LayerDescriptor m_Parameters
std::vector< TensorInfo > m_InputTensorInfos
A GatherDescriptor for the GatherLayer.
arm_compute::Status ClGatherWorkloadValidate(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &output, const GatherDescriptor &descriptor)
int32_t m_Axis
The axis in params to gather indices from.
std::vector< ITensorHandle * > m_Outputs
Contains information about inputs and outputs to a layer.
std::vector< ITensorHandle * > m_Inputs
void Execute() const override