From 91a53eab529d88f78572b1155bfd07eb5de141f4 Mon Sep 17 00:00:00 2001 From: Teresa Charlin Date: Mon, 25 Apr 2022 15:47:29 +0100 Subject: IVGCVSW-6857 Add GATHERNd Support to the TfLiteParser Signed-off-by: Teresa Charlin Change-Id: I8142072f104b23c6eaf80b54cf6ddfa0393c4921 --- src/armnnTfLiteParser/TfLiteParser.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/armnnTfLiteParser/TfLiteParser.cpp') diff --git a/src/armnnTfLiteParser/TfLiteParser.cpp b/src/armnnTfLiteParser/TfLiteParser.cpp index 44dcacc3db..32b7c63fbb 100644 --- a/src/armnnTfLiteParser/TfLiteParser.cpp +++ b/src/armnnTfLiteParser/TfLiteParser.cpp @@ -696,6 +696,7 @@ TfLiteParserImpl::TfLiteParserImpl(const OptionalAddGatherNdLayer(layerName.c_str()); + ARMNN_ASSERT(layer != nullptr); + layer->GetOutputSlot(0).SetTensorInfo(outputTensorInfo); + + auto inputTensorIndexes = AsUnsignedVector(GetInputTensorIds(m_Model, subgraphIndex, operatorIndex)); + RegisterInputSlots(subgraphIndex, operatorIndex, layer, {inputTensorIndexes[0], inputTensorIndexes[1]}); + + auto outputTensorIndexes = AsUnsignedVector(GetOutputTensorIds(m_Model, subgraphIndex, operatorIndex)); + RegisterOutputSlots(subgraphIndex, operatorIndex, layer, {outputTensorIndexes[0]}); +} + void TfLiteParserImpl::ParseDepthToSpace(size_t subgraphIndex, size_t operatorIndex) { CHECK_MODEL(m_Model, subgraphIndex, operatorIndex); -- cgit v1.2.1