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);
37 m_Data.ValidateInputsOutputs(
"NeonGatherWorkload", 2, 1);
45 m_Layer.configure(&input, &indices, &output, aclAxis);
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
GatherQueueDescriptor m_Data
NeonBaseWorkload(const GatherQueueDescriptor &descriptor, const WorkloadInfo &info)
NeonGatherWorkload(const GatherQueueDescriptor &descriptor, const WorkloadInfo &info)
virtual void Execute() const override
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,...
arm_compute::Status NeonGatherWorkloadValidate(const TensorInfo &input, const TensorInfo &indices, const TensorInfo &output, const GatherDescriptor &descriptor)
DestType PolymorphicDowncast(SourceType *value)
Polymorphic downcast for build in pointers only.
A GatherDescriptor for the GatherLayer.
int32_t m_Axis
The axis in params to gather indices from.
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.