aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfLiteParser/TfLiteParser.cpp
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2020-01-08 10:25:24 +0000
committermike.kelly <mike.kelly@arm.com>2020-02-07 11:08:02 +0000
commit820eb141a7a5d0eef200ccf9554a37eabade3264 (patch)
tree2f4301b02cc47cbade8e723765822847d87d79e4 /src/armnnTfLiteParser/TfLiteParser.cpp
parent7e75281e9f8d8dd49c33dd61d50da2a434816b2b (diff)
downloadarmnn-820eb141a7a5d0eef200ccf9554a37eabade3264.tar.gz
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 <sang-hoon.park@arm.com> Change-Id: Id149e1c24c2abed7e9dd81939acf54dfabfcdfd2
Diffstat (limited to 'src/armnnTfLiteParser/TfLiteParser.cpp')
-rw-r--r--src/armnnTfLiteParser/TfLiteParser.cpp5
1 files changed, 5 insertions, 0 deletions
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: