From 0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Thu, 19 Mar 2020 17:03:14 +0000 Subject: Creating gh-pages documentation for ArmNN Signed-off-by: Jim Flynn --- Documentation/_ref_runtime_tests_8cpp_source.xhtml | 129 +++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/_ref_runtime_tests_8cpp_source.xhtml (limited to 'Documentation/_ref_runtime_tests_8cpp_source.xhtml') diff --git a/Documentation/_ref_runtime_tests_8cpp_source.xhtml b/Documentation/_ref_runtime_tests_8cpp_source.xhtml new file mode 100644 index 0000000000..b8b78b3d88 --- /dev/null +++ b/Documentation/_ref_runtime_tests_8cpp_source.xhtml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/test/RefRuntimeTests.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefRuntimeTests.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include <test/RuntimeTests.hpp>
7 
8 #include <LeakChecking.hpp>
9 
11 
12 #include <boost/test/unit_test.hpp>
13 
14 BOOST_AUTO_TEST_SUITE(RefRuntime)
15 
16 #ifdef ARMNN_LEAK_CHECKING_ENABLED
17 BOOST_AUTO_TEST_CASE(RuntimeMemoryLeaksCpuRef)
18 {
19  BOOST_TEST(ARMNN_LEAK_CHECKER_IS_ACTIVE());
20 
22  armnn::Runtime runtime(options);
24 
25  std::vector<armnn::BackendId> backends = {armnn::Compute::CpuRef};
26  {
27  // Do a warmup of this so we make sure that all one-time
28  // initialization happens before we do the leak checking.
29  CreateAndDropDummyNetwork(backends, runtime);
30  }
31 
32  {
33  ARMNN_SCOPED_LEAK_CHECKER("LoadAndUnloadNetworkCpuRef");
34  BOOST_TEST(ARMNN_NO_LEAKS_IN_SCOPE());
35  // In the second run we check for all remaining memory
36  // in use after the network was unloaded. If there is any
37  // then it will be treated as a memory leak.
38  CreateAndDropDummyNetwork(backends, runtime);
39  BOOST_TEST(ARMNN_NO_LEAKS_IN_SCOPE());
40  BOOST_TEST(ARMNN_BYTES_LEAKED_IN_SCOPE() == 0);
41  BOOST_TEST(ARMNN_OBJECTS_LEAKED_IN_SCOPE() == 0);
42  }
43 }
44 #endif
45 
#define ARMNN_SCOPED_LEAK_CHECKER(TAG)
+
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
+
CPU Execution: Reference C++ kernels.
+ +
#define ARMNN_LEAK_CHECKER_IS_ACTIVE()
+
#define ARMNN_OBJECTS_LEAKED_IN_SCOPE()
+ +
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
+ + +
BOOST_AUTO_TEST_SUITE_END()
+
#define ARMNN_NO_LEAKS_IN_SCOPE()
+ +
armnn::Runtime::CreationOptions::ExternalProfilingOptions options
+
#define ARMNN_BYTES_LEAKED_IN_SCOPE()
+
void RuntimeLoadedNetworksReserve(armnn::Runtime *runtime)
+
+
+ + + + -- cgit v1.2.1