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/backendsCommon/test/layerTests/MeanTestImpl.hpp 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('_mean_test_impl_8hpp.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">MeanTestImpl.hpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include "<a class="el" href="_layer_test_result_8hpp_source.html">LayerTestResult.hpp</a>"</code><br /> |
| 90 | <code>#include <<a class="el" href="_resolve_type_8hpp_source.html">ResolveType.hpp</a>></code><br /> |
| 91 | <code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html">armnn/backends/IBackendInternal.hpp</a>></code><br /> |
| 92 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.html">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 93 | </div> |
| 94 | <p><a href="_mean_test_impl_8hpp_source.html">Go to the source code of this file.</a></p> |
| 95 | <table class="memberdecls"> |
| 96 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 97 | Functions</h2></td></tr> |
| 98 | <tr class="memitem:a45d0d04d40c30afd43eb8531c460ad1b"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 99 | <tr class="memitem:a45d0d04d40c30afd43eb8531c460ad1b"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#a45d0d04d40c30afd43eb8531c460ad1b">MeanSimpleTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 100 | <tr class="separator:a45d0d04d40c30afd43eb8531c460ad1b"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <tr class="memitem:a530bf16d942cbf42aa242bb52104e595"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 102 | <tr class="memitem:a530bf16d942cbf42aa242bb52104e595"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#a530bf16d942cbf42aa242bb52104e595">MeanSimpleAxisTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 103 | <tr class="separator:a530bf16d942cbf42aa242bb52104e595"><td class="memSeparator" colspan="2"> </td></tr> |
| 104 | <tr class="memitem:a1558635c203ba5cd97f6702082976545"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 105 | <tr class="memitem:a1558635c203ba5cd97f6702082976545"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#a1558635c203ba5cd97f6702082976545">MeanKeepDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 106 | <tr class="separator:a1558635c203ba5cd97f6702082976545"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:a2b7d15f9edab27b3ce67a523813744fe"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 108 | <tr class="memitem:a2b7d15f9edab27b3ce67a523813744fe"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#a2b7d15f9edab27b3ce67a523813744fe">MeanMultipleDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 109 | <tr class="separator:a2b7d15f9edab27b3ce67a523813744fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:aa33e7edb93037606ae83829f91c40eb0"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 111 | <tr class="memitem:aa33e7edb93037606ae83829f91c40eb0"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#aa33e7edb93037606ae83829f91c40eb0">MeanVts1Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 112 | <tr class="separator:aa33e7edb93037606ae83829f91c40eb0"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a3d24ef29ef22a4e0f5796c267fca8d71"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 114 | <tr class="memitem:a3d24ef29ef22a4e0f5796c267fca8d71"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#a3d24ef29ef22a4e0f5796c267fca8d71">MeanVts2Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 115 | <tr class="separator:a3d24ef29ef22a4e0f5796c267fca8d71"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:ac8cbc38f3dda6a093c3ea80833a1ab44"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 117 | <tr class="memitem:ac8cbc38f3dda6a093c3ea80833a1ab44"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.html#ac8cbc38f3dda6a093c3ea80833a1ab44">MeanVts3Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 118 | <tr class="separator:ac8cbc38f3dda6a093c3ea80833a1ab44"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | </table> |
| 120 | <h2 class="groupheader">Function Documentation</h2> |
| 121 | <a id="a1558635c203ba5cd97f6702082976545"></a> |
| 122 | <h2 class="memtitle"><span class="permalink"><a href="#a1558635c203ba5cd97f6702082976545">◆ </a></span>MeanKeepDimsTest()</h2> |
| 123 | |
| 124 | <div class="memitem"> |
| 125 | <div class="memproto"> |
| 126 | <table class="memname"> |
| 127 | <tr> |
| 128 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> MeanKeepDimsTest </td> |
| 129 | <td>(</td> |
| 130 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 131 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 132 | </tr> |
| 133 | <tr> |
| 134 | <td class="paramkey"></td> |
| 135 | <td></td> |
| 136 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 137 | <td class="paramname"><em>memoryManager</em> </td> |
| 138 | </tr> |
| 139 | <tr> |
| 140 | <td></td> |
| 141 | <td>)</td> |
| 142 | <td></td><td></td> |
| 143 | </tr> |
| 144 | </table> |
| 145 | </div><div class="memdoc"> |
| 146 | |
| 147 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00106">106</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 148 | <div class="fragment"><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 1, 3, 2 };</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::vector<float> input({ 1.5f, 1.5f, 2.5f, 2.5f, 3.5f, 3.5f });</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  std::vector<float> output({ 2.5f, 2.5f });</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 4, 4>(</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  workloadFactory, memoryManager, inputShape, input, { 2 }, <span class="keyword">true</span>, outputShape, output);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div></div><!-- fragment --> |
| 149 | </div> |
| 150 | </div> |
| 151 | <a id="a2b7d15f9edab27b3ce67a523813744fe"></a> |
| 152 | <h2 class="memtitle"><span class="permalink"><a href="#a2b7d15f9edab27b3ce67a523813744fe">◆ </a></span>MeanMultipleDimsTest()</h2> |
| 153 | |
| 154 | <div class="memitem"> |
| 155 | <div class="memproto"> |
| 156 | <table class="memname"> |
| 157 | <tr> |
| 158 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> MeanMultipleDimsTest </td> |
| 159 | <td>(</td> |
| 160 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 161 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 162 | </tr> |
| 163 | <tr> |
| 164 | <td class="paramkey"></td> |
| 165 | <td></td> |
| 166 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 167 | <td class="paramname"><em>memoryManager</em> </td> |
| 168 | </tr> |
| 169 | <tr> |
| 170 | <td></td> |
| 171 | <td>)</td> |
| 172 | <td></td><td></td> |
| 173 | </tr> |
| 174 | </table> |
| 175 | </div><div class="memdoc"> |
| 176 | |
| 177 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00121">121</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 178 | <div class="fragment"><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 2, 3, 1, 2 };</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 3, 1, 1 };</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  std::vector<float> input({ 1.5f, 2.5f, 3.5f, 4.5f, 5.5f, 6.5f, 1.5f, 2.5f, 3.5f, 4.5f, 5.5f, 6.5 });</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  std::vector<float> output({ 2.0f, 4.0f, 6.0f });</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 4, 4>(</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  workloadFactory, memoryManager, inputShape, input, { 0, 3 }, <span class="keyword">true</span>, outputShape, output);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> }</div></div><!-- fragment --> |
| 179 | </div> |
| 180 | </div> |
| 181 | <a id="a530bf16d942cbf42aa242bb52104e595"></a> |
| 182 | <h2 class="memtitle"><span class="permalink"><a href="#a530bf16d942cbf42aa242bb52104e595">◆ </a></span>MeanSimpleAxisTest()</h2> |
| 183 | |
| 184 | <div class="memitem"> |
| 185 | <div class="memproto"> |
| 186 | <table class="memname"> |
| 187 | <tr> |
| 188 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> MeanSimpleAxisTest </td> |
| 189 | <td>(</td> |
| 190 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 191 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 192 | </tr> |
| 193 | <tr> |
| 194 | <td class="paramkey"></td> |
| 195 | <td></td> |
| 196 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 197 | <td class="paramname"><em>memoryManager</em> </td> |
| 198 | </tr> |
| 199 | <tr> |
| 200 | <td></td> |
| 201 | <td>)</td> |
| 202 | <td></td><td></td> |
| 203 | </tr> |
| 204 | </table> |
| 205 | </div><div class="memdoc"> |
| 206 | |
| 207 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00091">91</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 208 | <div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 2, 3, 1, 2 };</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 3, 1, 2 };</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<float> input({ 1.5f, 2.5f, 3.5f, 4.5f, 5.5f, 6.5f, 1.5f, 2.5f, 3.5f, 4.5f, 5.5f, 6.5f });</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  std::vector<float> output({ 1.5f, 2.5f, 3.5f, 4.5f, 5.5f, 6.5f });</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 4, 3>(</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  workloadFactory, memoryManager, inputShape, input, { 0 }, <span class="keyword">false</span>, outputShape, output);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div></div><!-- fragment --> |
| 209 | </div> |
| 210 | </div> |
| 211 | <a id="a45d0d04d40c30afd43eb8531c460ad1b"></a> |
| 212 | <h2 class="memtitle"><span class="permalink"><a href="#a45d0d04d40c30afd43eb8531c460ad1b">◆ </a></span>MeanSimpleTest()</h2> |
| 213 | |
| 214 | <div class="memitem"> |
| 215 | <div class="memproto"> |
| 216 | <table class="memname"> |
| 217 | <tr> |
| 218 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 1> MeanSimpleTest </td> |
| 219 | <td>(</td> |
| 220 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 221 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 222 | </tr> |
| 223 | <tr> |
| 224 | <td class="paramkey"></td> |
| 225 | <td></td> |
| 226 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 227 | <td class="paramname"><em>memoryManager</em> </td> |
| 228 | </tr> |
| 229 | <tr> |
| 230 | <td></td> |
| 231 | <td>)</td> |
| 232 | <td></td><td></td> |
| 233 | </tr> |
| 234 | </table> |
| 235 | </div><div class="memdoc"> |
| 236 | |
| 237 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00076">76</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 238 | <div class="fragment"><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 3, 2 };</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1 };</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::vector<float> input({ 1.5f, 1.5f, 2.5f, 2.5f, 3.5f, 3.5f });</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  std::vector<float> output({ 2.5f });</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 2, 1>(</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  workloadFactory, memoryManager, inputShape, input, {}, <span class="keyword">false</span>, outputShape, output);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div></div><!-- fragment --> |
| 239 | </div> |
| 240 | </div> |
| 241 | <a id="aa33e7edb93037606ae83829f91c40eb0"></a> |
| 242 | <h2 class="memtitle"><span class="permalink"><a href="#aa33e7edb93037606ae83829f91c40eb0">◆ </a></span>MeanVts1Test()</h2> |
| 243 | |
| 244 | <div class="memitem"> |
| 245 | <div class="memproto"> |
| 246 | <table class="memname"> |
| 247 | <tr> |
| 248 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 1> MeanVts1Test </td> |
| 249 | <td>(</td> |
| 250 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 251 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td class="paramkey"></td> |
| 255 | <td></td> |
| 256 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 257 | <td class="paramname"><em>memoryManager</em> </td> |
| 258 | </tr> |
| 259 | <tr> |
| 260 | <td></td> |
| 261 | <td>)</td> |
| 262 | <td></td><td></td> |
| 263 | </tr> |
| 264 | </table> |
| 265 | </div><div class="memdoc"> |
| 266 | |
| 267 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00136">136</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 268 | <div class="fragment"><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> {</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 4, 3, 2 };</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 2 };</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  std::vector<float> input({ 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f,</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  15.0f, 16.0f, 17.0f, 18.0f, 19.0f, 20.0f, 21.0f, 22.0f, 23.0f, 24.0f });</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  std::vector<float> output({ 12.0f, 13.0f });</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 3, 1>(</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  workloadFactory, memoryManager, inputShape, input, { 0, 1 }, <span class="keyword">false</span>, outputShape, output);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div></div><!-- fragment --> |
| 269 | </div> |
| 270 | </div> |
| 271 | <a id="a3d24ef29ef22a4e0f5796c267fca8d71"></a> |
| 272 | <h2 class="memtitle"><span class="permalink"><a href="#a3d24ef29ef22a4e0f5796c267fca8d71">◆ </a></span>MeanVts2Test()</h2> |
| 273 | |
| 274 | <div class="memitem"> |
| 275 | <div class="memproto"> |
| 276 | <table class="memname"> |
| 277 | <tr> |
| 278 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> MeanVts2Test </td> |
| 279 | <td>(</td> |
| 280 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 281 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 282 | </tr> |
| 283 | <tr> |
| 284 | <td class="paramkey"></td> |
| 285 | <td></td> |
| 286 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 287 | <td class="paramname"><em>memoryManager</em> </td> |
| 288 | </tr> |
| 289 | <tr> |
| 290 | <td></td> |
| 291 | <td>)</td> |
| 292 | <td></td><td></td> |
| 293 | </tr> |
| 294 | </table> |
| 295 | </div><div class="memdoc"> |
| 296 | |
| 297 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00152">152</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 298 | <div class="fragment"><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 4, 3, 2 };</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 3, 1 };</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  std::vector<float> input({ 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f,</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  15.0f, 16.0f, 17.0f, 18.0f, 19.0f, 20.0f, 21.0f, 22.0f, 23.0f, 24.0f });</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  std::vector<float> output({ 10.5f, 12.5f, 14.5f });</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 3, 3>(</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  workloadFactory, memoryManager, inputShape, input, { 0, 2 }, <span class="keyword">true</span>, outputShape, output);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> }</div></div><!-- fragment --> |
| 299 | </div> |
| 300 | </div> |
| 301 | <a id="ac8cbc38f3dda6a093c3ea80833a1ab44"></a> |
| 302 | <h2 class="memtitle"><span class="permalink"><a href="#ac8cbc38f3dda6a093c3ea80833a1ab44">◆ </a></span>MeanVts3Test()</h2> |
| 303 | |
| 304 | <div class="memitem"> |
| 305 | <div class="memproto"> |
| 306 | <table class="memname"> |
| 307 | <tr> |
| 308 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> MeanVts3Test </td> |
| 309 | <td>(</td> |
| 310 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 311 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 312 | </tr> |
| 313 | <tr> |
| 314 | <td class="paramkey"></td> |
| 315 | <td></td> |
| 316 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 317 | <td class="paramname"><em>memoryManager</em> </td> |
| 318 | </tr> |
| 319 | <tr> |
| 320 | <td></td> |
| 321 | <td>)</td> |
| 322 | <td></td><td></td> |
| 323 | </tr> |
| 324 | </table> |
| 325 | </div><div class="memdoc"> |
| 326 | |
| 327 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.html#l00168">168</a> of file <a class="el" href="_mean_test_impl_8hpp_source.html">MeanTestImpl.hpp</a>.</p> |
| 328 | <div class="fragment"><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> {</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 2, 2, 1 };</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 2, 1 };</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  std::vector<float> input({ 1.0f, 2.0f, 3.0f, 4.0f });</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  std::vector<float> output({ 1.5f, 3.5f });</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">return</span> MeanTestHelper<ArmnnType, T, 4, 3>(</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  workloadFactory, memoryManager, inputShape, input, { 2 }, <span class="keyword">false</span>, outputShape, output);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div></div><!-- fragment --> |
| 329 | </div> |
| 330 | </div> |
| 331 | </div><!-- contents --> |
| 332 | </div><!-- doc-content --> |
| 333 | <!-- start footer part --> |
| 334 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 335 | <ul> |
| 336 | <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_797a213d7d01b98ef12d53b0820ea64e.html">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.html">test</a></li><li class="navelem"><a class="el" href="dir_99a30439342d160875b21dac3498ad7f.html">layerTests</a></li><li class="navelem"><a class="el" href="_mean_test_impl_8hpp.html">MeanTestImpl.hpp</a></li> |
| 337 | <li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by |
| 338 | <a href="http://www.doxygen.org/index.html"> |
| 339 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 340 | </ul> |
| 341 | </div> |
| 342 | </body> |
| 343 | </html> |