| <!-- 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: StringifyLayerParameters< SpaceToBatchNdDescriptor > Struct 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('structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4.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-static-methods">Static Public Member Functions</a> | |
| <a href="structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4-members.html">List of all members</a> </div> |
| <div class="headertitle"> |
| <div class="title">StringifyLayerParameters< SpaceToBatchNdDescriptor > Struct Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p><code>#include <<a class="el" href="_serialize_layer_parameters_8hpp_source.html">SerializeLayerParameters.hpp</a>></code></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| Static Public Member Functions</h2></td></tr> |
| <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.html#a3e611a2c3b6972b7d03e8cf8139e6085">Serialize</a> (<a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> &fn, const <a class="el" href="structarmnn_1_1_space_to_batch_nd_descriptor.html">SpaceToBatchNdDescriptor</a> &desc)</td></tr> |
| <tr class="separator:a3e611a2c3b6972b7d03e8cf8139e6085"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"> |
| <p class="definition">Definition at line <a class="el" href="_serialize_layer_parameters_8hpp_source.html#l00172">172</a> of file <a class="el" href="_serialize_layer_parameters_8hpp_source.html">SerializeLayerParameters.hpp</a>.</p> |
| </div><h2 class="groupheader">Member Function Documentation</h2> |
| <a id="a3e611a2c3b6972b7d03e8cf8139e6085"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a3e611a2c3b6972b7d03e8cf8139e6085">◆ </a></span>Serialize()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void Serialize </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> & </td> |
| <td class="paramname"><em>fn</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="structarmnn_1_1_space_to_batch_nd_descriptor.html">SpaceToBatchNdDescriptor</a> & </td> |
| <td class="paramname"><em>desc</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_serialize_layer_parameters_8cpp_source.html#l00460">460</a> of file <a class="el" href="_serialize_layer_parameters_8cpp_source.html">SerializeLayerParameters.cpp</a>.</p> |
| <div class="fragment"><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>  std::stringstream ss;</div> |
| <div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordtype">int</span> count = 0;</div> |
| <div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& var : desc.m_BlockShape)</div> |
| <div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  {</div> |
| <div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordflow">if</span> (count > 0)</div> |
| <div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  {</div> |
| <div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  ss << <span class="stringliteral">","</span>;</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>  ss << var;</div> |
| <div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  ++count;</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>  fn(<span class="stringliteral">"BlockShape"</span>, ss.str());</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>  </div> |
| <div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  {</div> |
| <div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  std::stringstream ss;</div> |
| <div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keywordtype">int</span> count = 0;</div> |
| <div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& var : desc.m_PadList)</div> |
| <div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  {</div> |
| <div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordflow">if</span> (count > 0)</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>  ss << <span class="stringliteral">","</span>;</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>  ss << <span class="stringliteral">"["</span> << var.first << <span class="stringliteral">","</span> << var.second << <span class="stringliteral">"]"</span>;</div> |
| <div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  ++count;</div> |
| <div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  }</div> |
| <div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  fn(<span class="stringliteral">"PadList"</span>, ss.str());</div> |
| <div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  }</div> |
| <div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  </div> |
| <div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  fn(<span class="stringliteral">"DataLayout"</span>, <a class="code" href="namespacearmnn.html#aeef70b7611ae71e97ab55c75ef72b210">GetDataLayoutName</a>(desc.m_DataLayout));</div> |
| <div class="line"><a name="l00494"></a><span class="lineno"> 494</span> }</div> |
| </div><!-- fragment --> |
| <p class="reference">References <a class="el" href="_types_utils_8hpp_source.html#l00253">armnn::GetDataLayoutName()</a>, <a class="el" href="_descriptors_8hpp_source.html#l01066">SpaceToBatchNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.html#l01071">SpaceToBatchNdDescriptor::m_DataLayout</a>, and <a class="el" href="_descriptors_8hpp_source.html#l01069">SpaceToBatchNdDescriptor::m_PadList</a>.</p> |
| |
| </div> |
| </div> |
| <hr/>The documentation for this struct was generated from the following files:<ul> |
| <li>src/armnn/<a class="el" href="_serialize_layer_parameters_8hpp_source.html">SerializeLayerParameters.hpp</a></li> |
| <li>src/armnn/<a class="el" href="_serialize_layer_parameters_8cpp_source.html">SerializeLayerParameters.cpp</a></li> |
| </ul> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <div class="ttc" id="anamespacearmnn_html_aeef70b7611ae71e97ab55c75ef72b210"><div class="ttname"><a href="namespacearmnn.html#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.html#l00253">TypesUtils.hpp:253</a></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="structarmnn_1_1_stringify_layer_parameters_3_01_space_to_batch_nd_descriptor_01_4.html">StringifyLayerParameters< SpaceToBatchNdDescriptor ></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> |