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/GetTensorIds.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_tensor_ids_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">GetTensorIds.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_tensor_ids_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_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a> = TfLiteParser::ModelPtr</td></tr> |
| 99 | <tr class="separator:ab8262a23f76732432e30196fa09a5d4d"><td class="memSeparator" colspan="2"> </td></tr> |
| 100 | </table><table class="memberdecls"> |
| 101 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 102 | Functions</h2></td></tr> |
| 103 | <tr class="memitem:aa7e7827208247975535ce9b2b82d7d08"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#aa7e7827208247975535ce9b2b82d7d08">BOOST_FIXTURE_TEST_CASE</a> (GetEmptyInputTensorIds, GetEmptyTensorIdsFixture)</td></tr> |
| 104 | <tr class="separator:aa7e7827208247975535ce9b2b82d7d08"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <tr class="memitem:a7967e0fda8ce634b84539c71f42f2bdc"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a7967e0fda8ce634b84539c71f42f2bdc">BOOST_FIXTURE_TEST_CASE</a> (GetEmptyOutputTensorIds, GetEmptyTensorIdsFixture)</td></tr> |
| 106 | <tr class="separator:a7967e0fda8ce634b84539c71f42f2bdc"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:a68a9af762168a1ae7361055d041f6a7e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a68a9af762168a1ae7361055d041f6a7e">BOOST_FIXTURE_TEST_CASE</a> (GetInputTensorIds, GetInputOutputTensorIdsFixture)</td></tr> |
| 108 | <tr class="separator:a68a9af762168a1ae7361055d041f6a7e"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:acb2b531125eb6faf075f0736ffc1c6bd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#acb2b531125eb6faf075f0736ffc1c6bd">BOOST_FIXTURE_TEST_CASE</a> (GetOutputTensorIds, GetInputOutputTensorIdsFixture)</td></tr> |
| 110 | <tr class="separator:acb2b531125eb6faf075f0736ffc1c6bd"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:ac6655662716b72c329a689eca2108b8b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#ac6655662716b72c329a689eca2108b8b">BOOST_FIXTURE_TEST_CASE</a> (GetInputTensorIdsNullModel, GetInputOutputTensorIdsFixture)</td></tr> |
| 112 | <tr class="separator:ac6655662716b72c329a689eca2108b8b"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a181847486be271a9c78477831c839d99"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a181847486be271a9c78477831c839d99">BOOST_FIXTURE_TEST_CASE</a> (GetOutputTensorIdsNullModel, GetInputOutputTensorIdsFixture)</td></tr> |
| 114 | <tr class="separator:a181847486be271a9c78477831c839d99"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a461ef5e4e4db24ec88d8e885ae84a345"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a461ef5e4e4db24ec88d8e885ae84a345">BOOST_FIXTURE_TEST_CASE</a> (GetInputTensorIdsInvalidSubgraph, GetInputOutputTensorIdsFixture)</td></tr> |
| 116 | <tr class="separator:a461ef5e4e4db24ec88d8e885ae84a345"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a0e2ee637aeacc470d70e6d3031bf8a63"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a0e2ee637aeacc470d70e6d3031bf8a63">BOOST_FIXTURE_TEST_CASE</a> (GetOutputTensorIdsInvalidSubgraph, GetInputOutputTensorIdsFixture)</td></tr> |
| 118 | <tr class="separator:a0e2ee637aeacc470d70e6d3031bf8a63"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a81c09a8b90d5a0abc1dc68ff5532b732"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a81c09a8b90d5a0abc1dc68ff5532b732">BOOST_FIXTURE_TEST_CASE</a> (GetInputTensorIdsInvalidOperator, GetInputOutputTensorIdsFixture)</td></tr> |
| 120 | <tr class="separator:a81c09a8b90d5a0abc1dc68ff5532b732"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a676187aa0fe726a9663cf37dab5c1224"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_get_tensor_ids_8cpp.html#a676187aa0fe726a9663cf37dab5c1224">BOOST_FIXTURE_TEST_CASE</a> (GetOutputTensorIdsInvalidOperator, GetInputOutputTensorIdsFixture)</td></tr> |
| 122 | <tr class="separator:a676187aa0fe726a9663cf37dab5c1224"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | </table> |
| 124 | <h2 class="groupheader">Typedef Documentation</h2> |
| 125 | <a id="ab8262a23f76732432e30196fa09a5d4d"></a> |
| 126 | <h2 class="memtitle"><span class="permalink"><a href="#ab8262a23f76732432e30196fa09a5d4d">◆ </a></span>ModelPtr</h2> |
| 127 | |
| 128 | <div class="memitem"> |
| 129 | <div class="memproto"> |
| 130 | <table class="memname"> |
| 131 | <tr> |
| 132 | <td class="memname">using <a class="el" href="armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.html#a503ae4f55dae1486e53978657083b35d">ModelPtr</a> = TfLiteParser::ModelPtr</td> |
| 133 | </tr> |
| 134 | </table> |
| 135 | </div><div class="memdoc"> |
| 136 | |
| 137 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00010">10</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 138 | |
| 139 | </div> |
| 140 | </div> |
| 141 | <h2 class="groupheader">Function Documentation</h2> |
| 142 | <a id="aa7e7827208247975535ce9b2b82d7d08"></a> |
| 143 | <h2 class="memtitle"><span class="permalink"><a href="#aa7e7827208247975535ce9b2b82d7d08">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[1/10]</span></h2> |
| 144 | |
| 145 | <div class="memitem"> |
| 146 | <div class="memproto"> |
| 147 | <table class="memname"> |
| 148 | <tr> |
| 149 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 150 | <td>(</td> |
| 151 | <td class="paramtype">GetEmptyInputTensorIds </td> |
| 152 | <td class="paramname">, </td> |
| 153 | </tr> |
| 154 | <tr> |
| 155 | <td class="paramkey"></td> |
| 156 | <td></td> |
| 157 | <td class="paramtype">GetEmptyTensorIdsFixture </td> |
| 158 | <td class="paramname"> </td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td></td> |
| 162 | <td>)</td> |
| 163 | <td></td><td></td> |
| 164 | </tr> |
| 165 | </table> |
| 166 | </div><div class="memdoc"> |
| 167 | |
| 168 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00092">92</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 169 | <div class="fragment"><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  std::vector<int32_t> expectedIds = { };</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  std::vector<int32_t> inputTensorIds = TfLiteParser::GetInputTensorIds(model, 0, 0);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  BOOST_CHECK_EQUAL_COLLECTIONS(expectedIds.begin(), expectedIds.end(),</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  inputTensorIds.begin(), inputTensorIds.end());</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 170 | </div><!-- fragment --> |
| 171 | </div> |
| 172 | </div> |
| 173 | <a id="a7967e0fda8ce634b84539c71f42f2bdc"></a> |
| 174 | <h2 class="memtitle"><span class="permalink"><a href="#a7967e0fda8ce634b84539c71f42f2bdc">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/10]</span></h2> |
| 175 | |
| 176 | <div class="memitem"> |
| 177 | <div class="memproto"> |
| 178 | <table class="memname"> |
| 179 | <tr> |
| 180 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 181 | <td>(</td> |
| 182 | <td class="paramtype">GetEmptyOutputTensorIds </td> |
| 183 | <td class="paramname">, </td> |
| 184 | </tr> |
| 185 | <tr> |
| 186 | <td class="paramkey"></td> |
| 187 | <td></td> |
| 188 | <td class="paramtype">GetEmptyTensorIdsFixture </td> |
| 189 | <td class="paramname"> </td> |
| 190 | </tr> |
| 191 | <tr> |
| 192 | <td></td> |
| 193 | <td>)</td> |
| 194 | <td></td><td></td> |
| 195 | </tr> |
| 196 | </table> |
| 197 | </div><div class="memdoc"> |
| 198 | |
| 199 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00101">101</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 200 | <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>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  std::vector<int32_t> expectedIds = { };</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  std::vector<int32_t> outputTensorIds = TfLiteParser::GetOutputTensorIds(model, 0, 0);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  BOOST_CHECK_EQUAL_COLLECTIONS(expectedIds.begin(), expectedIds.end(),</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  outputTensorIds.begin(), outputTensorIds.end());</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 201 | </div><!-- fragment --> |
| 202 | </div> |
| 203 | </div> |
| 204 | <a id="a68a9af762168a1ae7361055d041f6a7e"></a> |
| 205 | <h2 class="memtitle"><span class="permalink"><a href="#a68a9af762168a1ae7361055d041f6a7e">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/10]</span></h2> |
| 206 | |
| 207 | <div class="memitem"> |
| 208 | <div class="memproto"> |
| 209 | <table class="memname"> |
| 210 | <tr> |
| 211 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 212 | <td>(</td> |
| 213 | <td class="paramtype">GetInputTensorIds </td> |
| 214 | <td class="paramname">, </td> |
| 215 | </tr> |
| 216 | <tr> |
| 217 | <td class="paramkey"></td> |
| 218 | <td></td> |
| 219 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 220 | <td class="paramname"> </td> |
| 221 | </tr> |
| 222 | <tr> |
| 223 | <td></td> |
| 224 | <td>)</td> |
| 225 | <td></td><td></td> |
| 226 | </tr> |
| 227 | </table> |
| 228 | </div><div class="memdoc"> |
| 229 | |
| 230 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00110">110</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 231 | <div class="fragment"><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::vector<int32_t> expectedInputIds = { 0, 1, 2 };</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  std::vector<int32_t> inputTensorIds = TfLiteParser::GetInputTensorIds(model, 0, 0);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  BOOST_CHECK_EQUAL_COLLECTIONS(expectedInputIds.begin(), expectedInputIds.end(),</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  inputTensorIds.begin(), inputTensorIds.end());</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 232 | </div><!-- fragment --> |
| 233 | </div> |
| 234 | </div> |
| 235 | <a id="acb2b531125eb6faf075f0736ffc1c6bd"></a> |
| 236 | <h2 class="memtitle"><span class="permalink"><a href="#acb2b531125eb6faf075f0736ffc1c6bd">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[4/10]</span></h2> |
| 237 | |
| 238 | <div class="memitem"> |
| 239 | <div class="memproto"> |
| 240 | <table class="memname"> |
| 241 | <tr> |
| 242 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 243 | <td>(</td> |
| 244 | <td class="paramtype">GetOutputTensorIds </td> |
| 245 | <td class="paramname">, </td> |
| 246 | </tr> |
| 247 | <tr> |
| 248 | <td class="paramkey"></td> |
| 249 | <td></td> |
| 250 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 251 | <td class="paramname"> </td> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td></td> |
| 255 | <td>)</td> |
| 256 | <td></td><td></td> |
| 257 | </tr> |
| 258 | </table> |
| 259 | </div><div class="memdoc"> |
| 260 | |
| 261 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00119">119</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 262 | <div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  std::vector<int32_t> expectedOutputIds = { 3 };</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  std::vector<int32_t> outputTensorIds = TfLiteParser::GetOutputTensorIds(model, 0, 0);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  BOOST_CHECK_EQUAL_COLLECTIONS(expectedOutputIds.begin(), expectedOutputIds.end(),</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  outputTensorIds.begin(), outputTensorIds.end());</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 263 | </div><!-- fragment --> |
| 264 | </div> |
| 265 | </div> |
| 266 | <a id="ac6655662716b72c329a689eca2108b8b"></a> |
| 267 | <h2 class="memtitle"><span class="permalink"><a href="#ac6655662716b72c329a689eca2108b8b">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[5/10]</span></h2> |
| 268 | |
| 269 | <div class="memitem"> |
| 270 | <div class="memproto"> |
| 271 | <table class="memname"> |
| 272 | <tr> |
| 273 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 274 | <td>(</td> |
| 275 | <td class="paramtype">GetInputTensorIdsNullModel </td> |
| 276 | <td class="paramname">, </td> |
| 277 | </tr> |
| 278 | <tr> |
| 279 | <td class="paramkey"></td> |
| 280 | <td></td> |
| 281 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 282 | <td class="paramname"> </td> |
| 283 | </tr> |
| 284 | <tr> |
| 285 | <td></td> |
| 286 | <td>)</td> |
| 287 | <td></td><td></td> |
| 288 | </tr> |
| 289 | </table> |
| 290 | </div><div class="memdoc"> |
| 291 | |
| 292 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00128">128</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 293 | <div class="fragment"><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  BOOST_CHECK_THROW(TfLiteParser::GetInputTensorIds(<span class="keyword">nullptr</span>, 0, 0), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</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> |
| 294 | </div><!-- fragment --> |
| 295 | </div> |
| 296 | </div> |
| 297 | <a id="a181847486be271a9c78477831c839d99"></a> |
| 298 | <h2 class="memtitle"><span class="permalink"><a href="#a181847486be271a9c78477831c839d99">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[6/10]</span></h2> |
| 299 | |
| 300 | <div class="memitem"> |
| 301 | <div class="memproto"> |
| 302 | <table class="memname"> |
| 303 | <tr> |
| 304 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 305 | <td>(</td> |
| 306 | <td class="paramtype">GetOutputTensorIdsNullModel </td> |
| 307 | <td class="paramname">, </td> |
| 308 | </tr> |
| 309 | <tr> |
| 310 | <td class="paramkey"></td> |
| 311 | <td></td> |
| 312 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 313 | <td class="paramname"> </td> |
| 314 | </tr> |
| 315 | <tr> |
| 316 | <td></td> |
| 317 | <td>)</td> |
| 318 | <td></td><td></td> |
| 319 | </tr> |
| 320 | </table> |
| 321 | </div><div class="memdoc"> |
| 322 | |
| 323 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00133">133</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 324 | <div class="fragment"><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  BOOST_CHECK_THROW(TfLiteParser::GetOutputTensorIds(<span class="keyword">nullptr</span>, 0, 0), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</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> |
| 325 | </div><!-- fragment --> |
| 326 | </div> |
| 327 | </div> |
| 328 | <a id="a461ef5e4e4db24ec88d8e885ae84a345"></a> |
| 329 | <h2 class="memtitle"><span class="permalink"><a href="#a461ef5e4e4db24ec88d8e885ae84a345">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[7/10]</span></h2> |
| 330 | |
| 331 | <div class="memitem"> |
| 332 | <div class="memproto"> |
| 333 | <table class="memname"> |
| 334 | <tr> |
| 335 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 336 | <td>(</td> |
| 337 | <td class="paramtype">GetInputTensorIdsInvalidSubgraph </td> |
| 338 | <td class="paramname">, </td> |
| 339 | </tr> |
| 340 | <tr> |
| 341 | <td class="paramkey"></td> |
| 342 | <td></td> |
| 343 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 344 | <td class="paramname"> </td> |
| 345 | </tr> |
| 346 | <tr> |
| 347 | <td></td> |
| 348 | <td>)</td> |
| 349 | <td></td><td></td> |
| 350 | </tr> |
| 351 | </table> |
| 352 | </div><div class="memdoc"> |
| 353 | |
| 354 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00138">138</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 355 | <div class="fragment"><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> {</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  BOOST_CHECK_THROW(TfLiteParser::GetInputTensorIds(model, 1, 0), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 356 | <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> |
| 357 | </div><!-- fragment --> |
| 358 | </div> |
| 359 | </div> |
| 360 | <a id="a0e2ee637aeacc470d70e6d3031bf8a63"></a> |
| 361 | <h2 class="memtitle"><span class="permalink"><a href="#a0e2ee637aeacc470d70e6d3031bf8a63">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[8/10]</span></h2> |
| 362 | |
| 363 | <div class="memitem"> |
| 364 | <div class="memproto"> |
| 365 | <table class="memname"> |
| 366 | <tr> |
| 367 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 368 | <td>(</td> |
| 369 | <td class="paramtype">GetOutputTensorIdsInvalidSubgraph </td> |
| 370 | <td class="paramname">, </td> |
| 371 | </tr> |
| 372 | <tr> |
| 373 | <td class="paramkey"></td> |
| 374 | <td></td> |
| 375 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 376 | <td class="paramname"> </td> |
| 377 | </tr> |
| 378 | <tr> |
| 379 | <td></td> |
| 380 | <td>)</td> |
| 381 | <td></td><td></td> |
| 382 | </tr> |
| 383 | </table> |
| 384 | </div><div class="memdoc"> |
| 385 | |
| 386 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00144">144</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 387 | <div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> {</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  BOOST_CHECK_THROW(TfLiteParser::GetOutputTensorIds(model, 1, 0), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 388 | <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> |
| 389 | </div><!-- fragment --> |
| 390 | </div> |
| 391 | </div> |
| 392 | <a id="a81c09a8b90d5a0abc1dc68ff5532b732"></a> |
| 393 | <h2 class="memtitle"><span class="permalink"><a href="#a81c09a8b90d5a0abc1dc68ff5532b732">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[9/10]</span></h2> |
| 394 | |
| 395 | <div class="memitem"> |
| 396 | <div class="memproto"> |
| 397 | <table class="memname"> |
| 398 | <tr> |
| 399 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 400 | <td>(</td> |
| 401 | <td class="paramtype">GetInputTensorIdsInvalidOperator </td> |
| 402 | <td class="paramname">, </td> |
| 403 | </tr> |
| 404 | <tr> |
| 405 | <td class="paramkey"></td> |
| 406 | <td></td> |
| 407 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 408 | <td class="paramname"> </td> |
| 409 | </tr> |
| 410 | <tr> |
| 411 | <td></td> |
| 412 | <td>)</td> |
| 413 | <td></td><td></td> |
| 414 | </tr> |
| 415 | </table> |
| 416 | </div><div class="memdoc"> |
| 417 | |
| 418 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00150">150</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 419 | <div class="fragment"><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> {</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  BOOST_CHECK_THROW(TfLiteParser::GetInputTensorIds(model, 0, 1), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 420 | <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> |
| 421 | </div><!-- fragment --> |
| 422 | </div> |
| 423 | </div> |
| 424 | <a id="a676187aa0fe726a9663cf37dab5c1224"></a> |
| 425 | <h2 class="memtitle"><span class="permalink"><a href="#a676187aa0fe726a9663cf37dab5c1224">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[10/10]</span></h2> |
| 426 | |
| 427 | <div class="memitem"> |
| 428 | <div class="memproto"> |
| 429 | <table class="memname"> |
| 430 | <tr> |
| 431 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 432 | <td>(</td> |
| 433 | <td class="paramtype">GetOutputTensorIdsInvalidOperator </td> |
| 434 | <td class="paramname">, </td> |
| 435 | </tr> |
| 436 | <tr> |
| 437 | <td class="paramkey"></td> |
| 438 | <td></td> |
| 439 | <td class="paramtype">GetInputOutputTensorIdsFixture </td> |
| 440 | <td class="paramname"> </td> |
| 441 | </tr> |
| 442 | <tr> |
| 443 | <td></td> |
| 444 | <td>)</td> |
| 445 | <td></td><td></td> |
| 446 | </tr> |
| 447 | </table> |
| 448 | </div><div class="memdoc"> |
| 449 | |
| 450 | <p class="definition">Definition at line <a class="el" href="_get_tensor_ids_8cpp_source.html#l00156">156</a> of file <a class="el" href="_get_tensor_ids_8cpp_source.html">GetTensorIds.cpp</a>.</p> |
| 451 | |
| 452 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>.</p> |
| 453 | <div class="fragment"><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> {</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">TfLiteParser::ModelPtr</a> model = TfLiteParser::LoadModelFromBinary(m_GraphBinary.data(), m_GraphBinary.size());</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  BOOST_CHECK_THROW(TfLiteParser::GetOutputTensorIds(model, 0, 1), <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> }</div><div class="ttc" id="_get_tensor_ids_8cpp_html_ab8262a23f76732432e30196fa09a5d4d"><div class="ttname"><a href="_get_tensor_ids_8cpp.html#ab8262a23f76732432e30196fa09a5d4d">ModelPtr</a></div><div class="ttdeci">TfLiteParser::ModelPtr ModelPtr</div><div class="ttdef"><b>Definition:</b> <a href="_get_tensor_ids_8cpp_source.html#l00010">GetTensorIds.cpp:10</a></div></div> |
| 454 | <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> |
| 455 | </div><!-- fragment --> |
| 456 | </div> |
| 457 | </div> |
| 458 | </div><!-- contents --> |
| 459 | </div><!-- doc-content --> |
| 460 | <!-- start footer part --> |
| 461 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 462 | <ul> |
| 463 | <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_tensor_ids_8cpp.html">GetTensorIds.cpp</a></li> |
| 464 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 465 | <a href="http://www.doxygen.org/index.html"> |
| 466 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 467 | </ul> |
| 468 | </div> |
| 469 | </body> |
| 470 | </html> |