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/armnnTfLiteParser/test/Reshape.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('armnn_tf_lite_parser_2test_2_reshape_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">Reshape.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br /> |
| 104 | <code>#include "<a class="el" href="_parser_flatbuffers_fixture_8hpp_source.xhtml">ParserFlatbuffersFixture.hpp</a>"</code><br /> |
| 105 | <code>#include "<a class="el" href="_tf_lite_parser_8hpp_source.xhtml">../TfLiteParser.hpp</a>"</code><br /> |
| 106 | <code>#include <string></code><br /> |
| 107 | <code>#include <iostream></code><br /> |
| 108 | </div> |
| 109 | <p><a href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 110 | <table class="memberdecls"> |
| 111 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 112 | Functions</h2></td></tr> |
| 113 | <tr class="memitem:ac442c71500e3814f50dcabceb81b644d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml#ac442c71500e3814f50dcabceb81b644d">BOOST_FIXTURE_TEST_CASE</a> (ParseReshapeWithReshapeDims, ReshapeFixtureWithReshapeDims)</td></tr> |
| 114 | <tr class="separator:ac442c71500e3814f50dcabceb81b644d"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:aafd2c5e6b8d98de2f043d622197bc263"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml#aafd2c5e6b8d98de2f043d622197bc263">BOOST_FIXTURE_TEST_CASE</a> (ParseReshapeWithReshapeDimsFlatten, ReshapeFixtureWithReshapeDimsFlatten)</td></tr> |
| 116 | <tr class="separator:aafd2c5e6b8d98de2f043d622197bc263"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:ad23517a073df02c62fd71773a988b166"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml#ad23517a073df02c62fd71773a988b166">BOOST_FIXTURE_TEST_CASE</a> (ParseReshapeWithReshapeDimsFlattenTwoDims, ReshapeFixtureWithReshapeDimsFlattenTwoDims)</td></tr> |
| 118 | <tr class="separator:ad23517a073df02c62fd71773a988b166"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a1e03d2dcfa14a5aea9b0533518a9e9de"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml#a1e03d2dcfa14a5aea9b0533518a9e9de">BOOST_FIXTURE_TEST_CASE</a> (ParseReshapeWithReshapeDimsFlattenOneDim, ReshapeFixtureWithReshapeDimsFlattenOneDim)</td></tr> |
| 120 | <tr class="separator:a1e03d2dcfa14a5aea9b0533518a9e9de"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | </table> |
| 122 | <h2 class="groupheader">Function Documentation</h2> |
| 123 | <a id="ac442c71500e3814f50dcabceb81b644d"></a> |
| 124 | <h2 class="memtitle"><span class="permalink"><a href="#ac442c71500e3814f50dcabceb81b644d">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[1/4]</span></h2> |
| 125 | |
| 126 | <div class="memitem"> |
| 127 | <div class="memproto"> |
| 128 | <table class="memname"> |
| 129 | <tr> |
| 130 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 131 | <td>(</td> |
| 132 | <td class="paramtype">ParseReshapeWithReshapeDims </td> |
| 133 | <td class="paramname">, </td> |
| 134 | </tr> |
| 135 | <tr> |
| 136 | <td class="paramkey"></td> |
| 137 | <td></td> |
| 138 | <td class="paramtype">ReshapeFixtureWithReshapeDims </td> |
| 139 | <td class="paramname"> </td> |
| 140 | </tr> |
| 141 | <tr> |
| 142 | <td></td> |
| 143 | <td>)</td> |
| 144 | <td></td><td></td> |
| 145 | </tr> |
| 146 | </table> |
| 147 | </div><div class="memdoc"> |
| 148 | |
| 149 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml#l00086">86</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml">Reshape.cpp</a>.</p> |
| 150 | <div class="fragment"><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  SetupSingleInputSingleOutput(<span class="stringliteral">"inputTensor"</span>, <span class="stringliteral">"outputTensor"</span>);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  RunTest<2, armnn::DataType::QAsymmU8>(0,</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  { 1, 2, 3, 4, 5, 6, 7, 8, 9 },</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  { 1, 2, 3, 4, 5, 6, 7, 8, 9 });</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, <span class="stringliteral">"outputTensor"</span>).second.GetShape()</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  == <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a>({3,3})));</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div><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><!-- fragment --> |
| 152 | </div> |
| 153 | </div> |
| 154 | <a id="aafd2c5e6b8d98de2f043d622197bc263"></a> |
| 155 | <h2 class="memtitle"><span class="permalink"><a href="#aafd2c5e6b8d98de2f043d622197bc263">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/4]</span></h2> |
| 156 | |
| 157 | <div class="memitem"> |
| 158 | <div class="memproto"> |
| 159 | <table class="memname"> |
| 160 | <tr> |
| 161 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 162 | <td>(</td> |
| 163 | <td class="paramtype">ParseReshapeWithReshapeDimsFlatten </td> |
| 164 | <td class="paramname">, </td> |
| 165 | </tr> |
| 166 | <tr> |
| 167 | <td class="paramkey"></td> |
| 168 | <td></td> |
| 169 | <td class="paramtype">ReshapeFixtureWithReshapeDimsFlatten </td> |
| 170 | <td class="paramname"> </td> |
| 171 | </tr> |
| 172 | <tr> |
| 173 | <td></td> |
| 174 | <td>)</td> |
| 175 | <td></td><td></td> |
| 176 | </tr> |
| 177 | </table> |
| 178 | </div><div class="memdoc"> |
| 179 | |
| 180 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml#l00101">101</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml">Reshape.cpp</a>.</p> |
| 181 | <div class="fragment"><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> {</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  SetupSingleInputSingleOutput(<span class="stringliteral">"inputTensor"</span>, <span class="stringliteral">"outputTensor"</span>);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  RunTest<1, armnn::DataType::QAsymmU8>(0,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  { 1, 2, 3, 4, 5, 6, 7, 8, 9 },</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  { 1, 2, 3, 4, 5, 6, 7, 8, 9 });</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, <span class="stringliteral">"outputTensor"</span>).second.GetShape()</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  == <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a>({9})));</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> }</div><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> |
| 182 | </div><!-- fragment --> |
| 183 | </div> |
| 184 | </div> |
| 185 | <a id="ad23517a073df02c62fd71773a988b166"></a> |
| 186 | <h2 class="memtitle"><span class="permalink"><a href="#ad23517a073df02c62fd71773a988b166">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/4]</span></h2> |
| 187 | |
| 188 | <div class="memitem"> |
| 189 | <div class="memproto"> |
| 190 | <table class="memname"> |
| 191 | <tr> |
| 192 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 193 | <td>(</td> |
| 194 | <td class="paramtype">ParseReshapeWithReshapeDimsFlattenTwoDims </td> |
| 195 | <td class="paramname">, </td> |
| 196 | </tr> |
| 197 | <tr> |
| 198 | <td class="paramkey"></td> |
| 199 | <td></td> |
| 200 | <td class="paramtype">ReshapeFixtureWithReshapeDimsFlattenTwoDims </td> |
| 201 | <td class="paramname"> </td> |
| 202 | </tr> |
| 203 | <tr> |
| 204 | <td></td> |
| 205 | <td>)</td> |
| 206 | <td></td><td></td> |
| 207 | </tr> |
| 208 | </table> |
| 209 | </div><div class="memdoc"> |
| 210 | |
| 211 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml#l00116">116</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml">Reshape.cpp</a>.</p> |
| 212 | <div class="fragment"><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  SetupSingleInputSingleOutput(<span class="stringliteral">"inputTensor"</span>, <span class="stringliteral">"outputTensor"</span>);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  RunTest<2, armnn::DataType::QAsymmU8>(0,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 },</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 });</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, <span class="stringliteral">"outputTensor"</span>).second.GetShape()</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  == <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a>({2,9})));</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> }</div><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> |
| 213 | </div><!-- fragment --> |
| 214 | </div> |
| 215 | </div> |
| 216 | <a id="a1e03d2dcfa14a5aea9b0533518a9e9de"></a> |
| 217 | <h2 class="memtitle"><span class="permalink"><a href="#a1e03d2dcfa14a5aea9b0533518a9e9de">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[4/4]</span></h2> |
| 218 | |
| 219 | <div class="memitem"> |
| 220 | <div class="memproto"> |
| 221 | <table class="memname"> |
| 222 | <tr> |
| 223 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 224 | <td>(</td> |
| 225 | <td class="paramtype">ParseReshapeWithReshapeDimsFlattenOneDim </td> |
| 226 | <td class="paramname">, </td> |
| 227 | </tr> |
| 228 | <tr> |
| 229 | <td class="paramkey"></td> |
| 230 | <td></td> |
| 231 | <td class="paramtype">ReshapeFixtureWithReshapeDimsFlattenOneDim </td> |
| 232 | <td class="paramname"> </td> |
| 233 | </tr> |
| 234 | <tr> |
| 235 | <td></td> |
| 236 | <td>)</td> |
| 237 | <td></td><td></td> |
| 238 | </tr> |
| 239 | </table> |
| 240 | </div><div class="memdoc"> |
| 241 | |
| 242 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml#l00131">131</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp_source.xhtml">Reshape.cpp</a>.</p> |
| 243 | |
| 244 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>.</p> |
| 245 | <div class="fragment"><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>  SetupSingleInputSingleOutput(<span class="stringliteral">"inputTensor"</span>, <span class="stringliteral">"outputTensor"</span>);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  RunTest<3, armnn::DataType::QAsymmU8>(0,</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 },</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 });</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, <span class="stringliteral">"outputTensor"</span>).second.GetShape()</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  == <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a>({2,3,3})));</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div><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> |
| 246 | </div><!-- fragment --> |
| 247 | </div> |
| 248 | </div> |
| 249 | </div><!-- contents --> |
| 250 | </div><!-- doc-content --> |
| 251 | <!-- start footer part --> |
| 252 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 253 | <ul> |
| 254 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_510324e450b9df55f9aac2d01fae83d8.xhtml">armnnTfLiteParser</a></li><li class="navelem"><a class="el" href="dir_6d8d07609c57029a35488d2120e28fbd.xhtml">test</a></li><li class="navelem"><a class="el" href="armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml">Reshape.cpp</a></li> |
| 255 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 256 | <a href="http://www.doxygen.org/index.html"> |
| 257 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 258 | </ul> |
| 259 | </div> |
| 260 | </body> |
| 261 | </html> |