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: StringifyLayerParameters< ViewsDescriptor > Struct 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('structarmnn_1_1_stringify_layer_parameters_3_01_views_descriptor_01_4.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-static-methods">Static Public Member Functions</a> | |
| 85 | <a href="structarmnn_1_1_stringify_layer_parameters_3_01_views_descriptor_01_4-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">StringifyLayerParameters< ViewsDescriptor > Struct Template Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_serialize_layer_parameters_8hpp_source.html">SerializeLayerParameters.hpp</a>></code></p> |
| 92 | <table class="memberdecls"> |
| 93 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 94 | Static Public Member Functions</h2></td></tr> |
| 95 | <tr class="memitem:ab17c57490009423ab048a1c14cc331dd"><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_views_descriptor_01_4.html#ab17c57490009423ab048a1c14cc331dd">Serialize</a> (<a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> &fn, const <a class="el" href="structarmnn_1_1_views_descriptor.html">ViewsDescriptor</a> &desc)</td></tr> |
| 96 | <tr class="separator:ab17c57490009423ab048a1c14cc331dd"><td class="memSeparator" colspan="2"> </td></tr> |
| 97 | </table> |
| 98 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 99 | <div class="textblock"><h3>template<><br /> |
| 100 | struct armnn::StringifyLayerParameters< ViewsDescriptor ></h3> |
| 101 | |
| 102 | |
| 103 | <p class="definition">Definition at line <a class="el" href="_serialize_layer_parameters_8hpp_source.html#l00078">78</a> of file <a class="el" href="_serialize_layer_parameters_8hpp_source.html">SerializeLayerParameters.hpp</a>.</p> |
| 104 | </div><h2 class="groupheader">Member Function Documentation</h2> |
| 105 | <a id="ab17c57490009423ab048a1c14cc331dd"></a> |
| 106 | <h2 class="memtitle"><span class="permalink"><a href="#ab17c57490009423ab048a1c14cc331dd">◆ </a></span>Serialize()</h2> |
| 107 | |
| 108 | <div class="memitem"> |
| 109 | <div class="memproto"> |
| 110 | <table class="mlabels"> |
| 111 | <tr> |
| 112 | <td class="mlabels-left"> |
| 113 | <table class="memname"> |
| 114 | <tr> |
| 115 | <td class="memname">void Serialize </td> |
| 116 | <td>(</td> |
| 117 | <td class="paramtype"><a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> & </td> |
| 118 | <td class="paramname"><em>fn</em>, </td> |
| 119 | </tr> |
| 120 | <tr> |
| 121 | <td class="paramkey"></td> |
| 122 | <td></td> |
| 123 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_views_descriptor.html">ViewsDescriptor</a> & </td> |
| 124 | <td class="paramname"><em>desc</em> </td> |
| 125 | </tr> |
| 126 | <tr> |
| 127 | <td></td> |
| 128 | <td>)</td> |
| 129 | <td></td><td></td> |
| 130 | </tr> |
| 131 | </table> |
| 132 | </td> |
| 133 | <td class="mlabels-right"> |
| 134 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 135 | </tr> |
| 136 | </table> |
| 137 | </div><div class="memdoc"> |
| 138 | |
| 139 | <p class="definition">Definition at line <a class="el" href="_serialize_layer_parameters_8cpp_source.html#l00181">181</a> of file <a class="el" href="_serialize_layer_parameters_8cpp_source.html">SerializeLayerParameters.cpp</a>.</p> |
| 140 | |
| 141 | <p class="reference">References <a class="el" href="_descriptors_8cpp_source.html#l00292">ViewsDescriptor::GetNumDimensions()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00287">ViewsDescriptor::GetNumViews()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00337">ViewsDescriptor::GetOrigins()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00332">ViewsDescriptor::GetViewSizes()</a>, and <a class="el" href="_serialize_layer_parameters_8hpp_source.html#l00025">StringifyLayerParameters< LayerParameter >::Serialize()</a>.</p> |
| 142 | <div class="fragment"><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> {</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  uint32_t numViews = desc.GetNumViews();</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  uint32_t numDims = desc.GetNumDimensions();</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">for</span> (uint32_t view = 0; view < numViews; ++view) {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  std::stringstream key;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  key << <span class="stringliteral">"ViewSizes#"</span> << view;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  std::stringstream value;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  value << <span class="stringliteral">"["</span>;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keyword">auto</span> viewData = desc.GetViewSizes(view);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">for</span> (uint32_t dim = 0; dim < numDims; ++dim)</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>  <span class="keywordflow">if</span> (dim > 0)</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  value << <span class="stringliteral">","</span>;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  value << viewData[dim];</div><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>  value << <span class="stringliteral">"]"</span>;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  fn(key.str(), value.str());</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="structarmnn_1_1_stringify_layer_parameters.html#a84990e31a235f27cd3d7f3fc90fa0035">StringifyLayerParameters<OriginsDescriptor>::Serialize</a>(fn, desc.GetOrigins());</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> }</div><div class="ttc" id="structarmnn_1_1_stringify_layer_parameters_html_a84990e31a235f27cd3d7f3fc90fa0035"><div class="ttname"><a href="structarmnn_1_1_stringify_layer_parameters.html#a84990e31a235f27cd3d7f3fc90fa0035">armnn::StringifyLayerParameters::Serialize</a></div><div class="ttdeci">static void Serialize(ParameterStringifyFunction &, const LayerParameter &)</div><div class="ttdef"><b>Definition:</b> <a href="_serialize_layer_parameters_8hpp_source.html#l00025">SerializeLayerParameters.hpp:25</a></div></div> |
| 143 | </div><!-- fragment --> |
| 144 | </div> |
| 145 | </div> |
| 146 | <hr/>The documentation for this struct was generated from the following files:<ul> |
| 147 | <li>src/armnn/<a class="el" href="_serialize_layer_parameters_8hpp_source.html">SerializeLayerParameters.hpp</a></li> |
| 148 | <li>src/armnn/<a class="el" href="_serialize_layer_parameters_8cpp_source.html">SerializeLayerParameters.cpp</a></li> |
| 149 | </ul> |
| 150 | </div><!-- contents --> |
| 151 | </div><!-- doc-content --> |
| 152 | <!-- start footer part --> |
| 153 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 154 | <ul> |
| 155 | <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_views_descriptor_01_4.html">StringifyLayerParameters< ViewsDescriptor ></a></li> |
| 156 | <li class="footer">Generated on Fri Mar 13 2020 16:07:05 for ArmNN by |
| 157 | <a href="http://www.doxygen.org/index.html"> |
| 158 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 159 | </ul> |
| 160 | </div> |
| 161 | </body> |
| 162 | </html> |