Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/armnn/test/GraphUtils.hpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_graph_utils_8hpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">GraphUtils.hpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include <<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>></code><br /> |
| 104 | <code>#include <string></code><br /> |
| 105 | </div> |
| 106 | <p><a href="_graph_utils_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 107 | <table class="memberdecls"> |
| 108 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 109 | Functions</h2></td></tr> |
| 110 | <tr class="memitem:ac73a43305233b7e5f70debdb2d14a8d3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8hpp.xhtml#ac73a43305233b7e5f70debdb2d14a8d3">GraphHasNamedLayer</a> (const <a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &graph, const std::string &name)</td></tr> |
| 111 | <tr class="separator:ac73a43305233b7e5f70debdb2d14a8d3"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a5f17e02e0054dac0a691685a0464ed36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8hpp.xhtml#a5f17e02e0054dac0a691685a0464ed36">GetFirstLayerWithName</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &graph, const std::string &name)</td></tr> |
| 113 | <tr class="separator:a5f17e02e0054dac0a691685a0464ed36"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a4c04337db4d5f380219a005657a8223b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8hpp.xhtml#a4c04337db4d5f380219a005657a8223b">CheckNumberOfInputSlot</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *layer, unsigned int num)</td></tr> |
| 115 | <tr class="separator:a4c04337db4d5f380219a005657a8223b"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:aada2e27f100807f5786eecb03390ba58"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8hpp.xhtml#aada2e27f100807f5786eecb03390ba58">CheckNumberOfOutputSlot</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *layer, unsigned int num)</td></tr> |
| 117 | <tr class="separator:aada2e27f100807f5786eecb03390ba58"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:afd518dba3d52728670459e4ad3bed5e1"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8hpp.xhtml#afd518dba3d52728670459e4ad3bed5e1">IsConnected</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *srcLayer, <a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *destLayer, unsigned int srcSlot, unsigned int destSlot, const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> &expectedTensorInfo)</td></tr> |
| 119 | <tr class="separator:afd518dba3d52728670459e4ad3bed5e1"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | </table> |
| 121 | <h2 class="groupheader">Function Documentation</h2> |
| 122 | <a id="a4c04337db4d5f380219a005657a8223b"></a> |
| 123 | <h2 class="memtitle"><span class="permalink"><a href="#a4c04337db4d5f380219a005657a8223b">◆ </a></span>CheckNumberOfInputSlot()</h2> |
| 124 | |
| 125 | <div class="memitem"> |
| 126 | <div class="memproto"> |
| 127 | <table class="memname"> |
| 128 | <tr> |
| 129 | <td class="memname">bool CheckNumberOfInputSlot </td> |
| 130 | <td>(</td> |
| 131 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> * </td> |
| 132 | <td class="paramname"><em>layer</em>, </td> |
| 133 | </tr> |
| 134 | <tr> |
| 135 | <td class="paramkey"></td> |
| 136 | <td></td> |
| 137 | <td class="paramtype">unsigned int </td> |
| 138 | <td class="paramname"><em>num</em> </td> |
| 139 | </tr> |
| 140 | <tr> |
| 141 | <td></td> |
| 142 | <td>)</td> |
| 143 | <td></td><td></td> |
| 144 | </tr> |
| 145 | </table> |
| 146 | </div><div class="memdoc"> |
| 147 | |
| 148 | <p class="definition">Definition at line <a class="el" href="_graph_utils_8cpp_source.xhtml#l00032">32</a> of file <a class="el" href="_graph_utils_8cpp_source.xhtml">GraphUtils.cpp</a>.</p> |
| 149 | |
| 150 | <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00307">Layer::GetNumInputSlots()</a>.</p> |
| 151 | |
| 152 | <p class="reference">Referenced by <a class="el" href="armnn_tf_lite_parser_2test_2_detection_post_process_8cpp_source.xhtml#l00226">BOOST_FIXTURE_TEST_CASE()</a>.</p> |
| 153 | <div class="fragment"><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> layer-><a class="code" href="classarmnn_1_1_layer.xhtml#abc0660dc440c8a285b456c9ef6383c26">GetNumInputSlots</a>() == num;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div><div class="ttc" id="classarmnn_1_1_layer_xhtml_abc0660dc440c8a285b456c9ef6383c26"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#abc0660dc440c8a285b456c9ef6383c26">armnn::Layer::GetNumInputSlots</a></div><div class="ttdeci">unsigned int GetNumInputSlots() const override</div><div class="ttdoc">Returns the number of connectable input slots. </div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00307">Layer.hpp:307</a></div></div> |
| 154 | </div><!-- fragment --> |
| 155 | </div> |
| 156 | </div> |
| 157 | <a id="aada2e27f100807f5786eecb03390ba58"></a> |
| 158 | <h2 class="memtitle"><span class="permalink"><a href="#aada2e27f100807f5786eecb03390ba58">◆ </a></span>CheckNumberOfOutputSlot()</h2> |
| 159 | |
| 160 | <div class="memitem"> |
| 161 | <div class="memproto"> |
| 162 | <table class="memname"> |
| 163 | <tr> |
| 164 | <td class="memname">bool CheckNumberOfOutputSlot </td> |
| 165 | <td>(</td> |
| 166 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> * </td> |
| 167 | <td class="paramname"><em>layer</em>, </td> |
| 168 | </tr> |
| 169 | <tr> |
| 170 | <td class="paramkey"></td> |
| 171 | <td></td> |
| 172 | <td class="paramtype">unsigned int </td> |
| 173 | <td class="paramname"><em>num</em> </td> |
| 174 | </tr> |
| 175 | <tr> |
| 176 | <td></td> |
| 177 | <td>)</td> |
| 178 | <td></td><td></td> |
| 179 | </tr> |
| 180 | </table> |
| 181 | </div><div class="memdoc"> |
| 182 | |
| 183 | <p class="definition">Definition at line <a class="el" href="_graph_utils_8cpp_source.xhtml#l00037">37</a> of file <a class="el" href="_graph_utils_8cpp_source.xhtml">GraphUtils.cpp</a>.</p> |
| 184 | |
| 185 | <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00308">Layer::GetNumOutputSlots()</a>.</p> |
| 186 | |
| 187 | <p class="reference">Referenced by <a class="el" href="armnn_tf_lite_parser_2test_2_detection_post_process_8cpp_source.xhtml#l00226">BOOST_FIXTURE_TEST_CASE()</a>.</p> |
| 188 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> layer-><a class="code" href="classarmnn_1_1_layer.xhtml#a1594bddc87d6477df300317658f566bb">GetNumOutputSlots</a>() == num;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div><div class="ttc" id="classarmnn_1_1_layer_xhtml_a1594bddc87d6477df300317658f566bb"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#a1594bddc87d6477df300317658f566bb">armnn::Layer::GetNumOutputSlots</a></div><div class="ttdeci">unsigned int GetNumOutputSlots() const override</div><div class="ttdoc">Returns the number of connectable output slots. </div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00308">Layer.hpp:308</a></div></div> |
| 189 | </div><!-- fragment --> |
| 190 | </div> |
| 191 | </div> |
| 192 | <a id="a5f17e02e0054dac0a691685a0464ed36"></a> |
| 193 | <h2 class="memtitle"><span class="permalink"><a href="#a5f17e02e0054dac0a691685a0464ed36">◆ </a></span>GetFirstLayerWithName()</h2> |
| 194 | |
| 195 | <div class="memitem"> |
| 196 | <div class="memproto"> |
| 197 | <table class="memname"> |
| 198 | <tr> |
| 199 | <td class="memname"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* GetFirstLayerWithName </td> |
| 200 | <td>(</td> |
| 201 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> & </td> |
| 202 | <td class="paramname"><em>graph</em>, </td> |
| 203 | </tr> |
| 204 | <tr> |
| 205 | <td class="paramkey"></td> |
| 206 | <td></td> |
| 207 | <td class="paramtype">const std::string & </td> |
| 208 | <td class="paramname"><em>name</em> </td> |
| 209 | </tr> |
| 210 | <tr> |
| 211 | <td></td> |
| 212 | <td>)</td> |
| 213 | <td></td><td></td> |
| 214 | </tr> |
| 215 | </table> |
| 216 | </div><div class="memdoc"> |
| 217 | |
| 218 | <p class="definition">Definition at line <a class="el" href="_graph_utils_8cpp_source.xhtml#l00020">20</a> of file <a class="el" href="_graph_utils_8cpp_source.xhtml">GraphUtils.cpp</a>.</p> |
| 219 | |
| 220 | <p class="reference">Referenced by <a class="el" href="_graph_tests_8cpp_source.xhtml#l00043">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="armnn_tf_lite_parser_2test_2_detection_post_process_8cpp_source.xhtml#l00226">BOOST_FIXTURE_TEST_CASE()</a>.</p> |
| 221 | <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& layer : graph)</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">if</span> (layer->GetNameStr() == name)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">return</span> layer;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  }</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div></div><!-- fragment --> |
| 222 | </div> |
| 223 | </div> |
| 224 | <a id="ac73a43305233b7e5f70debdb2d14a8d3"></a> |
| 225 | <h2 class="memtitle"><span class="permalink"><a href="#ac73a43305233b7e5f70debdb2d14a8d3">◆ </a></span>GraphHasNamedLayer()</h2> |
| 226 | |
| 227 | <div class="memitem"> |
| 228 | <div class="memproto"> |
| 229 | <table class="memname"> |
| 230 | <tr> |
| 231 | <td class="memname">bool GraphHasNamedLayer </td> |
| 232 | <td>(</td> |
| 233 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> & </td> |
| 234 | <td class="paramname"><em>graph</em>, </td> |
| 235 | </tr> |
| 236 | <tr> |
| 237 | <td class="paramkey"></td> |
| 238 | <td></td> |
| 239 | <td class="paramtype">const std::string & </td> |
| 240 | <td class="paramname"><em>name</em> </td> |
| 241 | </tr> |
| 242 | <tr> |
| 243 | <td></td> |
| 244 | <td>)</td> |
| 245 | <td></td><td></td> |
| 246 | </tr> |
| 247 | </table> |
| 248 | </div><div class="memdoc"> |
| 249 | |
| 250 | <p class="definition">Definition at line <a class="el" href="_graph_utils_8cpp_source.xhtml#l00008">8</a> of file <a class="el" href="_graph_utils_8cpp_source.xhtml">GraphUtils.cpp</a>.</p> |
| 251 | |
| 252 | <p class="reference">Referenced by <a class="el" href="_graph_tests_8cpp_source.xhtml#l00036">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 253 | <div class="fragment"><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> {</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& layer : graph)</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  {</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <span class="keywordflow">if</span> (layer->GetName() == name)</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  }</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  }</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> }</div></div><!-- fragment --> |
| 254 | </div> |
| 255 | </div> |
| 256 | <a id="afd518dba3d52728670459e4ad3bed5e1"></a> |
| 257 | <h2 class="memtitle"><span class="permalink"><a href="#afd518dba3d52728670459e4ad3bed5e1">◆ </a></span>IsConnected()</h2> |
| 258 | |
| 259 | <div class="memitem"> |
| 260 | <div class="memproto"> |
| 261 | <table class="memname"> |
| 262 | <tr> |
| 263 | <td class="memname">bool IsConnected </td> |
| 264 | <td>(</td> |
| 265 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> * </td> |
| 266 | <td class="paramname"><em>srcLayer</em>, </td> |
| 267 | </tr> |
| 268 | <tr> |
| 269 | <td class="paramkey"></td> |
| 270 | <td></td> |
| 271 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> * </td> |
| 272 | <td class="paramname"><em>destLayer</em>, </td> |
| 273 | </tr> |
| 274 | <tr> |
| 275 | <td class="paramkey"></td> |
| 276 | <td></td> |
| 277 | <td class="paramtype">unsigned int </td> |
| 278 | <td class="paramname"><em>srcSlot</em>, </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td class="paramkey"></td> |
| 282 | <td></td> |
| 283 | <td class="paramtype">unsigned int </td> |
| 284 | <td class="paramname"><em>destSlot</em>, </td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td class="paramkey"></td> |
| 288 | <td></td> |
| 289 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> & </td> |
| 290 | <td class="paramname"><em>expectedTensorInfo</em> </td> |
| 291 | </tr> |
| 292 | <tr> |
| 293 | <td></td> |
| 294 | <td>)</td> |
| 295 | <td></td><td></td> |
| 296 | </tr> |
| 297 | </table> |
| 298 | </div><div class="memdoc"> |
| 299 | |
| 300 | <p class="definition">Definition at line <a class="el" href="_graph_utils_8cpp_source.xhtml#l00042">42</a> of file <a class="el" href="_graph_utils_8cpp_source.xhtml">GraphUtils.cpp</a>.</p> |
| 301 | |
| 302 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a9fffb92dc6d2edd5258d574a5862fc83">IOutputSlot::GetConnection()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00216">Layer::GetNameStr()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#aab97b09d9ee85a105883949abcae52f3">IOutputSlot::GetNumConnections()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00312">Layer::GetOutputSlot()</a>, and <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a9943775a364fc4ab53b85ac88f311886">IOutputSlot::GetTensorInfo()</a>.</p> |
| 303 | |
| 304 | <p class="reference">Referenced by <a class="el" href="armnn_tf_lite_parser_2test_2_detection_post_process_8cpp_source.xhtml#l00226">BOOST_FIXTURE_TEST_CASE()</a>.</p> |
| 305 | <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_output_slot.xhtml">armnn::IOutputSlot</a>& outputSlot = srcLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(srcSlot);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a>& tensorInfo = outputSlot.<a class="code" href="classarmnn_1_1_i_output_slot.xhtml#a9943775a364fc4ab53b85ac88f311886">GetTensorInfo</a>();</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> (expectedTensorInfo != tensorInfo)</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numConnections = outputSlot.<a class="code" href="classarmnn_1_1_i_output_slot.xhtml#aab97b09d9ee85a105883949abcae52f3">GetNumConnections</a>();</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; c < numConnections; ++c)</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">auto</span> inputSlot = boost::polymorphic_downcast<const armnn::InputSlot*>(outputSlot.<a class="code" href="classarmnn_1_1_i_output_slot.xhtml#a9fffb92dc6d2edd5258d574a5862fc83">GetConnection</a>(c));</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span> (inputSlot->GetOwningLayer().GetNameStr() == destLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#a9a97cb6d32661a57fc33bd29b8e41ff4">GetNameStr</a>() &&</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  inputSlot->GetSlotIndex() == destSlot)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 306 | <div class="ttc" id="classarmnn_1_1_i_output_slot_xhtml_a9fffb92dc6d2edd5258d574a5862fc83"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.xhtml#a9fffb92dc6d2edd5258d574a5862fc83">armnn::IOutputSlot::GetConnection</a></div><div class="ttdeci">virtual const IInputSlot * GetConnection(unsigned int index) const =0</div></div> |
| 307 | <div class="ttc" id="classarmnn_1_1_i_output_slot_xhtml"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.xhtml">armnn::IOutputSlot</a></div><div class="ttdoc">An output connection slot for a layer. </div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.xhtml#l00037">INetwork.hpp:37</a></div></div> |
| 308 | <div class="ttc" id="classarmnn_1_1_layer_xhtml_a9a97cb6d32661a57fc33bd29b8e41ff4"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#a9a97cb6d32661a57fc33bd29b8e41ff4">armnn::Layer::GetNameStr</a></div><div class="ttdeci">const std::string & GetNameStr() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00216">Layer.hpp:216</a></div></div> |
| 309 | <div class="ttc" id="classarmnn_1_1_layer_xhtml_a0e36688a43c35668d8db5257274c68fe"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">armnn::Layer::GetOutputSlot</a></div><div class="ttdeci">const OutputSlot & GetOutputSlot(unsigned int index=0) const override</div><div class="ttdoc">Get the const output slot handle by slot index. </div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00312">Layer.hpp:312</a></div></div> |
| 310 | <div class="ttc" id="classarmnn_1_1_i_output_slot_xhtml_a9943775a364fc4ab53b85ac88f311886"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.xhtml#a9943775a364fc4ab53b85ac88f311886">armnn::IOutputSlot::GetTensorInfo</a></div><div class="ttdeci">virtual const TensorInfo & GetTensorInfo() const =0</div></div> |
| 311 | <div class="ttc" id="classarmnn_1_1_i_output_slot_xhtml_aab97b09d9ee85a105883949abcae52f3"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.xhtml#aab97b09d9ee85a105883949abcae52f3">armnn::IOutputSlot::GetNumConnections</a></div><div class="ttdeci">virtual unsigned int GetNumConnections() const =0</div></div> |
| 312 | </div><!-- fragment --> |
| 313 | </div> |
| 314 | </div> |
| 315 | </div><!-- contents --> |
| 316 | </div><!-- doc-content --> |
| 317 | <!-- start footer part --> |
| 318 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 319 | <ul> |
| 320 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="dir_9d86fd1fbecbedf5bdb69c7e7235fe5f.xhtml">test</a></li><li class="navelem"><a class="el" href="_graph_utils_8hpp.xhtml">GraphUtils.hpp</a></li> |
| 321 | <li class="footer">Generated on Fri Mar 13 2020 16:09:13 for ArmNN by |
| 322 | <a href="http://www.doxygen.org/index.html"> |
| 323 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 324 | </ul> |
| 325 | </div> |
| 326 | </body> |
| 327 | </html> |