Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: src/backends/neon/test/NeonTimerTest.cpp File Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_neon_timer_test_8cpp.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#func-members">Functions</a> </div> |
| 85 | <div class="headertitle"> |
| 86 | <div class="title">NeonTimerTest.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include "<a class="el" href="_neon_workload_factory_helper_8hpp_source.html">NeonWorkloadFactoryHelper.hpp</a>"</code><br /> |
| 90 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.html">test/TensorHelpers.hpp</a>></code><br /> |
| 91 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.html">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 92 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.html">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 93 | <code>#include <<a class="el" href="_neon_timer_8hpp_source.html">neon/NeonTimer.hpp</a>></code><br /> |
| 94 | <code>#include <<a class="el" href="_neon_workload_factory_8hpp_source.html">neon/NeonWorkloadFactory.hpp</a>></code><br /> |
| 95 | <code>#include <<a class="el" href="_layer_tests_8hpp_source.html">backendsCommon/test/LayerTests.hpp</a>></code><br /> |
| 96 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.html">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 97 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.html">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 98 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 99 | <code>#include <cstdlib></code><br /> |
| 100 | <code>#include <algorithm></code><br /> |
| 101 | </div> |
| 102 | <p><a href="_neon_timer_test_8cpp_source.html">Go to the source code of this file.</a></p> |
| 103 | <table class="memberdecls"> |
| 104 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 105 | Functions</h2></td></tr> |
| 106 | <tr class="memitem:a8ae6df7cb9d9f3d8bc13af5ce82a37f0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_neon_timer_test_8cpp.html#a8ae6df7cb9d9f3d8bc13af5ce82a37f0">BOOST_AUTO_TEST_CASE</a> (NeonTimerGetName)</td></tr> |
| 107 | <tr class="separator:a8ae6df7cb9d9f3d8bc13af5ce82a37f0"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a18451c8c83674aba54b8882d56ebe03e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_neon_timer_test_8cpp.html#a18451c8c83674aba54b8882d56ebe03e">BOOST_AUTO_TEST_CASE</a> (NeonTimerMeasure)</td></tr> |
| 109 | <tr class="separator:a18451c8c83674aba54b8882d56ebe03e"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | </table> |
| 111 | <h2 class="groupheader">Function Documentation</h2> |
| 112 | <a id="a8ae6df7cb9d9f3d8bc13af5ce82a37f0"></a> |
| 113 | <h2 class="memtitle"><span class="permalink"><a href="#a8ae6df7cb9d9f3d8bc13af5ce82a37f0">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/2]</span></h2> |
| 114 | |
| 115 | <div class="memitem"> |
| 116 | <div class="memproto"> |
| 117 | <table class="memname"> |
| 118 | <tr> |
| 119 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 120 | <td>(</td> |
| 121 | <td class="paramtype">NeonTimerGetName </td> |
| 122 | <td class="paramname"></td><td>)</td> |
| 123 | <td></td> |
| 124 | </tr> |
| 125 | </table> |
| 126 | </div><div class="memdoc"> |
| 127 | |
| 128 | <p class="definition">Definition at line <a class="el" href="_neon_timer_test_8cpp_source.html#l00031">31</a> of file <a class="el" href="_neon_timer_test_8cpp_source.html">NeonTimerTest.cpp</a>.</p> |
| 129 | |
| 130 | <p class="reference">References <a class="el" href="_neon_timer_8cpp_source.html#l00058">NeonTimer::GetName()</a>.</p> |
| 131 | <div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="classarmnn_1_1_neon_timer.html">NeonTimer</a> neonTimer;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  BOOST_CHECK_EQUAL(neonTimer.<a class="code" href="classarmnn_1_1_neon_timer.html#ad47edad463024345ce1409153c259215">GetName</a>(), <span class="stringliteral">"NeonKernelTimer"</span>);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div><div class="ttc" id="classarmnn_1_1_neon_timer_html_ad47edad463024345ce1409153c259215"><div class="ttname"><a href="classarmnn_1_1_neon_timer.html#ad47edad463024345ce1409153c259215">armnn::NeonTimer::GetName</a></div><div class="ttdeci">const char * GetName() const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_timer_8cpp_source.html#l00058">NeonTimer.cpp:58</a></div></div> |
| 132 | <div class="ttc" id="classarmnn_1_1_neon_timer_html"><div class="ttname"><a href="classarmnn_1_1_neon_timer.html">armnn::NeonTimer</a></div><div class="ttdef"><b>Definition:</b> <a href="_neon_timer_8hpp_source.html#l00021">NeonTimer.hpp:21</a></div></div> |
| 133 | </div><!-- fragment --> |
| 134 | </div> |
| 135 | </div> |
| 136 | <a id="a18451c8c83674aba54b8882d56ebe03e"></a> |
| 137 | <h2 class="memtitle"><span class="permalink"><a href="#a18451c8c83674aba54b8882d56ebe03e">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/2]</span></h2> |
| 138 | |
| 139 | <div class="memitem"> |
| 140 | <div class="memproto"> |
| 141 | <table class="memname"> |
| 142 | <tr> |
| 143 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 144 | <td>(</td> |
| 145 | <td class="paramtype">NeonTimerMeasure </td> |
| 146 | <td class="paramname"></td><td>)</td> |
| 147 | <td></td> |
| 148 | </tr> |
| 149 | </table> |
| 150 | </div><div class="memdoc"> |
| 151 | |
| 152 | <p class="definition">Definition at line <a class="el" href="_neon_timer_test_8cpp_source.html#l00037">37</a> of file <a class="el" href="_neon_timer_test_8cpp_source.html">NeonTimerTest.cpp</a>.</p> |
| 153 | |
| 154 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn.html#a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d">armnn::BoundedReLu</a>, <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00009">CopyDataToITensorHandle()</a>, <a class="el" href="_neon_workload_factory_8cpp_source.html#l00109">NeonWorkloadFactory::CreateActivation()</a>, <a class="el" href="_neon_workload_factory_8cpp_source.html#l00075">NeonWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, <a class="el" href="_descriptors_8hpp_source.html#l00037">ActivationDescriptor::m_A</a>, <a class="el" href="_descriptors_8hpp_source.html#l00039">ActivationDescriptor::m_B</a>, <a class="el" href="_descriptors_8hpp_source.html#l00035">ActivationDescriptor::m_Function</a>, <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters</a>, and <a class="el" href="_neon_timer_8cpp_source.html#l00021">NeonTimer::Start()</a>.</p> |
| 155 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classarmnn_1_1_neon_workload_factory.html">NeonWorkloadFactory</a> workloadFactory =</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  NeonWorkloadFactoryHelper::GetFactory(NeonWorkloadFactoryHelper::GetMemoryManager());</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth = 2000u;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight = 2000u;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels = 1u;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputBatchSize = 1u;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">float</span> upperBound = 1.0f;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">float</span> lowerBound = -1.0f;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">size_t</span> inputSize = inputWidth * inputHeight * inputChannels * inputBatchSize;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  std::vector<float> inputData(inputSize, 0.f);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  std::generate(inputData.begin(), inputData.end(), [](){</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> (static_cast<float>(rand()) / <span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(RAND_MAX / 3)) + 1.f; });</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputWidth = inputWidth;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputHeight = inputHeight;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = inputChannels;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputBatchSize = inputBatchSize;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo({ inputBatchSize, inputChannels, inputHeight, inputWidth },</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo({ outputBatchSize, outputChannels, outputHeight, outputWidth },</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<float, 4></a> result(inputTensorInfo);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">auto</span> input = MakeTensor<float, 4>(inputTensorInfo, inputData);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  std::unique_ptr<armnn::ITensorHandle> inputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_neon_workload_factory.html#a7239477811c44d4398f0c2d291d9ea76">CreateTensorHandle</a>(inputTensorInfo);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  std::unique_ptr<armnn::ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_neon_workload_factory.html#a7239477811c44d4398f0c2d291d9ea76">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">// Setup bounded ReLu</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="structarmnn_1_1_activation_queue_descriptor.html">armnn::ActivationQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="structarmnn_1_1_workload_info.html">armnn::WorkloadInfo</a> workloadInfo;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  AddInputToWorkload(descriptor, workloadInfo, inputTensorInfo, inputHandle.get());</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  AddOutputToWorkload(descriptor, workloadInfo, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_activation_descriptor.html#af10fa7883e3579950f477bee92a64844">m_Function</a> = <a class="code" href="namespacearmnn.html#a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d">armnn::ActivationFunction::BoundedReLu</a>;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_activation_descriptor.html#a017b2990003a014234f13e999dc7c689">m_A</a> = upperBound;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_activation_descriptor.html#a28c4c9cb15f6be3499abbc46b356060b">m_B</a> = lowerBound;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  std::unique_ptr<armnn::IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_neon_workload_factory.html#af5f7b0f6273c838b6b7d7de8447524f9">CreateActivation</a>(descriptor, workloadInfo);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  inputHandle->Allocate();</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  outputHandle->Allocate();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle.get(), &input[0][0][0][0]);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classarmnn_1_1_neon_timer.html">NeonTimer</a> neonTimer;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// Start the timer.</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  neonTimer.<a class="code" href="classarmnn_1_1_neon_timer.html#a156f3866ca69d98b4d9e6e1c1b3ec7da">Start</a>();</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// Execute the workload.</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  workload->Execute();</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">// Stop the timer.</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  neonTimer.Stop();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  std::vector<Measurement> measurements = neonTimer.GetMeasurements();</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(measurements.size() <= 2);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span> (measurements.size() > 1)</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  BOOST_CHECK_EQUAL(measurements[0].m_Name, <span class="stringliteral">"NeonKernelTimer/0: NEFillBorderKernel"</span>);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(measurements[0].m_Value > 0.0);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  std::ostringstream oss;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  oss << <span class="stringliteral">"NeonKernelTimer/"</span> << measurements.size()-1 << <span class="stringliteral">": NEActivationLayerKernel"</span>;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  BOOST_CHECK_EQUAL(measurements[measurements.size()-1].m_Name, oss.str());</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(measurements[measurements.size()-1].m_Value > 0.0);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> }</div><div class="ttc" id="structarmnn_1_1_activation_descriptor_html_a017b2990003a014234f13e999dc7c689"><div class="ttname"><a href="structarmnn_1_1_activation_descriptor.html#a017b2990003a014234f13e999dc7c689">armnn::ActivationDescriptor::m_A</a></div><div class="ttdeci">float m_A</div><div class="ttdoc">Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00037">Descriptors.hpp:37</a></div></div> |
| 156 | <div class="ttc" id="_tensor_copy_utils_8cpp_html_ae15f1a3c55d2db87683577de9fa4437c"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a></div><div class="ttdeci">void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.html#l00009">TensorCopyUtils.cpp:9</a></div></div> |
| 157 | <div class="ttc" id="classarmnn_1_1_neon_workload_factory_html"><div class="ttname"><a href="classarmnn_1_1_neon_workload_factory.html">armnn::NeonWorkloadFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_neon_workload_factory_8hpp_source.html#l00018">NeonWorkloadFactory.hpp:18</a></div></div> |
| 158 | <div class="ttc" id="structarmnn_1_1_queue_descriptor_with_parameters_html_aad91b9bbf7aa365d304febe79a3d1333"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">armnn::QueueDescriptorWithParameters::m_Parameters</a></div><div class="ttdeci">LayerDescriptor m_Parameters</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00049">WorkloadData.hpp:49</a></div></div> |
| 159 | <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 160 | <div class="ttc" id="struct_layer_test_result_html"><div class="ttname"><a href="struct_layer_test_result.html">LayerTestResult</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00029">LayerTestResult.hpp:29</a></div></div> |
| 161 | <div class="ttc" id="structarmnn_1_1_workload_info_html"><div class="ttname"><a href="structarmnn_1_1_workload_info.html">armnn::WorkloadInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_workload_info_8hpp_source.html#l00016">WorkloadInfo.hpp:16</a></div></div> |
| 162 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 163 | <div class="ttc" id="classarmnn_1_1_neon_timer_html_a156f3866ca69d98b4d9e6e1c1b3ec7da"><div class="ttname"><a href="classarmnn_1_1_neon_timer.html#a156f3866ca69d98b4d9e6e1c1b3ec7da">armnn::NeonTimer::Start</a></div><div class="ttdeci">void Start() override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_timer_8cpp_source.html#l00021">NeonTimer.cpp:21</a></div></div> |
| 164 | <div class="ttc" id="classarmnn_1_1_neon_workload_factory_html_af5f7b0f6273c838b6b7d7de8447524f9"><div class="ttname"><a href="classarmnn_1_1_neon_workload_factory.html#af5f7b0f6273c838b6b7d7de8447524f9">armnn::NeonWorkloadFactory::CreateActivation</a></div><div class="ttdeci">std::unique_ptr< IWorkload > CreateActivation(const ActivationQueueDescriptor &descriptor, const WorkloadInfo &info) const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_workload_factory_8cpp_source.html#l00109">NeonWorkloadFactory.cpp:109</a></div></div> |
| 165 | <div class="ttc" id="structarmnn_1_1_activation_descriptor_html_a28c4c9cb15f6be3499abbc46b356060b"><div class="ttname"><a href="structarmnn_1_1_activation_descriptor.html#a28c4c9cb15f6be3499abbc46b356060b">armnn::ActivationDescriptor::m_B</a></div><div class="ttdeci">float m_B</div><div class="ttdoc">Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00039">Descriptors.hpp:39</a></div></div> |
| 166 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 167 | <div class="ttc" id="structarmnn_1_1_activation_descriptor_html_af10fa7883e3579950f477bee92a64844"><div class="ttname"><a href="structarmnn_1_1_activation_descriptor.html#af10fa7883e3579950f477bee92a64844">armnn::ActivationDescriptor::m_Function</a></div><div class="ttdeci">ActivationFunction m_Function</div><div class="ttdoc">The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00035">Descriptors.hpp:35</a></div></div> |
| 168 | <div class="ttc" id="namespacearmnn_html_a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d"><div class="ttname"><a href="namespacearmnn.html#a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d">armnn::ActivationFunction::BoundedReLu</a></div><div class="ttdoc">min(a, max(b, input)) </div></div> |
| 169 | <div class="ttc" id="classarmnn_1_1_neon_timer_html"><div class="ttname"><a href="classarmnn_1_1_neon_timer.html">armnn::NeonTimer</a></div><div class="ttdef"><b>Definition:</b> <a href="_neon_timer_8hpp_source.html#l00021">NeonTimer.hpp:21</a></div></div> |
| 170 | <div class="ttc" id="classarmnn_1_1_neon_workload_factory_html_a7239477811c44d4398f0c2d291d9ea76"><div class="ttname"><a href="classarmnn_1_1_neon_workload_factory.html#a7239477811c44d4398f0c2d291d9ea76">armnn::NeonWorkloadFactory::CreateTensorHandle</a></div><div class="ttdeci">std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_workload_factory_8cpp_source.html#l00075">NeonWorkloadFactory.cpp:75</a></div></div> |
| 171 | <div class="ttc" id="structarmnn_1_1_activation_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_activation_queue_descriptor.html">armnn::ActivationQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00130">WorkloadData.hpp:130</a></div></div> |
| 172 | </div><!-- fragment --> |
| 173 | </div> |
| 174 | </div> |
| 175 | </div><!-- contents --> |
| 176 | </div><!-- doc-content --> |
| 177 | <!-- start footer part --> |
| 178 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 179 | <ul> |
| 180 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_d86eb514662c7c08e168285f21d00ea1.html">neon</a></li><li class="navelem"><a class="el" href="dir_c3e37ff99b1c352c48e2670d743526e1.html">test</a></li><li class="navelem"><a class="el" href="_neon_timer_test_8cpp.html">NeonTimerTest.cpp</a></li> |
| 181 | <li class="footer">Generated on Fri Mar 13 2020 16:07:01 for ArmNN by |
| 182 | <a href="http://www.doxygen.org/index.html"> |
| 183 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 184 | </ul> |
| 185 | </div> |
| 186 | </body> |
| 187 | </html> |