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: InputSlot Class 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('classarmnn_1_1_input_slot.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="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="classarmnn_1_1_input_slot-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">InputSlot Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>></code></p> |
| 106 | <div class="dynheader"> |
| 107 | Inheritance diagram for InputSlot:</div> |
| 108 | <div class="dyncontent"> |
| 109 | <div class="center"> |
| 110 | <img src="classarmnn_1_1_input_slot.png" usemap="#InputSlot_map" alt=""/> |
| 111 | <map id="InputSlot_map" name="InputSlot_map"> |
| 112 | <area href="classarmnn_1_1_i_input_slot.xhtml" title="An input connection slot for a layer. " alt="IInputSlot" shape="rect" coords="0,0,63,24"/> |
| 113 | </map> |
| 114 | </div></div> |
| 115 | <table class="memberdecls"> |
| 116 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 117 | Public Member Functions</h2></td></tr> |
| 118 | <tr class="memitem:a86682888c4c0161a95a080ec1fc91892"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a86682888c4c0161a95a080ec1fc91892">InputSlot</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> &owner, unsigned int slotIndex)</td></tr> |
| 119 | <tr class="separator:a86682888c4c0161a95a080ec1fc91892"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a0fe41ea612a97f8cd9b0e3e86d8b53fd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a0fe41ea612a97f8cd9b0e3e86d8b53fd">~InputSlot</a> ()</td></tr> |
| 121 | <tr class="separator:a0fe41ea612a97f8cd9b0e3e86d8b53fd"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a7ddaf04177053a536f0e7be83a642bc6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a7ddaf04177053a536f0e7be83a642bc6">GetOwningLayer</a> () const</td></tr> |
| 123 | <tr class="separator:a7ddaf04177053a536f0e7be83a642bc6"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a3f1b6ae1550775ac9eef0cac0ea4266f"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a3f1b6ae1550775ac9eef0cac0ea4266f">GetSlotIndex</a> () const</td></tr> |
| 125 | <tr class="separator:a3f1b6ae1550775ac9eef0cac0ea4266f"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a9effd325a6d512a3f8ff4bd207d53255"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a> () const</td></tr> |
| 127 | <tr class="separator:a9effd325a6d512a3f8ff4bd207d53255"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:ad5b716c1973e8476e5c338815aaeaac8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#ad5b716c1973e8476e5c338815aaeaac8">GetConnectedOutputSlot</a> ()</td></tr> |
| 129 | <tr class="separator:ad5b716c1973e8476e5c338815aaeaac8"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:ae34c07e230a32ea853faed3fefc804f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#ae34c07e230a32ea853faed3fefc804f3">SetConnection</a> (<a class="el" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a> *source)</td></tr> |
| 131 | <tr class="memdesc:ae34c07e230a32ea853faed3fefc804f3"><td class="mdescLeft"> </td><td class="mdescRight">Links the slot to an output slot or breaks an existing link if passing nullptr. <a href="#ae34c07e230a32ea853faed3fefc804f3">More...</a><br /></td></tr> |
| 132 | <tr class="separator:ae34c07e230a32ea853faed3fefc804f3"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a5a0a7224d93d14db044426a3878dab4d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a5a0a7224d93d14db044426a3878dab4d">Insert</a> (<a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> &layer)</td></tr> |
| 134 | <tr class="separator:a5a0a7224d93d14db044426a3878dab4d"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a3153abb7c0c0a84629079b2fac7db54f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_i_output_slot.xhtml">IOutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#a3153abb7c0c0a84629079b2fac7db54f">GetConnection</a> () const override</td></tr> |
| 136 | <tr class="separator:a3153abb7c0c0a84629079b2fac7db54f"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:afed01ea07472d9b32fac493e05bb0089"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_output_slot.xhtml">IOutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.xhtml#afed01ea07472d9b32fac493e05bb0089">GetConnection</a> () override</td></tr> |
| 138 | <tr class="separator:afed01ea07472d9b32fac493e05bb0089"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | </table><table class="memberdecls"> |
| 140 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 141 | Additional Inherited Members</h2></td></tr> |
| 142 | <tr class="inherit_header pro_methods_classarmnn_1_1_i_input_slot"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_input_slot')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_input_slot.xhtml">IInputSlot</a></td></tr> |
| 143 | <tr class="memitem:af9d1da899b5c925de16bc0a1fb49dc61 inherit pro_methods_classarmnn_1_1_i_input_slot"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_input_slot.xhtml#af9d1da899b5c925de16bc0a1fb49dc61">~IInputSlot</a> ()</td></tr> |
| 144 | <tr class="memdesc:af9d1da899b5c925de16bc0a1fb49dc61 inherit pro_methods_classarmnn_1_1_i_input_slot"><td class="mdescLeft"> </td><td class="mdescRight">Not user deletable. <a href="classarmnn_1_1_i_input_slot.xhtml#af9d1da899b5c925de16bc0a1fb49dc61">More...</a><br /></td></tr> |
| 145 | <tr class="separator:af9d1da899b5c925de16bc0a1fb49dc61 inherit pro_methods_classarmnn_1_1_i_input_slot"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | </table> |
| 147 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 148 | <div class="textblock"> |
| 149 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00041">41</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 150 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 151 | <a id="a86682888c4c0161a95a080ec1fc91892"></a> |
| 152 | <h2 class="memtitle"><span class="permalink"><a href="#a86682888c4c0161a95a080ec1fc91892">◆ </a></span>InputSlot()</h2> |
| 153 | |
| 154 | <div class="memitem"> |
| 155 | <div class="memproto"> |
| 156 | <table class="mlabels"> |
| 157 | <tr> |
| 158 | <td class="mlabels-left"> |
| 159 | <table class="memname"> |
| 160 | <tr> |
| 161 | <td class="memname"><a class="el" href="classarmnn_1_1_input_slot.xhtml">InputSlot</a> </td> |
| 162 | <td>(</td> |
| 163 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> & </td> |
| 164 | <td class="paramname"><em>owner</em>, </td> |
| 165 | </tr> |
| 166 | <tr> |
| 167 | <td class="paramkey"></td> |
| 168 | <td></td> |
| 169 | <td class="paramtype">unsigned int </td> |
| 170 | <td class="paramname"><em>slotIndex</em> </td> |
| 171 | </tr> |
| 172 | <tr> |
| 173 | <td></td> |
| 174 | <td>)</td> |
| 175 | <td></td><td></td> |
| 176 | </tr> |
| 177 | </table> |
| 178 | </td> |
| 179 | <td class="mlabels-right"> |
| 180 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> |
| 181 | </tr> |
| 182 | </table> |
| 183 | </div><div class="memdoc"> |
| 184 | |
| 185 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 186 | |
| 187 | <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00179">InputSlot::~InputSlot()</a>.</p> |
| 188 | <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  : m_OwningLayer(owner)</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  , m_Connection(<span class="keyword">nullptr</span>)</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  , m_SlotIndex(slotIndex)</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {}</div></div><!-- fragment --> |
| 189 | </div> |
| 190 | </div> |
| 191 | <a id="a0fe41ea612a97f8cd9b0e3e86d8b53fd"></a> |
| 192 | <h2 class="memtitle"><span class="permalink"><a href="#a0fe41ea612a97f8cd9b0e3e86d8b53fd">◆ </a></span>~InputSlot()</h2> |
| 193 | |
| 194 | <div class="memitem"> |
| 195 | <div class="memproto"> |
| 196 | <table class="mlabels"> |
| 197 | <tr> |
| 198 | <td class="mlabels-left"> |
| 199 | <table class="memname"> |
| 200 | <tr> |
| 201 | <td class="memname">~<a class="el" href="classarmnn_1_1_input_slot.xhtml">InputSlot</a> </td> |
| 202 | <td>(</td> |
| 203 | <td class="paramname"></td><td>)</td> |
| 204 | <td></td> |
| 205 | </tr> |
| 206 | </table> |
| 207 | </td> |
| 208 | <td class="mlabels-right"> |
| 209 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 210 | </tr> |
| 211 | </table> |
| 212 | </div><div class="memdoc"> |
| 213 | |
| 214 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00179">179</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 215 | |
| 216 | <p class="reference">Referenced by <a class="el" href="_layer_8hpp_source.xhtml#l00044">InputSlot::InputSlot()</a>.</p> |
| 217 | <div class="fragment"><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">if</span> (m_Connection != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  {</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  {</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">// Coverity fix: Disconnect() may throw uncaught exceptions.</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  m_Connection-><a class="code" href="classarmnn_1_1_output_slot.xhtml#ac72a192dfcfa19e6ce826f99b415a11d">Disconnect</a>(*<span class="keyword">this</span>);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception& e)</div><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>  <span class="comment">// Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="comment">// exception of type std::length_error.</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="comment">// Using stderr instead in this context as there is no point in nesting try-catch blocks here.</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  std::cerr << <span class="stringliteral">"WARNING: An error has occurred when disconnecting an input slot: "</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  << e.what() << std::endl;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> }</div><div class="ttc" id="classarmnn_1_1_output_slot_xhtml_ac72a192dfcfa19e6ce826f99b415a11d"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml#ac72a192dfcfa19e6ce826f99b415a11d">armnn::OutputSlot::Disconnect</a></div><div class="ttdeci">void Disconnect(InputSlot &slot)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.xhtml#l00087">Layer.cpp:87</a></div></div> |
| 218 | </div><!-- fragment --> |
| 219 | </div> |
| 220 | </div> |
| 221 | <h2 class="groupheader">Member Function Documentation</h2> |
| 222 | <a id="a9effd325a6d512a3f8ff4bd207d53255"></a> |
| 223 | <h2 class="memtitle"><span class="permalink"><a href="#a9effd325a6d512a3f8ff4bd207d53255">◆ </a></span>GetConnectedOutputSlot() <span class="overload">[1/2]</span></h2> |
| 224 | |
| 225 | <div class="memitem"> |
| 226 | <div class="memproto"> |
| 227 | <table class="mlabels"> |
| 228 | <tr> |
| 229 | <td class="mlabels-left"> |
| 230 | <table class="memname"> |
| 231 | <tr> |
| 232 | <td class="memname">const <a class="el" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>* GetConnectedOutputSlot </td> |
| 233 | <td>(</td> |
| 234 | <td class="paramname"></td><td>)</td> |
| 235 | <td> const</td> |
| 236 | </tr> |
| 237 | </table> |
| 238 | </td> |
| 239 | <td class="mlabels-right"> |
| 240 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 241 | </tr> |
| 242 | </table> |
| 243 | </div><div class="memdoc"> |
| 244 | |
| 245 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00055">55</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 246 | |
| 247 | <p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.xhtml#l01122">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_concat_layer_8cpp_source.xhtml#l00022">ConcatLayer::CreateWorkload()</a>, <a class="el" href="_debug_layer_8cpp_source.xhtml#l00020">DebugLayer::CreateWorkload()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00199">InputSlot::GetConnection()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00020">InputSlot::Insert()</a>, <a class="el" href="_network_utils_8cpp_source.xhtml#l00040">armnn::InsertConvertFp16ToFp32LayersBefore()</a>, <a class="el" href="_network_utils_8cpp_source.xhtml#l00079">armnn::InsertConvertFp32ToFp16LayersAfter()</a>, <a class="el" href="_network_utils_8cpp_source.xhtml#l00112">armnn::InsertDebugLayerAfter()</a>, <a class="el" href="_graph_8hpp_source.xhtml#l00409">Graph::InsertNewLayer()</a>, <a class="el" href="_quantizer_visitor_8cpp_source.xhtml#l00014">QuantizerVisitor::QuantizerVisitor()</a>, <a class="el" href="_fold_pad_into_convolution2d_8hpp_source.xhtml#l00019">FoldPadIntoConvolution2dImpl::Run()</a>, <a class="el" href="_optimize_consecutive_reshapes_8hpp_source.xhtml#l00019">OptimizeConsecutiveReshapesImpl::Run()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8hpp_source.xhtml#l00021">PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run()</a>, <a class="el" href="_optimize_inverse_conversions_8hpp_source.xhtml#l00021">OptimizeInverseConversionsImpl::Run()</a>, <a class="el" href="_move_transpose_up_8hpp_source.xhtml#l00022">MoveTransposeUpImpl::Run()</a>, <a class="el" href="_move_permute_up_8hpp_source.xhtml#l00022">MovePermuteUpImpl::Run()</a>, <a class="el" href="_optimize_inverse_permutes_8hpp_source.xhtml#l00022">OptimizeInversePermutesImpl< PermuteType >::Run()</a>, and <a class="el" href="_squash_equal_siblings_8hpp_source.xhtml#l00024">SquashEqualSiblingsImpl< Comparable >::Run()</a>.</p> |
| 248 | <div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> { <span class="keywordflow">return</span> m_Connection; }</div></div><!-- fragment --> |
| 249 | </div> |
| 250 | </div> |
| 251 | <a id="ad5b716c1973e8476e5c338815aaeaac8"></a> |
| 252 | <h2 class="memtitle"><span class="permalink"><a href="#ad5b716c1973e8476e5c338815aaeaac8">◆ </a></span>GetConnectedOutputSlot() <span class="overload">[2/2]</span></h2> |
| 253 | |
| 254 | <div class="memitem"> |
| 255 | <div class="memproto"> |
| 256 | <table class="mlabels"> |
| 257 | <tr> |
| 258 | <td class="mlabels-left"> |
| 259 | <table class="memname"> |
| 260 | <tr> |
| 261 | <td class="memname"><a class="el" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>* GetConnectedOutputSlot </td> |
| 262 | <td>(</td> |
| 263 | <td class="paramname"></td><td>)</td> |
| 264 | <td></td> |
| 265 | </tr> |
| 266 | </table> |
| 267 | </td> |
| 268 | <td class="mlabels-right"> |
| 269 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 270 | </tr> |
| 271 | </table> |
| 272 | </div><div class="memdoc"> |
| 273 | |
| 274 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00056">56</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 275 | <div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> { <span class="keywordflow">return</span> m_Connection; }</div></div><!-- fragment --> |
| 276 | </div> |
| 277 | </div> |
| 278 | <a id="a3153abb7c0c0a84629079b2fac7db54f"></a> |
| 279 | <h2 class="memtitle"><span class="permalink"><a href="#a3153abb7c0c0a84629079b2fac7db54f">◆ </a></span>GetConnection() <span class="overload">[1/2]</span></h2> |
| 280 | |
| 281 | <div class="memitem"> |
| 282 | <div class="memproto"> |
| 283 | <table class="mlabels"> |
| 284 | <tr> |
| 285 | <td class="mlabels-left"> |
| 286 | <table class="memname"> |
| 287 | <tr> |
| 288 | <td class="memname">const <a class="el" href="classarmnn_1_1_i_output_slot.xhtml">IOutputSlot</a> * GetConnection </td> |
| 289 | <td>(</td> |
| 290 | <td class="paramname"></td><td>)</td> |
| 291 | <td> const</td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | </td> |
| 295 | <td class="mlabels-right"> |
| 296 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 297 | </tr> |
| 298 | </table> |
| 299 | </div><div class="memdoc"> |
| 300 | |
| 301 | <p>Implements <a class="el" href="classarmnn_1_1_i_input_slot.xhtml#a81fbf6103761e55061b62ba989b00f10">IInputSlot</a>.</p> |
| 302 | |
| 303 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00199">199</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 304 | |
| 305 | <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00055">InputSlot::GetConnectedOutputSlot()</a>.</p> |
| 306 | |
| 307 | <p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.xhtml#l00134">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00103">OutputSlot::DisconnectAll()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00273">Layer::GetDataType()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00138">OutputSlot::GetNumConnections()</a>, <a class="el" href="_workload_factory_8cpp_source.xhtml#l00045">IWorkloadFactory::IsLayerSupported()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00112">OutputSlot::MoveAllConnections()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00138">OutputSlot::operator==()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8hpp_source.xhtml#l00021">PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run()</a>, <a class="el" href="_depthwise_convolution2d_layer_8cpp_source.xhtml#l00029">DepthwiseConvolution2dLayer::SerializeLayerParameters()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.xhtml#l00029">Convolution2dLayer::SerializeLayerParameters()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00059">InputSlot::SetConnection()</a>, <a class="el" href="_graph_8cpp_source.xhtml#l00404">Graph::SubstituteSubgraph()</a>, <a class="el" href="_elementwise_base_layer_8cpp_source.xhtml#l00051">ElementwiseBaseLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_quantize_layer_8cpp_source.xhtml#l00032">QuantizeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_activation_layer_8cpp_source.xhtml#l00031">ActivationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_transpose_layer_8cpp_source.xhtml#l00043">TransposeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_stack_layer_8cpp_source.xhtml#l00061">StackLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_abs_layer_8cpp_source.xhtml#l00033">AbsLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_mem_copy_layer_8cpp_source.xhtml#l00036">MemCopyLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_mem_import_layer_8cpp_source.xhtml#l00036">MemImportLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_debug_layer_8cpp_source.xhtml#l00037">DebugLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_merge_layer_8cpp_source.xhtml#l00030">MergeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_normalization_layer_8cpp_source.xhtml#l00032">NormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_permute_layer_8cpp_source.xhtml#l00043">PermuteLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_slice_layer_8cpp_source.xhtml#l00037">SliceLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_softmax_layer_8cpp_source.xhtml#l00032">SoftmaxLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_pooling2d_layer_8cpp_source.xhtml#l00103">Pooling2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_resize_layer_8cpp_source.xhtml#l00056">ResizeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_l2_normalization_layer_8cpp_source.xhtml#l00032">L2NormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_rsqrt_layer_8cpp_source.xhtml#l00033">RsqrtLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_dequantize_layer_8cpp_source.xhtml#l00032">DequantizeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_batch_to_space_nd_layer_8cpp_source.xhtml#l00044">BatchToSpaceNdLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_fake_quantization_layer_8cpp_source.xhtml#l00032">FakeQuantizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_switch_layer_8cpp_source.xhtml#l00030">SwitchLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_floor_layer_8cpp_source.xhtml#l00032">FloorLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_instance_normalization_layer_8cpp_source.xhtml#l00032">InstanceNormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_convert_fp32_to_fp16_layer_8cpp_source.xhtml#l00032">ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_mean_layer_8cpp_source.xhtml#l00041">MeanLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_convert_fp16_to_fp32_layer_8cpp_source.xhtml#l00033">ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_gather_layer_8cpp_source.xhtml#l00032">GatherLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_log_softmax_layer_8cpp_source.xhtml#l00032">LogSoftmaxLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_arg_min_max_layer_8cpp_source.xhtml#l00072">ArgMinMaxLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_elementwise_unary_layer_8cpp_source.xhtml#l00043">ElementwiseUnaryLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_strided_slice_layer_8cpp_source.xhtml#l00076">StridedSliceLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_depth_to_space_layer_8cpp_source.xhtml#l00060">DepthToSpaceLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_comparison_layer_8cpp_source.xhtml#l00058">ComparisonLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_space_to_depth_layer_8cpp_source.xhtml#l00062">SpaceToDepthLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_prelu_layer_8cpp_source.xhtml#l00097">PreluLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.xhtml#l00064">FullyConnectedLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_depthwise_convolution2d_layer_8cpp_source.xhtml#l00122">DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_transpose_convolution2d_layer_8cpp_source.xhtml#l00097">TransposeConvolution2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_space_to_batch_nd_layer_8cpp_source.xhtml#l00069">SpaceToBatchNdLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.xhtml#l00115">Convolution2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_batch_normalization_layer_8cpp_source.xhtml#l00051">BatchNormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_output_layer_8cpp_source.xhtml#l00032">OutputLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_quantized_lstm_layer_8cpp_source.xhtml#l00094">QuantizedLstmLayer::ValidateTensorShapesFromInputs()</a>, and <a class="el" href="_lstm_layer_8cpp_source.xhtml#l00160">LstmLayer::ValidateTensorShapesFromInputs()</a>.</p> |
| 308 | <div class="fragment"><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> { <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>(); }</div><div class="ttc" id="classarmnn_1_1_input_slot_xhtml_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">armnn::InputSlot::GetConnectedOutputSlot</a></div><div class="ttdeci">const OutputSlot * GetConnectedOutputSlot() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00055">Layer.hpp:55</a></div></div> |
| 309 | </div><!-- fragment --> |
| 310 | </div> |
| 311 | </div> |
| 312 | <a id="afed01ea07472d9b32fac493e05bb0089"></a> |
| 313 | <h2 class="memtitle"><span class="permalink"><a href="#afed01ea07472d9b32fac493e05bb0089">◆ </a></span>GetConnection() <span class="overload">[2/2]</span></h2> |
| 314 | |
| 315 | <div class="memitem"> |
| 316 | <div class="memproto"> |
| 317 | <table class="mlabels"> |
| 318 | <tr> |
| 319 | <td class="mlabels-left"> |
| 320 | <table class="memname"> |
| 321 | <tr> |
| 322 | <td class="memname"><a class="el" href="classarmnn_1_1_i_output_slot.xhtml">IOutputSlot</a> * GetConnection </td> |
| 323 | <td>(</td> |
| 324 | <td class="paramname"></td><td>)</td> |
| 325 | <td></td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </td> |
| 329 | <td class="mlabels-right"> |
| 330 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 331 | </tr> |
| 332 | </table> |
| 333 | </div><div class="memdoc"> |
| 334 | |
| 335 | <p>Implements <a class="el" href="classarmnn_1_1_i_input_slot.xhtml#a15243d9b0df87810b0f3416029e74671">IInputSlot</a>.</p> |
| 336 | |
| 337 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00200">200</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 338 | |
| 339 | <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00055">InputSlot::GetConnectedOutputSlot()</a>.</p> |
| 340 | <div class="fragment"><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> { <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>(); }</div><div class="ttc" id="classarmnn_1_1_input_slot_xhtml_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">armnn::InputSlot::GetConnectedOutputSlot</a></div><div class="ttdeci">const OutputSlot * GetConnectedOutputSlot() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00055">Layer.hpp:55</a></div></div> |
| 341 | </div><!-- fragment --> |
| 342 | </div> |
| 343 | </div> |
| 344 | <a id="a7ddaf04177053a536f0e7be83a642bc6"></a> |
| 345 | <h2 class="memtitle"><span class="permalink"><a href="#a7ddaf04177053a536f0e7be83a642bc6">◆ </a></span>GetOwningLayer()</h2> |
| 346 | |
| 347 | <div class="memitem"> |
| 348 | <div class="memproto"> |
| 349 | <table class="mlabels"> |
| 350 | <tr> |
| 351 | <td class="mlabels-left"> |
| 352 | <table class="memname"> |
| 353 | <tr> |
| 354 | <td class="memname"><a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a>& GetOwningLayer </td> |
| 355 | <td>(</td> |
| 356 | <td class="paramname"></td><td>)</td> |
| 357 | <td> const</td> |
| 358 | </tr> |
| 359 | </table> |
| 360 | </td> |
| 361 | <td class="mlabels-right"> |
| 362 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 363 | </tr> |
| 364 | </table> |
| 365 | </div><div class="memdoc"> |
| 366 | |
| 367 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00052">52</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 368 | |
| 369 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.xhtml#l00263">Graph::AddCompatibilityLayers()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00125">OutputSlot::CalculateIndexOnOwner()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00162">OutputSlot::GetOwningLayerGuid()</a>, <a class="el" href="_graph_8hpp_source.xhtml#l00409">Graph::InsertNewLayer()</a>, <a class="el" href="_optimize_consecutive_reshapes_8hpp_source.xhtml#l00019">OptimizeConsecutiveReshapesImpl::Run()</a>, <a class="el" href="_fold_pad_into_convolution2d_8hpp_source.xhtml#l00019">FoldPadIntoConvolution2dImpl::Run()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8hpp_source.xhtml#l00021">PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run()</a>, <a class="el" href="_optimize_inverse_conversions_8hpp_source.xhtml#l00021">OptimizeInverseConversionsImpl::Run()</a>, <a class="el" href="_move_transpose_up_8hpp_source.xhtml#l00022">MoveTransposeUpImpl::Run()</a>, <a class="el" href="_optimize_inverse_permutes_8hpp_source.xhtml#l00022">OptimizeInversePermutesImpl< PermuteType >::Run()</a>, <a class="el" href="_move_permute_up_8hpp_source.xhtml#l00022">MovePermuteUpImpl::Run()</a>, and <a class="el" href="_squash_equal_siblings_8hpp_source.xhtml#l00024">SquashEqualSiblingsImpl< Comparable >::Run()</a>.</p> |
| 370 | <div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> { <span class="keywordflow">return</span> m_OwningLayer; }</div></div><!-- fragment --> |
| 371 | </div> |
| 372 | </div> |
| 373 | <a id="a3f1b6ae1550775ac9eef0cac0ea4266f"></a> |
| 374 | <h2 class="memtitle"><span class="permalink"><a href="#a3f1b6ae1550775ac9eef0cac0ea4266f">◆ </a></span>GetSlotIndex()</h2> |
| 375 | |
| 376 | <div class="memitem"> |
| 377 | <div class="memproto"> |
| 378 | <table class="mlabels"> |
| 379 | <tr> |
| 380 | <td class="mlabels-left"> |
| 381 | <table class="memname"> |
| 382 | <tr> |
| 383 | <td class="memname">unsigned int GetSlotIndex </td> |
| 384 | <td>(</td> |
| 385 | <td class="paramname"></td><td>)</td> |
| 386 | <td> const</td> |
| 387 | </tr> |
| 388 | </table> |
| 389 | </td> |
| 390 | <td class="mlabels-right"> |
| 391 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 392 | </tr> |
| 393 | </table> |
| 394 | </div><div class="memdoc"> |
| 395 | |
| 396 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00053">53</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 397 | |
| 398 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.xhtml#l00263">Graph::AddCompatibilityLayers()</a>.</p> |
| 399 | <div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> { <span class="keywordflow">return</span> m_SlotIndex; }</div></div><!-- fragment --> |
| 400 | </div> |
| 401 | </div> |
| 402 | <a id="a5a0a7224d93d14db044426a3878dab4d"></a> |
| 403 | <h2 class="memtitle"><span class="permalink"><a href="#a5a0a7224d93d14db044426a3878dab4d">◆ </a></span>Insert()</h2> |
| 404 | |
| 405 | <div class="memitem"> |
| 406 | <div class="memproto"> |
| 407 | <table class="memname"> |
| 408 | <tr> |
| 409 | <td class="memname">void Insert </td> |
| 410 | <td>(</td> |
| 411 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> & </td> |
| 412 | <td class="paramname"><em>layer</em></td><td>)</td> |
| 413 | <td></td> |
| 414 | </tr> |
| 415 | </table> |
| 416 | </div><div class="memdoc"> |
| 417 | |
| 418 | <p class="definition">Definition at line <a class="el" href="_layer_8cpp_source.xhtml#l00020">20</a> of file <a class="el" href="_layer_8cpp_source.xhtml">Layer.cpp</a>.</p> |
| 419 | |
| 420 | <p class="reference">References <a class="el" href="_layer_8cpp_source.xhtml#l00079">OutputSlot::Connect()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00055">InputSlot::GetConnectedOutputSlot()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00310">Layer::GetInputSlot()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00307">Layer::GetNumInputSlots()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00308">Layer::GetNumOutputSlots()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00221">Layer::GetOutputHandler()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00312">Layer::GetOutputSlot()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00177">OutputSlot::SetEdgeStrategy()</a>, <a class="el" href="_output_handler_8cpp_source.xhtml#l00017">OutputHandler::SetTensorInfo()</a>, and <a class="el" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">armnn::Undefined</a>.</p> |
| 421 | |
| 422 | <p class="reference">Referenced by <a class="el" href="_graph_8hpp_source.xhtml#l00409">Graph::InsertNewLayer()</a>, and <a class="el" href="_layer_8hpp_source.xhtml#l00059">InputSlot::SetConnection()</a>.</p> |
| 423 | <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>  BOOST_ASSERT(layer.GetNumOutputSlots() == 1);</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>  OutputSlot* <span class="keyword">const</span> prevSlot = <a class="code" href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>();</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">if</span> (prevSlot != <span class="keyword">nullptr</span>)</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>  <span class="comment">// Disconnects parent from this.</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  prevSlot->Disconnect(*<span class="keyword">this</span>);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">// Connects inserted layer to parent.</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  BOOST_ASSERT(layer.GetNumInputSlots() == 1);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordtype">int</span> idx = prevSlot->Connect(layer.GetInputSlot(0));</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  prevSlot->SetEdgeStrategy(boost::numeric_cast<unsigned int>(idx), <a class="code" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">EdgeStrategy::Undefined</a>);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// Sets tensor info for inserted layer.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">const</span> TensorInfo& tensorInfo = prevSlot->GetTensorInfo();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  layer.GetOutputHandler().SetTensorInfo(tensorInfo);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// Connects inserted layer to this.</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  layer.GetOutputSlot(0).Connect(*<span class="keyword">this</span>);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  layer.GetOutputSlot(0).SetEdgeStrategy(0, <a class="code" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">EdgeStrategy::Undefined</a>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360"><div class="ttname"><a href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">armnn::Compute::Undefined</a></div></div> |
| 424 | <div class="ttc" id="classarmnn_1_1_input_slot_xhtml_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">armnn::InputSlot::GetConnectedOutputSlot</a></div><div class="ttdeci">const OutputSlot * GetConnectedOutputSlot() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00055">Layer.hpp:55</a></div></div> |
| 425 | </div><!-- fragment --> |
| 426 | </div> |
| 427 | </div> |
| 428 | <a id="ae34c07e230a32ea853faed3fefc804f3"></a> |
| 429 | <h2 class="memtitle"><span class="permalink"><a href="#ae34c07e230a32ea853faed3fefc804f3">◆ </a></span>SetConnection()</h2> |
| 430 | |
| 431 | <div class="memitem"> |
| 432 | <div class="memproto"> |
| 433 | <table class="mlabels"> |
| 434 | <tr> |
| 435 | <td class="mlabels-left"> |
| 436 | <table class="memname"> |
| 437 | <tr> |
| 438 | <td class="memname">void SetConnection </td> |
| 439 | <td>(</td> |
| 440 | <td class="paramtype"><a class="el" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a> * </td> |
| 441 | <td class="paramname"><em>source</em></td><td>)</td> |
| 442 | <td></td> |
| 443 | </tr> |
| 444 | </table> |
| 445 | </td> |
| 446 | <td class="mlabels-right"> |
| 447 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 448 | </tr> |
| 449 | </table> |
| 450 | </div><div class="memdoc"> |
| 451 | |
| 452 | <p>Links the slot to an output slot or breaks an existing link if passing nullptr. </p> |
| 453 | |
| 454 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.xhtml#l00059">59</a> of file <a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>.</p> |
| 455 | |
| 456 | <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00199">InputSlot::GetConnection()</a>, and <a class="el" href="_layer_8cpp_source.xhtml#l00020">InputSlot::Insert()</a>.</p> |
| 457 | |
| 458 | <p class="reference">Referenced by <a class="el" href="_layer_8cpp_source.xhtml#l00079">OutputSlot::Connect()</a>, and <a class="el" href="_layer_8cpp_source.xhtml#l00087">OutputSlot::Disconnect()</a>.</p> |
| 459 | <div class="fragment"><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>  <span class="keywordflow">if</span> (m_Connection != <span class="keyword">nullptr</span> && source != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">throw</span> InvalidArgumentException(<span class="stringliteral">"Tried to connect an output slot to an input slot, "</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="stringliteral">"but the latter already has a connection"</span>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  m_Connection = source;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div></div><!-- fragment --> |
| 460 | </div> |
| 461 | </div> |
| 462 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 463 | <li>src/armnn/<a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a></li> |
| 464 | <li>src/armnn/<a class="el" href="_layer_8cpp_source.xhtml">Layer.cpp</a></li> |
| 465 | </ul> |
| 466 | </div><!-- contents --> |
| 467 | </div><!-- doc-content --> |
| 468 | <!-- start footer part --> |
| 469 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 470 | <ul> |
| 471 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_input_slot.xhtml">InputSlot</a></li> |
| 472 | <li class="footer">Generated on Fri Mar 13 2020 16:09:18 for ArmNN by |
| 473 | <a href="http://www.doxygen.org/index.html"> |
| 474 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 475 | </ul> |
| 476 | </div> |
| 477 | </body> |
| 478 | </html> |