Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: InputSlot Class Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_1_1_input_slot.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="classarmnn_1_1_input_slot-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">InputSlot Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for InputSlot:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1_input_slot.png" usemap="#InputSlot_map" alt=""/> |
| 97 | <map id="InputSlot_map" name="InputSlot_map"> |
| 98 | <area href="classarmnn_1_1_i_input_slot.html" title="An input connection slot for a layer. The input slot can be connected to an output slot of the preced..." alt="IInputSlot" shape="rect" coords="0,0,63,24"/> |
| 99 | </map> |
| 100 | </div></div> |
| 101 | <table class="memberdecls"> |
| 102 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 103 | Public Member Functions</h2></td></tr> |
| 104 | <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.html#a86682888c4c0161a95a080ec1fc91892">InputSlot</a> (<a class="el" href="classarmnn_1_1_layer.html">Layer</a> &owner, unsigned int slotIndex)</td></tr> |
| 105 | <tr class="separator:a86682888c4c0161a95a080ec1fc91892"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <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.html#a0fe41ea612a97f8cd9b0e3e86d8b53fd">~InputSlot</a> ()</td></tr> |
| 107 | <tr class="separator:a0fe41ea612a97f8cd9b0e3e86d8b53fd"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a7ddaf04177053a536f0e7be83a642bc6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_layer.html">Layer</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.html#a7ddaf04177053a536f0e7be83a642bc6">GetOwningLayer</a> () const</td></tr> |
| 109 | <tr class="separator:a7ddaf04177053a536f0e7be83a642bc6"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <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.html#a3f1b6ae1550775ac9eef0cac0ea4266f">GetSlotIndex</a> () const</td></tr> |
| 111 | <tr class="separator:a3f1b6ae1550775ac9eef0cac0ea4266f"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a9effd325a6d512a3f8ff4bd207d53255"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.html#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a> () const</td></tr> |
| 113 | <tr class="separator:a9effd325a6d512a3f8ff4bd207d53255"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:ad5b716c1973e8476e5c338815aaeaac8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.html#ad5b716c1973e8476e5c338815aaeaac8">GetConnectedOutputSlot</a> ()</td></tr> |
| 115 | <tr class="separator:ad5b716c1973e8476e5c338815aaeaac8"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <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.html#ae34c07e230a32ea853faed3fefc804f3">SetConnection</a> (<a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> *source)</td></tr> |
| 117 | <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> |
| 118 | <tr class="separator:ae34c07e230a32ea853faed3fefc804f3"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <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.html#a5a0a7224d93d14db044426a3878dab4d">Insert</a> (<a class="el" href="classarmnn_1_1_layer.html">Layer</a> &layer)</td></tr> |
| 120 | <tr class="separator:a5a0a7224d93d14db044426a3878dab4d"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a3153abb7c0c0a84629079b2fac7db54f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.html#a3153abb7c0c0a84629079b2fac7db54f">GetConnection</a> () const override</td></tr> |
| 122 | <tr class="separator:a3153abb7c0c0a84629079b2fac7db54f"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:afed01ea07472d9b32fac493e05bb0089"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_input_slot.html#afed01ea07472d9b32fac493e05bb0089">GetConnection</a> () override</td></tr> |
| 124 | <tr class="separator:afed01ea07472d9b32fac493e05bb0089"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | </table><table class="memberdecls"> |
| 126 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 127 | Additional Inherited Members</h2></td></tr> |
| 128 | <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.html">IInputSlot</a></td></tr> |
| 129 | <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.html#af9d1da899b5c925de16bc0a1fb49dc61">~IInputSlot</a> ()</td></tr> |
| 130 | <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.html#af9d1da899b5c925de16bc0a1fb49dc61">More...</a><br /></td></tr> |
| 131 | <tr class="separator:af9d1da899b5c925de16bc0a1fb49dc61 inherit pro_methods_classarmnn_1_1_i_input_slot"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | </table> |
| 133 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 134 | <div class="textblock"> |
| 135 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00041">41</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 136 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 137 | <a id="a86682888c4c0161a95a080ec1fc91892"></a> |
| 138 | <h2 class="memtitle"><span class="permalink"><a href="#a86682888c4c0161a95a080ec1fc91892">◆ </a></span>InputSlot()</h2> |
| 139 | |
| 140 | <div class="memitem"> |
| 141 | <div class="memproto"> |
| 142 | <table class="mlabels"> |
| 143 | <tr> |
| 144 | <td class="mlabels-left"> |
| 145 | <table class="memname"> |
| 146 | <tr> |
| 147 | <td class="memname"><a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> </td> |
| 148 | <td>(</td> |
| 149 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.html">Layer</a> & </td> |
| 150 | <td class="paramname"><em>owner</em>, </td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td class="paramkey"></td> |
| 154 | <td></td> |
| 155 | <td class="paramtype">unsigned int </td> |
| 156 | <td class="paramname"><em>slotIndex</em> </td> |
| 157 | </tr> |
| 158 | <tr> |
| 159 | <td></td> |
| 160 | <td>)</td> |
| 161 | <td></td><td></td> |
| 162 | </tr> |
| 163 | </table> |
| 164 | </td> |
| 165 | <td class="mlabels-right"> |
| 166 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </div><div class="memdoc"> |
| 170 | |
| 171 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00044">44</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 172 | |
| 173 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00179">InputSlot::~InputSlot()</a>.</p> |
| 174 | <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 --> |
| 175 | </div> |
| 176 | </div> |
| 177 | <a id="a0fe41ea612a97f8cd9b0e3e86d8b53fd"></a> |
| 178 | <h2 class="memtitle"><span class="permalink"><a href="#a0fe41ea612a97f8cd9b0e3e86d8b53fd">◆ </a></span>~InputSlot()</h2> |
| 179 | |
| 180 | <div class="memitem"> |
| 181 | <div class="memproto"> |
| 182 | <table class="mlabels"> |
| 183 | <tr> |
| 184 | <td class="mlabels-left"> |
| 185 | <table class="memname"> |
| 186 | <tr> |
| 187 | <td class="memname">~<a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> </td> |
| 188 | <td>(</td> |
| 189 | <td class="paramname"></td><td>)</td> |
| 190 | <td></td> |
| 191 | </tr> |
| 192 | </table> |
| 193 | </td> |
| 194 | <td class="mlabels-right"> |
| 195 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </div><div class="memdoc"> |
| 199 | |
| 200 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00179">179</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 201 | |
| 202 | <p class="reference">Referenced by <a class="el" href="_layer_8hpp_source.html#l00044">InputSlot::InputSlot()</a>.</p> |
| 203 | <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.html#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_html_ac72a192dfcfa19e6ce826f99b415a11d"><div class="ttname"><a href="classarmnn_1_1_output_slot.html#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.html#l00087">Layer.cpp:87</a></div></div> |
| 204 | </div><!-- fragment --> |
| 205 | </div> |
| 206 | </div> |
| 207 | <h2 class="groupheader">Member Function Documentation</h2> |
| 208 | <a id="a9effd325a6d512a3f8ff4bd207d53255"></a> |
| 209 | <h2 class="memtitle"><span class="permalink"><a href="#a9effd325a6d512a3f8ff4bd207d53255">◆ </a></span>GetConnectedOutputSlot() <span class="overload">[1/2]</span></h2> |
| 210 | |
| 211 | <div class="memitem"> |
| 212 | <div class="memproto"> |
| 213 | <table class="mlabels"> |
| 214 | <tr> |
| 215 | <td class="mlabels-left"> |
| 216 | <table class="memname"> |
| 217 | <tr> |
| 218 | <td class="memname">const <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a>* GetConnectedOutputSlot </td> |
| 219 | <td>(</td> |
| 220 | <td class="paramname"></td><td>)</td> |
| 221 | <td> const</td> |
| 222 | </tr> |
| 223 | </table> |
| 224 | </td> |
| 225 | <td class="mlabels-right"> |
| 226 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 227 | </tr> |
| 228 | </table> |
| 229 | </div><div class="memdoc"> |
| 230 | |
| 231 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00055">55</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 232 | |
| 233 | <p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.html#l01122">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_concat_layer_8cpp_source.html#l00022">ConcatLayer::CreateWorkload()</a>, <a class="el" href="_debug_layer_8cpp_source.html#l00021">DebugLayer::CreateWorkload()</a>, <a class="el" href="_layer_8hpp_source.html#l00199">InputSlot::GetConnection()</a>, <a class="el" href="_layer_8cpp_source.html#l00020">InputSlot::Insert()</a>, <a class="el" href="_network_utils_8cpp_source.html#l00040">armnn::InsertConvertFp16ToFp32LayersBefore()</a>, <a class="el" href="_network_utils_8cpp_source.html#l00079">armnn::InsertConvertFp32ToFp16LayersAfter()</a>, <a class="el" href="_network_utils_8cpp_source.html#l00112">armnn::InsertDebugLayerAfter()</a>, <a class="el" href="_graph_8hpp_source.html#l00409">Graph::InsertNewLayer()</a>, <a class="el" href="_quantizer_visitor_8cpp_source.html#l00014">QuantizerVisitor::QuantizerVisitor()</a>, <a class="el" href="_fold_pad_into_convolution2d_8hpp_source.html#l00019">FoldPadIntoConvolution2dImpl::Run()</a>, <a class="el" href="_optimize_consecutive_reshapes_8hpp_source.html#l00019">OptimizeConsecutiveReshapesImpl::Run()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8cpp_source.html#l00011">PermuteAndBatchToSpaceAsDepthToSpaceImpl::Run()</a>, <a class="el" href="_optimize_inverse_permutes_8hpp_source.html#l00021">OptimizeInversePermutesImpl::Run()</a>, <a class="el" href="_optimize_inverse_conversions_8hpp_source.html#l00021">OptimizeInverseConversionsImpl::Run()</a>, <a class="el" href="_move_permute_up_8hpp_source.html#l00022">MovePermuteUpImpl::Run()</a>, and <a class="el" href="_squash_equal_siblings_8hpp_source.html#l00024">SquashEqualSiblingsImpl< Comparable >::Run()</a>.</p> |
| 234 | <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 --> |
| 235 | </div> |
| 236 | </div> |
| 237 | <a id="ad5b716c1973e8476e5c338815aaeaac8"></a> |
| 238 | <h2 class="memtitle"><span class="permalink"><a href="#ad5b716c1973e8476e5c338815aaeaac8">◆ </a></span>GetConnectedOutputSlot() <span class="overload">[2/2]</span></h2> |
| 239 | |
| 240 | <div class="memitem"> |
| 241 | <div class="memproto"> |
| 242 | <table class="mlabels"> |
| 243 | <tr> |
| 244 | <td class="mlabels-left"> |
| 245 | <table class="memname"> |
| 246 | <tr> |
| 247 | <td class="memname"><a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a>* GetConnectedOutputSlot </td> |
| 248 | <td>(</td> |
| 249 | <td class="paramname"></td><td>)</td> |
| 250 | <td></td> |
| 251 | </tr> |
| 252 | </table> |
| 253 | </td> |
| 254 | <td class="mlabels-right"> |
| 255 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00056">56</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 261 | <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 --> |
| 262 | </div> |
| 263 | </div> |
| 264 | <a id="a3153abb7c0c0a84629079b2fac7db54f"></a> |
| 265 | <h2 class="memtitle"><span class="permalink"><a href="#a3153abb7c0c0a84629079b2fac7db54f">◆ </a></span>GetConnection() <span class="overload">[1/2]</span></h2> |
| 266 | |
| 267 | <div class="memitem"> |
| 268 | <div class="memproto"> |
| 269 | <table class="mlabels"> |
| 270 | <tr> |
| 271 | <td class="mlabels-left"> |
| 272 | <table class="memname"> |
| 273 | <tr> |
| 274 | <td class="memname">const <a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * GetConnection </td> |
| 275 | <td>(</td> |
| 276 | <td class="paramname"></td><td>)</td> |
| 277 | <td> const</td> |
| 278 | </tr> |
| 279 | </table> |
| 280 | </td> |
| 281 | <td class="mlabels-right"> |
| 282 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 283 | </tr> |
| 284 | </table> |
| 285 | </div><div class="memdoc"> |
| 286 | |
| 287 | <p>Implements <a class="el" href="classarmnn_1_1_i_input_slot.html#a81fbf6103761e55061b62ba989b00f10">IInputSlot</a>.</p> |
| 288 | |
| 289 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00199">199</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 290 | |
| 291 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00055">InputSlot::GetConnectedOutputSlot()</a>.</p> |
| 292 | |
| 293 | <p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.html#l00134">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_layer_8cpp_source.html#l00103">OutputSlot::DisconnectAll()</a>, <a class="el" href="_layer_8cpp_source.html#l00272">Layer::GetDataType()</a>, <a class="el" href="_layer_8hpp_source.html#l00138">OutputSlot::GetNumConnections()</a>, <a class="el" href="_workload_factory_8cpp_source.html#l00045">IWorkloadFactory::IsLayerSupported()</a>, <a class="el" href="_layer_8cpp_source.html#l00112">OutputSlot::MoveAllConnections()</a>, <a class="el" href="_layer_8cpp_source.html#l00138">OutputSlot::operator==()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8cpp_source.html#l00011">PermuteAndBatchToSpaceAsDepthToSpaceImpl::Run()</a>, <a class="el" href="_depthwise_convolution2d_layer_8cpp_source.html#l00029">DepthwiseConvolution2dLayer::SerializeLayerParameters()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00029">Convolution2dLayer::SerializeLayerParameters()</a>, <a class="el" href="_layer_8hpp_source.html#l00059">InputSlot::SetConnection()</a>, <a class="el" href="_graph_8cpp_source.html#l00404">Graph::SubstituteSubgraph()</a>, <a class="el" href="_elementwise_base_layer_8cpp_source.html#l00051">ElementwiseBaseLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_quantize_layer_8cpp_source.html#l00032">QuantizeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_activation_layer_8cpp_source.html#l00031">ActivationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_abs_layer_8cpp_source.html#l00033">AbsLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_mem_copy_layer_8cpp_source.html#l00036">MemCopyLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_mem_import_layer_8cpp_source.html#l00036">MemImportLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_debug_layer_8cpp_source.html#l00038">DebugLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_merge_layer_8cpp_source.html#l00030">MergeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_normalization_layer_8cpp_source.html#l00032">NormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_permute_layer_8cpp_source.html#l00043">PermuteLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_slice_layer_8cpp_source.html#l00037">SliceLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_pooling2d_layer_8cpp_source.html#l00103">Pooling2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_resize_layer_8cpp_source.html#l00056">ResizeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_rsqrt_layer_8cpp_source.html#l00033">RsqrtLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_dequantize_layer_8cpp_source.html#l00032">DequantizeLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_l2_normalization_layer_8cpp_source.html#l00032">L2NormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_softmax_layer_8cpp_source.html#l00032">SoftmaxLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_stack_layer_8cpp_source.html#l00061">StackLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_floor_layer_8cpp_source.html#l00032">FloorLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_batch_to_space_nd_layer_8cpp_source.html#l00044">BatchToSpaceNdLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_fake_quantization_layer_8cpp_source.html#l00032">FakeQuantizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_switch_layer_8cpp_source.html#l00030">SwitchLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_instance_normalization_layer_8cpp_source.html#l00032">InstanceNormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_convert_fp32_to_fp16_layer_8cpp_source.html#l00032">ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_log_softmax_layer_8cpp_source.html#l00032">LogSoftmaxLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_mean_layer_8cpp_source.html#l00041">MeanLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_gather_layer_8cpp_source.html#l00032">GatherLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_convert_fp16_to_fp32_layer_8cpp_source.html#l00033">ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_arg_min_max_layer_8cpp_source.html#l00072">ArgMinMaxLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_strided_slice_layer_8cpp_source.html#l00076">StridedSliceLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_elementwise_unary_layer_8cpp_source.html#l00043">ElementwiseUnaryLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_space_to_depth_layer_8cpp_source.html#l00064">SpaceToDepthLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_depth_to_space_layer_8cpp_source.html#l00060">DepthToSpaceLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_prelu_layer_8cpp_source.html#l00097">PreluLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_space_to_batch_nd_layer_8cpp_source.html#l00069">SpaceToBatchNdLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_depthwise_convolution2d_layer_8cpp_source.html#l00122">DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_transpose_convolution2d_layer_8cpp_source.html#l00097">TransposeConvolution2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_comparison_layer_8cpp_source.html#l00058">ComparisonLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.html#l00064">FullyConnectedLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00115">Convolution2dLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_batch_normalization_layer_8cpp_source.html#l00051">BatchNormalizationLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_output_layer_8cpp_source.html#l00033">OutputLayer::ValidateTensorShapesFromInputs()</a>, <a class="el" href="_quantized_lstm_layer_8cpp_source.html#l00094">QuantizedLstmLayer::ValidateTensorShapesFromInputs()</a>, and <a class="el" href="_lstm_layer_8cpp_source.html#l00160">LstmLayer::ValidateTensorShapesFromInputs()</a>.</p> |
| 294 | <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.html#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>(); }</div><div class="ttc" id="classarmnn_1_1_input_slot_html_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.html#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.html#l00055">Layer.hpp:55</a></div></div> |
| 295 | </div><!-- fragment --> |
| 296 | </div> |
| 297 | </div> |
| 298 | <a id="afed01ea07472d9b32fac493e05bb0089"></a> |
| 299 | <h2 class="memtitle"><span class="permalink"><a href="#afed01ea07472d9b32fac493e05bb0089">◆ </a></span>GetConnection() <span class="overload">[2/2]</span></h2> |
| 300 | |
| 301 | <div class="memitem"> |
| 302 | <div class="memproto"> |
| 303 | <table class="mlabels"> |
| 304 | <tr> |
| 305 | <td class="mlabels-left"> |
| 306 | <table class="memname"> |
| 307 | <tr> |
| 308 | <td class="memname"><a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * GetConnection </td> |
| 309 | <td>(</td> |
| 310 | <td class="paramname"></td><td>)</td> |
| 311 | <td></td> |
| 312 | </tr> |
| 313 | </table> |
| 314 | </td> |
| 315 | <td class="mlabels-right"> |
| 316 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 317 | </tr> |
| 318 | </table> |
| 319 | </div><div class="memdoc"> |
| 320 | |
| 321 | <p>Implements <a class="el" href="classarmnn_1_1_i_input_slot.html#a15243d9b0df87810b0f3416029e74671">IInputSlot</a>.</p> |
| 322 | |
| 323 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00200">200</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 324 | |
| 325 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00055">InputSlot::GetConnectedOutputSlot()</a>.</p> |
| 326 | <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.html#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>(); }</div><div class="ttc" id="classarmnn_1_1_input_slot_html_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.html#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.html#l00055">Layer.hpp:55</a></div></div> |
| 327 | </div><!-- fragment --> |
| 328 | </div> |
| 329 | </div> |
| 330 | <a id="a7ddaf04177053a536f0e7be83a642bc6"></a> |
| 331 | <h2 class="memtitle"><span class="permalink"><a href="#a7ddaf04177053a536f0e7be83a642bc6">◆ </a></span>GetOwningLayer()</h2> |
| 332 | |
| 333 | <div class="memitem"> |
| 334 | <div class="memproto"> |
| 335 | <table class="mlabels"> |
| 336 | <tr> |
| 337 | <td class="mlabels-left"> |
| 338 | <table class="memname"> |
| 339 | <tr> |
| 340 | <td class="memname"><a class="el" href="classarmnn_1_1_layer.html">Layer</a>& GetOwningLayer </td> |
| 341 | <td>(</td> |
| 342 | <td class="paramname"></td><td>)</td> |
| 343 | <td> const</td> |
| 344 | </tr> |
| 345 | </table> |
| 346 | </td> |
| 347 | <td class="mlabels-right"> |
| 348 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 349 | </tr> |
| 350 | </table> |
| 351 | </div><div class="memdoc"> |
| 352 | |
| 353 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00052">52</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 354 | |
| 355 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.html#l00263">Graph::AddCompatibilityLayers()</a>, <a class="el" href="_layer_8cpp_source.html#l00125">OutputSlot::CalculateIndexOnOwner()</a>, <a class="el" href="_layer_8cpp_source.html#l00162">OutputSlot::GetOwningLayerGuid()</a>, <a class="el" href="_graph_8hpp_source.html#l00409">Graph::InsertNewLayer()</a>, <a class="el" href="_fold_pad_into_convolution2d_8hpp_source.html#l00019">FoldPadIntoConvolution2dImpl::Run()</a>, <a class="el" href="_optimize_consecutive_reshapes_8hpp_source.html#l00019">OptimizeConsecutiveReshapesImpl::Run()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8cpp_source.html#l00011">PermuteAndBatchToSpaceAsDepthToSpaceImpl::Run()</a>, <a class="el" href="_optimize_inverse_permutes_8hpp_source.html#l00021">OptimizeInversePermutesImpl::Run()</a>, <a class="el" href="_optimize_inverse_conversions_8hpp_source.html#l00021">OptimizeInverseConversionsImpl::Run()</a>, <a class="el" href="_move_permute_up_8hpp_source.html#l00022">MovePermuteUpImpl::Run()</a>, and <a class="el" href="_squash_equal_siblings_8hpp_source.html#l00024">SquashEqualSiblingsImpl< Comparable >::Run()</a>.</p> |
| 356 | <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 --> |
| 357 | </div> |
| 358 | </div> |
| 359 | <a id="a3f1b6ae1550775ac9eef0cac0ea4266f"></a> |
| 360 | <h2 class="memtitle"><span class="permalink"><a href="#a3f1b6ae1550775ac9eef0cac0ea4266f">◆ </a></span>GetSlotIndex()</h2> |
| 361 | |
| 362 | <div class="memitem"> |
| 363 | <div class="memproto"> |
| 364 | <table class="mlabels"> |
| 365 | <tr> |
| 366 | <td class="mlabels-left"> |
| 367 | <table class="memname"> |
| 368 | <tr> |
| 369 | <td class="memname">unsigned int GetSlotIndex </td> |
| 370 | <td>(</td> |
| 371 | <td class="paramname"></td><td>)</td> |
| 372 | <td> const</td> |
| 373 | </tr> |
| 374 | </table> |
| 375 | </td> |
| 376 | <td class="mlabels-right"> |
| 377 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 378 | </tr> |
| 379 | </table> |
| 380 | </div><div class="memdoc"> |
| 381 | |
| 382 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00053">53</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 383 | |
| 384 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.html#l00263">Graph::AddCompatibilityLayers()</a>.</p> |
| 385 | <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 --> |
| 386 | </div> |
| 387 | </div> |
| 388 | <a id="a5a0a7224d93d14db044426a3878dab4d"></a> |
| 389 | <h2 class="memtitle"><span class="permalink"><a href="#a5a0a7224d93d14db044426a3878dab4d">◆ </a></span>Insert()</h2> |
| 390 | |
| 391 | <div class="memitem"> |
| 392 | <div class="memproto"> |
| 393 | <table class="memname"> |
| 394 | <tr> |
| 395 | <td class="memname">void Insert </td> |
| 396 | <td>(</td> |
| 397 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.html">Layer</a> & </td> |
| 398 | <td class="paramname"><em>layer</em></td><td>)</td> |
| 399 | <td></td> |
| 400 | </tr> |
| 401 | </table> |
| 402 | </div><div class="memdoc"> |
| 403 | |
| 404 | <p class="definition">Definition at line <a class="el" href="_layer_8cpp_source.html#l00020">20</a> of file <a class="el" href="_layer_8cpp_source.html">Layer.cpp</a>.</p> |
| 405 | |
| 406 | <p class="reference">References <a class="el" href="_layer_8cpp_source.html#l00079">OutputSlot::Connect()</a>, <a class="el" href="_layer_8hpp_source.html#l00055">InputSlot::GetConnectedOutputSlot()</a>, <a class="el" href="_layer_8hpp_source.html#l00310">Layer::GetInputSlot()</a>, <a class="el" href="_layer_8hpp_source.html#l00307">Layer::GetNumInputSlots()</a>, <a class="el" href="_layer_8hpp_source.html#l00308">Layer::GetNumOutputSlots()</a>, <a class="el" href="_layer_8hpp_source.html#l00221">Layer::GetOutputHandler()</a>, <a class="el" href="_layer_8hpp_source.html#l00312">Layer::GetOutputSlot()</a>, <a class="el" href="_layer_8cpp_source.html#l00177">OutputSlot::SetEdgeStrategy()</a>, <a class="el" href="_output_handler_8cpp_source.html#l00017">OutputHandler::SetTensorInfo()</a>, and <a class="el" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">armnn::Undefined</a>.</p> |
| 407 | |
| 408 | <p class="reference">Referenced by <a class="el" href="_graph_8hpp_source.html#l00409">Graph::InsertNewLayer()</a>, and <a class="el" href="_layer_8hpp_source.html#l00059">InputSlot::SetConnection()</a>.</p> |
| 409 | <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.html#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.html#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.html#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">EdgeStrategy::Undefined</a>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> }</div><div class="ttc" id="namespacearmnn_html_ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360"><div class="ttname"><a href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aeaec0fc0100c4fc1ce4eea230c3dc10360">armnn::Compute::Undefined</a></div></div> |
| 410 | <div class="ttc" id="classarmnn_1_1_input_slot_html_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.html#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.html#l00055">Layer.hpp:55</a></div></div> |
| 411 | </div><!-- fragment --> |
| 412 | </div> |
| 413 | </div> |
| 414 | <a id="ae34c07e230a32ea853faed3fefc804f3"></a> |
| 415 | <h2 class="memtitle"><span class="permalink"><a href="#ae34c07e230a32ea853faed3fefc804f3">◆ </a></span>SetConnection()</h2> |
| 416 | |
| 417 | <div class="memitem"> |
| 418 | <div class="memproto"> |
| 419 | <table class="mlabels"> |
| 420 | <tr> |
| 421 | <td class="mlabels-left"> |
| 422 | <table class="memname"> |
| 423 | <tr> |
| 424 | <td class="memname">void SetConnection </td> |
| 425 | <td>(</td> |
| 426 | <td class="paramtype"><a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> * </td> |
| 427 | <td class="paramname"><em>source</em></td><td>)</td> |
| 428 | <td></td> |
| 429 | </tr> |
| 430 | </table> |
| 431 | </td> |
| 432 | <td class="mlabels-right"> |
| 433 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 434 | </tr> |
| 435 | </table> |
| 436 | </div><div class="memdoc"> |
| 437 | |
| 438 | <p>Links the slot to an output slot or breaks an existing link if passing nullptr. </p> |
| 439 | |
| 440 | <p class="definition">Definition at line <a class="el" href="_layer_8hpp_source.html#l00059">59</a> of file <a class="el" href="_layer_8hpp_source.html">Layer.hpp</a>.</p> |
| 441 | |
| 442 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00199">InputSlot::GetConnection()</a>, and <a class="el" href="_layer_8cpp_source.html#l00020">InputSlot::Insert()</a>.</p> |
| 443 | |
| 444 | <p class="reference">Referenced by <a class="el" href="_layer_8cpp_source.html#l00079">OutputSlot::Connect()</a>, and <a class="el" href="_layer_8cpp_source.html#l00087">OutputSlot::Disconnect()</a>.</p> |
| 445 | <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 --> |
| 446 | </div> |
| 447 | </div> |
| 448 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 449 | <li>src/armnn/<a class="el" href="_layer_8hpp_source.html">Layer.hpp</a></li> |
| 450 | <li>src/armnn/<a class="el" href="_layer_8cpp_source.html">Layer.cpp</a></li> |
| 451 | </ul> |
| 452 | </div><!-- contents --> |
| 453 | </div><!-- doc-content --> |
| 454 | <!-- start footer part --> |
| 455 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 456 | <ul> |
| 457 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a></li> |
| 458 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 459 | <a href="http://www.doxygen.org/index.html"> |
| 460 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 461 | </ul> |
| 462 | </div> |
| 463 | </body> |
| 464 | </html> |