21 unsigned int CalcAclAxis(
unsigned int numDimensions,
unsigned int axisIndex)
23 return (numDimensions - axisIndex) - 1;
35 const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
36 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
40 int aclAxis = armnn::numeric_cast<int>(CalcAclAxis(numDims, unsignedAxis));
44 return arm_compute::CLArgMinMaxLayer::validate(&aclInput, aclAxis, &aclOutput,
45 arm_compute::ReductionOperation::ARG_IDX_MAX);
49 return arm_compute::CLArgMinMaxLayer::validate(&aclInput, aclAxis, &aclOutput,
50 arm_compute::ReductionOperation::ARG_IDX_MIN);
57 const arm_compute::CLCompileContext& clCompileContext)
69 auto numDims =
info.m_InputTensorInfos[0].GetNumDimensions();
71 int aclAxis = armnn::numeric_cast<int>(CalcAclAxis(numDims, unsignedAxis));
77 m_ArgMinMaxLayer.configure(clCompileContext,
81 arm_compute::ReductionOperation::ARG_IDX_MAX);
85 m_ArgMinMaxLayer.configure(clCompileContext,
89 arm_compute::ReductionOperation::ARG_IDX_MIN);