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/ConstantTestImpl.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('_constant_test_impl_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">ConstantTestImpl.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include "<a class="el" href="_constant_test_impl_8hpp_source.html">ConstantTestImpl.hpp</a>"</code><br /> |
| 90 | <code>#include <<a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>></code><br /> |
| 91 | <code>#include <<a class="el" href="_resolve_type_8hpp_source.html">ResolveType.hpp</a>></code><br /> |
| 92 | <code>#include <<a class="el" href="_permute_8hpp_source.html">armnnUtils/Permute.hpp</a>></code><br /> |
| 93 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.html">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 94 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.html">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 95 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.html">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 96 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.html">test/TensorHelpers.hpp</a>></code><br /> |
| 97 | </div> |
| 98 | <p><a href="_constant_test_impl_8cpp_source.html">Go to the source code of this file.</a></p> |
| 99 | <table class="memberdecls"> |
| 100 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 101 | Functions</h2></td></tr> |
| 102 | <tr class="memitem:a6bed60e7ef6dbb582ad454d94e2367ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_constant_test_impl_8cpp.html#a6bed60e7ef6dbb582ad454d94e2367ec">ConstantTest</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:a6bed60e7ef6dbb582ad454d94e2367ec"><td class="memSeparator" colspan="2"> </td></tr> |
| 104 | <tr class="memitem:a9dcd8bb87493200c5ce24c7c29acd81f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_constant_test_impl_8cpp.html#a9dcd8bb87493200c5ce24c7c29acd81f">ConstantInt16SimpleQuantizationScaleNoOffsetTest</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> |
| 105 | <tr class="separator:a9dcd8bb87493200c5ce24c7c29acd81f"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:a2826f436401c4e1c32983a598936e36f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_constant_test_impl_8cpp.html#a2826f436401c4e1c32983a598936e36f">ConstantUint8SimpleQuantizationScaleNoOffsetTest</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> |
| 107 | <tr class="separator:a2826f436401c4e1c32983a598936e36f"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:aa5f4f81bcf6256977802069fe1467d08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_constant_test_impl_8cpp.html#aa5f4f81bcf6256977802069fe1467d08">ConstantUint8CustomQuantizationScaleAndOffsetTest</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:aa5f4f81bcf6256977802069fe1467d08"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a9b287c734d9ee57423267e5e75a52792"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_constant_test_impl_8cpp.html#a9b287c734d9ee57423267e5e75a52792">ConstantInt16CustomQuantizationScaleAndOffsetTest</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> |
| 111 | <tr class="separator:a9b287c734d9ee57423267e5e75a52792"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | </table> |
| 113 | <h2 class="groupheader">Function Documentation</h2> |
| 114 | <a id="a9b287c734d9ee57423267e5e75a52792"></a> |
| 115 | <h2 class="memtitle"><span class="permalink"><a href="#a9b287c734d9ee57423267e5e75a52792">◆ </a></span>ConstantInt16CustomQuantizationScaleAndOffsetTest()</h2> |
| 116 | |
| 117 | <div class="memitem"> |
| 118 | <div class="memproto"> |
| 119 | <table class="memname"> |
| 120 | <tr> |
| 121 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><int16_t, 4> ConstantInt16CustomQuantizationScaleAndOffsetTest </td> |
| 122 | <td>(</td> |
| 123 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 124 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 125 | </tr> |
| 126 | <tr> |
| 127 | <td class="paramkey"></td> |
| 128 | <td></td> |
| 129 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 130 | <td class="paramname"><em>memoryManager</em> </td> |
| 131 | </tr> |
| 132 | <tr> |
| 133 | <td></td> |
| 134 | <td>)</td> |
| 135 | <td></td><td></td> |
| 136 | </tr> |
| 137 | </table> |
| 138 | </div><div class="memdoc"> |
| 139 | |
| 140 | <p class="definition">Definition at line <a class="el" href="_constant_test_impl_8cpp_source.html#l00153">153</a> of file <a class="el" href="_constant_test_impl_8cpp_source.html">ConstantTestImpl.cpp</a>.</p> |
| 141 | <div class="fragment"><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">return</span> ConstantTestImpl<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, 2e-6f, 1);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> }</div></div><!-- fragment --> |
| 142 | </div> |
| 143 | </div> |
| 144 | <a id="a9dcd8bb87493200c5ce24c7c29acd81f"></a> |
| 145 | <h2 class="memtitle"><span class="permalink"><a href="#a9dcd8bb87493200c5ce24c7c29acd81f">◆ </a></span>ConstantInt16SimpleQuantizationScaleNoOffsetTest()</h2> |
| 146 | |
| 147 | <div class="memitem"> |
| 148 | <div class="memproto"> |
| 149 | <table class="memname"> |
| 150 | <tr> |
| 151 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><int16_t, 4> ConstantInt16SimpleQuantizationScaleNoOffsetTest </td> |
| 152 | <td>(</td> |
| 153 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 154 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td class="paramkey"></td> |
| 158 | <td></td> |
| 159 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 160 | <td class="paramname"><em>memoryManager</em> </td> |
| 161 | </tr> |
| 162 | <tr> |
| 163 | <td></td> |
| 164 | <td>)</td> |
| 165 | <td></td><td></td> |
| 166 | </tr> |
| 167 | </table> |
| 168 | </div><div class="memdoc"> |
| 169 | |
| 170 | <p class="definition">Definition at line <a class="el" href="_constant_test_impl_8cpp_source.html#l00132">132</a> of file <a class="el" href="_constant_test_impl_8cpp_source.html">ConstantTestImpl.cpp</a>.</p> |
| 171 | <div class="fragment"><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> ConstantTestImpl<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, 1.0f, 0);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div></div><!-- fragment --> |
| 172 | </div> |
| 173 | </div> |
| 174 | <a id="a6bed60e7ef6dbb582ad454d94e2367ec"></a> |
| 175 | <h2 class="memtitle"><span class="permalink"><a href="#a6bed60e7ef6dbb582ad454d94e2367ec">◆ </a></span>ConstantTest()</h2> |
| 176 | |
| 177 | <div class="memitem"> |
| 178 | <div class="memproto"> |
| 179 | <table class="memname"> |
| 180 | <tr> |
| 181 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> ConstantTest </td> |
| 182 | <td>(</td> |
| 183 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 184 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td class="paramkey"></td> |
| 188 | <td></td> |
| 189 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 190 | <td class="paramname"><em>memoryManager</em> </td> |
| 191 | </tr> |
| 192 | <tr> |
| 193 | <td></td> |
| 194 | <td>)</td> |
| 195 | <td></td><td></td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </div><div class="memdoc"> |
| 199 | |
| 200 | <p class="definition">Definition at line <a class="el" href="_constant_test_impl_8cpp_source.html#l00125">125</a> of file <a class="el" href="_constant_test_impl_8cpp_source.html">ConstantTestImpl.cpp</a>.</p> |
| 201 | <div class="fragment"><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> ConstantTestImpl<armnn::DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div></div><!-- fragment --> |
| 202 | </div> |
| 203 | </div> |
| 204 | <a id="aa5f4f81bcf6256977802069fe1467d08"></a> |
| 205 | <h2 class="memtitle"><span class="permalink"><a href="#aa5f4f81bcf6256977802069fe1467d08">◆ </a></span>ConstantUint8CustomQuantizationScaleAndOffsetTest()</h2> |
| 206 | |
| 207 | <div class="memitem"> |
| 208 | <div class="memproto"> |
| 209 | <table class="memname"> |
| 210 | <tr> |
| 211 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> ConstantUint8CustomQuantizationScaleAndOffsetTest </td> |
| 212 | <td>(</td> |
| 213 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 214 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 215 | </tr> |
| 216 | <tr> |
| 217 | <td class="paramkey"></td> |
| 218 | <td></td> |
| 219 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 220 | <td class="paramname"><em>memoryManager</em> </td> |
| 221 | </tr> |
| 222 | <tr> |
| 223 | <td></td> |
| 224 | <td>)</td> |
| 225 | <td></td><td></td> |
| 226 | </tr> |
| 227 | </table> |
| 228 | </div><div class="memdoc"> |
| 229 | |
| 230 | <p class="definition">Definition at line <a class="el" href="_constant_test_impl_8cpp_source.html#l00146">146</a> of file <a class="el" href="_constant_test_impl_8cpp_source.html">ConstantTestImpl.cpp</a>.</p> |
| 231 | <div class="fragment"><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> {</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> ConstantTestImpl<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, 2e-6f, 1);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> }</div></div><!-- fragment --> |
| 232 | </div> |
| 233 | </div> |
| 234 | <a id="a2826f436401c4e1c32983a598936e36f"></a> |
| 235 | <h2 class="memtitle"><span class="permalink"><a href="#a2826f436401c4e1c32983a598936e36f">◆ </a></span>ConstantUint8SimpleQuantizationScaleNoOffsetTest()</h2> |
| 236 | |
| 237 | <div class="memitem"> |
| 238 | <div class="memproto"> |
| 239 | <table class="memname"> |
| 240 | <tr> |
| 241 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> ConstantUint8SimpleQuantizationScaleNoOffsetTest </td> |
| 242 | <td>(</td> |
| 243 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 244 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td class="paramkey"></td> |
| 248 | <td></td> |
| 249 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 250 | <td class="paramname"><em>memoryManager</em> </td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td></td> |
| 254 | <td>)</td> |
| 255 | <td></td><td></td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | <p class="definition">Definition at line <a class="el" href="_constant_test_impl_8cpp_source.html#l00139">139</a> of file <a class="el" href="_constant_test_impl_8cpp_source.html">ConstantTestImpl.cpp</a>.</p> |
| 261 | <div class="fragment"><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>  <span class="keywordflow">return</span> ConstantTestImpl<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, 1.0f, 0);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> }</div></div><!-- fragment --> |
| 262 | </div> |
| 263 | </div> |
| 264 | </div><!-- contents --> |
| 265 | </div><!-- doc-content --> |
| 266 | <!-- start footer part --> |
| 267 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 268 | <ul> |
| 269 | <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="_constant_test_impl_8cpp.html">ConstantTestImpl.cpp</a></li> |
| 270 | <li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by |
| 271 | <a href="http://www.doxygen.org/index.html"> |
| 272 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 273 | </ul> |
| 274 | </div> |
| 275 | </body> |
| 276 | </html> |