diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2020-09-07 14:05:22 +0100 |
---|---|---|
committer | finn.williams <finn.williams@arm.com> | 2020-09-08 13:10:16 +0000 |
commit | bbf71a6478d62a8fdc9d153787e26db766efbc16 (patch) | |
tree | 8d660d1a6874e01ee0f75ca38770790bd8085762 /src/armnnTfLiteParser/TfLiteParser.cpp | |
parent | ebc071653142efc03751d00870e64db89f6ee3ad (diff) | |
download | armnn-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.cpp | 20 |
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); } |