aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfLiteParser/TfLiteParser.cpp
diff options
context:
space:
mode:
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>2020-09-07 14:05:22 +0100
committerfinn.williams <finn.williams@arm.com>2020-09-08 13:10:16 +0000
commitbbf71a6478d62a8fdc9d153787e26db766efbc16 (patch)
tree8d660d1a6874e01ee0f75ca38770790bd8085762 /src/armnnTfLiteParser/TfLiteParser.cpp
parentebc071653142efc03751d00870e64db89f6ee3ad (diff)
downloadarmnn-bbf71a6478d62a8fdc9d153787e26db766efbc16.tar.gz
IVGCVSW-5244 Load-scope dynamic tensor TfLite tests
* Infer tensor shapes at the beginning of Optimize function * Unit tests Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: I511f1228a12ebcad570e42a0c46d461ab9ccdc2c
Diffstat (limited to 'src/armnnTfLiteParser/TfLiteParser.cpp')
-rw-r--r--src/armnnTfLiteParser/TfLiteParser.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/armnnTfLiteParser/TfLiteParser.cpp b/src/armnnTfLiteParser/TfLiteParser.cpp
index 7b496173cc..8bc475347c 100644
--- a/src/armnnTfLiteParser/TfLiteParser.cpp
+++ b/src/armnnTfLiteParser/TfLiteParser.cpp
@@ -777,26 +777,6 @@ INetworkPtr TfLiteParser::CreateNetworkFromModel()
}
}
- // if InferAndValidate set make sure all the TensorInfo set and all the dynamic output tensors are inferred
- if (m_Options && m_Options.value().m_InferAndValidate)
- {
- for (subgraphIndex = 0;
- subgraphIndex < m_SubgraphConnections.size();
- ++subgraphIndex)
- {
- if (m_SubgraphConnections[subgraphIndex].size() > 0)
- {
- // get the last output slot on the layer
- auto outputSlot =
- m_SubgraphConnections[subgraphIndex][m_SubgraphConnections[subgraphIndex].size() - 1].outputSlot;
- if (outputSlot != nullptr)
- {
- outputSlot->IsTensorInfoSet();
- }
- }
- }
- }
-
return std::move(m_Network);
}