16 template <
typename OUT>
25 const unsigned int axisSize = inputTensorInfo.
GetShape()[uAxis];
30 for (
unsigned int outer = 0; outer < outerElements; ++outer) {
31 for (
unsigned int inner = 0; inner < innerElements; ++inner) {
32 in[outer * axisSize * innerElements + inner];
33 auto tmpValue = in.
Get();
34 unsigned int tmpIndex = 0;
35 for (
unsigned int i = 1; i < axisSize; ++i) {
36 in[(outer * axisSize * innerElements) + (i * innerElements) + inner];
37 const auto& value = in.
Get();
45 out[outer * innerElements + inner] = armnn::numeric_cast<OUT>(tmpIndex);
virtual IType Get() const =0
unsigned int GetNumDimensions() const
const TensorShape & GetShape() const
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
void ArgMinMax(Decoder< float > &in, OUT *out, const TensorInfo &inputTensorInfo, const TensorInfo &outputTensorInfo, ArgMinMaxFunction function, int axis)
unsigned int GetUnsignedAxis(const unsigned int inputDimension, const int axis)
unsigned int GetNumElementsBetween(const armnn::TensorShape &shape, unsigned int firstAxisInclusive, unsigned int lastAxisExclusive)