Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: StringifyLayerParameters< SpaceToBatchNdDescriptor > Struct Template Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-static-methods">Static Public Member Functions</a> | |
| 99 | <a href="structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">StringifyLayerParameters< SpaceToBatchNdDescriptor > Struct Template Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_serialize_layer_parameters_8hpp_source.xhtml">SerializeLayerParameters.hpp</a>></code></p> |
| 106 | <table class="memberdecls"> |
| 107 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 108 | Static Public Member Functions</h2></td></tr> |
| 109 | <tr class="memitem:a3e611a2c3b6972b7d03e8cf8139e6085"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4.xhtml#a3e611a2c3b6972b7d03e8cf8139e6085">Serialize</a> (<a class="el" href="namespacearmnn.xhtml#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> &fn, const <a class="el" href="structarmnn_1_1_space_to_batch_nd_descriptor.xhtml">SpaceToBatchNdDescriptor</a> &desc)</td></tr> |
| 110 | <tr class="separator:a3e611a2c3b6972b7d03e8cf8139e6085"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | </table> |
| 112 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 113 | <div class="textblock"><h3>template<><br /> |
| 114 | struct armnn::StringifyLayerParameters< SpaceToBatchNdDescriptor ></h3> |
| 115 | |
| 116 | |
| 117 | <p class="definition">Definition at line <a class="el" href="_serialize_layer_parameters_8hpp_source.xhtml#l00118">118</a> of file <a class="el" href="_serialize_layer_parameters_8hpp_source.xhtml">SerializeLayerParameters.hpp</a>.</p> |
| 118 | </div><h2 class="groupheader">Member Function Documentation</h2> |
| 119 | <a id="a3e611a2c3b6972b7d03e8cf8139e6085"></a> |
| 120 | <h2 class="memtitle"><span class="permalink"><a href="#a3e611a2c3b6972b7d03e8cf8139e6085">◆ </a></span>Serialize()</h2> |
| 121 | |
| 122 | <div class="memitem"> |
| 123 | <div class="memproto"> |
| 124 | <table class="mlabels"> |
| 125 | <tr> |
| 126 | <td class="mlabels-left"> |
| 127 | <table class="memname"> |
| 128 | <tr> |
| 129 | <td class="memname">void Serialize </td> |
| 130 | <td>(</td> |
| 131 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> & </td> |
| 132 | <td class="paramname"><em>fn</em>, </td> |
| 133 | </tr> |
| 134 | <tr> |
| 135 | <td class="paramkey"></td> |
| 136 | <td></td> |
| 137 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_space_to_batch_nd_descriptor.xhtml">SpaceToBatchNdDescriptor</a> & </td> |
| 138 | <td class="paramname"><em>desc</em> </td> |
| 139 | </tr> |
| 140 | <tr> |
| 141 | <td></td> |
| 142 | <td>)</td> |
| 143 | <td></td><td></td> |
| 144 | </tr> |
| 145 | </table> |
| 146 | </td> |
| 147 | <td class="mlabels-right"> |
| 148 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 149 | </tr> |
| 150 | </table> |
| 151 | </div><div class="memdoc"> |
| 152 | |
| 153 | <p class="definition">Definition at line <a class="el" href="_serialize_layer_parameters_8cpp_source.xhtml#l00307">307</a> of file <a class="el" href="_serialize_layer_parameters_8cpp_source.xhtml">SerializeLayerParameters.cpp</a>.</p> |
| 154 | |
| 155 | <p class="reference">References <a class="el" href="_types_utils_8hpp_source.xhtml#l00190">armnn::GetDataLayoutName()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00801">SpaceToBatchNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00806">SpaceToBatchNdDescriptor::m_DataLayout</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l00804">SpaceToBatchNdDescriptor::m_PadList</a>.</p> |
| 156 | <div class="fragment"><div class="line"><a name="l00309"></a><span class="lineno"> 309</span> {</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  {</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  std::stringstream ss;</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordtype">int</span> count = 0;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& var : desc.m_BlockShape)</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  {</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keywordflow">if</span> (count > 0)</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  {</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  ss << <span class="stringliteral">","</span>;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  }</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  ss << var;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  ++count;</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  }</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  fn(<span class="stringliteral">"BlockShape"</span>, ss.str());</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  }</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  {</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  std::stringstream ss;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordtype">int</span> count = 0;</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& var : desc.m_PadList)</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  {</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">if</span> (count > 0)</div><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>  ss << <span class="stringliteral">","</span>;</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  }</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  ss << <span class="stringliteral">"["</span> << var.first << <span class="stringliteral">","</span> << var.second << <span class="stringliteral">"]"</span>;</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  ++count;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  }</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  fn(<span class="stringliteral">"PadList"</span>, ss.str());</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  }</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  fn(<span class="stringliteral">"DataLayout"</span>, <a class="code" href="namespacearmnn.xhtml#aeef70b7611ae71e97ab55c75ef72b210">GetDataLayoutName</a>(desc.m_DataLayout));</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> }</div><div class="ttc" id="namespacearmnn_xhtml_aeef70b7611ae71e97ab55c75ef72b210"><div class="ttname"><a href="namespacearmnn.xhtml#aeef70b7611ae71e97ab55c75ef72b210">armnn::GetDataLayoutName</a></div><div class="ttdeci">constexpr const char * GetDataLayoutName(DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_types_utils_8hpp_source.xhtml#l00190">TypesUtils.hpp:190</a></div></div> |
| 157 | </div><!-- fragment --> |
| 158 | </div> |
| 159 | </div> |
| 160 | <hr/>The documentation for this struct was generated from the following files:<ul> |
| 161 | <li>src/armnn/<a class="el" href="_serialize_layer_parameters_8hpp_source.xhtml">SerializeLayerParameters.hpp</a></li> |
| 162 | <li>src/armnn/<a class="el" href="_serialize_layer_parameters_8cpp_source.xhtml">SerializeLayerParameters.cpp</a></li> |
| 163 | </ul> |
| 164 | </div><!-- contents --> |
| 165 | </div><!-- doc-content --> |
| 166 | <!-- start footer part --> |
| 167 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 168 | <ul> |
| 169 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4.xhtml">StringifyLayerParameters< SpaceToBatchNdDescriptor ></a></li> |
| 170 | <li class="footer">Generated on Fri Mar 13 2020 16:09:20 for ArmNN by |
| 171 | <a href="http://www.doxygen.org/index.html"> |
| 172 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 173 | </ul> |
| 174 | </div> |
| 175 | </body> |
| 176 | </html> |