16template <
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();
virtual IType Get() const =0
const TensorShape & GetShape() const
unsigned int GetNumDimensions() const
Copyright (c) 2021 ARM Limited and Contributors.
std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)
void IgnoreUnused(Ts &&...)
unsigned int GetUnsignedAxis(const unsigned int inputDimension, const int axis)
unsigned int GetNumElementsBetween(const armnn::TensorShape &shape, unsigned int firstAxisInclusive, unsigned int lastAxisExclusive)