From 0f04892cba2c2dd25c249d67311390675fb35ee9 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 9 Nov 2021 20:39:10 +0000 Subject: IVGCVSW-6420 Setting a const tensor flag was missing inthe TfLite parser. * The TfLiteparser was returning non const TensorInfo's for input tensor BindingPointInfo. Signed-off-by: Colm Donelan Change-Id: I20942aaef3afe7c91cf19fc3c007bec35828e69e --- src/armnnTfLiteParser/TfLiteParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/armnnTfLiteParser/TfLiteParser.cpp b/src/armnnTfLiteParser/TfLiteParser.cpp index 125a763ff4..15ca36d906 100644 --- a/src/armnnTfLiteParser/TfLiteParser.cpp +++ b/src/armnnTfLiteParser/TfLiteParser.cpp @@ -4205,7 +4205,10 @@ BindingPointInfo TfLiteParserImpl::GetNetworkInputBindingInfo(size_t subgraphId, if (input.second->name == name) { auto bindingId = GenerateLayerBindingId(subgraphId, input.first); - return std::make_pair(bindingId, ToTensorInfo(input.second)); + auto inputTensorInfo = ToTensorInfo(input.second); + // Input tensors are always treated as constant tensors during network execution. + inputTensorInfo.SetConstant(true); + return std::make_pair(bindingId, inputTensorInfo); } } -- cgit v1.2.1