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/SpaceToDepthEndToEndTestImpl.cpp 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('_space_to_depth_end_to_end_test_impl_8cpp.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">SpaceToDepthEndToEndTestImpl.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_space_to_depth_end_to_end_test_impl_8hpp_source.xhtml">SpaceToDepthEndToEndTestImpl.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="_end_to_end_test_impl_8hpp_source.xhtml">EndToEndTestImpl.hpp</a>"</code><br /> |
| 106 | <code>#include <<a class="el" href="_i_network_8hpp_source.xhtml">armnn/INetwork.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_permute_8hpp_source.xhtml">armnnUtils/Permute.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_data_layout_indexed_8hpp_source.xhtml">armnnUtils/DataLayoutIndexed.hpp</a>></code><br /> |
| 109 | <code>#include <<a class="el" href="_data_layout_utils_8hpp_source.xhtml">backendsCommon/test/DataLayoutUtils.hpp</a>></code><br /> |
| 110 | <code>#include <<a class="el" href="_test_utils_8hpp_source.xhtml">test/TestUtils.hpp</a>></code><br /> |
| 111 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 112 | </div> |
| 113 | <p><a href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 114 | <table class="memberdecls"> |
| 115 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 116 | Functions</h2></td></tr> |
| 117 | <tr class="memitem:ae2aeba7e1195292ca5a000a81c145629"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp.xhtml#ae2aeba7e1195292ca5a000a81c145629">SpaceToDepthNhwcEndToEndTest1</a> (const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > &<a class="el" href="_ref_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>)</td></tr> |
| 118 | <tr class="separator:ae2aeba7e1195292ca5a000a81c145629"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:aa539d7b30c0a8064ab301a61c5a90fed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp.xhtml#aa539d7b30c0a8064ab301a61c5a90fed">SpaceToDepthNchwEndToEndTest1</a> (const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > &<a class="el" href="_ref_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>)</td></tr> |
| 120 | <tr class="separator:aa539d7b30c0a8064ab301a61c5a90fed"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a2da64f8783ac838e5c4aa76c0d2de8cb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp.xhtml#a2da64f8783ac838e5c4aa76c0d2de8cb">SpaceToDepthNhwcEndToEndTest2</a> (const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > &<a class="el" href="_ref_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>)</td></tr> |
| 122 | <tr class="separator:a2da64f8783ac838e5c4aa76c0d2de8cb"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a00fc587ab0be7b4d988fcc1a9bdf5355"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp.xhtml#a00fc587ab0be7b4d988fcc1a9bdf5355">SpaceToDepthNchwEndToEndTest2</a> (const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > &<a class="el" href="_ref_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>)</td></tr> |
| 124 | <tr class="separator:a00fc587ab0be7b4d988fcc1a9bdf5355"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | </table> |
| 126 | <h2 class="groupheader">Function Documentation</h2> |
| 127 | <a id="aa539d7b30c0a8064ab301a61c5a90fed"></a> |
| 128 | <h2 class="memtitle"><span class="permalink"><a href="#aa539d7b30c0a8064ab301a61c5a90fed">◆ </a></span>SpaceToDepthNchwEndToEndTest1()</h2> |
| 129 | |
| 130 | <div class="memitem"> |
| 131 | <div class="memproto"> |
| 132 | <table class="memname"> |
| 133 | <tr> |
| 134 | <td class="memname">void SpaceToDepthNchwEndToEndTest1 </td> |
| 135 | <td>(</td> |
| 136 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > & </td> |
| 137 | <td class="paramname"><em>defaultBackends</em></td><td>)</td> |
| 138 | <td></td> |
| 139 | </tr> |
| 140 | </table> |
| 141 | </div><div class="memdoc"> |
| 142 | |
| 143 | <p class="definition">Definition at line <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml#l00129">129</a> of file <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml">SpaceToDepthEndToEndTestImpl.cpp</a>.</p> |
| 144 | |
| 145 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>.</p> |
| 146 | |
| 147 | <p class="reference">Referenced by <a class="el" href="_cl_end_to_end_tests_8cpp_source.xhtml#l00205">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 148 | <div class="fragment"><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="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> blockSize = 2;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> inputShape{1, 2, 2, 1};</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> inputTensorInfo(inputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> outputShape{1, 1, 1, 4};</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> outputTensorInfo(outputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  std::vector<float> inputData = std::vector<float>(</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>  1.0f, 2.0f, 3.0f, 4.0f</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  });</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  std::vector<float> expectedOutputData = std::vector<float>(</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  1.0f, 2.0f, 3.0f, 4.0f</div><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> </div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  SpaceToDepthEndToEnd(<a class="code" href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>,</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>,</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  inputTensorInfo,</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  outputTensorInfo,</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  inputData,</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  expectedOutputData,</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  blockSize);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 149 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 150 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 151 | <div class="ttc" id="_cl_end_to_end_tests_8cpp_xhtml_ab59caffe2ee6be46c08766c055420f17"><div class="ttname"><a href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a></div><div class="ttdeci">std::vector< armnn::BackendId > defaultBackends</div><div class="ttdef"><b>Definition:</b> <a href="_cl_end_to_end_tests_8cpp_source.xhtml#l00025">ClEndToEndTests.cpp:25</a></div></div> |
| 152 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 153 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> |
| 154 | </div><!-- fragment --> |
| 155 | </div> |
| 156 | </div> |
| 157 | <a id="a00fc587ab0be7b4d988fcc1a9bdf5355"></a> |
| 158 | <h2 class="memtitle"><span class="permalink"><a href="#a00fc587ab0be7b4d988fcc1a9bdf5355">◆ </a></span>SpaceToDepthNchwEndToEndTest2()</h2> |
| 159 | |
| 160 | <div class="memitem"> |
| 161 | <div class="memproto"> |
| 162 | <table class="memname"> |
| 163 | <tr> |
| 164 | <td class="memname">void SpaceToDepthNchwEndToEndTest2 </td> |
| 165 | <td>(</td> |
| 166 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > & </td> |
| 167 | <td class="paramname"><em>defaultBackends</em></td><td>)</td> |
| 168 | <td></td> |
| 169 | </tr> |
| 170 | </table> |
| 171 | </div><div class="memdoc"> |
| 172 | |
| 173 | <p class="definition">Definition at line <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml#l00191">191</a> of file <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml">SpaceToDepthEndToEndTestImpl.cpp</a>.</p> |
| 174 | |
| 175 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>.</p> |
| 176 | |
| 177 | <p class="reference">Referenced by <a class="el" href="_cl_end_to_end_tests_8cpp_source.xhtml#l00215">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 178 | <div class="fragment"><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> {</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> blockSize = 2;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> inputShape{1, 2, 2, 2};</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> outputShape{1, 1, 1, 8};</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> inputTensorInfo(inputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> outputTensorInfo(outputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  std::vector<float> inputData = std::vector<float>(</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  });</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  std::vector<float> expectedOutputData = std::vector<float>(</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  {</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  });</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  SpaceToDepthEndToEnd(<a class="code" href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>,</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>,</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  inputTensorInfo,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  outputTensorInfo,</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  inputData,</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  expectedOutputData,</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  blockSize);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 179 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 180 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 181 | <div class="ttc" id="_cl_end_to_end_tests_8cpp_xhtml_ab59caffe2ee6be46c08766c055420f17"><div class="ttname"><a href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a></div><div class="ttdeci">std::vector< armnn::BackendId > defaultBackends</div><div class="ttdef"><b>Definition:</b> <a href="_cl_end_to_end_tests_8cpp_source.xhtml#l00025">ClEndToEndTests.cpp:25</a></div></div> |
| 182 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 183 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> |
| 184 | </div><!-- fragment --> |
| 185 | </div> |
| 186 | </div> |
| 187 | <a id="ae2aeba7e1195292ca5a000a81c145629"></a> |
| 188 | <h2 class="memtitle"><span class="permalink"><a href="#ae2aeba7e1195292ca5a000a81c145629">◆ </a></span>SpaceToDepthNhwcEndToEndTest1()</h2> |
| 189 | |
| 190 | <div class="memitem"> |
| 191 | <div class="memproto"> |
| 192 | <table class="memname"> |
| 193 | <tr> |
| 194 | <td class="memname">void SpaceToDepthNhwcEndToEndTest1 </td> |
| 195 | <td>(</td> |
| 196 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > & </td> |
| 197 | <td class="paramname"><em>defaultBackends</em></td><td>)</td> |
| 198 | <td></td> |
| 199 | </tr> |
| 200 | </table> |
| 201 | </div><div class="memdoc"> |
| 202 | |
| 203 | <p class="definition">Definition at line <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml#l00098">98</a> of file <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml">SpaceToDepthEndToEndTestImpl.cpp</a>.</p> |
| 204 | |
| 205 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 206 | |
| 207 | <p class="reference">Referenced by <a class="el" href="_cl_end_to_end_tests_8cpp_source.xhtml#l00200">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 208 | <div class="fragment"><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>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> blockSize = 2;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> inputShape{1, 2, 2, 1};</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> inputTensorInfo(inputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> outputShape{1, 1, 1, 4};</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> outputTensorInfo(outputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><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>  std::vector<float> inputData = std::vector<float>(</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  1.0f, 2.0f, 3.0f, 4.0f</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  });</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  std::vector<float> expectedOutputData = std::vector<float>(</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  1.0f, 2.0f, 3.0f, 4.0f</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  });</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  SpaceToDepthEndToEnd(<a class="code" href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>,</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>,</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  inputTensorInfo,</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  outputTensorInfo,</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  inputData,</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  expectedOutputData,</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  blockSize);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 209 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 210 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 211 | <div class="ttc" id="_cl_end_to_end_tests_8cpp_xhtml_ab59caffe2ee6be46c08766c055420f17"><div class="ttname"><a href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a></div><div class="ttdeci">std::vector< armnn::BackendId > defaultBackends</div><div class="ttdef"><b>Definition:</b> <a href="_cl_end_to_end_tests_8cpp_source.xhtml#l00025">ClEndToEndTests.cpp:25</a></div></div> |
| 212 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 213 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 214 | </div><!-- fragment --> |
| 215 | </div> |
| 216 | </div> |
| 217 | <a id="a2da64f8783ac838e5c4aa76c0d2de8cb"></a> |
| 218 | <h2 class="memtitle"><span class="permalink"><a href="#a2da64f8783ac838e5c4aa76c0d2de8cb">◆ </a></span>SpaceToDepthNhwcEndToEndTest2()</h2> |
| 219 | |
| 220 | <div class="memitem"> |
| 221 | <div class="memproto"> |
| 222 | <table class="memname"> |
| 223 | <tr> |
| 224 | <td class="memname">void SpaceToDepthNhwcEndToEndTest2 </td> |
| 225 | <td>(</td> |
| 226 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a> > & </td> |
| 227 | <td class="paramname"><em>defaultBackends</em></td><td>)</td> |
| 228 | <td></td> |
| 229 | </tr> |
| 230 | </table> |
| 231 | </div><div class="memdoc"> |
| 232 | |
| 233 | <p class="definition">Definition at line <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml#l00160">160</a> of file <a class="el" href="_space_to_depth_end_to_end_test_impl_8cpp_source.xhtml">SpaceToDepthEndToEndTestImpl.cpp</a>.</p> |
| 234 | |
| 235 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 236 | |
| 237 | <p class="reference">Referenced by <a class="el" href="_cl_end_to_end_tests_8cpp_source.xhtml#l00210">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 238 | <div class="fragment"><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> blockSize = 2;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> inputShape{1, 2, 2, 2};</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> outputShape{1, 1, 1, 8};</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> outputTensorInfo(outputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> inputTensorInfo(inputShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><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>  std::vector<float> inputData = std::vector<float>(</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  });</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  std::vector<float> expectedOutputData = std::vector<float>(</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  1.4f, 2.3f, 3.2f, 4.1f, 5.4f, 6.3f, 7.2f, 8.1f</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  });</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  SpaceToDepthEndToEnd(<a class="code" href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>,</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>,</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  inputTensorInfo,</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  outputTensorInfo,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  inputData,</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  expectedOutputData,</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  blockSize);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 239 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 240 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 241 | <div class="ttc" id="_cl_end_to_end_tests_8cpp_xhtml_ab59caffe2ee6be46c08766c055420f17"><div class="ttname"><a href="_cl_end_to_end_tests_8cpp.xhtml#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a></div><div class="ttdeci">std::vector< armnn::BackendId > defaultBackends</div><div class="ttdef"><b>Definition:</b> <a href="_cl_end_to_end_tests_8cpp_source.xhtml#l00025">ClEndToEndTests.cpp:25</a></div></div> |
| 242 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 243 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 244 | </div><!-- fragment --> |
| 245 | </div> |
| 246 | </div> |
| 247 | </div><!-- contents --> |
| 248 | </div><!-- doc-content --> |
| 249 | <!-- start footer part --> |
| 250 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 251 | <ul> |
| 252 | <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="_space_to_depth_end_to_end_test_impl_8cpp.xhtml">SpaceToDepthEndToEndTestImpl.cpp</a></li> |
| 253 | <li class="footer">Generated on Fri Mar 13 2020 16:09:15 for ArmNN by |
| 254 | <a href="http://www.doxygen.org/index.html"> |
| 255 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 256 | </ul> |
| 257 | </div> |
| 258 | </body> |
| 259 | </html> |