aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfLiteParser
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2020-05-20 15:27:37 +0100
committerRob Hughes <robert.hughes@arm.com>2020-06-02 13:55:30 +0000
commitbb46dde88befe14583eaac83f65775a7543d4586 (patch)
tree61baff7d93acd0a24184bc0dfa8af540168e1e4c /src/armnnTfLiteParser
parent8acafd13ad2169b6edc86f5e42602ec604d39648 (diff)
downloadarmnn-bb46dde88befe14583eaac83f65775a7543d4586.tar.gz
Fix a few build warnings:
* Remove redundant asserts for unsigned ints being positive * Remove unneeded include of lightweight_test.hpp header * Remove unused exception variable names * Replace hardcoded 0.0f with T() for some template functions * Add a few static_casts Change-Id: I290b0433cf995f6d0199422eaa10f816e5fd8eb9 Signed-off-by: Robert Hughes <robert.hughes@arm.com>
Diffstat (limited to 'src/armnnTfLiteParser')
-rw-r--r--src/armnnTfLiteParser/test/GetBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armnnTfLiteParser/test/GetBuffer.cpp b/src/armnnTfLiteParser/test/GetBuffer.cpp
index 6eecf4f8ee..cccdbce7aa 100644
--- a/src/armnnTfLiteParser/test/GetBuffer.cpp
+++ b/src/armnnTfLiteParser/test/GetBuffer.cpp
@@ -120,7 +120,7 @@ BOOST_FIXTURE_TEST_CASE(GetBufferCheckParseException, GetBufferFixture)
{
//Check if armnn::ParseException thrown when invalid buffer index used
TfLiteParser::ModelPtr model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());
- BOOST_CHECK_THROW(TfLiteParser::GetBuffer(model, 4)->data.empty(), armnn::Exception);
+ BOOST_CHECK_THROW(TfLiteParser::GetBuffer(model, 4), armnn::Exception);
}
BOOST_AUTO_TEST_SUITE_END()