Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/backends/backendsCommon/test/layerTests/MeanTestImpl.hpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_mean_test_impl_8hpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">MeanTestImpl.hpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_layer_test_result_8hpp_source.xhtml">LayerTestResult.hpp</a>"</code><br /> |
| 104 | <code>#include <<a class="el" href="_resolve_type_8hpp_source.xhtml">ResolveType.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml">armnn/backends/IBackendInternal.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.xhtml">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 107 | </div> |
| 108 | <p><a href="_mean_test_impl_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 109 | <table class="memberdecls"> |
| 110 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 111 | Functions</h2></td></tr> |
| 112 | <tr class="memitem:a45d0d04d40c30afd43eb8531c460ad1b"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 113 | <tr class="memitem:a45d0d04d40c30afd43eb8531c460ad1b"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#a45d0d04d40c30afd43eb8531c460ad1b">MeanSimpleTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 114 | <tr class="separator:a45d0d04d40c30afd43eb8531c460ad1b"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a530bf16d942cbf42aa242bb52104e595"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 116 | <tr class="memitem:a530bf16d942cbf42aa242bb52104e595"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#a530bf16d942cbf42aa242bb52104e595">MeanSimpleAxisTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 117 | <tr class="separator:a530bf16d942cbf42aa242bb52104e595"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:a1558635c203ba5cd97f6702082976545"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 119 | <tr class="memitem:a1558635c203ba5cd97f6702082976545"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#a1558635c203ba5cd97f6702082976545">MeanKeepDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 120 | <tr class="separator:a1558635c203ba5cd97f6702082976545"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a2b7d15f9edab27b3ce67a523813744fe"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 122 | <tr class="memitem:a2b7d15f9edab27b3ce67a523813744fe"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#a2b7d15f9edab27b3ce67a523813744fe">MeanMultipleDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 123 | <tr class="separator:a2b7d15f9edab27b3ce67a523813744fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:aa33e7edb93037606ae83829f91c40eb0"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 125 | <tr class="memitem:aa33e7edb93037606ae83829f91c40eb0"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#aa33e7edb93037606ae83829f91c40eb0">MeanVts1Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 126 | <tr class="separator:aa33e7edb93037606ae83829f91c40eb0"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:a3d24ef29ef22a4e0f5796c267fca8d71"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 128 | <tr class="memitem:a3d24ef29ef22a4e0f5796c267fca8d71"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#a3d24ef29ef22a4e0f5796c267fca8d71">MeanVts2Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 129 | <tr class="separator:a3d24ef29ef22a4e0f5796c267fca8d71"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:ac8cbc38f3dda6a093c3ea80833a1ab44"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 131 | <tr class="memitem:ac8cbc38f3dda6a093c3ea80833a1ab44"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_mean_test_impl_8hpp.xhtml#ac8cbc38f3dda6a093c3ea80833a1ab44">MeanVts3Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 132 | <tr class="separator:ac8cbc38f3dda6a093c3ea80833a1ab44"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | </table> |
| 134 | <h2 class="groupheader">Function Documentation</h2> |
| 135 | <a id="a1558635c203ba5cd97f6702082976545"></a> |
| 136 | <h2 class="memtitle"><span class="permalink"><a href="#a1558635c203ba5cd97f6702082976545">◆ </a></span>MeanKeepDimsTest()</h2> |
| 137 | |
| 138 | <div class="memitem"> |
| 139 | <div class="memproto"> |
| 140 | <table class="memname"> |
| 141 | <tr> |
| 142 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> MeanKeepDimsTest </td> |
| 143 | <td>(</td> |
| 144 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 145 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 146 | </tr> |
| 147 | <tr> |
| 148 | <td class="paramkey"></td> |
| 149 | <td></td> |
| 150 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 151 | <td class="paramname"><em>memoryManager</em> </td> |
| 152 | </tr> |
| 153 | <tr> |
| 154 | <td></td> |
| 155 | <td>)</td> |
| 156 | <td></td><td></td> |
| 157 | </tr> |
| 158 | </table> |
| 159 | </div><div class="memdoc"> |
| 160 | |
| 161 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00106">106</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 162 | <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 --> |
| 163 | </div> |
| 164 | </div> |
| 165 | <a id="a2b7d15f9edab27b3ce67a523813744fe"></a> |
| 166 | <h2 class="memtitle"><span class="permalink"><a href="#a2b7d15f9edab27b3ce67a523813744fe">◆ </a></span>MeanMultipleDimsTest()</h2> |
| 167 | |
| 168 | <div class="memitem"> |
| 169 | <div class="memproto"> |
| 170 | <table class="memname"> |
| 171 | <tr> |
| 172 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> MeanMultipleDimsTest </td> |
| 173 | <td>(</td> |
| 174 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 175 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 176 | </tr> |
| 177 | <tr> |
| 178 | <td class="paramkey"></td> |
| 179 | <td></td> |
| 180 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 181 | <td class="paramname"><em>memoryManager</em> </td> |
| 182 | </tr> |
| 183 | <tr> |
| 184 | <td></td> |
| 185 | <td>)</td> |
| 186 | <td></td><td></td> |
| 187 | </tr> |
| 188 | </table> |
| 189 | </div><div class="memdoc"> |
| 190 | |
| 191 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00121">121</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 192 | <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 --> |
| 193 | </div> |
| 194 | </div> |
| 195 | <a id="a530bf16d942cbf42aa242bb52104e595"></a> |
| 196 | <h2 class="memtitle"><span class="permalink"><a href="#a530bf16d942cbf42aa242bb52104e595">◆ </a></span>MeanSimpleAxisTest()</h2> |
| 197 | |
| 198 | <div class="memitem"> |
| 199 | <div class="memproto"> |
| 200 | <table class="memname"> |
| 201 | <tr> |
| 202 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 3> MeanSimpleAxisTest </td> |
| 203 | <td>(</td> |
| 204 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 205 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 206 | </tr> |
| 207 | <tr> |
| 208 | <td class="paramkey"></td> |
| 209 | <td></td> |
| 210 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 211 | <td class="paramname"><em>memoryManager</em> </td> |
| 212 | </tr> |
| 213 | <tr> |
| 214 | <td></td> |
| 215 | <td>)</td> |
| 216 | <td></td><td></td> |
| 217 | </tr> |
| 218 | </table> |
| 219 | </div><div class="memdoc"> |
| 220 | |
| 221 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00091">91</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 222 | <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 --> |
| 223 | </div> |
| 224 | </div> |
| 225 | <a id="a45d0d04d40c30afd43eb8531c460ad1b"></a> |
| 226 | <h2 class="memtitle"><span class="permalink"><a href="#a45d0d04d40c30afd43eb8531c460ad1b">◆ </a></span>MeanSimpleTest()</h2> |
| 227 | |
| 228 | <div class="memitem"> |
| 229 | <div class="memproto"> |
| 230 | <table class="memname"> |
| 231 | <tr> |
| 232 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 1> MeanSimpleTest </td> |
| 233 | <td>(</td> |
| 234 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 235 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 236 | </tr> |
| 237 | <tr> |
| 238 | <td class="paramkey"></td> |
| 239 | <td></td> |
| 240 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 241 | <td class="paramname"><em>memoryManager</em> </td> |
| 242 | </tr> |
| 243 | <tr> |
| 244 | <td></td> |
| 245 | <td>)</td> |
| 246 | <td></td><td></td> |
| 247 | </tr> |
| 248 | </table> |
| 249 | </div><div class="memdoc"> |
| 250 | |
| 251 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00076">76</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 252 | <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 --> |
| 253 | </div> |
| 254 | </div> |
| 255 | <a id="aa33e7edb93037606ae83829f91c40eb0"></a> |
| 256 | <h2 class="memtitle"><span class="permalink"><a href="#aa33e7edb93037606ae83829f91c40eb0">◆ </a></span>MeanVts1Test()</h2> |
| 257 | |
| 258 | <div class="memitem"> |
| 259 | <div class="memproto"> |
| 260 | <table class="memname"> |
| 261 | <tr> |
| 262 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 1> MeanVts1Test </td> |
| 263 | <td>(</td> |
| 264 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 265 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 266 | </tr> |
| 267 | <tr> |
| 268 | <td class="paramkey"></td> |
| 269 | <td></td> |
| 270 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 271 | <td class="paramname"><em>memoryManager</em> </td> |
| 272 | </tr> |
| 273 | <tr> |
| 274 | <td></td> |
| 275 | <td>)</td> |
| 276 | <td></td><td></td> |
| 277 | </tr> |
| 278 | </table> |
| 279 | </div><div class="memdoc"> |
| 280 | |
| 281 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00136">136</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 282 | <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 --> |
| 283 | </div> |
| 284 | </div> |
| 285 | <a id="a3d24ef29ef22a4e0f5796c267fca8d71"></a> |
| 286 | <h2 class="memtitle"><span class="permalink"><a href="#a3d24ef29ef22a4e0f5796c267fca8d71">◆ </a></span>MeanVts2Test()</h2> |
| 287 | |
| 288 | <div class="memitem"> |
| 289 | <div class="memproto"> |
| 290 | <table class="memname"> |
| 291 | <tr> |
| 292 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 3> MeanVts2Test </td> |
| 293 | <td>(</td> |
| 294 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 295 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 296 | </tr> |
| 297 | <tr> |
| 298 | <td class="paramkey"></td> |
| 299 | <td></td> |
| 300 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 301 | <td class="paramname"><em>memoryManager</em> </td> |
| 302 | </tr> |
| 303 | <tr> |
| 304 | <td></td> |
| 305 | <td>)</td> |
| 306 | <td></td><td></td> |
| 307 | </tr> |
| 308 | </table> |
| 309 | </div><div class="memdoc"> |
| 310 | |
| 311 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00152">152</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 312 | <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 --> |
| 313 | </div> |
| 314 | </div> |
| 315 | <a id="ac8cbc38f3dda6a093c3ea80833a1ab44"></a> |
| 316 | <h2 class="memtitle"><span class="permalink"><a href="#ac8cbc38f3dda6a093c3ea80833a1ab44">◆ </a></span>MeanVts3Test()</h2> |
| 317 | |
| 318 | <div class="memitem"> |
| 319 | <div class="memproto"> |
| 320 | <table class="memname"> |
| 321 | <tr> |
| 322 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 3> MeanVts3Test </td> |
| 323 | <td>(</td> |
| 324 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 325 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 326 | </tr> |
| 327 | <tr> |
| 328 | <td class="paramkey"></td> |
| 329 | <td></td> |
| 330 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 331 | <td class="paramname"><em>memoryManager</em> </td> |
| 332 | </tr> |
| 333 | <tr> |
| 334 | <td></td> |
| 335 | <td>)</td> |
| 336 | <td></td><td></td> |
| 337 | </tr> |
| 338 | </table> |
| 339 | </div><div class="memdoc"> |
| 340 | |
| 341 | <p class="definition">Definition at line <a class="el" href="_mean_test_impl_8hpp_source.xhtml#l00168">168</a> of file <a class="el" href="_mean_test_impl_8hpp_source.xhtml">MeanTestImpl.hpp</a>.</p> |
| 342 | <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 --> |
| 343 | </div> |
| 344 | </div> |
| 345 | </div><!-- contents --> |
| 346 | </div><!-- doc-content --> |
| 347 | <!-- start footer part --> |
| 348 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 349 | <ul> |
| 350 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.xhtml">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.xhtml">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.xhtml">test</a></li><li class="navelem"><a class="el" href="dir_99a30439342d160875b21dac3498ad7f.xhtml">layerTests</a></li><li class="navelem"><a class="el" href="_mean_test_impl_8hpp.xhtml">MeanTestImpl.hpp</a></li> |
| 351 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 352 | <a href="http://www.doxygen.org/index.html"> |
| 353 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 354 | </ul> |
| 355 | </div> |
| 356 | </body> |
| 357 | </html> |