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/GetSubgraphInputsOutputs.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('_get_subgraph_inputs_outputs_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="#typedef-members">Typedefs</a> | |
| 85 | <a href="#func-members">Functions</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">GetSubgraphInputsOutputs.cpp File Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | <div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br /> |
| 91 | <code>#include "<a class="el" href="_parser_flatbuffers_fixture_8hpp_source.html">ParserFlatbuffersFixture.hpp</a>"</code><br /> |
| 92 | <code>#include "<a class="el" href="_tf_lite_parser_8hpp_source.html">../TfLiteParser.hpp</a>"</code><br /> |
| 93 | </div> |
| 94 | <p><a href="_get_subgraph_inputs_outputs_8cpp_source.html">Go to the source code of this file.</a></p> |
| 95 | <table class="memberdecls"> |
| 96 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> |
| 97 | Typedefs</h2></td></tr> |
| 98 | <tr class="memitem:ab8262a23f76732432e30196fa09a5d4d"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a> = TfLiteParser::ModelPtr</td></tr> |
| 99 | <tr class="separator:ab8262a23f76732432e30196fa09a5d4d"><td class="memSeparator" colspan="2"> </td></tr> |
| 100 | <tr class="memitem:a18208ff9ca4d7b590527411427ac286c"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a18208ff9ca4d7b590527411427ac286c">TensorRawPtr</a> = TfLiteParser::TensorRawPtr</td></tr> |
| 101 | <tr class="separator:a18208ff9ca4d7b590527411427ac286c"><td class="memSeparator" colspan="2"> </td></tr> |
| 102 | </table><table class="memberdecls"> |
| 103 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 104 | Functions</h2></td></tr> |
| 105 | <tr class="memitem:a742e7359d9eaa6561681a2c6cbc594d9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a742e7359d9eaa6561681a2c6cbc594d9">BOOST_FIXTURE_TEST_CASE</a> (GetEmptySubgraphInputs, GetEmptySubgraphInputsOutputsFixture)</td></tr> |
| 106 | <tr class="separator:a742e7359d9eaa6561681a2c6cbc594d9"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:a9680b254ccdab1cce2304c7b07afee43"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a9680b254ccdab1cce2304c7b07afee43">BOOST_FIXTURE_TEST_CASE</a> (GetEmptySubgraphOutputs, GetEmptySubgraphInputsOutputsFixture)</td></tr> |
| 108 | <tr class="separator:a9680b254ccdab1cce2304c7b07afee43"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a98b43cc876cba9c65264d86e76b1a87c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a98b43cc876cba9c65264d86e76b1a87c">BOOST_FIXTURE_TEST_CASE</a> (GetSubgraphInputs, GetSubgraphInputsOutputsFixture)</td></tr> |
| 110 | <tr class="separator:a98b43cc876cba9c65264d86e76b1a87c"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:a5f0942d33c99e4d5c6f84b329be6202e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a5f0942d33c99e4d5c6f84b329be6202e">BOOST_FIXTURE_TEST_CASE</a> (GetSubgraphOutputsSimpleQuantized, GetSubgraphInputsOutputsFixture)</td></tr> |
| 112 | <tr class="separator:a5f0942d33c99e4d5c6f84b329be6202e"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:aba904879236956771f65d36ccb81bf19"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#aba904879236956771f65d36ccb81bf19">BOOST_FIXTURE_TEST_CASE</a> (GetSubgraphInputsEmptyMinMax, GetSubgraphInputsOutputsFixture)</td></tr> |
| 114 | <tr class="separator:aba904879236956771f65d36ccb81bf19"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a8158f38ef701f1b632b12271a9c1b894"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a8158f38ef701f1b632b12271a9c1b894">BOOST_FIXTURE_TEST_CASE</a> (GetSubgraphOutputs, GetSubgraphInputsOutputsFixture)</td></tr> |
| 116 | <tr class="separator:a8158f38ef701f1b632b12271a9c1b894"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:af38468442423eba2b603a187582e697f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#af38468442423eba2b603a187582e697f">BOOST_AUTO_TEST_CASE</a> (GetSubgraphInputsNullModel)</td></tr> |
| 118 | <tr class="separator:af38468442423eba2b603a187582e697f"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a7304f335c203cc928c03f611da283078"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a7304f335c203cc928c03f611da283078">BOOST_AUTO_TEST_CASE</a> (GetSubgraphOutputsNullModel)</td></tr> |
| 120 | <tr class="separator:a7304f335c203cc928c03f611da283078"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a968b347d4378e434bcca58995aff34dc"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a968b347d4378e434bcca58995aff34dc">BOOST_FIXTURE_TEST_CASE</a> (GetSubgraphInputsInvalidSubgraph, GetSubgraphInputsOutputsFixture)</td></tr> |
| 122 | <tr class="separator:a968b347d4378e434bcca58995aff34dc"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a7559b33088411e599572b68daca7a93e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_subgraph_inputs_outputs_8cpp.html#a7559b33088411e599572b68daca7a93e">BOOST_FIXTURE_TEST_CASE</a> (GetSubgraphOutputsInvalidSubgraph, GetSubgraphInputsOutputsFixture)</td></tr> |
| 124 | <tr class="separator:a7559b33088411e599572b68daca7a93e"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | </table> |
| 126 | <h2 class="groupheader">Typedef Documentation</h2> |
| 127 | <a id="ab8262a23f76732432e30196fa09a5d4d"></a> |
| 128 | <h2 class="memtitle"><span class="permalink"><a href="#ab8262a23f76732432e30196fa09a5d4d">◆ </a></span>ModelPtr</h2> |
| 129 | |
| 130 | <div class="memitem"> |
| 131 | <div class="memproto"> |
| 132 | <table class="memname"> |
| 133 | <tr> |
| 134 | <td class="memname">using <a class="el" href="armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.html#a503ae4f55dae1486e53978657083b35d">ModelPtr</a> = TfLiteParser::ModelPtr</td> |
| 135 | </tr> |
| 136 | </table> |
| 137 | </div><div class="memdoc"> |
| 138 | |
| 139 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">10</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 140 | |
| 141 | </div> |
| 142 | </div> |
| 143 | <a id="a18208ff9ca4d7b590527411427ac286c"></a> |
| 144 | <h2 class="memtitle"><span class="permalink"><a href="#a18208ff9ca4d7b590527411427ac286c">◆ </a></span>TensorRawPtr</h2> |
| 145 | |
| 146 | <div class="memitem"> |
| 147 | <div class="memproto"> |
| 148 | <table class="memname"> |
| 149 | <tr> |
| 150 | <td class="memname">using <a class="el" href="_parser_flatbuffers_serialize_fixture_8hpp.html#a15c20a0693cd3fc4d85565e2f920d8ef">TensorRawPtr</a> = TfLiteParser::TensorRawPtr</td> |
| 151 | </tr> |
| 152 | </table> |
| 153 | </div><div class="memdoc"> |
| 154 | |
| 155 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00011">11</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 156 | |
| 157 | </div> |
| 158 | </div> |
| 159 | <h2 class="groupheader">Function Documentation</h2> |
| 160 | <a id="af38468442423eba2b603a187582e697f"></a> |
| 161 | <h2 class="memtitle"><span class="permalink"><a href="#af38468442423eba2b603a187582e697f">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/2]</span></h2> |
| 162 | |
| 163 | <div class="memitem"> |
| 164 | <div class="memproto"> |
| 165 | <table class="memname"> |
| 166 | <tr> |
| 167 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 168 | <td>(</td> |
| 169 | <td class="paramtype">GetSubgraphInputsNullModel </td> |
| 170 | <td class="paramname"></td><td>)</td> |
| 171 | <td></td> |
| 172 | </tr> |
| 173 | </table> |
| 174 | </div><div class="memdoc"> |
| 175 | |
| 176 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00208">208</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 177 | <div class="fragment"><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  BOOST_CHECK_THROW(TfLiteParser::GetSubgraphInputs(<span class="keyword">nullptr</span>, 0), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</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> |
| 178 | </div><!-- fragment --> |
| 179 | </div> |
| 180 | </div> |
| 181 | <a id="a7304f335c203cc928c03f611da283078"></a> |
| 182 | <h2 class="memtitle"><span class="permalink"><a href="#a7304f335c203cc928c03f611da283078">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/2]</span></h2> |
| 183 | |
| 184 | <div class="memitem"> |
| 185 | <div class="memproto"> |
| 186 | <table class="memname"> |
| 187 | <tr> |
| 188 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 189 | <td>(</td> |
| 190 | <td class="paramtype">GetSubgraphOutputsNullModel </td> |
| 191 | <td class="paramname"></td><td>)</td> |
| 192 | <td></td> |
| 193 | </tr> |
| 194 | </table> |
| 195 | </div><div class="memdoc"> |
| 196 | |
| 197 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00213">213</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 198 | <div class="fragment"><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> {</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  BOOST_CHECK_THROW(TfLiteParser::GetSubgraphOutputs(<span class="keyword">nullptr</span>, 0), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</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> |
| 199 | </div><!-- fragment --> |
| 200 | </div> |
| 201 | </div> |
| 202 | <a id="a742e7359d9eaa6561681a2c6cbc594d9"></a> |
| 203 | <h2 class="memtitle"><span class="permalink"><a href="#a742e7359d9eaa6561681a2c6cbc594d9">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[1/8]</span></h2> |
| 204 | |
| 205 | <div class="memitem"> |
| 206 | <div class="memproto"> |
| 207 | <table class="memname"> |
| 208 | <tr> |
| 209 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 210 | <td>(</td> |
| 211 | <td class="paramtype">GetEmptySubgraphInputs </td> |
| 212 | <td class="paramname">, </td> |
| 213 | </tr> |
| 214 | <tr> |
| 215 | <td class="paramkey"></td> |
| 216 | <td></td> |
| 217 | <td class="paramtype">GetEmptySubgraphInputsOutputsFixture </td> |
| 218 | <td class="paramname"> </td> |
| 219 | </tr> |
| 220 | <tr> |
| 221 | <td></td> |
| 222 | <td>)</td> |
| 223 | <td></td><td></td> |
| 224 | </tr> |
| 225 | </table> |
| 226 | </div><div class="memdoc"> |
| 227 | |
| 228 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00154">154</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 229 | <div class="fragment"><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  TfLiteParser::TensorIdRawPtrVector subgraphTensors = TfLiteParser::GetSubgraphInputs(model, 0);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  BOOST_CHECK_EQUAL(0, subgraphTensors.size());</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 230 | </div><!-- fragment --> |
| 231 | </div> |
| 232 | </div> |
| 233 | <a id="a9680b254ccdab1cce2304c7b07afee43"></a> |
| 234 | <h2 class="memtitle"><span class="permalink"><a href="#a9680b254ccdab1cce2304c7b07afee43">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/8]</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">GetEmptySubgraphOutputs </td> |
| 243 | <td class="paramname">, </td> |
| 244 | </tr> |
| 245 | <tr> |
| 246 | <td class="paramkey"></td> |
| 247 | <td></td> |
| 248 | <td class="paramtype">GetEmptySubgraphInputsOutputsFixture </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="_get_subgraph_inputs_outputs_8cpp_source.html#l00161">161</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 260 | <div class="fragment"><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> {</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  TfLiteParser::TensorIdRawPtrVector subgraphTensors = TfLiteParser::GetSubgraphOutputs(model, 0);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  BOOST_CHECK_EQUAL(0, subgraphTensors.size());</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 261 | </div><!-- fragment --> |
| 262 | </div> |
| 263 | </div> |
| 264 | <a id="a98b43cc876cba9c65264d86e76b1a87c"></a> |
| 265 | <h2 class="memtitle"><span class="permalink"><a href="#a98b43cc876cba9c65264d86e76b1a87c">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/8]</span></h2> |
| 266 | |
| 267 | <div class="memitem"> |
| 268 | <div class="memproto"> |
| 269 | <table class="memname"> |
| 270 | <tr> |
| 271 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 272 | <td>(</td> |
| 273 | <td class="paramtype">GetSubgraphInputs </td> |
| 274 | <td class="paramname">, </td> |
| 275 | </tr> |
| 276 | <tr> |
| 277 | <td class="paramkey"></td> |
| 278 | <td></td> |
| 279 | <td class="paramtype">GetSubgraphInputsOutputsFixture </td> |
| 280 | <td class="paramname"> </td> |
| 281 | </tr> |
| 282 | <tr> |
| 283 | <td></td> |
| 284 | <td>)</td> |
| 285 | <td></td><td></td> |
| 286 | </tr> |
| 287 | </table> |
| 288 | </div><div class="memdoc"> |
| 289 | |
| 290 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00168">168</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 291 | <div class="fragment"><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> {</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  TfLiteParser::TensorIdRawPtrVector subgraphTensors = TfLiteParser::GetSubgraphInputs(model, 0);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  BOOST_CHECK_EQUAL(1, subgraphTensors.size());</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  BOOST_CHECK_EQUAL(1, subgraphTensors[0].first);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  CheckTensors(subgraphTensors[0].second, 4, { 1, 2, 2, 1 }, tflite::TensorType::TensorType_UINT8, 1,</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="stringliteral">"InputTensor"</span>, { -1.2f }, { 25.5f }, { 0.25f }, { 10 });</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 292 | </div><!-- fragment --> |
| 293 | </div> |
| 294 | </div> |
| 295 | <a id="a5f0942d33c99e4d5c6f84b329be6202e"></a> |
| 296 | <h2 class="memtitle"><span class="permalink"><a href="#a5f0942d33c99e4d5c6f84b329be6202e">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[4/8]</span></h2> |
| 297 | |
| 298 | <div class="memitem"> |
| 299 | <div class="memproto"> |
| 300 | <table class="memname"> |
| 301 | <tr> |
| 302 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 303 | <td>(</td> |
| 304 | <td class="paramtype">GetSubgraphOutputsSimpleQuantized </td> |
| 305 | <td class="paramname">, </td> |
| 306 | </tr> |
| 307 | <tr> |
| 308 | <td class="paramkey"></td> |
| 309 | <td></td> |
| 310 | <td class="paramtype">GetSubgraphInputsOutputsFixture </td> |
| 311 | <td class="paramname"> </td> |
| 312 | </tr> |
| 313 | <tr> |
| 314 | <td></td> |
| 315 | <td>)</td> |
| 316 | <td></td><td></td> |
| 317 | </tr> |
| 318 | </table> |
| 319 | </div><div class="memdoc"> |
| 320 | |
| 321 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00178">178</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 322 | <div class="fragment"><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> {</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  TfLiteParser::TensorIdRawPtrVector subgraphTensors = TfLiteParser::GetSubgraphOutputs(model, 0);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  BOOST_CHECK_EQUAL(1, subgraphTensors.size());</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  BOOST_CHECK_EQUAL(0, subgraphTensors[0].first);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  CheckTensors(subgraphTensors[0].second, 4, { 1, 1, 1, 1 }, tflite::TensorType::TensorType_UINT8, 0,</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="stringliteral">"OutputTensor"</span>, { 0.0f }, { 255.0f }, { 1.0f }, { 0 });</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 323 | </div><!-- fragment --> |
| 324 | </div> |
| 325 | </div> |
| 326 | <a id="aba904879236956771f65d36ccb81bf19"></a> |
| 327 | <h2 class="memtitle"><span class="permalink"><a href="#aba904879236956771f65d36ccb81bf19">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[5/8]</span></h2> |
| 328 | |
| 329 | <div class="memitem"> |
| 330 | <div class="memproto"> |
| 331 | <table class="memname"> |
| 332 | <tr> |
| 333 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 334 | <td>(</td> |
| 335 | <td class="paramtype">GetSubgraphInputsEmptyMinMax </td> |
| 336 | <td class="paramname">, </td> |
| 337 | </tr> |
| 338 | <tr> |
| 339 | <td class="paramkey"></td> |
| 340 | <td></td> |
| 341 | <td class="paramtype">GetSubgraphInputsOutputsFixture </td> |
| 342 | <td class="paramname"> </td> |
| 343 | </tr> |
| 344 | <tr> |
| 345 | <td></td> |
| 346 | <td>)</td> |
| 347 | <td></td><td></td> |
| 348 | </tr> |
| 349 | </table> |
| 350 | </div><div class="memdoc"> |
| 351 | |
| 352 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00188">188</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 353 | <div class="fragment"><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  TfLiteParser::TensorIdRawPtrVector subgraphTensors = TfLiteParser::GetSubgraphInputs(model, 1);</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  BOOST_CHECK_EQUAL(1, subgraphTensors.size());</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  BOOST_CHECK_EQUAL(0, subgraphTensors[0].first);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  CheckTensors(subgraphTensors[0].second, 4, { 1, 3, 3, 1 }, tflite::TensorType::TensorType_UINT8, 0,</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="stringliteral">"ConvInputTensor"</span>, { }, { }, { 1.0f }, { 0 });</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 354 | </div><!-- fragment --> |
| 355 | </div> |
| 356 | </div> |
| 357 | <a id="a8158f38ef701f1b632b12271a9c1b894"></a> |
| 358 | <h2 class="memtitle"><span class="permalink"><a href="#a8158f38ef701f1b632b12271a9c1b894">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[6/8]</span></h2> |
| 359 | |
| 360 | <div class="memitem"> |
| 361 | <div class="memproto"> |
| 362 | <table class="memname"> |
| 363 | <tr> |
| 364 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 365 | <td>(</td> |
| 366 | <td class="paramtype">GetSubgraphOutputs </td> |
| 367 | <td class="paramname">, </td> |
| 368 | </tr> |
| 369 | <tr> |
| 370 | <td class="paramkey"></td> |
| 371 | <td></td> |
| 372 | <td class="paramtype">GetSubgraphInputsOutputsFixture </td> |
| 373 | <td class="paramname"> </td> |
| 374 | </tr> |
| 375 | <tr> |
| 376 | <td></td> |
| 377 | <td>)</td> |
| 378 | <td></td><td></td> |
| 379 | </tr> |
| 380 | </table> |
| 381 | </div><div class="memdoc"> |
| 382 | |
| 383 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00198">198</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 384 | <div class="fragment"><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="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  TfLiteParser::TensorIdRawPtrVector subgraphTensors = TfLiteParser::GetSubgraphOutputs(model, 1);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  BOOST_CHECK_EQUAL(1, subgraphTensors.size());</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  BOOST_CHECK_EQUAL(1, subgraphTensors[0].first);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  CheckTensors(subgraphTensors[0].second, 4, { 1, 1, 1, 1 }, tflite::TensorType::TensorType_UINT8, 1,</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="stringliteral">"ConvOutputTensor"</span>, { 0.0f }, { 511.0f }, { 2.0f }, { 0 });</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 385 | </div><!-- fragment --> |
| 386 | </div> |
| 387 | </div> |
| 388 | <a id="a968b347d4378e434bcca58995aff34dc"></a> |
| 389 | <h2 class="memtitle"><span class="permalink"><a href="#a968b347d4378e434bcca58995aff34dc">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[7/8]</span></h2> |
| 390 | |
| 391 | <div class="memitem"> |
| 392 | <div class="memproto"> |
| 393 | <table class="memname"> |
| 394 | <tr> |
| 395 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 396 | <td>(</td> |
| 397 | <td class="paramtype">GetSubgraphInputsInvalidSubgraph </td> |
| 398 | <td class="paramname">, </td> |
| 399 | </tr> |
| 400 | <tr> |
| 401 | <td class="paramkey"></td> |
| 402 | <td></td> |
| 403 | <td class="paramtype">GetSubgraphInputsOutputsFixture </td> |
| 404 | <td class="paramname"> </td> |
| 405 | </tr> |
| 406 | <tr> |
| 407 | <td></td> |
| 408 | <td>)</td> |
| 409 | <td></td><td></td> |
| 410 | </tr> |
| 411 | </table> |
| 412 | </div><div class="memdoc"> |
| 413 | |
| 414 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00218">218</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 415 | <div class="fragment"><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  BOOST_CHECK_THROW(TfLiteParser::GetSubgraphInputs(model, 2), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 416 | <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> |
| 417 | </div><!-- fragment --> |
| 418 | </div> |
| 419 | </div> |
| 420 | <a id="a7559b33088411e599572b68daca7a93e"></a> |
| 421 | <h2 class="memtitle"><span class="permalink"><a href="#a7559b33088411e599572b68daca7a93e">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[8/8]</span></h2> |
| 422 | |
| 423 | <div class="memitem"> |
| 424 | <div class="memproto"> |
| 425 | <table class="memname"> |
| 426 | <tr> |
| 427 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 428 | <td>(</td> |
| 429 | <td class="paramtype">GetSubgraphOutputsInvalidSubgraph </td> |
| 430 | <td class="paramname">, </td> |
| 431 | </tr> |
| 432 | <tr> |
| 433 | <td class="paramkey"></td> |
| 434 | <td></td> |
| 435 | <td class="paramtype">GetSubgraphInputsOutputsFixture </td> |
| 436 | <td class="paramname"> </td> |
| 437 | </tr> |
| 438 | <tr> |
| 439 | <td></td> |
| 440 | <td>)</td> |
| 441 | <td></td><td></td> |
| 442 | </tr> |
| 443 | </table> |
| 444 | </div><div class="memdoc"> |
| 445 | |
| 446 | <p class="definition">Definition at line <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html#l00224">224</a> of file <a class="el" href="_get_subgraph_inputs_outputs_8cpp_source.html">GetSubgraphInputsOutputs.cpp</a>.</p> |
| 447 | |
| 448 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>.</p> |
| 449 | <div class="fragment"><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> {</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  BOOST_CHECK_THROW(TfLiteParser::GetSubgraphOutputs(model, 2), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> }</div><div class="ttc" id="_get_subgraph_inputs_outputs_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_subgraph_inputs_outputs_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_subgraph_inputs_outputs_8cpp_source.html#l00010">GetSubgraphInputsOutputs.cpp:10</a></div></div> |
| 450 | <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> |
| 451 | </div><!-- fragment --> |
| 452 | </div> |
| 453 | </div> |
| 454 | </div><!-- contents --> |
| 455 | </div><!-- doc-content --> |
| 456 | <!-- start footer part --> |
| 457 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 458 | <ul> |
| 459 | <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="_get_subgraph_inputs_outputs_8cpp.html">GetSubgraphInputsOutputs.cpp</a></li> |
| 460 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 461 | <a href="http://www.doxygen.org/index.html"> |
| 462 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 463 | </ul> |
| 464 | </div> |
| 465 | </body> |
| 466 | </html> |