| <!-- HTML header for doxygen 1.8.17--> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.17"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>Arm NN: SubgraphView Class Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtreedata.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script> |
| <script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="customdoxygen.css" rel="stylesheet" type="text/css"/> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 15rem; margin-top: .5rem; margin-left 13px"/> |
| <td id="projectalign" style="padding-left: 0.9em;"> |
| <div id="projectname"> |
|  <span id="projectnumber">24.02</span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.17 --> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| /* @license-end */ |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| /* @license-end */</script> |
| <div id="main-nav"></div> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(document).ready(function(){initNavTree('classarmnn_1_1_subgraph_view.html',''); initResizable(); }); |
| /* @license-end */ |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="summary"> |
| <a href="#pub-types">Public Types</a> | |
| <a href="#pub-methods">Public Member Functions</a> | |
| <a href="#pub-attribs">Public Attributes</a> | |
| <a href="classarmnn_1_1_subgraph_view-members.html">List of all members</a> </div> |
| <div class="headertitle"> |
| <div class="title">SubgraphView Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p>The <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> class represents a subgraph of a <a class="el" href="classarmnn_1_1_graph.html">Graph</a>. |
| <a href="classarmnn_1_1_subgraph_view.html#details">More...</a></p> |
| |
| <p><code>#include <<a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>></code></p> |
| <div class="dynheader"> |
| Inheritance diagram for SubgraphView:</div> |
| <div class="dyncontent"> |
| <div class="center"><iframe scrolling="no" frameborder="0" src="classarmnn_1_1_subgraph_view__inherit__graph.svg" width="187" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe> |
| </div> |
| <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> |
| <div class="dynheader"> |
| Collaboration diagram for SubgraphView:</div> |
| <div class="dyncontent"> |
| <div class="center"><iframe scrolling="no" frameborder="0" src="classarmnn_1_1_subgraph_view__coll__graph.svg" width="187" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe> |
| </div> |
| <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> |
| Public Types</h2></td></tr> |
| <tr class="memitem:ad5fc1b5213dcb72c0d4ac9dfb46ef677"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ad5fc1b5213dcb72c0d4ac9dfb46ef677">SubgraphViewPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> ></td></tr> |
| <tr class="separator:ad5fc1b5213dcb72c0d4ac9dfb46ef677"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5cc65e15002dbc33a5c8a7d6680e9a9d"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">InputSlots</a> = std::vector< <a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> * ></td></tr> |
| <tr class="separator:a5cc65e15002dbc33a5c8a7d6680e9a9d"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a4ad949634fd697549da161eb09d8b7fd"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> = std::vector< <a class="el" href="classarmnn_1_1_i_input_slot.html">IInputSlot</a> * ></td></tr> |
| <tr class="separator:a4ad949634fd697549da161eb09d8b7fd"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a78293334750ec5279eb9c96d56deaf08"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">OutputSlots</a> = std::vector< <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> * ></td></tr> |
| <tr class="separator:a78293334750ec5279eb9c96d56deaf08"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a3f717693851810942d3ae0180a97fb4c"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a> = std::vector< <a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * ></td></tr> |
| <tr class="separator:a3f717693851810942d3ae0180a97fb4c"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a74798938fdaeae75c8adfa4a7439e7f9"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">Layers</a> = std::list< <a class="el" href="classarmnn_1_1_layer.html">Layer</a> * ></td></tr> |
| <tr class="separator:a74798938fdaeae75c8adfa4a7439e7f9"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad7c7687cd3542e5cbb45e56f9a9456e7"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a> = std::list< <a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a> * ></td></tr> |
| <tr class="separator:ad7c7687cd3542e5cbb45e56f9a9456e7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af323e5b54c189191060bce191ce0f233"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#af323e5b54c189191060bce191ce0f233">Iterator</a> = Layers::iterator</td></tr> |
| <tr class="separator:af323e5b54c189191060bce191ce0f233"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a308b86dbdd0a745cef76904674c9850f"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a308b86dbdd0a745cef76904674c9850f">IConnectableLayerIterator</a> = IConnectableLayers::iterator</td></tr> |
| <tr class="separator:a308b86dbdd0a745cef76904674c9850f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a39524c3cad3af48ba3e2bba2e8bf9fbe"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a39524c3cad3af48ba3e2bba2e8bf9fbe">ConstIterator</a> = Layers::const_iterator</td></tr> |
| <tr class="separator:a39524c3cad3af48ba3e2bba2e8bf9fbe"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a32cc53af9dcaa8888da9e019625ede7b"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> = IConnectableLayers::const_iterator</td></tr> |
| <tr class="separator:a32cc53af9dcaa8888da9e019625ede7b"><td class="memSeparator" colspan="2"> </td></tr> |
| </table><table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| Public Member Functions</h2></td></tr> |
| <tr class="memitem:ad6521013ad981519904822f2ada2c4ec"><td class="memTemplParams" colspan="2">template<typename Func > </td></tr> |
| <tr class="memitem:ad6521013ad981519904822f2ada2c4ec"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ad6521013ad981519904822f2ada2c4ec">ForEachLayer</a> (Func func) const</td></tr> |
| <tr class="separator:ad6521013ad981519904822f2ada2c4ec"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a89db17358856d60f03966a0e2e8cb25c"><td class="memTemplParams" colspan="2">template<typename Func > </td></tr> |
| <tr class="memitem:a89db17358856d60f03966a0e2e8cb25c"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a89db17358856d60f03966a0e2e8cb25c">ForEachIConnectableLayer</a> (Func func) const</td></tr> |
| <tr class="separator:a89db17358856d60f03966a0e2e8cb25c"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a40bb9799fd918fa31f983cc5aa156828"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a40bb9799fd918fa31f983cc5aa156828">SubgraphView</a> (<a class="el" href="classarmnn_1_1_graph.html">Graph</a> &graph)</td></tr> |
| <tr class="memdesc:a40bb9799fd918fa31f983cc5aa156828"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a sub-graph from the entire given graph. <a href="classarmnn_1_1_subgraph_view.html#a40bb9799fd918fa31f983cc5aa156828">More...</a><br /></td></tr> |
| <tr class="separator:a40bb9799fd918fa31f983cc5aa156828"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa10d95155eedfd24932ecaa01fe8a93c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#aa10d95155eedfd24932ecaa01fe8a93c">ARMNN_DEPRECATED_MSG_REMOVAL_DATE</a> ("This function has been deprecated, please use constructor with arguments: " "<a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a>, <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> and <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a>", "23.08") SubgraphView(<a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">InputSlots</a> &&inputs</td></tr> |
| <tr class="memdesc:aa10d95155eedfd24932ecaa01fe8a93c"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a sub-graph with the given arguments. <a href="classarmnn_1_1_subgraph_view.html#aa10d95155eedfd24932ecaa01fe8a93c">More...</a><br /></td></tr> |
| <tr class="separator:aa10d95155eedfd24932ecaa01fe8a93c"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a17b2269ca4f6e5ec3d5f00d32dc8b1e6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a17b2269ca4f6e5ec3d5f00d32dc8b1e6">SubgraphView</a> (<a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a> &&<a class="el" href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">layers</a>, <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> &&inputs, <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a> &&<a class="el" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>)</td></tr> |
| <tr class="memdesc:a17b2269ca4f6e5ec3d5f00d32dc8b1e6"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a sub-graph with the given arguments. <a href="classarmnn_1_1_subgraph_view.html#a17b2269ca4f6e5ec3d5f00d32dc8b1e6">More...</a><br /></td></tr> |
| <tr class="separator:a17b2269ca4f6e5ec3d5f00d32dc8b1e6"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a40ec3404f963da3c5ea3665a3b50c5ca"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a40ec3404f963da3c5ea3665a3b50c5ca">SubgraphView</a> (const <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &subgraph)</td></tr> |
| <tr class="memdesc:a40ec3404f963da3c5ea3665a3b50c5ca"><td class="mdescLeft"> </td><td class="mdescRight">Copy-constructor. <a href="classarmnn_1_1_subgraph_view.html#a40ec3404f963da3c5ea3665a3b50c5ca">More...</a><br /></td></tr> |
| <tr class="separator:a40ec3404f963da3c5ea3665a3b50c5ca"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ae192e05beaadbd1d231676d9c37d1317"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ae192e05beaadbd1d231676d9c37d1317">SubgraphView</a> (<a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &&subgraph)</td></tr> |
| <tr class="memdesc:ae192e05beaadbd1d231676d9c37d1317"><td class="mdescLeft"> </td><td class="mdescRight">Move-constructor. <a href="classarmnn_1_1_subgraph_view.html#ae192e05beaadbd1d231676d9c37d1317">More...</a><br /></td></tr> |
| <tr class="separator:ae192e05beaadbd1d231676d9c37d1317"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a8e22424d6e8e40cbf9884a08c42a0199"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a8e22424d6e8e40cbf9884a08c42a0199">SubgraphView</a> (<a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a> *layer)</td></tr> |
| <tr class="memdesc:a8e22424d6e8e40cbf9884a08c42a0199"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a sub-graph with only the given layer. <a href="classarmnn_1_1_subgraph_view.html#a8e22424d6e8e40cbf9884a08c42a0199">More...</a><br /></td></tr> |
| <tr class="separator:a8e22424d6e8e40cbf9884a08c42a0199"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aae84cdbe05d87942f8ce0a2576c8a7c8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#aae84cdbe05d87942f8ce0a2576c8a7c8">operator=</a> (<a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &&other)</td></tr> |
| <tr class="memdesc:aae84cdbe05d87942f8ce0a2576c8a7c8"><td class="mdescLeft"> </td><td class="mdescRight">Move-assignment operator. <a href="classarmnn_1_1_subgraph_view.html#aae84cdbe05d87942f8ce0a2576c8a7c8">More...</a><br /></td></tr> |
| <tr class="separator:aae84cdbe05d87942f8ce0a2576c8a7c8"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ada17adb05f8061fffa3e193544795fd5"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ada17adb05f8061fffa3e193544795fd5">GetIInputSlots</a> () const</td></tr> |
| <tr class="separator:ada17adb05f8061fffa3e193544795fd5"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:adc4e3f28ec3906680f1a25a7b1a3e8f9"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#adc4e3f28ec3906680f1a25a7b1a3e8f9">GetIOutputSlots</a> () const</td></tr> |
| <tr class="separator:adc4e3f28ec3906680f1a25a7b1a3e8f9"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a8055e06b4f21d51fd8b4fc22ead2bdf0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a8055e06b4f21d51fd8b4fc22ead2bdf0">GetIConnectableLayers</a> () const</td></tr> |
| <tr class="separator:a8055e06b4f21d51fd8b4fc22ead2bdf0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a78a84ff740b2ec683d9da229a25c4140"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_i_input_slot.html">IInputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78a84ff740b2ec683d9da229a25c4140">GetIInputSlot</a> (unsigned int index) const</td></tr> |
| <tr class="separator:a78a84ff740b2ec683d9da229a25c4140"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af8c62982d6b14bc6d38722a31d37281b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_input_slot.html">IInputSlot</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#af8c62982d6b14bc6d38722a31d37281b">GetIInputSlot</a> (unsigned int index)</td></tr> |
| <tr class="separator:af8c62982d6b14bc6d38722a31d37281b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a92f32e6689a8fe52aa043ba5395c7b57"><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_subgraph_view.html#a92f32e6689a8fe52aa043ba5395c7b57">GetIOutputSlot</a> (unsigned int index) const</td></tr> |
| <tr class="separator:a92f32e6689a8fe52aa043ba5395c7b57"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a22a2f50137aef4f93fbdb57b6e029895"><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_subgraph_view.html#a22a2f50137aef4f93fbdb57b6e029895">GetOutputSlot</a> (unsigned int index)</td></tr> |
| <tr class="separator:a22a2f50137aef4f93fbdb57b6e029895"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ab48f73bad75377de628634fd9e807879"><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_subgraph_view.html#ab48f73bad75377de628634fd9e807879">GetIOutputSlot</a> (unsigned int index)</td></tr> |
| <tr class="separator:ab48f73bad75377de628634fd9e807879"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a6cbf14f4d57ef2de2cfed9a903db1643"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a6cbf14f4d57ef2de2cfed9a903db1643">GetNumInputSlots</a> () const</td></tr> |
| <tr class="separator:a6cbf14f4d57ef2de2cfed9a903db1643"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a59a4100374e80a3504f4bb4d13695d0b"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a59a4100374e80a3504f4bb4d13695d0b">GetNumOutputSlots</a> () const</td></tr> |
| <tr class="separator:a59a4100374e80a3504f4bb4d13695d0b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad2570202bb366163f8b4660bfe78c49d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a308b86dbdd0a745cef76904674c9850f">IConnectableLayerIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">begin</a> ()</td></tr> |
| <tr class="separator:ad2570202bb366163f8b4660bfe78c49d"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:acff9b677eeeea2273b185f0f9ca735e0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#acff9b677eeeea2273b185f0f9ca735e0">ARMNN_DEPRECATED_MSG_CHANGE_DATE</a> ("This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">begin</a>() returning public IConnectableIterator", "24.05") IConnectableLayerIterator beginIConnectable()</td></tr> |
| <tr class="separator:acff9b677eeeea2273b185f0f9ca735e0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:afc40490fb4f488bd2a211e81c06a6971"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a308b86dbdd0a745cef76904674c9850f">IConnectableLayerIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">end</a> ()</td></tr> |
| <tr class="separator:afc40490fb4f488bd2a211e81c06a6971"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a18822940562178cdaf13b0ca56385b55"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a18822940562178cdaf13b0ca56385b55">ARMNN_DEPRECATED_MSG_CHANGE_DATE</a> ("This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">end</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a308b86dbdd0a745cef76904674c9850f">IConnectableLayerIterator</a>", "24.05") IConnectableLayerIterator endIConnectable()</td></tr> |
| <tr class="separator:a18822940562178cdaf13b0ca56385b55"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a33c3442ae6bf3771188fb0c66e9d8a1f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a33c3442ae6bf3771188fb0c66e9d8a1f">begin</a> () const</td></tr> |
| <tr class="separator:a33c3442ae6bf3771188fb0c66e9d8a1f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a1db08818faa20e2b4979257a64b407cd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a1db08818faa20e2b4979257a64b407cd">ARMNN_DEPRECATED_MSG_CHANGE_DATE</a> ("This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">begin</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a>", "24.05") ConstIConnectableIterator beginIConnectable() const</td></tr> |
| <tr class="separator:a1db08818faa20e2b4979257a64b407cd"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad1372be0b1a0a813fa0c294f75667c09"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ad1372be0b1a0a813fa0c294f75667c09">end</a> () const</td></tr> |
| <tr class="separator:ad1372be0b1a0a813fa0c294f75667c09"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a66e36d9c7e538497f452625c837ee1b2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a66e36d9c7e538497f452625c837ee1b2">ARMNN_DEPRECATED_MSG_CHANGE_DATE</a> ("This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">end</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a>", "24.05") ConstIConnectableIterator endIConnectable() const</td></tr> |
| <tr class="separator:a66e36d9c7e538497f452625c837ee1b2"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a779ee5dd98d22e78fc062f624958fac9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a779ee5dd98d22e78fc062f624958fac9">cbegin</a> () const</td></tr> |
| <tr class="separator:a779ee5dd98d22e78fc062f624958fac9"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a8395375c23667f593e54aebca715cb21"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a8395375c23667f593e54aebca715cb21">ARMNN_DEPRECATED_MSG_CHANGE_DATE</a> ("This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#a779ee5dd98d22e78fc062f624958fac9">cbegin</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a39524c3cad3af48ba3e2bba2e8bf9fbe">ConstIterator</a>", "24.05") ConstIConnectableIterator cbeginIConnectable() const</td></tr> |
| <tr class="separator:a8395375c23667f593e54aebca715cb21"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a479f2913172070990198a0720253e08f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a479f2913172070990198a0720253e08f">cend</a> () const</td></tr> |
| <tr class="separator:a479f2913172070990198a0720253e08f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a05667780472794260025c3a0b025b539"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a05667780472794260025c3a0b025b539">ARMNN_DEPRECATED_MSG_CHANGE_DATE</a> ("This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#a479f2913172070990198a0720253e08f">cend</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a>", "24.05") ConstIConnectableIterator cendIConnectable() const</td></tr> |
| <tr class="separator:a05667780472794260025c3a0b025b539"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa71d36872f416feaa853788a7a7a7ef8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#aa71d36872f416feaa853788a7a7a7ef8">Clear</a> ()</td></tr> |
| <tr class="separator:aa71d36872f416feaa853788a7a7a7ef8"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5ab39a2590672369bddfdd0b790e6025"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a5ab39a2590672369bddfdd0b790e6025">GetWorkingCopy</a> () const</td></tr> |
| <tr class="memdesc:a5ab39a2590672369bddfdd0b790e6025"><td class="mdescLeft"> </td><td class="mdescRight">This method returns a copy of the original <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> provided by OptimizeSubgraphView with a separate underlying graph from the main ArmNN graph. <a href="classarmnn_1_1_subgraph_view.html#a5ab39a2590672369bddfdd0b790e6025">More...</a><br /></td></tr> |
| <tr class="separator:a5ab39a2590672369bddfdd0b790e6025"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ae9da449c038607237135b6b543890a15"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#ae9da449c038607237135b6b543890a15">SubstituteSubgraph</a> (<a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &, <a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a> *)</td></tr> |
| <tr class="memdesc:ae9da449c038607237135b6b543890a15"><td class="mdescLeft"> </td><td class="mdescRight">These methods should be called on a working copy subgraph created from GetWorkingCopy. <a href="classarmnn_1_1_subgraph_view.html#ae9da449c038607237135b6b543890a15">More...</a><br /></td></tr> |
| <tr class="separator:ae9da449c038607237135b6b543890a15"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a28472b80e6cb7415f58c18c60c158c24"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a28472b80e6cb7415f58c18c60c158c24">SubstituteSubgraph</a> (<a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &, const <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &)</td></tr> |
| <tr class="separator:a28472b80e6cb7415f58c18c60c158c24"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a9523398f3d95c6107de1bcd4b5d1d2ae"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a9523398f3d95c6107de1bcd4b5d1d2ae">GetOriginalInputSlots</a> () const</td></tr> |
| <tr class="memdesc:a9523398f3d95c6107de1bcd4b5d1d2ae"><td class="mdescLeft"> </td><td class="mdescRight">These methods should be called on a working copy subgraph created from GetWorkingCopy. <a href="classarmnn_1_1_subgraph_view.html#a9523398f3d95c6107de1bcd4b5d1d2ae">More...</a><br /></td></tr> |
| <tr class="separator:a9523398f3d95c6107de1bcd4b5d1d2ae"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a2ead7853fa72f70a09cd2e767f22dfc3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a2ead7853fa72f70a09cd2e767f22dfc3">GetOriginalOutputSlots</a> () const</td></tr> |
| <tr class="separator:a2ead7853fa72f70a09cd2e767f22dfc3"><td class="memSeparator" colspan="2"> </td></tr> |
| </table><table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> |
| Public Attributes</h2></td></tr> |
| <tr class="memitem:a342a59ed341e5f2e94dfaa34136573ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">OutputSlots</a> && </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a></td></tr> |
| <tr class="separator:a342a59ed341e5f2e94dfaa34136573ef"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5aeb684bf895052593e5239f133094ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">OutputSlots</a> <a class="el" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">Layers</a> && </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">layers</a></td></tr> |
| <tr class="separator:a5aeb684bf895052593e5239f133094ee"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"><p>The <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> class represents a subgraph of a <a class="el" href="classarmnn_1_1_graph.html">Graph</a>. </p> |
| <p>The data it holds, points to data held by layers of the <a class="el" href="classarmnn_1_1_graph.html">Graph</a>, so the the contents of the <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> become invalid when the Layers are destroyed or changed. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00031">31</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| </div><h2 class="groupheader">Member Typedef Documentation</h2> |
| <a id="a32cc53af9dcaa8888da9e019625ede7b"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a32cc53af9dcaa8888da9e019625ede7b">◆ </a></span>ConstIConnectableIterator</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> = IConnectableLayers::const_iterator</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00066">66</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a39524c3cad3af48ba3e2bba2e8bf9fbe"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a39524c3cad3af48ba3e2bba2e8bf9fbe">◆ </a></span>ConstIterator</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a39524c3cad3af48ba3e2bba2e8bf9fbe">ConstIterator</a> = Layers::const_iterator</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00065">65</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a308b86dbdd0a745cef76904674c9850f"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a308b86dbdd0a745cef76904674c9850f">◆ </a></span>IConnectableLayerIterator</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a308b86dbdd0a745cef76904674c9850f">IConnectableLayerIterator</a> = IConnectableLayers::iterator</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00064">64</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="ad7c7687cd3542e5cbb45e56f9a9456e7"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad7c7687cd3542e5cbb45e56f9a9456e7">◆ </a></span>IConnectableLayers</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a> = std::list<<a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a>*></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00062">62</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a4ad949634fd697549da161eb09d8b7fd"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a4ad949634fd697549da161eb09d8b7fd">◆ </a></span>IInputSlots</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> = std::vector<<a class="el" href="classarmnn_1_1_i_input_slot.html">IInputSlot</a>*></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00058">58</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a5cc65e15002dbc33a5c8a7d6680e9a9d"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a5cc65e15002dbc33a5c8a7d6680e9a9d">◆ </a></span>InputSlots</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">InputSlots</a> = std::vector<<a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a>*></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00057">57</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a3f717693851810942d3ae0180a97fb4c"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a3f717693851810942d3ae0180a97fb4c">◆ </a></span>IOutputSlots</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a> = std::vector<<a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a>*></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00060">60</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="af323e5b54c189191060bce191ce0f233"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#af323e5b54c189191060bce191ce0f233">◆ </a></span>Iterator</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#af323e5b54c189191060bce191ce0f233">Iterator</a> = Layers::iterator</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00063">63</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a74798938fdaeae75c8adfa4a7439e7f9"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a74798938fdaeae75c8adfa4a7439e7f9">◆ </a></span>Layers</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">Layers</a> = std::list<<a class="el" href="classarmnn_1_1_layer.html">Layer</a>*></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00061">61</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a78293334750ec5279eb9c96d56deaf08"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a78293334750ec5279eb9c96d56deaf08">◆ </a></span>OutputSlots</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">OutputSlots</a> = std::vector<<a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a>*></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00059">59</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="ad5fc1b5213dcb72c0d4ac9dfb46ef677"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad5fc1b5213dcb72c0d4ac9dfb46ef677">◆ </a></span>SubgraphViewPtr</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">using <a class="el" href="classarmnn_1_1_subgraph_view.html#ad5fc1b5213dcb72c0d4ac9dfb46ef677">SubgraphViewPtr</a> = std::shared_ptr<<a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a>></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00056">56</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| <a id="a40bb9799fd918fa31f983cc5aa156828"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a40bb9799fd918fa31f983cc5aa156828">◆ </a></span>SubgraphView() <span class="overload">[1/5]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.html">Graph</a> & </td> |
| <td class="paramname"><em>graph</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">explicit</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Constructs a sub-graph from the entire given graph. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00045">45</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  : enable_shared_from_this()</div> |
| <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  , m_InputSlots{}</div> |
| <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  , m_OutputSlots{}</div> |
| <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  , m_Layers(graph.begin(), graph.end())</div> |
| <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  , m_IConnectableLayers(graph.begin(), graph.end())</div> |
| <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> {</div> |
| <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  ArrangeBySortOrder();</div> |
| <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  CheckSubgraph();</div> |
| <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a17b2269ca4f6e5ec3d5f00d32dc8b1e6"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a17b2269ca4f6e5ec3d5f00d32dc8b1e6">◆ </a></span>SubgraphView() <span class="overload">[2/5]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">SubgraphView::IConnectableLayers</a> && </td> |
| <td class="paramname"><em>layers</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">SubgraphView::IInputSlots</a> && </td> |
| <td class="paramname"><em>inputs</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">SubgraphView::IOutputSlots</a> && </td> |
| <td class="paramname"><em>outputs</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Constructs a sub-graph with the given arguments. </p> |
| <p>IConnectable Duplication to maintain backwards compatibility. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00071">71</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  : enable_shared_from_this()</div> |
| <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  , m_IInputSlots{inputs}</div> |
| <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  , m_IOutputSlots{<a class="code" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>}</div> |
| <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  , m_IConnectableLayers(<a class="code" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a>{<a class="code" href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">layers</a>.begin(), <a class="code" href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">layers</a>.end()})</div> |
| <div class="line"><a name="l00078"></a><span class="lineno"> 78</span> {</div> |
| <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">// Cast from IConnectableLayer to Layer for backward compatibility</span></div> |
| <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">auto</span> f = [](IConnectableLayer* value)</div> |
| <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {</div> |
| <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> PolymorphicDowncast<Layer*>(value);</div> |
| <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  };</div> |
| <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  std::transform(<a class="code" href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">layers</a>.begin(), <a class="code" href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">layers</a>.end(), std::back_inserter(m_Layers), f);</div> |
| <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div> |
| <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  m_InputSlots.resize(inputs.size());</div> |
| <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  m_IInputSlots.resize(inputs.size());</div> |
| <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputs.size(); i++)</div> |
| <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div> |
| <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  m_InputSlots.at(i) = PolymorphicDowncast<InputSlot*>(inputs[i]);</div> |
| <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  m_IInputSlots.at(i) = inputs[i];</div> |
| <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div> |
| <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div> |
| <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  m_OutputSlots.resize(<a class="code" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>.size());</div> |
| <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  m_IOutputSlots.resize(<a class="code" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>.size());</div> |
| <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>.size(); i++)</div> |
| <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  {</div> |
| <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  m_OutputSlots.at(i) = PolymorphicDowncast<OutputSlot*>(<a class="code" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>[i]);</div> |
| <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  m_IOutputSlots.at(i) = <a class="code" href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">outputs</a>[i];</div> |
| <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div> |
| <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div> |
| <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  ArrangeBySortOrder();</div> |
| <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  CheckSubgraph();</div> |
| <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a40ec3404f963da3c5ea3665a3b50c5ca"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a40ec3404f963da3c5ea3665a3b50c5ca">◆ </a></span>SubgraphView() <span class="overload">[3/5]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> </td> |
| <td>(</td> |
| <td class="paramtype">const <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & </td> |
| <td class="paramname"><em>subgraph</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Copy-constructor. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00144">144</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  : enable_shared_from_this()</div> |
| <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  , m_InputSlots(subgraph.m_InputSlots.begin(), subgraph.m_InputSlots.end())</div> |
| <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  , m_IInputSlots(subgraph.m_IInputSlots.begin(), subgraph.m_IInputSlots.end())</div> |
| <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  , m_OutputSlots(subgraph.m_OutputSlots.begin(), subgraph.m_OutputSlots.end())</div> |
| <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  , m_IOutputSlots(subgraph.m_IOutputSlots.begin(), subgraph.m_IOutputSlots.end())</div> |
| <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  , m_Layers(subgraph.m_Layers.begin(), subgraph.m_Layers.end())</div> |
| <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  , m_IConnectableLayers(<a class="code" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a>{subgraph.m_IConnectableLayers.begin(),</div> |
| <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  subgraph.m_IConnectableLayers.end()})</div> |
| <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div> |
| <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  ArrangeBySortOrder();</div> |
| <div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  CheckSubgraph();</div> |
| <div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="ae192e05beaadbd1d231676d9c37d1317"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ae192e05beaadbd1d231676d9c37d1317">◆ </a></span>SubgraphView() <span class="overload">[4/5]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> && </td> |
| <td class="paramname"><em>subgraph</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Move-constructor. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00158">158</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  : enable_shared_from_this()</div> |
| <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  , m_InputSlots(std::move(subgraph.m_InputSlots))</div> |
| <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  , m_IInputSlots(std::move(subgraph.m_IInputSlots))</div> |
| <div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  , m_OutputSlots(std::move(subgraph.m_OutputSlots))</div> |
| <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  , m_IOutputSlots(std::move(subgraph.m_IOutputSlots))</div> |
| <div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  , m_Layers(std::move(subgraph.m_Layers))</div> |
| <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  , m_IConnectableLayers(std::move(subgraph.m_IConnectableLayers))</div> |
| <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> {</div> |
| <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  ArrangeBySortOrder();</div> |
| <div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  CheckSubgraph();</div> |
| <div class="line"><a name="l00169"></a><span class="lineno"> 169</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a8e22424d6e8e40cbf9884a08c42a0199"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a8e22424d6e8e40cbf9884a08c42a0199">◆ </a></span>SubgraphView() <span class="overload">[5/5]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a> * </td> |
| <td class="paramname"><em>layer</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Constructs a sub-graph with only the given layer. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00171">171</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  : enable_shared_from_this()</div> |
| <div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  , m_Layers{PolymorphicDowncast<Layer*>(layer)}</div> |
| <div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  , m_IConnectableLayers{layer}</div> |
| <div class="line"><a name="l00175"></a><span class="lineno"> 175</span> {</div> |
| <div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numInputSlots = layer->GetNumInputSlots();</div> |
| <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  m_InputSlots.resize(numInputSlots);</div> |
| <div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  m_IInputSlots.resize(numInputSlots);</div> |
| <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < numInputSlots; i++)</div> |
| <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>  m_InputSlots.at(i) = PolymorphicDowncast<InputSlot*>(&(layer->GetInputSlot(i)));</div> |
| <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  m_IInputSlots.at(i) = &(layer->GetInputSlot(i));</div> |
| <div class="line"><a name="l00183"></a><span class="lineno"> 183</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="keywordtype">unsigned</span> <span class="keywordtype">int</span> numOutputSlots = layer->GetNumOutputSlots();</div> |
| <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  m_OutputSlots.resize(numOutputSlots);</div> |
| <div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  m_IOutputSlots.resize(numOutputSlots);</div> |
| <div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < numOutputSlots; i++)</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>  m_OutputSlots.at(i) = PolymorphicDowncast<OutputSlot*>(&(layer->GetOutputSlot(i)));</div> |
| <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  m_IOutputSlots.at(i) = &(layer->GetOutputSlot(i));</div> |
| <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div> |
| <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div> |
| <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  CheckSubgraph();</div> |
| <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <h2 class="groupheader">Member Function Documentation</h2> |
| <a id="a1db08818faa20e2b4979257a64b407cd"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a1db08818faa20e2b4979257a64b407cd">◆ </a></span>ARMNN_DEPRECATED_MSG_CHANGE_DATE() <span class="overload">[1/6]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_CHANGE_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">begin</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a>" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"24.05" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="acff9b677eeeea2273b185f0f9ca735e0"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#acff9b677eeeea2273b185f0f9ca735e0">◆ </a></span>ARMNN_DEPRECATED_MSG_CHANGE_DATE() <span class="overload">[2/6]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_CHANGE_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">begin</a>() returning public IConnectableIterator" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"24.05" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a8395375c23667f593e54aebca715cb21"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a8395375c23667f593e54aebca715cb21">◆ </a></span>ARMNN_DEPRECATED_MSG_CHANGE_DATE() <span class="overload">[3/6]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_CHANGE_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#a779ee5dd98d22e78fc062f624958fac9">cbegin</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a39524c3cad3af48ba3e2bba2e8bf9fbe">ConstIterator</a>" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"24.05" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a05667780472794260025c3a0b025b539"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a05667780472794260025c3a0b025b539">◆ </a></span>ARMNN_DEPRECATED_MSG_CHANGE_DATE() <span class="overload">[4/6]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_CHANGE_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#a479f2913172070990198a0720253e08f">cend</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a>" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"24.05" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a66e36d9c7e538497f452625c837ee1b2"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a66e36d9c7e538497f452625c837ee1b2">◆ </a></span>ARMNN_DEPRECATED_MSG_CHANGE_DATE() <span class="overload">[5/6]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_CHANGE_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">end</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a>" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"24.05" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a18822940562178cdaf13b0ca56385b55"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a18822940562178cdaf13b0ca56385b55">◆ </a></span>ARMNN_DEPRECATED_MSG_CHANGE_DATE() <span class="overload">[6/6]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_CHANGE_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function is deprecated and will be removed; please use " "<a class="el" href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">end</a>() returning public <a class="el" href="classarmnn_1_1_subgraph_view.html#a308b86dbdd0a745cef76904674c9850f">IConnectableLayerIterator</a>" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"24.05" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="aa10d95155eedfd24932ecaa01fe8a93c"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aa10d95155eedfd24932ecaa01fe8a93c">◆ </a></span>ARMNN_DEPRECATED_MSG_REMOVAL_DATE()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">ARMNN_DEPRECATED_MSG_REMOVAL_DATE </td> |
| <td>(</td> |
| <td class="paramtype">"This function has been </td> |
| <td class="paramname"><em>deprecated</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">please use constructor with arguments:" " </td> |
| <td class="paramname"><em>IConnectableLayers</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">IInputSlots</a> and <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">IOutputSlots</a>" </td> |
| <td class="paramname">, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">"23.08" </td> |
| <td class="paramname"> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td> &&</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Constructs a sub-graph with the given arguments. </p> |
| |
| </div> |
| </div> |
| <a id="ad2570202bb366163f8b4660bfe78c49d"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad2570202bb366163f8b4660bfe78c49d">◆ </a></span>begin() <span class="overload">[1/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">SubgraphView::ConstIConnectableIterator</a> begin </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00283">283</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> {</div> |
| <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordflow">return</span> m_IConnectableLayers.begin();</div> |
| <div class="line"><a name="l00286"></a><span class="lineno"> 286</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_network_8cpp_source.html#l01295">armnn::AssignBackends()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00325">SubgraphView::cbegin()</a>, <a class="el" href="_tosa_ref_backend_8cpp_source.html#l00082">TosaRefBackend::OptimizeSubgraphView()</a>, <a class="el" href="_ref_backend_8cpp_source.html#l00072">RefBackend::OptimizeSubgraphView()</a>, <a class="el" href="_neon_backend_8cpp_source.html#l00144">NeonBackend::OptimizeSubgraphView()</a>, <a class="el" href="_cl_backend_8cpp_source.html#l00293">ClBackend::OptimizeSubgraphView()</a>, and <a class="el" href="_gpu_fsa_backend_8cpp_source.html#l00220">GpuFsaBackend::OptimizeSubgraphView()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a33c3442ae6bf3771188fb0c66e9d8a1f"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a33c3442ae6bf3771188fb0c66e9d8a1f">◆ </a></span>begin() <span class="overload">[2/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> begin </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a779ee5dd98d22e78fc062f624958fac9"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a779ee5dd98d22e78fc062f624958fac9">◆ </a></span>cbegin()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">SubgraphView::ConstIConnectableIterator</a> cbegin </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00325">325</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> {</div> |
| <div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">begin</a>();</div> |
| <div class="line"><a name="l00328"></a><span class="lineno"> 328</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">References <a class="el" href="_subgraph_view_8cpp_source.html#l00283">SubgraphView::begin()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a479f2913172070990198a0720253e08f"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a479f2913172070990198a0720253e08f">◆ </a></span>cend()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">SubgraphView::ConstIConnectableIterator</a> cend </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00330">330</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> {</div> |
| <div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">end</a>();</div> |
| <div class="line"><a name="l00333"></a><span class="lineno"> 333</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">References <a class="el" href="_subgraph_view_8cpp_source.html#l00288">SubgraphView::end()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="aa71d36872f416feaa853788a7a7a7ef8"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aa71d36872f416feaa853788a7a7a7ef8">◆ </a></span>Clear()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void Clear </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00346">346</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><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>  m_InputSlots.clear();</div> |
| <div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  m_OutputSlots.clear();</div> |
| <div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  m_Layers.clear();</div> |
| <div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  </div> |
| <div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  m_IInputSlots.clear();</div> |
| <div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  m_IOutputSlots.clear();</div> |
| <div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  m_IConnectableLayers.clear();</div> |
| <div class="line"><a name="l00355"></a><span class="lineno"> 355</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="afc40490fb4f488bd2a211e81c06a6971"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#afc40490fb4f488bd2a211e81c06a6971">◆ </a></span>end() <span class="overload">[1/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">SubgraphView::ConstIConnectableIterator</a> end </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00288">288</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> {</div> |
| <div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordflow">return</span> m_IConnectableLayers.end();</div> |
| <div class="line"><a name="l00291"></a><span class="lineno"> 291</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_network_8cpp_source.html#l01295">armnn::AssignBackends()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00330">SubgraphView::cend()</a>, <a class="el" href="_tosa_ref_backend_8cpp_source.html#l00082">TosaRefBackend::OptimizeSubgraphView()</a>, <a class="el" href="_ref_backend_8cpp_source.html#l00072">RefBackend::OptimizeSubgraphView()</a>, <a class="el" href="_neon_backend_8cpp_source.html#l00144">NeonBackend::OptimizeSubgraphView()</a>, <a class="el" href="_cl_backend_8cpp_source.html#l00293">ClBackend::OptimizeSubgraphView()</a>, and <a class="el" href="_gpu_fsa_backend_8cpp_source.html#l00220">GpuFsaBackend::OptimizeSubgraphView()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="ad1372be0b1a0a813fa0c294f75667c09"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad1372be0b1a0a813fa0c294f75667c09">◆ </a></span>end() <span class="overload">[2/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a32cc53af9dcaa8888da9e019625ede7b">ConstIConnectableIterator</a> end </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a89db17358856d60f03966a0e2e8cb25c"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a89db17358856d60f03966a0e2e8cb25c">◆ </a></span>ForEachIConnectableLayer()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void ForEachIConnectableLayer </td> |
| <td>(</td> |
| <td class="paramtype">Func </td> |
| <td class="paramname"><em>func</em></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00046">46</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  {</div> |
| <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = m_IConnectableLayers.begin(); it != m_IConnectableLayers.end(); )</div> |
| <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div> |
| <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">auto</span> next = std::next(it);</div> |
| <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  func(*it);</div> |
| <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  it = next;</div> |
| <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div> |
| <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_subgraph_view_8cpp_source.html#l00536">SubgraphView::SubstituteSubgraph()</a>, and <a class="el" href="_graph_8cpp_source.html#l00472">Graph::SubstituteSubgraph()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="ad6521013ad981519904822f2ada2c4ec"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad6521013ad981519904822f2ada2c4ec">◆ </a></span>ForEachLayer()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void ForEachLayer </td> |
| <td>(</td> |
| <td class="paramtype">Func </td> |
| <td class="paramname"><em>func</em></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00035">35</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  {</div> |
| <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = m_Layers.begin(); it != m_Layers.end(); )</div> |
| <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div> |
| <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">auto</span> next = std::next(it);</div> |
| <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  func(*it);</div> |
| <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  it = next;</div> |
| <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div> |
| <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a8055e06b4f21d51fd8b4fc22ead2bdf0"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a8055e06b4f21d51fd8b4fc22ead2bdf0">◆ </a></span>GetIConnectableLayers()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">SubgraphView::IConnectableLayers</a> & GetIConnectableLayers </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00278">278</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00279"></a><span class="lineno"> 279</span> {</div> |
| <div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordflow">return</span> m_IConnectableLayers;</div> |
| <div class="line"><a name="l00281"></a><span class="lineno"> 281</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_network_8cpp_source.html#l01328">armnn::ApplyBackendOptimizations()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00393">SubgraphView::GetWorkingCopy()</a>, <a class="el" href="_subgraph_view_selector_8cpp_source.html#l00389">SubgraphViewSelector::SelectSubgraphs()</a>, and <a class="el" href="_optimization_views_8cpp_source.html#l00011">OptimizationViews::Validate()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="af8c62982d6b14bc6d38722a31d37281b"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#af8c62982d6b14bc6d38722a31d37281b">◆ </a></span>GetIInputSlot() <span class="overload">[1/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_i_input_slot.html">IInputSlot</a> * GetIInputSlot </td> |
| <td>(</td> |
| <td class="paramtype">unsigned int </td> |
| <td class="paramname"><em>index</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00248">248</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> {</div> |
| <div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">return</span> m_IInputSlots.at(index);</div> |
| <div class="line"><a name="l00251"></a><span class="lineno"> 251</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a78a84ff740b2ec683d9da229a25c4140"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a78a84ff740b2ec683d9da229a25c4140">◆ </a></span>GetIInputSlot() <span class="overload">[2/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_i_input_slot.html">IInputSlot</a> * GetIInputSlot </td> |
| <td>(</td> |
| <td class="paramtype">unsigned int </td> |
| <td class="paramname"><em>index</em></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00243">243</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> {</div> |
| <div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">return</span> m_IInputSlots.at(index);</div> |
| <div class="line"><a name="l00246"></a><span class="lineno"> 246</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="ada17adb05f8061fffa3e193544795fd5"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ada17adb05f8061fffa3e193544795fd5">◆ </a></span>GetIInputSlots()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">SubgraphView::IInputSlots</a> & GetIInputSlots </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00233">233</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> {</div> |
| <div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> m_IInputSlots;</div> |
| <div class="line"><a name="l00236"></a><span class="lineno"> 236</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_subgraph_view_8cpp_source.html#l00393">SubgraphView::GetWorkingCopy()</a>, <a class="el" href="_subgraph_view_selector_8cpp_source.html#l00389">SubgraphViewSelector::SelectSubgraphs()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00536">SubgraphView::SubstituteSubgraph()</a>, and <a class="el" href="_optimization_views_8cpp_source.html#l00011">OptimizationViews::Validate()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="ab48f73bad75377de628634fd9e807879"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ab48f73bad75377de628634fd9e807879">◆ </a></span>GetIOutputSlot() <span class="overload">[1/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * GetIOutputSlot </td> |
| <td>(</td> |
| <td class="paramtype">unsigned int </td> |
| <td class="paramname"><em>index</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00263">263</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> {</div> |
| <div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">return</span> m_IOutputSlots.at(index);</div> |
| <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a92f32e6689a8fe52aa043ba5395c7b57"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a92f32e6689a8fe52aa043ba5395c7b57">◆ </a></span>GetIOutputSlot() <span class="overload">[2/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_i_output_slot.html">IOutputSlot</a> * GetIOutputSlot </td> |
| <td>(</td> |
| <td class="paramtype">unsigned int </td> |
| <td class="paramname"><em>index</em></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00253">253</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> {</div> |
| <div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">return</span> m_IOutputSlots.at(index);</div> |
| <div class="line"><a name="l00256"></a><span class="lineno"> 256</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_tosa_ref_backend_8cpp_source.html#l00082">TosaRefBackend::OptimizeSubgraphView()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="adc4e3f28ec3906680f1a25a7b1a3e8f9"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#adc4e3f28ec3906680f1a25a7b1a3e8f9">◆ </a></span>GetIOutputSlots()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">SubgraphView::IOutputSlots</a> & GetIOutputSlots </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00238">238</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> {</div> |
| <div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordflow">return</span> m_IOutputSlots;</div> |
| <div class="line"><a name="l00241"></a><span class="lineno"> 241</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_subgraph_view_8cpp_source.html#l00393">SubgraphView::GetWorkingCopy()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00536">SubgraphView::SubstituteSubgraph()</a>, and <a class="el" href="_optimization_views_8cpp_source.html#l00011">OptimizationViews::Validate()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a6cbf14f4d57ef2de2cfed9a903db1643"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a6cbf14f4d57ef2de2cfed9a903db1643">◆ </a></span>GetNumInputSlots()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unsigned int GetNumInputSlots </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00268">268</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> {</div> |
| <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">return</span> armnn::numeric_cast<unsigned int>(m_IInputSlots.size());</div> |
| <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_tosa_ref_backend_8cpp_source.html#l00082">TosaRefBackend::OptimizeSubgraphView()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a59a4100374e80a3504f4bb4d13695d0b"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a59a4100374e80a3504f4bb4d13695d0b">◆ </a></span>GetNumOutputSlots()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unsigned int GetNumOutputSlots </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00273">273</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> {</div> |
| <div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">return</span> armnn::numeric_cast<unsigned int>(m_IOutputSlots.size());</div> |
| <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_tosa_ref_backend_8cpp_source.html#l00082">TosaRefBackend::OptimizeSubgraphView()</a>, and <a class="el" href="_gpu_fsa_backend_8cpp_source.html#l00220">GpuFsaBackend::OptimizeSubgraphView()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a9523398f3d95c6107de1bcd4b5d1d2ae"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a9523398f3d95c6107de1bcd4b5d1d2ae">◆ </a></span>GetOriginalInputSlots()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">SubgraphView::IInputSlots</a> & GetOriginalInputSlots </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>These methods should be called on a working copy subgraph created from GetWorkingCopy. </p> |
| <p>They return pointers to the input and output Slots belonging to the original <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> that the working copy was created from. This may be used to find the original <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> of connected boundary OutputSlots. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00602">602</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> {</div> |
| <div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  <span class="keywordflow">if</span> (!p_WorkingCopyImpl)</div> |
| <div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  {</div> |
| <div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <span class="keywordflow">throw</span> NullPointerException(<span class="stringliteral">"The SubgraphView calling GetOriginalInputSlots is not a working copy. "</span></div> |
| <div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  <span class="stringliteral">"Call this function on SubgraphView returned from SubgraphView::GetWorkingCopy()"</span>);</div> |
| <div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  }</div> |
| <div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="keywordflow">if</span> (!p_WorkingCopyImpl->m_OriginalSubgraphView)</div> |
| <div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  {</div> |
| <div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <span class="keywordflow">throw</span> NullPointerException(<span class="stringliteral">"The working copy SubgraphView pointer to its original SubgraphView is null."</span>);</div> |
| <div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  }</div> |
| <div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <span class="keywordflow">return</span> p_WorkingCopyImpl->m_OriginalSubgraphView->GetIInputSlots();</div> |
| <div class="line"><a name="l00614"></a><span class="lineno"> 614</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a2ead7853fa72f70a09cd2e767f22dfc3"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a2ead7853fa72f70a09cd2e767f22dfc3">◆ </a></span>GetOriginalOutputSlots()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const <a class="el" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">SubgraphView::IOutputSlots</a> & GetOriginalOutputSlots </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00615">615</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> {</div> |
| <div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="keywordflow">if</span> (!p_WorkingCopyImpl)</div> |
| <div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  {</div> |
| <div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <span class="keywordflow">throw</span> NullPointerException(<span class="stringliteral">"The SubgraphView calling GetOriginalOutputSlots is not a working copy. "</span></div> |
| <div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="stringliteral">"Call this function on SubgraphView returned from SubgraphView::GetWorkingCopy()"</span>);</div> |
| <div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  }</div> |
| <div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  <span class="keywordflow">if</span> (!p_WorkingCopyImpl->m_OriginalSubgraphView)</div> |
| <div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  {</div> |
| <div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <span class="keywordflow">throw</span> NullPointerException(<span class="stringliteral">"The working copy SubgraphView pointer to its original SubgraphView is null."</span>);</div> |
| <div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  }</div> |
| <div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  <span class="keywordflow">return</span> p_WorkingCopyImpl->m_OriginalSubgraphView->GetIOutputSlots();</div> |
| <div class="line"><a name="l00627"></a><span class="lineno"> 627</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a22a2f50137aef4f93fbdb57b6e029895"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a22a2f50137aef4f93fbdb57b6e029895">◆ </a></span>GetOutputSlot()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> * GetOutputSlot </td> |
| <td>(</td> |
| <td class="paramtype">unsigned int </td> |
| <td class="paramname"><em>index</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00258">258</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> {</div> |
| <div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">return</span> m_OutputSlots.at(index);</div> |
| <div class="line"><a name="l00261"></a><span class="lineno"> 261</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a5ab39a2590672369bddfdd0b790e6025"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a5ab39a2590672369bddfdd0b790e6025">◆ </a></span>GetWorkingCopy()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> GetWorkingCopy </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>This method returns a copy of the original <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> provided by OptimizeSubgraphView with a separate underlying graph from the main ArmNN graph. </p> |
| <p>Backend users should edit this working copy and then add it as a SubstitutionPair, along with original <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a>, to the <a class="el" href="classarmnn_1_1_optimization_views.html">OptimizationViews</a> returned by OptimizeSubgraphView. ArmNN will then decide on whether or not to carry out Substitution of the two SubgraphViews. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00393">393</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> {</div> |
| <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordflow">if</span> (p_WorkingCopyImpl)</div> |
| <div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  {</div> |
| <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordflow">throw</span> Exception(<span class="stringliteral">"The SubgraphView calling GetWorkingCopy() is already a working copy. This function "</span></div> |
| <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="stringliteral">"should be called on original SubgraphView obtained from OptimizeSubgraphView()"</span>);</div> |
| <div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  }</div> |
| <div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  </div> |
| <div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="comment">// Create a cut down SubgraphView with underlying graph containing only the relevant layers.</span></div> |
| <div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="comment">// It needs its own underlying layers so that they can be replaced safely.</span></div> |
| <div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <span class="keyword">auto</span> ptr = std::make_shared<SubgraphViewWorkingCopy>(Graph(), shared_from_this());</div> |
| <div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  </div> |
| <div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  std::unordered_map<const IConnectableLayer*, IConnectableLayer*> originalToClonedLayerMap;</div> |
| <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  std::list<armnn::IConnectableLayer*> originalSubgraphLayers = <a class="code" href="classarmnn_1_1_subgraph_view.html#a8055e06b4f21d51fd8b4fc22ead2bdf0">GetIConnectableLayers</a>();</div> |
| <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  </div> |
| <div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& originalLayer : originalSubgraphLayers)</div> |
| <div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  {</div> |
| <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  Layer* <span class="keyword">const</span> layer = PolymorphicDowncast<const Layer*>(originalLayer)->Clone(ptr->m_Graph);</div> |
| <div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  originalToClonedLayerMap.emplace(originalLayer, layer);</div> |
| <div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  }</div> |
| <div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  </div> |
| <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">SubgraphView::IInputSlots</a> workingCopyInputs;</div> |
| <div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="comment">// Add IInputSlots to workingCopy</span></div> |
| <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> originalSubgraphInputSlot : <a class="code" href="classarmnn_1_1_subgraph_view.html#ada17adb05f8061fffa3e193544795fd5">GetIInputSlots</a>())</div> |
| <div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  {</div> |
| <div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keyword">const</span> IConnectableLayer& originalSubgraphLayer =</div> |
| <div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  PolymorphicDowncast<InputSlot*>(originalSubgraphInputSlot)->GetOwningLayer();</div> |
| <div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  </div> |
| <div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keyword">auto</span>* clonedLayer = originalToClonedLayerMap[&originalSubgraphLayer];</div> |
| <div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  </div> |
| <div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  workingCopyInputs.push_back(&clonedLayer->GetInputSlot(originalSubgraphInputSlot->GetSlotIndex()));</div> |
| <div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  }</div> |
| <div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  </div> |
| <div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> originalSubgraphLayer : originalSubgraphLayers)</div> |
| <div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  {</div> |
| <div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  IConnectableLayer* <span class="keyword">const</span> clonedLayer = originalToClonedLayerMap[originalSubgraphLayer];</div> |
| <div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  </div> |
| <div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="comment">// OutputLayers have no OutputSlots to be connected</span></div> |
| <div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="keywordflow">if</span> (clonedLayer->GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a>)</div> |
| <div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  {</div> |
| <div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="comment">// connect all cloned layers as per original subgraph</span></div> |
| <div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < clonedLayer->GetNumOutputSlots(); i++)</div> |
| <div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  {</div> |
| <div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <span class="keyword">auto</span>& originalOutputSlot = originalSubgraphLayer->GetOutputSlot(i);</div> |
| <div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keyword">auto</span>& clonedOutputSlot = clonedLayer->GetOutputSlot(i);</div> |
| <div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = 0; j < originalOutputSlot.GetNumConnections(); j++)</div> |
| <div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  {</div> |
| <div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  <span class="comment">// nextLayer is the layer with IInputSlot connected to IOutputSlot we are working on</span></div> |
| <div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keyword">const</span> IConnectableLayer& nextLayerOnOriginalSubgraph =</div> |
| <div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  originalOutputSlot.GetConnection(j)->GetOwningIConnectableLayer();</div> |
| <div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  </div> |
| <div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="comment">// Check the layer is in our map and so has a clonedLayer</span></div> |
| <div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordflow">if</span> (originalToClonedLayerMap.find(&nextLayerOnOriginalSubgraph) != originalToClonedLayerMap.end())</div> |
| <div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  {</div> |
| <div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keyword">auto</span>* nextLayerOnClonedSubgraph = originalToClonedLayerMap[&nextLayerOnOriginalSubgraph];</div> |
| <div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  </div> |
| <div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <span class="keyword">auto</span> index = PolymorphicDowncast<OutputSlot*>(</div> |
| <div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  &originalOutputSlot)->GetConnection(j)->GetSlotIndex();</div> |
| <div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  </div> |
| <div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  IInputSlot& inputSlot = nextLayerOnClonedSubgraph->GetInputSlot(index);</div> |
| <div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  </div> |
| <div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="comment">// Then make the connection</span></div> |
| <div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  clonedOutputSlot.Connect(inputSlot);</div> |
| <div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  }</div> |
| <div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  }</div> |
| <div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <span class="comment">// Copy the tensorInfo to the clonedOutputSlot</span></div> |
| <div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  clonedOutputSlot.SetTensorInfo(originalOutputSlot.GetTensorInfo());</div> |
| <div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  }</div> |
| <div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  }</div> |
| <div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  }</div> |
| <div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  </div> |
| <div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">SubgraphView::IOutputSlots</a> workingCopyOutputs;</div> |
| <div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  </div> |
| <div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="comment">// Add IOutputSlots to workingCopy</span></div> |
| <div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> outputSlot : <a class="code" href="classarmnn_1_1_subgraph_view.html#adc4e3f28ec3906680f1a25a7b1a3e8f9">GetIOutputSlots</a>())</div> |
| <div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  {</div> |
| <div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keyword">auto</span> outputSlotIndex = outputSlot->CalculateIndexOnOwner();</div> |
| <div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="keyword">const</span> IConnectableLayer& originalSubgraphLayer = outputSlot->GetOwningIConnectableLayer();</div> |
| <div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  </div> |
| <div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="comment">// OutputLayers have no OutputSlots to be connected</span></div> |
| <div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">if</span> (originalSubgraphLayer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a>)</div> |
| <div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  {</div> |
| <div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  IConnectableLayer* clonedLayer = originalToClonedLayerMap[&originalSubgraphLayer];</div> |
| <div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  </div> |
| <div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="comment">// Add the OutputSlot of clonedLayer to WorkingCopy OutputSlots</span></div> |
| <div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  workingCopyOutputs.push_back(&clonedLayer->GetOutputSlot(outputSlotIndex));</div> |
| <div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  }</div> |
| <div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  }</div> |
| <div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  </div> |
| <div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">SubgraphView::IConnectableLayers</a> workingCopyLayers;</div> |
| <div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& pair : originalToClonedLayerMap)</div> |
| <div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  {</div> |
| <div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  workingCopyLayers.push_back(pair.second);</div> |
| <div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  }</div> |
| <div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  </div> |
| <div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keywordflow">return</span> {std::move(workingCopyLayers),</div> |
| <div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  std::move(workingCopyInputs),</div> |
| <div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  std::move(workingCopyOutputs),</div> |
| <div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  ptr};</div> |
| <div class="line"><a name="l00492"></a><span class="lineno"> 492</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">References <a class="el" href="classarmnn_1_1_layer.html#ae89ff455503aa106d00bf34103d2f2e0">Layer::Clone()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00278">SubgraphView::GetIConnectableLayers()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00233">SubgraphView::GetIInputSlots()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00238">SubgraphView::GetIOutputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#ac2dac3b61c94de52093616be4ab17f8d">IConnectableLayer::GetNumOutputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#adceb04ae84c524e4d01881e3754a4d59">IConnectableLayer::GetType()</a>, <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">armnn::Output</a>, and <a class="el" href="classarmnn_1_1_i_input_slot.html#ac8591a782840b802efd266f2743efe2e">IInputSlot::SetTensorInfo()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="aae84cdbe05d87942f8ce0a2576c8a7c8"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aae84cdbe05d87942f8ce0a2576c8a7c8">◆ </a></span>operator=()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & operator= </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> && </td> |
| <td class="paramname"><em>other</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Move-assignment operator. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00197">197</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> {</div> |
| <div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  m_InputSlots = std::move(other.m_InputSlots);</div> |
| <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  m_IInputSlots = std::move(other.m_IInputSlots);</div> |
| <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  m_OutputSlots = std::move(other.m_OutputSlots);</div> |
| <div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  m_IOutputSlots = std::move(other.m_IOutputSlots);</div> |
| <div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  m_Layers = std::move(other.m_Layers);</div> |
| <div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  m_IConnectableLayers = std::move(other.m_IConnectableLayers);</div> |
| <div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div> |
| <div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  CheckSubgraph();</div> |
| <div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div> |
| <div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> |
| <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> }</div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a28472b80e6cb7415f58c18c60c158c24"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a28472b80e6cb7415f58c18c60c158c24">◆ </a></span>SubstituteSubgraph() <span class="overload">[1/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void SubstituteSubgraph </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & </td> |
| <td class="paramname"><em>patternSubgraph</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & </td> |
| <td class="paramname"><em>substituteSubgraph</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00536">536</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> {</div> |
| <div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="keywordflow">if</span> (!p_WorkingCopyImpl)</div> |
| <div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  {</div> |
| <div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <span class="keywordflow">throw</span> NullPointerException(<span class="stringliteral">"The SubgraphView calling SubstituteSubgraphView is not a working copy. "</span></div> |
| <div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="stringliteral">"Call this function on SubgraphView returned from SubgraphView::GetWorkingCopy()"</span>);</div> |
| <div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  }</div> |
| <div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  </div> |
| <div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <span class="keyword">auto</span> numPatternInputs = patternSubgraph.GetIInputSlots().size();</div> |
| <div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keyword">auto</span> numSubInputs = substituteSubgraph.GetIInputSlots().size();</div> |
| <div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <span class="keywordflow">if</span> (numPatternInputs != numSubInputs)</div> |
| <div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  {</div> |
| <div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a>(</div> |
| <div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  fmt::format(<span class="stringliteral">"Number of InputSlots on substitute SubgraphView ({}) must equal the number of"</span></div> |
| <div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <span class="stringliteral">" InputSlots on pattern SubgraphView ({})"</span>,</div> |
| <div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  numSubInputs,</div> |
| <div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  numPatternInputs));</div> |
| <div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  }</div> |
| <div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  </div> |
| <div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <span class="keyword">auto</span> numPatternOutputs = patternSubgraph.GetIOutputSlots().size();</div> |
| <div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  <span class="keyword">auto</span> numSubOutputs = substituteSubgraph.GetIOutputSlots().size();</div> |
| <div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="keywordflow">if</span> (numPatternOutputs != numSubOutputs)</div> |
| <div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  {</div> |
| <div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a>(</div> |
| <div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  fmt::format(<span class="stringliteral">"Number of OutputSlots on substitute SubgraphView ({}) must equal the number of"</span></div> |
| <div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="stringliteral">" OutputSlots on pattern SubgraphView ({})"</span>,</div> |
| <div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  numSubOutputs,</div> |
| <div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  numPatternOutputs));</div> |
| <div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  }</div> |
| <div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  </div> |
| <div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="comment">// Add substitute layer to the Main graph i.e. graph in p_WorkingCopyImpl</span></div> |
| <div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <span class="keyword">auto</span> workingCopyGraph = &p_WorkingCopyImpl->m_Graph;</div> |
| <div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  substituteSubgraph.ForEachIConnectableLayer([workingCopyGraph](IConnectableLayer* iConnectableLayer)</div> |
| <div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  {</div> |
| <div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <span class="comment">// Search WorkingCopy Graph for substituteLayer and add if missing</span></div> |
| <div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keywordflow">if</span> (std::find(std::begin(workingCopyGraph->m_Layers),</div> |
| <div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  std::end(workingCopyGraph->m_Layers),</div> |
| <div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  iConnectableLayer) ==</div> |
| <div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  std::end(workingCopyGraph->m_Layers))</div> |
| <div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  {</div> |
| <div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  auto layer = PolymorphicDowncast<Layer*>(iConnectableLayer);</div> |
| <div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  </div> |
| <div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  layer->Reparent(*workingCopyGraph,</div> |
| <div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  (workingCopyGraph->m_Layers).end());</div> |
| <div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  </div> |
| <div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  workingCopyGraph->m_LayersInOrder = false;</div> |
| <div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  }</div> |
| <div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  });</div> |
| <div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  </div> |
| <div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <span class="comment">// Replace the old connections with connections to new layer</span></div> |
| <div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  workingCopyGraph->ReplaceSubgraphConnections(patternSubgraph, substituteSubgraph);</div> |
| <div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  </div> |
| <div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="comment">// Update input/outputSlot pointers</span></div> |
| <div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  UpdateSubgraphViewSlotPointers(patternSubgraph, substituteSubgraph);</div> |
| <div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  </div> |
| <div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="comment">// Delete the old layers.</span></div> |
| <div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  workingCopyGraph->EraseSubgraphLayers(patternSubgraph);</div> |
| <div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  </div> |
| <div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  <span class="comment">// Sort</span></div> |
| <div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  workingCopyGraph->TopologicalSort();</div> |
| <div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  </div> |
| <div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <span class="comment">// Update SubgraphView layer pointers to match those of the internal WorkingCopy layer pointers</span></div> |
| <div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  m_IConnectableLayers = <a class="code" href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">IConnectableLayers</a>{ workingCopyGraph->m_Layers.begin(),</div> |
| <div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  workingCopyGraph->m_Layers.end() };</div> |
| <div class="line"><a name="l00600"></a><span class="lineno"> 600</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">References <a class="el" href="_subgraph_view_8hpp_source.html#l00046">SubgraphView::ForEachIConnectableLayer()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00233">SubgraphView::GetIInputSlots()</a>, and <a class="el" href="_subgraph_view_8cpp_source.html#l00238">SubgraphView::GetIOutputSlots()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="ae9da449c038607237135b6b543890a15"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ae9da449c038607237135b6b543890a15">◆ </a></span>SubstituteSubgraph() <span class="overload">[2/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void SubstituteSubgraph </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & </td> |
| <td class="paramname"><em>subgraph</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a> * </td> |
| <td class="paramname"><em>substituteLayer</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>These methods should be called on a working copy subgraph created from GetWorkingCopy. </p> |
| <p>They take a <a class="el" href="classarmnn_1_1_subgraph_view.html" title="The SubgraphView class represents a subgraph of a Graph.">SubgraphView</a> pattern to replace and the substitute layer or subgraphView to substitute in. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8cpp_source.html#l00494">494</a> of file <a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> {</div> |
| <div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <a class="code" href="_assert_8hpp.html#a5698be69cbd5dfe6c28fcd9867e8cbed">ARMNN_ASSERT</a>(substituteLayer != <span class="keyword">nullptr</span>);</div> |
| <div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a40bb9799fd918fa31f983cc5aa156828">SubgraphView</a> substituteSubgraph(substituteLayer);</div> |
| <div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  </div> |
| <div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#ae9da449c038607237135b6b543890a15">SubstituteSubgraph</a>(subgraph, substituteSubgraph);</div> |
| <div class="line"><a name="l00500"></a><span class="lineno"> 500</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">References <a class="el" href="_assert_8hpp_source.html#l00014">ARMNN_ASSERT</a>.</p> |
| |
| </div> |
| </div> |
| <h2 class="groupheader">Member Data Documentation</h2> |
| <a id="a5aeb684bf895052593e5239f133094ee"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a5aeb684bf895052593e5239f133094ee">◆ </a></span>layers</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">OutputSlots</a> <a class="el" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">Layers</a>&& layers</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00074">74</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a342a59ed341e5f2e94dfaa34136573ef"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a342a59ed341e5f2e94dfaa34136573ef">◆ </a></span>outputs</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">OutputSlots</a>&& outputs</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_subgraph_view_8hpp_source.html#l00074">74</a> of file <a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>.</p> |
| |
| </div> |
| </div> |
| <hr/>The documentation for this class was generated from the following files:<ul> |
| <li>include/armnn/backends/<a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a></li> |
| <li>src/armnn/<a class="el" href="_subgraph_view_8cpp_source.html">SubgraphView.cpp</a></li> |
| </ul> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <div class="ttc" id="a_assert_8hpp_html_a5698be69cbd5dfe6c28fcd9867e8cbed"><div class="ttname"><a href="_assert_8hpp.html#a5698be69cbd5dfe6c28fcd9867e8cbed">ARMNN_ASSERT</a></div><div class="ttdeci">#define ARMNN_ASSERT(COND)</div><div class="ttdef"><b>Definition:</b> <a href="_assert_8hpp_source.html#l00014">Assert.hpp:14</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_a3f717693851810942d3ae0180a97fb4c"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a3f717693851810942d3ae0180a97fb4c">armnn::SubgraphView::IOutputSlots</a></div><div class="ttdeci">std::vector< IOutputSlot * > IOutputSlots</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00060">SubgraphView.hpp:60</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_ad7c7687cd3542e5cbb45e56f9a9456e7"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#ad7c7687cd3542e5cbb45e56f9a9456e7">armnn::SubgraphView::IConnectableLayers</a></div><div class="ttdeci">std::list< IConnectableLayer * > IConnectableLayers</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00062">SubgraphView.hpp:62</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_a8055e06b4f21d51fd8b4fc22ead2bdf0"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a8055e06b4f21d51fd8b4fc22ead2bdf0">armnn::SubgraphView::GetIConnectableLayers</a></div><div class="ttdeci">const IConnectableLayers & GetIConnectableLayers() const</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00278">SubgraphView.cpp:278</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_ad2570202bb366163f8b4660bfe78c49d"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#ad2570202bb366163f8b4660bfe78c49d">armnn::SubgraphView::begin</a></div><div class="ttdeci">IConnectableLayerIterator begin()</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00283">SubgraphView.cpp:283</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_a4ad949634fd697549da161eb09d8b7fd"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a4ad949634fd697549da161eb09d8b7fd">armnn::SubgraphView::IInputSlots</a></div><div class="ttdeci">std::vector< IInputSlot * > IInputSlots</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00058">SubgraphView.hpp:58</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_a5aeb684bf895052593e5239f133094ee"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a5aeb684bf895052593e5239f133094ee">armnn::SubgraphView::layers</a></div><div class="ttdeci">OutputSlots Layers && layers</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00074">SubgraphView.hpp:74</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_ada17adb05f8061fffa3e193544795fd5"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#ada17adb05f8061fffa3e193544795fd5">armnn::SubgraphView::GetIInputSlots</a></div><div class="ttdeci">const IInputSlots & GetIInputSlots() const</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00233">SubgraphView.cpp:233</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_afc40490fb4f488bd2a211e81c06a6971"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#afc40490fb4f488bd2a211e81c06a6971">armnn::SubgraphView::end</a></div><div class="ttdeci">IConnectableLayerIterator end()</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00288">SubgraphView.cpp:288</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_a342a59ed341e5f2e94dfaa34136573ef"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a342a59ed341e5f2e94dfaa34136573ef">armnn::SubgraphView::outputs</a></div><div class="ttdeci">OutputSlots && outputs</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00074">SubgraphView.hpp:74</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_adc4e3f28ec3906680f1a25a7b1a3e8f9"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#adc4e3f28ec3906680f1a25a7b1a3e8f9">armnn::SubgraphView::GetIOutputSlots</a></div><div class="ttdeci">const IOutputSlots & GetIOutputSlots() const</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00238">SubgraphView.cpp:238</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_ae9da449c038607237135b6b543890a15"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#ae9da449c038607237135b6b543890a15">armnn::SubgraphView::SubstituteSubgraph</a></div><div class="ttdeci">void SubstituteSubgraph(SubgraphView &, IConnectableLayer *)</div><div class="ttdoc">These methods should be called on a working copy subgraph created from GetWorkingCopy.</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00494">SubgraphView.cpp:494</a></div></div> |
| <div class="ttc" id="aclassarmnn_1_1_subgraph_view_html_a40bb9799fd918fa31f983cc5aa156828"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a40bb9799fd918fa31f983cc5aa156828">armnn::SubgraphView::SubgraphView</a></div><div class="ttdeci">SubgraphView(Graph &graph)</div><div class="ttdoc">Constructs a sub-graph from the entire given graph.</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00045">SubgraphView.cpp:45</a></div></div> |
| <div class="ttc" id="anamespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">armnn::LayerType::Output</a></div><div class="ttdeci">@ Output</div></div> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a></li> |
| <li class="footer">Generated on Wed Feb 14 2024 16:36:25 for Arm NN by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |