12#include <fmt/format.h>
39 const int32_t* indicesData =
reinterpret_cast<int32_t*
>(inputs[1]->Map());
43 if (indicesData[i] < 0)
49 std::unique_ptr<Decoder<T>> decoderPtr =
MakeDecoder<T>(inputInfo0, inputs[0]->
Map());
50 Decoder<T>& decoder = *decoderPtr;
52 std::unique_ptr<Encoder<T>> encoderPtr =
MakeEncoder<T>(outputInfo, outputs[0]->
Map());
53 Encoder<T>& encoder = *encoderPtr;
55 Gather(inputInfo0, inputInfo1, outputInfo, decoder, indicesData, encoder,
m_Data.m_Parameters.m_Axis);
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
GatherQueueDescriptor m_Data
void Execute() const override
unsigned int GetNumElements() const
DataType GetDataType() const
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< Decoder< T > > MakeDecoder(const TensorInfo &info, const void *data=nullptr)
std::unique_ptr< Encoder< T > > MakeEncoder(const TensorInfo &info, void *data=nullptr)
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const armnn::DataLayout dataLayout, const armnn::DataType dataType)