Update ACL pin to 8abbabd6ad946441c8ef1a03896fa98f7801af1f
[platform/upstream/armnn.git] / Documentation / _graph_utils_8cpp.xhtml
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.cpp 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    &#160;<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_8cpp.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.cpp File Reference</div>  </div>
101 </div><!--header-->
102 <div class="contents">
103 <div class="textblock"><code>#include &quot;<a class="el" href="_graph_utils_8hpp_source.xhtml">GraphUtils.hpp</a>&quot;</code><br />
104 </div>
105 <p><a href="_graph_utils_8cpp_source.xhtml">Go to the source code of this file.</a></p>
106 <table class="memberdecls">
107 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
108 Functions</h2></td></tr>
109 <tr class="memitem:ac73a43305233b7e5f70debdb2d14a8d3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8cpp.xhtml#ac73a43305233b7e5f70debdb2d14a8d3">GraphHasNamedLayer</a> (const <a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;graph, const std::string &amp;name)</td></tr>
110 <tr class="separator:ac73a43305233b7e5f70debdb2d14a8d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
111 <tr class="memitem:a5f17e02e0054dac0a691685a0464ed36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8cpp.xhtml#a5f17e02e0054dac0a691685a0464ed36">GetFirstLayerWithName</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;graph, const std::string &amp;name)</td></tr>
112 <tr class="separator:a5f17e02e0054dac0a691685a0464ed36"><td class="memSeparator" colspan="2">&#160;</td></tr>
113 <tr class="memitem:a4c04337db4d5f380219a005657a8223b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8cpp.xhtml#a4c04337db4d5f380219a005657a8223b">CheckNumberOfInputSlot</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *layer, unsigned int num)</td></tr>
114 <tr class="separator:a4c04337db4d5f380219a005657a8223b"><td class="memSeparator" colspan="2">&#160;</td></tr>
115 <tr class="memitem:aada2e27f100807f5786eecb03390ba58"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8cpp.xhtml#aada2e27f100807f5786eecb03390ba58">CheckNumberOfOutputSlot</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *layer, unsigned int num)</td></tr>
116 <tr class="separator:aada2e27f100807f5786eecb03390ba58"><td class="memSeparator" colspan="2">&#160;</td></tr>
117 <tr class="memitem:afd518dba3d52728670459e4ad3bed5e1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_graph_utils_8cpp.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> &amp;expectedTensorInfo)</td></tr>
118 <tr class="separator:afd518dba3d52728670459e4ad3bed5e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
119 </table>
120 <h2 class="groupheader">Function Documentation</h2>
121 <a id="a4c04337db4d5f380219a005657a8223b"></a>
122 <h2 class="memtitle"><span class="permalink"><a href="#a4c04337db4d5f380219a005657a8223b">&#9670;&nbsp;</a></span>CheckNumberOfInputSlot()</h2>
123
124 <div class="memitem">
125 <div class="memproto">
126       <table class="memname">
127         <tr>
128           <td class="memname">bool CheckNumberOfInputSlot </td>
129           <td>(</td>
130           <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *&#160;</td>
131           <td class="paramname"><em>layer</em>, </td>
132         </tr>
133         <tr>
134           <td class="paramkey"></td>
135           <td></td>
136           <td class="paramtype">unsigned int&#160;</td>
137           <td class="paramname"><em>num</em>&#160;</td>
138         </tr>
139         <tr>
140           <td></td>
141           <td>)</td>
142           <td></td><td></td>
143         </tr>
144       </table>
145 </div><div class="memdoc">
146
147 <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>
148
149 <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00307">Layer::GetNumInputSlots()</a>.</p>
150
151 <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>
152 <div class="fragment"><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordflow">return</span> layer-&gt;<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>&#160;}</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>
153 </div><!-- fragment -->
154 </div>
155 </div>
156 <a id="aada2e27f100807f5786eecb03390ba58"></a>
157 <h2 class="memtitle"><span class="permalink"><a href="#aada2e27f100807f5786eecb03390ba58">&#9670;&nbsp;</a></span>CheckNumberOfOutputSlot()</h2>
158
159 <div class="memitem">
160 <div class="memproto">
161       <table class="memname">
162         <tr>
163           <td class="memname">bool CheckNumberOfOutputSlot </td>
164           <td>(</td>
165           <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *&#160;</td>
166           <td class="paramname"><em>layer</em>, </td>
167         </tr>
168         <tr>
169           <td class="paramkey"></td>
170           <td></td>
171           <td class="paramtype">unsigned int&#160;</td>
172           <td class="paramname"><em>num</em>&#160;</td>
173         </tr>
174         <tr>
175           <td></td>
176           <td>)</td>
177           <td></td><td></td>
178         </tr>
179       </table>
180 </div><div class="memdoc">
181
182 <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>
183
184 <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00308">Layer::GetNumOutputSlots()</a>.</p>
185
186 <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>
187 <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;{</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">return</span> layer-&gt;<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>&#160;}</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>
188 </div><!-- fragment -->
189 </div>
190 </div>
191 <a id="a5f17e02e0054dac0a691685a0464ed36"></a>
192 <h2 class="memtitle"><span class="permalink"><a href="#a5f17e02e0054dac0a691685a0464ed36">&#9670;&nbsp;</a></span>GetFirstLayerWithName()</h2>
193
194 <div class="memitem">
195 <div class="memproto">
196       <table class="memname">
197         <tr>
198           <td class="memname"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a>* GetFirstLayerWithName </td>
199           <td>(</td>
200           <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;&#160;</td>
201           <td class="paramname"><em>graph</em>, </td>
202         </tr>
203         <tr>
204           <td class="paramkey"></td>
205           <td></td>
206           <td class="paramtype">const std::string &amp;&#160;</td>
207           <td class="paramname"><em>name</em>&#160;</td>
208         </tr>
209         <tr>
210           <td></td>
211           <td>)</td>
212           <td></td><td></td>
213         </tr>
214       </table>
215 </div><div class="memdoc">
216
217 <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>
218
219 <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>
220 <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp;&amp; layer : graph)</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="keywordflow">if</span> (layer-&gt;GetNameStr() == name)</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;            <span class="keywordflow">return</span> layer;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        }</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    }</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div></div><!-- fragment -->
221 </div>
222 </div>
223 <a id="ac73a43305233b7e5f70debdb2d14a8d3"></a>
224 <h2 class="memtitle"><span class="permalink"><a href="#ac73a43305233b7e5f70debdb2d14a8d3">&#9670;&nbsp;</a></span>GraphHasNamedLayer()</h2>
225
226 <div class="memitem">
227 <div class="memproto">
228       <table class="memname">
229         <tr>
230           <td class="memname">bool GraphHasNamedLayer </td>
231           <td>(</td>
232           <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;&#160;</td>
233           <td class="paramname"><em>graph</em>, </td>
234         </tr>
235         <tr>
236           <td class="paramkey"></td>
237           <td></td>
238           <td class="paramtype">const std::string &amp;&#160;</td>
239           <td class="paramname"><em>name</em>&#160;</td>
240         </tr>
241         <tr>
242           <td></td>
243           <td>)</td>
244           <td></td><td></td>
245         </tr>
246       </table>
247 </div><div class="memdoc">
248
249 <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>
250
251 <p class="reference">Referenced by <a class="el" href="_graph_tests_8cpp_source.xhtml#l00036">BOOST_AUTO_TEST_CASE()</a>.</p>
252 <div class="fragment"><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;{</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp;&amp; layer : graph)</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        <span class="keywordflow">if</span> (layer-&gt;GetName() == name)</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        {</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        }</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    }</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;}</div></div><!-- fragment -->
253 </div>
254 </div>
255 <a id="afd518dba3d52728670459e4ad3bed5e1"></a>
256 <h2 class="memtitle"><span class="permalink"><a href="#afd518dba3d52728670459e4ad3bed5e1">&#9670;&nbsp;</a></span>IsConnected()</h2>
257
258 <div class="memitem">
259 <div class="memproto">
260       <table class="memname">
261         <tr>
262           <td class="memname">bool IsConnected </td>
263           <td>(</td>
264           <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *&#160;</td>
265           <td class="paramname"><em>srcLayer</em>, </td>
266         </tr>
267         <tr>
268           <td class="paramkey"></td>
269           <td></td>
270           <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *&#160;</td>
271           <td class="paramname"><em>destLayer</em>, </td>
272         </tr>
273         <tr>
274           <td class="paramkey"></td>
275           <td></td>
276           <td class="paramtype">unsigned int&#160;</td>
277           <td class="paramname"><em>srcSlot</em>, </td>
278         </tr>
279         <tr>
280           <td class="paramkey"></td>
281           <td></td>
282           <td class="paramtype">unsigned int&#160;</td>
283           <td class="paramname"><em>destSlot</em>, </td>
284         </tr>
285         <tr>
286           <td class="paramkey"></td>
287           <td></td>
288           <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> &amp;&#160;</td>
289           <td class="paramname"><em>expectedTensorInfo</em>&#160;</td>
290         </tr>
291         <tr>
292           <td></td>
293           <td>)</td>
294           <td></td><td></td>
295         </tr>
296       </table>
297 </div><div class="memdoc">
298
299 <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>
300
301 <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>
302
303 <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>
304 <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_output_slot.xhtml">armnn::IOutputSlot</a>&amp; outputSlot = srcLayer-&gt;<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>&#160;    <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a>&amp; 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>&#160;    <span class="keywordflow">if</span> (expectedTensorInfo != tensorInfo)</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    }</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <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>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; c &lt; numConnections; ++c)</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keyword">auto</span> inputSlot = boost::polymorphic_downcast&lt;const armnn::InputSlot*&gt;(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>&#160;        <span class="keywordflow">if</span> (inputSlot-&gt;GetOwningLayer().GetNameStr() == destLayer-&gt;<a class="code" href="classarmnn_1_1_layer.xhtml#a9a97cb6d32661a57fc33bd29b8e41ff4">GetNameStr</a>() &amp;&amp;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            inputSlot-&gt;GetSlotIndex() == destSlot)</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        }</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</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>
305 <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>
306 <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>
307 <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 &amp; GetNameStr() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00216">Layer.hpp:216</a></div></div>
308 <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 &amp; 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>
309 <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 &amp; GetTensorInfo() const =0</div></div>
310 <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>
311 </div><!-- fragment -->
312 </div>
313 </div>
314 </div><!-- contents -->
315 </div><!-- doc-content -->
316 <!-- start footer part -->
317 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
318   <ul>
319     <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_8cpp.xhtml">GraphUtils.cpp</a></li>
320     <li class="footer">Generated on Fri Mar 13 2020 16:09:13 for ArmNN by
321     <a href="http://www.doxygen.org/index.html">
322     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
323   </ul>
324 </div>
325 </body>
326 </html>