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/armnnTfLiteParser/test/BatchToSpaceND.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('armnn_tf_lite_parser_2test_2_batch_to_space_n_d_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">BatchToSpaceND.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br /> |
| 90 | <code>#include "<a class="el" href="_parser_flatbuffers_fixture_8hpp_source.html">ParserFlatbuffersFixture.hpp</a>"</code><br /> |
| 91 | <code>#include "<a class="el" href="_tf_lite_parser_8hpp_source.html">../TfLiteParser.hpp</a>"</code><br /> |
| 92 | <code>#include <string></code><br /> |
| 93 | <code>#include <iostream></code><br /> |
| 94 | </div> |
| 95 | <p><a href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html">Go to the source code of this file.</a></p> |
| 96 | <table class="memberdecls"> |
| 97 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 98 | Functions</h2></td></tr> |
| 99 | <tr class="memitem:a832e495b495837e9533d7edcef0c67ca"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp.html#a832e495b495837e9533d7edcef0c67ca">BOOST_FIXTURE_TEST_CASE</a> (BatchToSpaceNDTest1, BatchToSpaceNDFixtureTest1)</td></tr> |
| 100 | <tr class="separator:a832e495b495837e9533d7edcef0c67ca"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <tr class="memitem:a5942d20d6fddfca6da1ebf9c30ecac2d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp.html#a5942d20d6fddfca6da1ebf9c30ecac2d">BOOST_FIXTURE_TEST_CASE</a> (ParseBatchToSpaceNDTest2, BatchToSpaceNDFixtureTest2)</td></tr> |
| 102 | <tr class="separator:a5942d20d6fddfca6da1ebf9c30ecac2d"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <tr class="memitem:a7657eefafb10645ef0fac1ea984efaa8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp.html#a7657eefafb10645ef0fac1ea984efaa8">BOOST_FIXTURE_TEST_CASE</a> (ParseBatchToSpaceNDTest3, BatchToSpaceNDFixtureTest3)</td></tr> |
| 104 | <tr class="separator:a7657eefafb10645ef0fac1ea984efaa8"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | </table> |
| 106 | <h2 class="groupheader">Function Documentation</h2> |
| 107 | <a id="a832e495b495837e9533d7edcef0c67ca"></a> |
| 108 | <h2 class="memtitle"><span class="permalink"><a href="#a832e495b495837e9533d7edcef0c67ca">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[1/3]</span></h2> |
| 109 | |
| 110 | <div class="memitem"> |
| 111 | <div class="memproto"> |
| 112 | <table class="memname"> |
| 113 | <tr> |
| 114 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 115 | <td>(</td> |
| 116 | <td class="paramtype">BatchToSpaceNDTest1 </td> |
| 117 | <td class="paramname">, </td> |
| 118 | </tr> |
| 119 | <tr> |
| 120 | <td class="paramkey"></td> |
| 121 | <td></td> |
| 122 | <td class="paramtype">BatchToSpaceNDFixtureTest1 </td> |
| 123 | <td class="paramname"> </td> |
| 124 | </tr> |
| 125 | <tr> |
| 126 | <td></td> |
| 127 | <td>)</td> |
| 128 | <td></td><td></td> |
| 129 | </tr> |
| 130 | </table> |
| 131 | </div><div class="memdoc"> |
| 132 | |
| 133 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html#l00108">108</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html">BatchToSpaceND.cpp</a>.</p> |
| 134 | <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>  RunTest<4, armnn::DataType::Float32></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  (0,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  {{ <span class="stringliteral">"inputTensor"</span>, { <span class="comment">// Batch 0, Height 0, Width (2) x Channel (1)</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  1.0f, 3.0f,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="comment">// Batch 0, Height 1, Width (2) x Channel (1)</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  9.0f, 11.0f,</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>  <span class="comment">// Batch 1, Height 0, Width (2) x Channel (1)</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  2.0f, 4.0f,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// Batch 1, Height 1, Width (2) x Channel (1)</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  10.0f, 12.0f,</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// Batch 2, Height 0, Width (2) x Channel (1)</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  5.0f, 7.0f,</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="comment">// Batch 2, Height 1, Width (2) x Channel (1)</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  13.0f, 15.0f,</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// Batch 3, Height 0, Width (2) x Channel (3)</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  6.0f, 8.0f,</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="comment">// Batch 3, Height 1, Width (2) x Channel (1)</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  14.0f, 16.0f }}},</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  {{ <span class="stringliteral">"outputTensor"</span>, { 1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  5.0f, 6.0f, 7.0f, 8.0f,</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  9.0f, 10.0f, 11.0f, 12.0f,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  13.0f, 14.0f, 15.0f, 16.0f }}});</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div></div><!-- fragment --> |
| 135 | </div> |
| 136 | </div> |
| 137 | <a id="a5942d20d6fddfca6da1ebf9c30ecac2d"></a> |
| 138 | <h2 class="memtitle"><span class="permalink"><a href="#a5942d20d6fddfca6da1ebf9c30ecac2d">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/3]</span></h2> |
| 139 | |
| 140 | <div class="memitem"> |
| 141 | <div class="memproto"> |
| 142 | <table class="memname"> |
| 143 | <tr> |
| 144 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 145 | <td>(</td> |
| 146 | <td class="paramtype">ParseBatchToSpaceNDTest2 </td> |
| 147 | <td class="paramname">, </td> |
| 148 | </tr> |
| 149 | <tr> |
| 150 | <td class="paramkey"></td> |
| 151 | <td></td> |
| 152 | <td class="paramtype">BatchToSpaceNDFixtureTest2 </td> |
| 153 | <td class="paramname"> </td> |
| 154 | </tr> |
| 155 | <tr> |
| 156 | <td></td> |
| 157 | <td>)</td> |
| 158 | <td></td><td></td> |
| 159 | </tr> |
| 160 | </table> |
| 161 | </div><div class="memdoc"> |
| 162 | |
| 163 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html#l00145">145</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html">BatchToSpaceND.cpp</a>.</p> |
| 164 | <div class="fragment"><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>  RunTest<4, armnn::DataType::Float32></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  (0,</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {{ <span class="stringliteral">"inputTensor"</span>, { 1.0f, 2.0f, 3.0f, 4.0f }}},</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  {{ <span class="stringliteral">"outputTensor"</span>, { <span class="comment">// Batch 0, Height 0, Width (2) x Channel (1)</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  1.0f, 2.0f, 3.0f, 4.0f }}});</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> }</div></div><!-- fragment --> |
| 165 | </div> |
| 166 | </div> |
| 167 | <a id="a7657eefafb10645ef0fac1ea984efaa8"></a> |
| 168 | <h2 class="memtitle"><span class="permalink"><a href="#a7657eefafb10645ef0fac1ea984efaa8">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/3]</span></h2> |
| 169 | |
| 170 | <div class="memitem"> |
| 171 | <div class="memproto"> |
| 172 | <table class="memname"> |
| 173 | <tr> |
| 174 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 175 | <td>(</td> |
| 176 | <td class="paramtype">ParseBatchToSpaceNDTest3 </td> |
| 177 | <td class="paramname">, </td> |
| 178 | </tr> |
| 179 | <tr> |
| 180 | <td class="paramkey"></td> |
| 181 | <td></td> |
| 182 | <td class="paramtype">BatchToSpaceNDFixtureTest3 </td> |
| 183 | <td class="paramname"> </td> |
| 184 | </tr> |
| 185 | <tr> |
| 186 | <td></td> |
| 187 | <td>)</td> |
| 188 | <td></td><td></td> |
| 189 | </tr> |
| 190 | </table> |
| 191 | </div><div class="memdoc"> |
| 192 | |
| 193 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html#l00162">162</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp_source.html">BatchToSpaceND.cpp</a>.</p> |
| 194 | |
| 195 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>.</p> |
| 196 | <div class="fragment"><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>  RunTest<4, armnn::DataType::Float32></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  (0,</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  {{ <span class="stringliteral">"inputTensor"</span>, { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f }}},</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  {{ <span class="stringliteral">"outputTensor"</span>, { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f }}});</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> }</div></div><!-- fragment --> |
| 197 | </div> |
| 198 | </div> |
| 199 | </div><!-- contents --> |
| 200 | </div><!-- doc-content --> |
| 201 | <!-- start footer part --> |
| 202 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 203 | <ul> |
| 204 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_510324e450b9df55f9aac2d01fae83d8.html">armnnTfLiteParser</a></li><li class="navelem"><a class="el" href="dir_6d8d07609c57029a35488d2120e28fbd.html">test</a></li><li class="navelem"><a class="el" href="armnn_tf_lite_parser_2test_2_batch_to_space_n_d_8cpp.html">BatchToSpaceND.cpp</a></li> |
| 205 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 206 | <a href="http://www.doxygen.org/index.html"> |
| 207 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 208 | </ul> |
| 209 | </div> |
| 210 | </body> |
| 211 | </html> |