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: TensorBufferArrayView< DataType > 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_tensor_buffer_array_view.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="classarmnn_1_1_tensor_buffer_array_view-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">TensorBufferArrayView< DataType > Class Template Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_tensor_buffer_array_view_8hpp_source.html">TensorBufferArrayView.hpp</a>></code></p> |
| 92 | <table class="memberdecls"> |
| 93 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 94 | Public Member Functions</h2></td></tr> |
| 95 | <tr class="memitem:a1f2ab1d90881eb1bbd76729949559a55"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_tensor_buffer_array_view.html#a1f2ab1d90881eb1bbd76729949559a55">TensorBufferArrayView</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> &shape, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> *data, <a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">armnnUtils::DataLayoutIndexed</a> dataLayout=<a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</td></tr> |
| 96 | <tr class="separator:a1f2ab1d90881eb1bbd76729949559a55"><td class="memSeparator" colspan="2"> </td></tr> |
| 97 | <tr class="memitem:ab3a2cf851173535ea07b9d87eaf3ca01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_tensor_buffer_array_view.html#ab3a2cf851173535ea07b9d87eaf3ca01">Get</a> (unsigned int b, unsigned int c, unsigned int h, unsigned int w) const</td></tr> |
| 98 | <tr class="separator:ab3a2cf851173535ea07b9d87eaf3ca01"><td class="memSeparator" colspan="2"> </td></tr> |
| 99 | </table> |
| 100 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 101 | <div class="textblock"><h3>template<typename DataType><br /> |
| 102 | class armnn::TensorBufferArrayView< DataType ></h3> |
| 103 | |
| 104 | |
| 105 | <p class="definition">Definition at line <a class="el" href="_tensor_buffer_array_view_8hpp_source.html#l00019">19</a> of file <a class="el" href="_tensor_buffer_array_view_8hpp_source.html">TensorBufferArrayView.hpp</a>.</p> |
| 106 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 107 | <a id="a1f2ab1d90881eb1bbd76729949559a55"></a> |
| 108 | <h2 class="memtitle"><span class="permalink"><a href="#a1f2ab1d90881eb1bbd76729949559a55">◆ </a></span>TensorBufferArrayView()</h2> |
| 109 | |
| 110 | <div class="memitem"> |
| 111 | <div class="memproto"> |
| 112 | <table class="mlabels"> |
| 113 | <tr> |
| 114 | <td class="mlabels-left"> |
| 115 | <table class="memname"> |
| 116 | <tr> |
| 117 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_buffer_array_view.html">TensorBufferArrayView</a> </td> |
| 118 | <td>(</td> |
| 119 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> & </td> |
| 120 | <td class="paramname"><em>shape</em>, </td> |
| 121 | </tr> |
| 122 | <tr> |
| 123 | <td class="paramkey"></td> |
| 124 | <td></td> |
| 125 | <td class="paramtype"><a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> * </td> |
| 126 | <td class="paramname"><em>data</em>, </td> |
| 127 | </tr> |
| 128 | <tr> |
| 129 | <td class="paramkey"></td> |
| 130 | <td></td> |
| 131 | <td class="paramtype"><a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">armnnUtils::DataLayoutIndexed</a> </td> |
| 132 | <td class="paramname"><em>dataLayout</em> = <code><a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a></code> </td> |
| 133 | </tr> |
| 134 | <tr> |
| 135 | <td></td> |
| 136 | <td>)</td> |
| 137 | <td></td><td></td> |
| 138 | </tr> |
| 139 | </table> |
| 140 | </td> |
| 141 | <td class="mlabels-right"> |
| 142 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 143 | </tr> |
| 144 | </table> |
| 145 | </div><div class="memdoc"> |
| 146 | |
| 147 | <p class="definition">Definition at line <a class="el" href="_tensor_buffer_array_view_8hpp_source.html#l00022">22</a> of file <a class="el" href="_tensor_buffer_array_view_8hpp_source.html">TensorBufferArrayView.hpp</a>.</p> |
| 148 | |
| 149 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>.</p> |
| 150 | <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  : m_Shape(shape)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  , m_Data(data)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  , m_DataLayout(dataLayout)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  BOOST_ASSERT(m_Shape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() == 4);</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div> |
| 151 | </div><!-- fragment --> |
| 152 | </div> |
| 153 | </div> |
| 154 | <h2 class="groupheader">Member Function Documentation</h2> |
| 155 | <a id="ab3a2cf851173535ea07b9d87eaf3ca01"></a> |
| 156 | <h2 class="memtitle"><span class="permalink"><a href="#ab3a2cf851173535ea07b9d87eaf3ca01">◆ </a></span>Get()</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"><a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>& Get </td> |
| 166 | <td>(</td> |
| 167 | <td class="paramtype">unsigned int </td> |
| 168 | <td class="paramname"><em>b</em>, </td> |
| 169 | </tr> |
| 170 | <tr> |
| 171 | <td class="paramkey"></td> |
| 172 | <td></td> |
| 173 | <td class="paramtype">unsigned int </td> |
| 174 | <td class="paramname"><em>c</em>, </td> |
| 175 | </tr> |
| 176 | <tr> |
| 177 | <td class="paramkey"></td> |
| 178 | <td></td> |
| 179 | <td class="paramtype">unsigned int </td> |
| 180 | <td class="paramname"><em>h</em>, </td> |
| 181 | </tr> |
| 182 | <tr> |
| 183 | <td class="paramkey"></td> |
| 184 | <td></td> |
| 185 | <td class="paramtype">unsigned int </td> |
| 186 | <td class="paramname"><em>w</em> </td> |
| 187 | </tr> |
| 188 | <tr> |
| 189 | <td></td> |
| 190 | <td>)</td> |
| 191 | <td></td><td> const</td> |
| 192 | </tr> |
| 193 | </table> |
| 194 | </td> |
| 195 | <td class="mlabels-right"> |
| 196 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 197 | </tr> |
| 198 | </table> |
| 199 | </div><div class="memdoc"> |
| 200 | |
| 201 | <p class="definition">Definition at line <a class="el" href="_tensor_buffer_array_view_8hpp_source.html#l00031">31</a> of file <a class="el" href="_tensor_buffer_array_view_8hpp_source.html">TensorBufferArrayView.hpp</a>.</p> |
| 202 | |
| 203 | <p class="reference">References <a class="el" href="_data_layout_indexed_8hpp_source.html#l00027">DataLayoutIndexed::GetIndex()</a>.</p> |
| 204 | <div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">return</span> m_Data[m_DataLayout.<a class="code" href="classarmnn_utils_1_1_data_layout_indexed.html#a1e25d8623da985a43597b5756c73b206">GetIndex</a>(m_Shape, b, c, h, w)];</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div><div class="ttc" id="classarmnn_utils_1_1_data_layout_indexed_html_a1e25d8623da985a43597b5756c73b206"><div class="ttname"><a href="classarmnn_utils_1_1_data_layout_indexed.html#a1e25d8623da985a43597b5756c73b206">armnnUtils::DataLayoutIndexed::GetIndex</a></div><div class="ttdeci">unsigned int GetIndex(const armnn::TensorShape &shape, unsigned int batchIndex, unsigned int channelIndex, unsigned int heightIndex, unsigned int widthIndex) const</div><div class="ttdef"><b>Definition:</b> <a href="_data_layout_indexed_8hpp_source.html#l00027">DataLayoutIndexed.hpp:27</a></div></div> |
| 205 | </div><!-- fragment --> |
| 206 | </div> |
| 207 | </div> |
| 208 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 209 | <li>src/backends/reference/workloads/<a class="el" href="_tensor_buffer_array_view_8hpp_source.html">TensorBufferArrayView.hpp</a></li> |
| 210 | </ul> |
| 211 | </div><!-- contents --> |
| 212 | </div><!-- doc-content --> |
| 213 | <!-- start footer part --> |
| 214 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 215 | <ul> |
| 216 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_tensor_buffer_array_view.html">TensorBufferArrayView</a></li> |
| 217 | <li class="footer">Generated on Fri Mar 13 2020 16:07:05 for ArmNN by |
| 218 | <a href="http://www.doxygen.org/index.html"> |
| 219 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 220 | </ul> |
| 221 | </div> |
| 222 | </body> |
| 223 | </html> |