From 820eb141a7a5d0eef200ccf9554a37eabade3264 Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Wed, 8 Jan 2020 10:25:24 +0000 Subject: MLCE-139: add capability to align corners for bilinear resize * Add parsing of the related parameter to TfLiteParser * Update ResizeDescriptor to store the additional parameter * Update NEON/CL workload to pass the additional parameter. * Update Reference workload to pass and handle the additional parameter. !ComputeLibrary:2538 !ComputeLibrary:2569 !armnn:2612 Signed-off-by: Sang-Hoon Park Change-Id: Id149e1c24c2abed7e9dd81939acf54dfabfcdfd2 --- src/armnnTfLiteParser/TfLiteParser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/armnnTfLiteParser/TfLiteParser.cpp') diff --git a/src/armnnTfLiteParser/TfLiteParser.cpp b/src/armnnTfLiteParser/TfLiteParser.cpp index d3eed9cfb1..10bb0f6e97 100644 --- a/src/armnnTfLiteParser/TfLiteParser.cpp +++ b/src/armnnTfLiteParser/TfLiteParser.cpp @@ -2004,6 +2004,11 @@ void TfLiteParser::ParseResize(size_t subgraphIndex, size_t operatorIndex, Resiz case ResizeMethod::Bilinear: { layerName += str(boost::format("BILINEAR:%1%:%2%") % subgraphIndex % operatorIndex); + + const auto & operatorPtr = m_Model->subgraphs[subgraphIndex]->operators[operatorIndex]; + const auto * options = operatorPtr->builtin_options.AsResizeBilinearOptions(); + + desc.m_BilinearAlignCorners = options->align_corners; break; } case ResizeMethod::NearestNeighbor: -- cgit v1.2.1