Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: OptimizeForTypeImpl< BaseType, Wrapped > Class Template Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_1_1_optimize_for_type_impl.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="#pro-methods">Protected Member Functions</a> | |
| 86 | <a href="classarmnn_1_1_optimize_for_type_impl-members.html">List of all members</a> </div> |
| 87 | <div class="headertitle"> |
| 88 | <div class="title">OptimizeForTypeImpl< BaseType, Wrapped > Class Template Reference</div> </div> |
| 89 | </div><!--header--> |
| 90 | <div class="contents"> |
| 91 | |
| 92 | <p><code>#include <<a class="el" href="_optimization_8hpp_source.html">Optimization.hpp</a>></code></p> |
| 93 | <div class="dynheader"> |
| 94 | Inheritance diagram for OptimizeForTypeImpl< BaseType, Wrapped >:</div> |
| 95 | <div class="dyncontent"> |
| 96 | <div class="center"> |
| 97 | <img src="classarmnn_1_1_optimize_for_type_impl.png" usemap="#OptimizeForTypeImpl_3C_20BaseType_2C_20Wrapped_20_3E_map" alt=""/> |
| 98 | <map id="OptimizeForTypeImpl_3C_20BaseType_2C_20Wrapped_20_3E_map" name="OptimizeForTypeImpl_3C_20BaseType_2C_20Wrapped_20_3E_map"> |
| 99 | <area href="classarmnn_1_1_optimization.html" alt="Optimization" shape="rect" coords="0,0,270,24"/> |
| 100 | <area href="classarmnn_1_1_optimize_for_type.html" alt="OptimizeForType< BaseType, Wrapped >" shape="rect" coords="140,112,410,136"/> |
| 101 | </map> |
| 102 | </div></div> |
| 103 | <table class="memberdecls"> |
| 104 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 105 | Public Member Functions</h2></td></tr> |
| 106 | <tr class="memitem:a0c94c7fc320ff3451c159f726733a38d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optimize_for_type_impl.html#a0c94c7fc320ff3451c159f726733a38d">Run</a> (<a class="el" href="classarmnn_1_1_graph.html">Graph</a> &graph, <a class="el" href="classarmnn_1_1_layer.html">Layer</a> &base) const override</td></tr> |
| 107 | <tr class="separator:a0c94c7fc320ff3451c159f726733a38d"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="inherit_header pub_methods_classarmnn_1_1_optimization"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_optimization')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_optimization.html">Optimization</a></td></tr> |
| 109 | <tr class="memitem:abf796bec50bd8e210dc44b9531132e69 inherit pub_methods_classarmnn_1_1_optimization"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optimization.html#abf796bec50bd8e210dc44b9531132e69">Optimization</a> ()=default</td></tr> |
| 110 | <tr class="separator:abf796bec50bd8e210dc44b9531132e69 inherit pub_methods_classarmnn_1_1_optimization"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:af977853d9ce764161e4a1bed308f0e57 inherit pub_methods_classarmnn_1_1_optimization"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optimization.html#af977853d9ce764161e4a1bed308f0e57">~Optimization</a> ()=default</td></tr> |
| 112 | <tr class="separator:af977853d9ce764161e4a1bed308f0e57 inherit pub_methods_classarmnn_1_1_optimization"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | </table><table class="memberdecls"> |
| 114 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 115 | Protected Member Functions</h2></td></tr> |
| 116 | <tr class="memitem:a14dc566d3fc3bd5380998a26190b8124"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_optimize_for_type_impl.html#a14dc566d3fc3bd5380998a26190b8124">~OptimizeForTypeImpl</a> ()=default</td></tr> |
| 117 | <tr class="separator:a14dc566d3fc3bd5380998a26190b8124"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | </table> |
| 119 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 120 | <div class="textblock"><h3>template<typename BaseType, typename Wrapped><br /> |
| 121 | class armnn::OptimizeForTypeImpl< BaseType, Wrapped ></h3> |
| 122 | |
| 123 | <p>Wrapper <a class="el" href="classarmnn_1_1_optimization.html">Optimization</a> base class that calls Wrapped::Run() for every layer of type BaseType.</p><ul> |
| 124 | <li>Wrapped class mustn't remove the base layer. The optimizer will remove it if left unconnected after applying each optimization. </li> |
| 125 | </ul> |
| 126 | |
| 127 | <p class="definition">Definition at line <a class="el" href="_optimization_8hpp_source.html#l00031">31</a> of file <a class="el" href="_optimization_8hpp_source.html">Optimization.hpp</a>.</p> |
| 128 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 129 | <a id="a14dc566d3fc3bd5380998a26190b8124"></a> |
| 130 | <h2 class="memtitle"><span class="permalink"><a href="#a14dc566d3fc3bd5380998a26190b8124">◆ </a></span>~OptimizeForTypeImpl()</h2> |
| 131 | |
| 132 | <div class="memitem"> |
| 133 | <div class="memproto"> |
| 134 | <table class="mlabels"> |
| 135 | <tr> |
| 136 | <td class="mlabels-left"> |
| 137 | <table class="memname"> |
| 138 | <tr> |
| 139 | <td class="memname">~<a class="el" href="classarmnn_1_1_optimize_for_type_impl.html">OptimizeForTypeImpl</a> </td> |
| 140 | <td>(</td> |
| 141 | <td class="paramname"></td><td>)</td> |
| 142 | <td></td> |
| 143 | </tr> |
| 144 | </table> |
| 145 | </td> |
| 146 | <td class="mlabels-right"> |
| 147 | <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span> </td> |
| 148 | </tr> |
| 149 | </table> |
| 150 | </div><div class="memdoc"> |
| 151 | |
| 152 | </div> |
| 153 | </div> |
| 154 | <h2 class="groupheader">Member Function Documentation</h2> |
| 155 | <a id="a0c94c7fc320ff3451c159f726733a38d"></a> |
| 156 | <h2 class="memtitle"><span class="permalink"><a href="#a0c94c7fc320ff3451c159f726733a38d">◆ </a></span>Run()</h2> |
| 157 | |
| 158 | <div class="memitem"> |
| 159 | <div class="memproto"> |
| 160 | <table class="mlabels"> |
| 161 | <tr> |
| 162 | <td class="mlabels-left"> |
| 163 | <table class="memname"> |
| 164 | <tr> |
| 165 | <td class="memname">void Run </td> |
| 166 | <td>(</td> |
| 167 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.html">Graph</a> & </td> |
| 168 | <td class="paramname"><em>graph</em>, </td> |
| 169 | </tr> |
| 170 | <tr> |
| 171 | <td class="paramkey"></td> |
| 172 | <td></td> |
| 173 | <td class="paramtype"><a class="el" href="classarmnn_1_1_layer.html">Layer</a> & </td> |
| 174 | <td class="paramname"><em>base</em> </td> |
| 175 | </tr> |
| 176 | <tr> |
| 177 | <td></td> |
| 178 | <td>)</td> |
| 179 | <td></td><td> const</td> |
| 180 | </tr> |
| 181 | </table> |
| 182 | </td> |
| 183 | <td class="mlabels-right"> |
| 184 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 185 | </tr> |
| 186 | </table> |
| 187 | </div><div class="memdoc"> |
| 188 | |
| 189 | <p>Implements <a class="el" href="classarmnn_1_1_optimization.html#aa074082916688cd92fa942f89a4e5274">Optimization</a>.</p> |
| 190 | |
| 191 | <p class="definition">Definition at line <a class="el" href="_optimization_8hpp_source.html#l00036">36</a> of file <a class="el" href="_optimization_8hpp_source.html">Optimization.hpp</a>.</p> |
| 192 | <div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">if</span> (base.GetType() == LayerEnumOf<BaseType>())</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  Wrapped::Run(graph, *boost::polymorphic_downcast<BaseType*>(&base));</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div></div><!-- fragment --> |
| 193 | </div> |
| 194 | </div> |
| 195 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 196 | <li>src/armnn/optimizations/<a class="el" href="_optimization_8hpp_source.html">Optimization.hpp</a></li> |
| 197 | </ul> |
| 198 | </div><!-- contents --> |
| 199 | </div><!-- doc-content --> |
| 200 | <!-- start footer part --> |
| 201 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 202 | <ul> |
| 203 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_optimize_for_type_impl.html">OptimizeForTypeImpl</a></li> |
| 204 | <li class="footer">Generated on Fri Mar 13 2020 16:07:04 for ArmNN by |
| 205 | <a href="http://www.doxygen.org/index.html"> |
| 206 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 207 | </ul> |
| 208 | </div> |
| 209 | </body> |
| 210 | </html> |