From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_execution_frame_test_8cpp_source.xhtml | 119 ++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 20.02/_execution_frame_test_8cpp_source.xhtml (limited to '20.02/_execution_frame_test_8cpp_source.xhtml') diff --git a/20.02/_execution_frame_test_8cpp_source.xhtml b/20.02/_execution_frame_test_8cpp_source.xhtml new file mode 100644 index 0000000000..44e695c5a5 --- /dev/null +++ b/20.02/_execution_frame_test_8cpp_source.xhtml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/test/ExecutionFrameTest.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ExecutionFrameTest.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 <boost/test/unit_test.hpp>
7 
8 #include <ExecutionFrame.hpp>
9 
10 // Test that the values set in m_NextExecutionFrame are correct.
11 // The execution order is given by the m_NextExecutionFrame in each ExecutionFrame.
12 // A
13 // |
14 // B
15 // |
16 // C
17 BOOST_AUTO_TEST_CASE(NextExecutionFrameTest)
18 {
19  armnn::ExecutionFrame executionFrameA;
20  armnn::ExecutionFrame executionFrameB;
21  armnn::ExecutionFrame executionFrameC;
22 
23  executionFrameA.SetNextExecutionFrame(&executionFrameB);
24  executionFrameB.SetNextExecutionFrame(&executionFrameC);
25  //not setting C to check that the default setting is nullptr.
26 
27  auto nextExecutionFrameA = executionFrameA.ExecuteWorkloads(nullptr);
28  auto nextExecutionFrameB = executionFrameB.ExecuteWorkloads(&executionFrameA);
29  auto nextExecutionFrameC = executionFrameC.ExecuteWorkloads(&executionFrameB);
30 
31  BOOST_CHECK_EQUAL(nextExecutionFrameA, &executionFrameB);
32  BOOST_CHECK_EQUAL(nextExecutionFrameB, &executionFrameC);
33 
34  BOOST_CHECK(!nextExecutionFrameC);
35 
36  BOOST_CHECK_NE(nextExecutionFrameA, &executionFrameC);
37 }
38 
BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)
+
IExecutionFrame * ExecuteWorkloads(IExecutionFrame *previousFrame) override
+
BOOST_AUTO_TEST_CASE(NextExecutionFrameTest)
+ +
void SetNextExecutionFrame(IExecutionFrame *nextExecutionFrame)
+ +
+
+ + + + -- cgit v1.2.1