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/armnnOnnxParser/test/Addition.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_onnx_parser_2test_2_addition_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">Addition.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="_i_onnx_parser_8hpp_source.html">armnnOnnxParser/IOnnxParser.hpp</a>"</code><br /> |
| 91 | <code>#include "<a class="el" href="_parser_prototxt_fixture_8hpp_source.html">ParserPrototxtFixture.hpp</a>"</code><br /> |
| 92 | </div> |
| 93 | <p><a href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Go to the source code of this file.</a></p> |
| 94 | <table class="memberdecls"> |
| 95 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 96 | Functions</h2></td></tr> |
| 97 | <tr class="memitem:a550fe72b93512d8be1978d3f4a323b75"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html#a550fe72b93512d8be1978d3f4a323b75">BOOST_FIXTURE_TEST_CASE</a> (ValidAddTest, AddValidFixture)</td></tr> |
| 98 | <tr class="separator:a550fe72b93512d8be1978d3f4a323b75"><td class="memSeparator" colspan="2"> </td></tr> |
| 99 | <tr class="memitem:a4e987afa808d39a371e46c399154452f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html#a4e987afa808d39a371e46c399154452f">BOOST_FIXTURE_TEST_CASE</a> (IncorrectDataTypeAdd, AddInvalidFixture)</td></tr> |
| 100 | <tr class="separator:a4e987afa808d39a371e46c399154452f"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <tr class="memitem:abf0331b4403a32dbb6961889b4faf3b5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html#abf0331b4403a32dbb6961889b4faf3b5">BOOST_FIXTURE_TEST_CASE</a> (InvalidBroadcastAdd, AddInvalidBroadcastFixture)</td></tr> |
| 102 | <tr class="separator:abf0331b4403a32dbb6961889b4faf3b5"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <tr class="memitem:a07f97332bc83644290c8095d13ae19fd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html#a07f97332bc83644290c8095d13ae19fd">BOOST_FIXTURE_TEST_CASE</a> (ValidBroadcastAdd, AddValidBroadcastFixture)</td></tr> |
| 104 | <tr class="separator:a07f97332bc83644290c8095d13ae19fd"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <tr class="memitem:a3e3ae3d0234ff711fb8c18d23615359c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html#a3e3ae3d0234ff711fb8c18d23615359c">BOOST_FIXTURE_TEST_CASE</a> (ValidAddScalarTest, AddValidScalarFixture)</td></tr> |
| 106 | <tr class="separator:a3e3ae3d0234ff711fb8c18d23615359c"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:a1b3906201d3a25e11145ae5421acfadf"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html#a1b3906201d3a25e11145ae5421acfadf">BOOST_FIXTURE_TEST_CASE</a> (IncorrectDataTypeAddScalar, AddInvalidScalarFixture)</td></tr> |
| 108 | <tr class="separator:a1b3906201d3a25e11145ae5421acfadf"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | </table> |
| 110 | <h2 class="groupheader">Function Documentation</h2> |
| 111 | <a id="a550fe72b93512d8be1978d3f4a323b75"></a> |
| 112 | <h2 class="memtitle"><span class="permalink"><a href="#a550fe72b93512d8be1978d3f4a323b75">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[1/6]</span></h2> |
| 113 | |
| 114 | <div class="memitem"> |
| 115 | <div class="memproto"> |
| 116 | <table class="memname"> |
| 117 | <tr> |
| 118 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 119 | <td>(</td> |
| 120 | <td class="paramtype">ValidAddTest </td> |
| 121 | <td class="paramname">, </td> |
| 122 | </tr> |
| 123 | <tr> |
| 124 | <td class="paramkey"></td> |
| 125 | <td></td> |
| 126 | <td class="paramtype">AddValidFixture </td> |
| 127 | <td class="paramname"> </td> |
| 128 | </tr> |
| 129 | <tr> |
| 130 | <td></td> |
| 131 | <td>)</td> |
| 132 | <td></td><td></td> |
| 133 | </tr> |
| 134 | </table> |
| 135 | </div><div class="memdoc"> |
| 136 | |
| 137 | <p class="definition">Definition at line <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html#l00386">386</a> of file <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Addition.cpp</a>.</p> |
| 138 | <div class="fragment"><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> {</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  RunTest<4>({{<span class="stringliteral">"Input0"</span>, {1.0f, 2.0f, -3.0f, -4.0f}},</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  {<span class="stringliteral">"Input1"</span>, {1.0f, 2.0f, 3.0, 4.0f}}}, {{<span class="stringliteral">"Output"</span>, {2.0, 4.0, 0, 0.0}}});</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> }</div></div><!-- fragment --> |
| 139 | </div> |
| 140 | </div> |
| 141 | <a id="a4e987afa808d39a371e46c399154452f"></a> |
| 142 | <h2 class="memtitle"><span class="permalink"><a href="#a4e987afa808d39a371e46c399154452f">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/6]</span></h2> |
| 143 | |
| 144 | <div class="memitem"> |
| 145 | <div class="memproto"> |
| 146 | <table class="memname"> |
| 147 | <tr> |
| 148 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 149 | <td>(</td> |
| 150 | <td class="paramtype">IncorrectDataTypeAdd </td> |
| 151 | <td class="paramname">, </td> |
| 152 | </tr> |
| 153 | <tr> |
| 154 | <td class="paramkey"></td> |
| 155 | <td></td> |
| 156 | <td class="paramtype">AddInvalidFixture </td> |
| 157 | <td class="paramname"> </td> |
| 158 | </tr> |
| 159 | <tr> |
| 160 | <td></td> |
| 161 | <td>)</td> |
| 162 | <td></td><td></td> |
| 163 | </tr> |
| 164 | </table> |
| 165 | </div><div class="memdoc"> |
| 166 | |
| 167 | <p class="definition">Definition at line <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html#l00392">392</a> of file <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Addition.cpp</a>.</p> |
| 168 | <div class="fragment"><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> {</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  BOOST_CHECK_THROW(Setup(), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 169 | </div><!-- fragment --> |
| 170 | </div> |
| 171 | </div> |
| 172 | <a id="abf0331b4403a32dbb6961889b4faf3b5"></a> |
| 173 | <h2 class="memtitle"><span class="permalink"><a href="#abf0331b4403a32dbb6961889b4faf3b5">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/6]</span></h2> |
| 174 | |
| 175 | <div class="memitem"> |
| 176 | <div class="memproto"> |
| 177 | <table class="memname"> |
| 178 | <tr> |
| 179 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 180 | <td>(</td> |
| 181 | <td class="paramtype">InvalidBroadcastAdd </td> |
| 182 | <td class="paramname">, </td> |
| 183 | </tr> |
| 184 | <tr> |
| 185 | <td class="paramkey"></td> |
| 186 | <td></td> |
| 187 | <td class="paramtype">AddInvalidBroadcastFixture </td> |
| 188 | <td class="paramname"> </td> |
| 189 | </tr> |
| 190 | <tr> |
| 191 | <td></td> |
| 192 | <td>)</td> |
| 193 | <td></td><td></td> |
| 194 | </tr> |
| 195 | </table> |
| 196 | </div><div class="memdoc"> |
| 197 | |
| 198 | <p class="definition">Definition at line <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html#l00397">397</a> of file <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Addition.cpp</a>.</p> |
| 199 | <div class="fragment"><div class="line"><a name="l00398"></a><span class="lineno"> 398</span> {</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  BOOST_CHECK_THROW(Setup(), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 200 | </div><!-- fragment --> |
| 201 | </div> |
| 202 | </div> |
| 203 | <a id="a07f97332bc83644290c8095d13ae19fd"></a> |
| 204 | <h2 class="memtitle"><span class="permalink"><a href="#a07f97332bc83644290c8095d13ae19fd">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[4/6]</span></h2> |
| 205 | |
| 206 | <div class="memitem"> |
| 207 | <div class="memproto"> |
| 208 | <table class="memname"> |
| 209 | <tr> |
| 210 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 211 | <td>(</td> |
| 212 | <td class="paramtype">ValidBroadcastAdd </td> |
| 213 | <td class="paramname">, </td> |
| 214 | </tr> |
| 215 | <tr> |
| 216 | <td class="paramkey"></td> |
| 217 | <td></td> |
| 218 | <td class="paramtype">AddValidBroadcastFixture </td> |
| 219 | <td class="paramname"> </td> |
| 220 | </tr> |
| 221 | <tr> |
| 222 | <td></td> |
| 223 | <td>)</td> |
| 224 | <td></td><td></td> |
| 225 | </tr> |
| 226 | </table> |
| 227 | </div><div class="memdoc"> |
| 228 | |
| 229 | <p class="definition">Definition at line <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html#l00402">402</a> of file <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Addition.cpp</a>.</p> |
| 230 | <div class="fragment"><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> {</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  RunTest<4>({{<span class="stringliteral">"Input0"</span>, {1.0f, 2.0f, -3.0f, -4.0f}},</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  {<span class="stringliteral">"Input1"</span>, {1.0f, 2.0f, 3.0, 4.0f}}}, {{<span class="stringliteral">"Output"</span>, {2.0, 4.0, 0, 0.0}}});</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> }</div></div><!-- fragment --> |
| 231 | </div> |
| 232 | </div> |
| 233 | <a id="a3e3ae3d0234ff711fb8c18d23615359c"></a> |
| 234 | <h2 class="memtitle"><span class="permalink"><a href="#a3e3ae3d0234ff711fb8c18d23615359c">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[5/6]</span></h2> |
| 235 | |
| 236 | <div class="memitem"> |
| 237 | <div class="memproto"> |
| 238 | <table class="memname"> |
| 239 | <tr> |
| 240 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 241 | <td>(</td> |
| 242 | <td class="paramtype">ValidAddScalarTest </td> |
| 243 | <td class="paramname">, </td> |
| 244 | </tr> |
| 245 | <tr> |
| 246 | <td class="paramkey"></td> |
| 247 | <td></td> |
| 248 | <td class="paramtype">AddValidScalarFixture </td> |
| 249 | <td class="paramname"> </td> |
| 250 | </tr> |
| 251 | <tr> |
| 252 | <td></td> |
| 253 | <td>)</td> |
| 254 | <td></td><td></td> |
| 255 | </tr> |
| 256 | </table> |
| 257 | </div><div class="memdoc"> |
| 258 | |
| 259 | <p class="definition">Definition at line <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html#l00408">408</a> of file <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Addition.cpp</a>.</p> |
| 260 | <div class="fragment"><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> {</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  RunTest<4>({{<span class="stringliteral">"Input0"</span>, {1.0f, 2.0f, -3.0f, -4.0f}},</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  {<span class="stringliteral">"Input1"</span>, {-8.0f}}}, {{<span class="stringliteral">"Output"</span>, {-7.0, -6.0, -11.0, -12.0}}});</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span> }</div></div><!-- fragment --> |
| 261 | </div> |
| 262 | </div> |
| 263 | <a id="a1b3906201d3a25e11145ae5421acfadf"></a> |
| 264 | <h2 class="memtitle"><span class="permalink"><a href="#a1b3906201d3a25e11145ae5421acfadf">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[6/6]</span></h2> |
| 265 | |
| 266 | <div class="memitem"> |
| 267 | <div class="memproto"> |
| 268 | <table class="memname"> |
| 269 | <tr> |
| 270 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 271 | <td>(</td> |
| 272 | <td class="paramtype">IncorrectDataTypeAddScalar </td> |
| 273 | <td class="paramname">, </td> |
| 274 | </tr> |
| 275 | <tr> |
| 276 | <td class="paramkey"></td> |
| 277 | <td></td> |
| 278 | <td class="paramtype">AddInvalidScalarFixture </td> |
| 279 | <td class="paramname"> </td> |
| 280 | </tr> |
| 281 | <tr> |
| 282 | <td></td> |
| 283 | <td>)</td> |
| 284 | <td></td><td></td> |
| 285 | </tr> |
| 286 | </table> |
| 287 | </div><div class="memdoc"> |
| 288 | |
| 289 | <p class="definition">Definition at line <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html#l00414">414</a> of file <a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp_source.html">Addition.cpp</a>.</p> |
| 290 | |
| 291 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>.</p> |
| 292 | <div class="fragment"><div class="line"><a name="l00415"></a><span class="lineno"> 415</span> {</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  BOOST_CHECK_THROW(Setup(), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 293 | </div><!-- fragment --> |
| 294 | </div> |
| 295 | </div> |
| 296 | </div><!-- contents --> |
| 297 | </div><!-- doc-content --> |
| 298 | <!-- start footer part --> |
| 299 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 300 | <ul> |
| 301 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_29e3193d5087607956cb928081b12830.html">armnnOnnxParser</a></li><li class="navelem"><a class="el" href="dir_14b0222e5488316bb30ce89add6c280e.html">test</a></li><li class="navelem"><a class="el" href="armnn_onnx_parser_2test_2_addition_8cpp.html">Addition.cpp</a></li> |
| 302 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 303 | <a href="http://www.doxygen.org/index.html"> |
| 304 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 305 | </ul> |
| 306 | </div> |
| 307 | </body> |
| 308 | </html> |