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: Graph::LayerInGraph< InputLayer > Class Template 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_graph_1_1_layer_in_graph_3_01_input_layer_01_4.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_graph_1_1_layer_in_graph_3_01_input_layer_01_4-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">Graph::LayerInGraph< InputLayer > Class Template Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p>Inputs add/remove their binding id to m_InputIds in the graph. |
| 106 | <a href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#details">More...</a></p> |
| 107 | |
| 108 | <p><code>#include <<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>></code></p> |
| 109 | |
| 110 | <p>Inherits Graph::LayerInGraphBase< LayerT >.</p> |
| 111 | <table class="memberdecls"> |
| 112 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 113 | Public Member Functions</h2></td></tr> |
| 114 | <tr class="memitem:a738be94d0baec5ceab8bee31fcb85dbd"><td class="memTemplParams" colspan="2">template<typename... Args> </td></tr> |
| 115 | <tr class="memitem:a738be94d0baec5ceab8bee31fcb85dbd"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#a738be94d0baec5ceab8bee31fcb85dbd">LayerInGraph</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">Graph</a> &graph, Args &&... args)</td></tr> |
| 116 | <tr class="separator:a738be94d0baec5ceab8bee31fcb85dbd"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a057f444abdec36787b0141875e33fa79"><td class="memTemplParams" colspan="2">template<typename... Args> </td></tr> |
| 118 | <tr class="memitem:a057f444abdec36787b0141875e33fa79"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#a057f444abdec36787b0141875e33fa79">LayerInGraph</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">Graph</a> &graph, <a class="el" href="classarmnn_1_1_graph.xhtml#acc25db0641c1c22faf95af3bb49080c9">Iterator</a>, Args &&... args)</td></tr> |
| 119 | <tr class="separator:a057f444abdec36787b0141875e33fa79"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:afcf7e3e1fd008dab68b6354393063243"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#afcf7e3e1fd008dab68b6354393063243">~LayerInGraph</a> () override</td></tr> |
| 121 | <tr class="separator:afcf7e3e1fd008dab68b6354393063243"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | </table> |
| 123 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 124 | <div class="textblock"><h3>template<><br /> |
| 125 | class armnn::Graph::LayerInGraph< InputLayer ></h3> |
| 126 | |
| 127 | <p>Inputs add/remove their binding id to m_InputIds in the graph. </p> |
| 128 | |
| 129 | <p class="definition">Definition at line <a class="el" href="_graph_8hpp_source.xhtml#l00333">333</a> of file <a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>.</p> |
| 130 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 131 | <a id="a738be94d0baec5ceab8bee31fcb85dbd"></a> |
| 132 | <h2 class="memtitle"><span class="permalink"><a href="#a738be94d0baec5ceab8bee31fcb85dbd">◆ </a></span>LayerInGraph() <span class="overload">[1/2]</span></h2> |
| 133 | |
| 134 | <div class="memitem"> |
| 135 | <div class="memproto"> |
| 136 | <table class="mlabels"> |
| 137 | <tr> |
| 138 | <td class="mlabels-left"> |
| 139 | <table class="memname"> |
| 140 | <tr> |
| 141 | <td class="memname">LayerInGraph </td> |
| 142 | <td>(</td> |
| 143 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">Graph</a> & </td> |
| 144 | <td class="paramname"><em>graph</em>, </td> |
| 145 | </tr> |
| 146 | <tr> |
| 147 | <td class="paramkey"></td> |
| 148 | <td></td> |
| 149 | <td class="paramtype">Args &&... </td> |
| 150 | <td class="paramname"><em>args</em> </td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td></td> |
| 154 | <td>)</td> |
| 155 | <td></td><td></td> |
| 156 | </tr> |
| 157 | </table> |
| 158 | </td> |
| 159 | <td class="mlabels-right"> |
| 160 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 161 | </tr> |
| 162 | </table> |
| 163 | </div><div class="memdoc"> |
| 164 | |
| 165 | <p class="definition">Definition at line <a class="el" href="_graph_8hpp_source.xhtml#l00337">337</a> of file <a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>.</p> |
| 166 | |
| 167 | <p class="reference">References <a class="el" href="_graph_8hpp_source.xhtml#l00073">Graph::InputLayersAccessor::m_Graph</a>.</p> |
| 168 | <div class="fragment"><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  : LayerInGraphBase<InputLayer>(graph,</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="comment">// Always add to the back of the inputs.</span></div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  std::next(graph.begin(), <a class="code" href="classarmnn_1_1_graph.xhtml#a53402e786b52cef2fb21f3e39a819967">IteratorDifference</a>(graph.GetNumInputs())),</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  std::forward<Args>(args)...)</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  {</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> isNewId = m_Graph->m_InputIds.emplace(GetBindingId()).second;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">if</span> (!isNewId)</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  {</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keywordflow">throw</span> InvalidArgumentException(<span class="stringliteral">"A layer already exists with the specified id"</span>);</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  }</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a53402e786b52cef2fb21f3e39a819967"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a53402e786b52cef2fb21f3e39a819967">armnn::Graph::IteratorDifference</a></div><div class="ttdeci">Iterator::difference_type IteratorDifference</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00051">Graph.hpp:51</a></div></div> |
| 169 | </div><!-- fragment --> |
| 170 | </div> |
| 171 | </div> |
| 172 | <a id="a057f444abdec36787b0141875e33fa79"></a> |
| 173 | <h2 class="memtitle"><span class="permalink"><a href="#a057f444abdec36787b0141875e33fa79">◆ </a></span>LayerInGraph() <span class="overload">[2/2]</span></h2> |
| 174 | |
| 175 | <div class="memitem"> |
| 176 | <div class="memproto"> |
| 177 | <table class="mlabels"> |
| 178 | <tr> |
| 179 | <td class="mlabels-left"> |
| 180 | <table class="memname"> |
| 181 | <tr> |
| 182 | <td class="memname">LayerInGraph </td> |
| 183 | <td>(</td> |
| 184 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">Graph</a> & </td> |
| 185 | <td class="paramname"><em>graph</em>, </td> |
| 186 | </tr> |
| 187 | <tr> |
| 188 | <td class="paramkey"></td> |
| 189 | <td></td> |
| 190 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml#acc25db0641c1c22faf95af3bb49080c9">Iterator</a> </td> |
| 191 | <td class="paramname">, </td> |
| 192 | </tr> |
| 193 | <tr> |
| 194 | <td class="paramkey"></td> |
| 195 | <td></td> |
| 196 | <td class="paramtype">Args &&... </td> |
| 197 | <td class="paramname"><em>args</em> </td> |
| 198 | </tr> |
| 199 | <tr> |
| 200 | <td></td> |
| 201 | <td>)</td> |
| 202 | <td></td><td></td> |
| 203 | </tr> |
| 204 | </table> |
| 205 | </td> |
| 206 | <td class="mlabels-right"> |
| 207 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 208 | </tr> |
| 209 | </table> |
| 210 | </div><div class="memdoc"> |
| 211 | |
| 212 | <p class="definition">Definition at line <a class="el" href="_graph_8hpp_source.xhtml#l00350">350</a> of file <a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>.</p> |
| 213 | <div class="fragment"><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  : <a class="code" href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#a738be94d0baec5ceab8bee31fcb85dbd">LayerInGraph</a>(graph, std::forward<Args>(args)...)</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  {</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  }</div><div class="ttc" id="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4_xhtml_a738be94d0baec5ceab8bee31fcb85dbd"><div class="ttname"><a href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#a738be94d0baec5ceab8bee31fcb85dbd">armnn::Graph::LayerInGraph< InputLayer >::LayerInGraph</a></div><div class="ttdeci">LayerInGraph(Graph &graph, Args &&... args)</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00337">Graph.hpp:337</a></div></div> |
| 214 | </div><!-- fragment --> |
| 215 | </div> |
| 216 | </div> |
| 217 | <a id="afcf7e3e1fd008dab68b6354393063243"></a> |
| 218 | <h2 class="memtitle"><span class="permalink"><a href="#afcf7e3e1fd008dab68b6354393063243">◆ </a></span>~LayerInGraph()</h2> |
| 219 | |
| 220 | <div class="memitem"> |
| 221 | <div class="memproto"> |
| 222 | <table class="mlabels"> |
| 223 | <tr> |
| 224 | <td class="mlabels-left"> |
| 225 | <table class="memname"> |
| 226 | <tr> |
| 227 | <td class="memname">~<a class="el" href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml#a738be94d0baec5ceab8bee31fcb85dbd">LayerInGraph</a> </td> |
| 228 | <td>(</td> |
| 229 | <td class="paramname"></td><td>)</td> |
| 230 | <td></td> |
| 231 | </tr> |
| 232 | </table> |
| 233 | </td> |
| 234 | <td class="mlabels-right"> |
| 235 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span></span> </td> |
| 236 | </tr> |
| 237 | </table> |
| 238 | </div><div class="memdoc"> |
| 239 | |
| 240 | <p class="definition">Definition at line <a class="el" href="_graph_8hpp_source.xhtml#l00355">355</a> of file <a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>.</p> |
| 241 | |
| 242 | <p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>, and <a class="el" href="_graph_8hpp_source.xhtml#l00073">Graph::InputLayersAccessor::m_Graph</a>.</p> |
| 243 | <div class="fragment"><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  {</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> numErased = m_Graph->m_InputIds.erase(GetBindingId());</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(numErased);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  BOOST_ASSERT(numErased == 1);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &&...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div> |
| 244 | </div><!-- fragment --> |
| 245 | </div> |
| 246 | </div> |
| 247 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 248 | <li>src/armnn/<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a></li> |
| 249 | </ul> |
| 250 | </div><!-- contents --> |
| 251 | </div><!-- doc-content --> |
| 252 | <!-- start footer part --> |
| 253 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 254 | <ul> |
| 255 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_graph.xhtml">Graph</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml">LayerInGraph< InputLayer ></a></li> |
| 256 | <li class="footer">Generated on Fri Mar 13 2020 16:09:18 for ArmNN by |
| 257 | <a href="http://www.doxygen.org/index.html"> |
| 258 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 259 | </ul> |
| 260 | </div> |
| 261 | </body> |
| 262 | </html> |