From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/test_2_tf_lite_parser_8cpp.xhtml | 187 +++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 21.02/test_2_tf_lite_parser_8cpp.xhtml (limited to '21.02/test_2_tf_lite_parser_8cpp.xhtml') diff --git a/21.02/test_2_tf_lite_parser_8cpp.xhtml b/21.02/test_2_tf_lite_parser_8cpp.xhtml new file mode 100644 index 0000000000..81c0c28438 --- /dev/null +++ b/21.02/test_2_tf_lite_parser_8cpp.xhtml @@ -0,0 +1,187 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/TfLiteParser.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TfLiteParser.cpp File Reference
+
+
+
#include <boost/test/unit_test.hpp>
+#include "ParserFlatbuffersFixture.hpp"
+#include "../TfLiteParser.hpp"
+
+

Go to the source code of this file.

+ + + + + + +

+Functions

 BOOST_AUTO_TEST_CASE (ParseEmptyBinaryData)
 
 BOOST_FIXTURE_TEST_CASE (ParseBadInputBindings, NoInputBindingsFixture)
 
+

Function Documentation

+ +

◆ BOOST_AUTO_TEST_CASE()

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (ParseEmptyBinaryData )
+
+ +

Definition at line 12 of file TfLiteParser.cpp.

+ +

References ParserFlatbuffersFixture::SetupSingleInputSingleOutput().

+
13 {
14  ITfLiteParser::TfLiteParserOptions options;
15  ITfLiteParserPtr m_Parser(ITfLiteParser::Create(armnn::Optional<ITfLiteParser::TfLiteParserOptions>(options)));
16  // Should throw armnn::ParseException: Buffer doesn't conform to the expected Tensorflow Lite flatbuffers format.
17  BOOST_CHECK_THROW(m_Parser->CreateNetworkFromBinary({0}), armnn::ParseException);
18 }
+
std::unique_ptr< ITfLiteParser, void(*)(ITfLiteParser *parser)> ITfLiteParserPtr
+ +
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE()

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseBadInputBindings ,
NoInputBindingsFixture  
)
+
+ +

Definition at line 35 of file TfLiteParser.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
36 {
37  // Should throw armnn::ParseException: No input binding found for subgraph:0 and name:inputTensor.
38  BOOST_CHECK_THROW( (RunTest<4, armnn::DataType::QAsymmU8>(0, { }, { 0 })), armnn::ParseException);
39 }
+
+
+
+
+
+ + + + -- cgit v1.2.1