24.02
|
Go to the documentation of this file.
18 const arm_compute::TensorInfo aclInput = BuildArmComputeTensorInfo(input);
19 const arm_compute::TensorInfo aclIndices = BuildArmComputeTensorInfo(indices);
20 const arm_compute::TensorInfo aclOutput = BuildArmComputeTensorInfo(output);
24 return arm_compute::NEGather::validate(&aclInput, &aclIndices, &aclOutput, aclAxis);
39 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
40 arm_compute::ITensor& indices = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[1])->GetTensor();
41 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
45 m_Layer.configure(&input, &indices, &output, aclAxis);
arm_compute::Status NeonGatherWorkloadValidate(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &output, const GatherDescriptor &descriptor)
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
NeonGatherWorkload(const GatherQueueDescriptor &descriptor, const WorkloadInfo &info)
A GatherDescriptor for the GatherLayer.
virtual void Execute() const override
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.
int32_t m_Axis
The axis in params to gather indices from.
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
GatherQueueDescriptor m_Data
Copyright (c) 2021 ARM Limited and Contributors.
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
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