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/Multiplication.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_multiplication_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">Multiplication.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_multiplication_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:a9b98c5002ba68878e145093c5fd279b6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp.html#a9b98c5002ba68878e145093c5fd279b6">BOOST_FIXTURE_TEST_CASE</a> (ParseMultiplication, SimpleMultiplicationFixture)</td></tr> |
| 100 | <tr class="separator:a9b98c5002ba68878e145093c5fd279b6"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <tr class="memitem:acc6e2d4f962a9eb26924682476aab381"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp.html#acc6e2d4f962a9eb26924682476aab381">BOOST_FIXTURE_TEST_CASE</a> (ParseMultiplicationBroadcast4D1D, MultiplicationBroadcastFixture4D1D)</td></tr> |
| 102 | <tr class="separator:acc6e2d4f962a9eb26924682476aab381"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <tr class="memitem:adcd7538f607097efe7782a4d697dea9e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp.html#adcd7538f607097efe7782a4d697dea9e">BOOST_FIXTURE_TEST_CASE</a> (ParseMultiplicationBroadcast1D4D, MultiplicationBroadcastFixture1D4D)</td></tr> |
| 104 | <tr class="separator:adcd7538f607097efe7782a4d697dea9e"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | </table> |
| 106 | <h2 class="groupheader">Function Documentation</h2> |
| 107 | <a id="a9b98c5002ba68878e145093c5fd279b6"></a> |
| 108 | <h2 class="memtitle"><span class="permalink"><a href="#a9b98c5002ba68878e145093c5fd279b6">◆ </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">ParseMultiplication </td> |
| 117 | <td class="paramname">, </td> |
| 118 | </tr> |
| 119 | <tr> |
| 120 | <td class="paramkey"></td> |
| 121 | <td></td> |
| 122 | <td class="paramtype">SimpleMultiplicationFixture </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_multiplication_8cpp_source.html#l00095">95</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp_source.html">Multiplication.cpp</a>.</p> |
| 134 | <div class="fragment"><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> {</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  RunTest<4, DataType::Float32>(0, {{ <span class="stringliteral">"inputTensor1"</span>, { 0.0f, 1.0f, 2.0f,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  6.0f, 7.0f, 8.0f,</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  9.0f, 10.0f, 11.0f } },</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  { <span class="stringliteral">"inputTensor2"</span>, { 1.0f, 1.0f, 1.0f,</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  5.0f, 5.0f, 5.0f,</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  1.0f, 1.0f, 1.0f,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  5.0f, 5.0f, 5.0f} } },</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  {{ <span class="stringliteral">"outputTensor"</span>, { 0.0f, 1.0f, 2.0f,</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  15.0f, 20.0f, 25.0f,</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  6.0f, 7.0f, 8.0f,</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  45.0f, 50.0f, 55.0f } } });</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> }</div><div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00032">Types.hpp:32</a></div></div> |
| 135 | </div><!-- fragment --> |
| 136 | </div> |
| 137 | </div> |
| 138 | <a id="acc6e2d4f962a9eb26924682476aab381"></a> |
| 139 | <h2 class="memtitle"><span class="permalink"><a href="#acc6e2d4f962a9eb26924682476aab381">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/3]</span></h2> |
| 140 | |
| 141 | <div class="memitem"> |
| 142 | <div class="memproto"> |
| 143 | <table class="memname"> |
| 144 | <tr> |
| 145 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 146 | <td>(</td> |
| 147 | <td class="paramtype">ParseMultiplicationBroadcast4D1D </td> |
| 148 | <td class="paramname">, </td> |
| 149 | </tr> |
| 150 | <tr> |
| 151 | <td class="paramkey"></td> |
| 152 | <td></td> |
| 153 | <td class="paramtype">MultiplicationBroadcastFixture4D1D </td> |
| 154 | <td class="paramname"> </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td></td> |
| 158 | <td>)</td> |
| 159 | <td></td><td></td> |
| 160 | </tr> |
| 161 | </table> |
| 162 | </div><div class="memdoc"> |
| 163 | |
| 164 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp_source.html#l00117">117</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp_source.html">Multiplication.cpp</a>.</p> |
| 165 | <div class="fragment"><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>  <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a>;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  RunTest<4, DataType::Float32>(0, {{ <span class="stringliteral">"inputTensor1"</span>, { 0.0f, 1.0f, 2.0f,</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  6.0f, 7.0f, 8.0f,</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  9.0f, 10.0f, 11.0f } },</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  { <span class="stringliteral">"inputTensor2"</span>, { 5.0f } } },</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  {{ <span class="stringliteral">"outputTensor"</span>, { 0.0f, 5.0f, 10.0f,</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  15.0f, 20.0f, 25.0f,</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  30.0f, 35.0f, 40.0f,</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  45.0f, 50.0f, 55.0f } } });</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div><div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00032">Types.hpp:32</a></div></div> |
| 166 | </div><!-- fragment --> |
| 167 | </div> |
| 168 | </div> |
| 169 | <a id="adcd7538f607097efe7782a4d697dea9e"></a> |
| 170 | <h2 class="memtitle"><span class="permalink"><a href="#adcd7538f607097efe7782a4d697dea9e">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/3]</span></h2> |
| 171 | |
| 172 | <div class="memitem"> |
| 173 | <div class="memproto"> |
| 174 | <table class="memname"> |
| 175 | <tr> |
| 176 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 177 | <td>(</td> |
| 178 | <td class="paramtype">ParseMultiplicationBroadcast1D4D </td> |
| 179 | <td class="paramname">, </td> |
| 180 | </tr> |
| 181 | <tr> |
| 182 | <td class="paramkey"></td> |
| 183 | <td></td> |
| 184 | <td class="paramtype">MultiplicationBroadcastFixture1D4D </td> |
| 185 | <td class="paramname"> </td> |
| 186 | </tr> |
| 187 | <tr> |
| 188 | <td></td> |
| 189 | <td>)</td> |
| 190 | <td></td><td></td> |
| 191 | </tr> |
| 192 | </table> |
| 193 | </div><div class="memdoc"> |
| 194 | |
| 195 | <p class="definition">Definition at line <a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp_source.html#l00136">136</a> of file <a class="el" href="armnn_tf_lite_parser_2test_2_multiplication_8cpp_source.html">Multiplication.cpp</a>.</p> |
| 196 | |
| 197 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>.</p> |
| 198 | <div class="fragment"><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>  <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a>;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  RunTest<4, DataType::Float32>(0, {{ <span class="stringliteral">"inputTensor1"</span>, { 3.0f } },</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  { <span class="stringliteral">"inputTensor2"</span>, { 0.0f, 1.0f, 2.0f,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  6.0f, 7.0f, 8.0f,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  9.0f, 10.0f, 11.0f } } },</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  {{ <span class="stringliteral">"outputTensor"</span>, { 0.0f, 3.0f, 6.0f,</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  9.0f, 12.0f, 15.0f,</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  18.0f, 21.0f, 24.0f,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  27.0f, 30.0f, 33.0f } } });</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> }</div><div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00032">Types.hpp:32</a></div></div> |
| 199 | </div><!-- fragment --> |
| 200 | </div> |
| 201 | </div> |
| 202 | </div><!-- contents --> |
| 203 | </div><!-- doc-content --> |
| 204 | <!-- start footer part --> |
| 205 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 206 | <ul> |
| 207 | <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_multiplication_8cpp.html">Multiplication.cpp</a></li> |
| 208 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 209 | <a href="http://www.doxygen.org/index.html"> |
| 210 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 211 | </ul> |
| 212 | </div> |
| 213 | </body> |
| 214 | </html> |