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: NeonSubTensorHandle Class 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_neon_sub_tensor_handle.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_neon_sub_tensor_handle-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">NeonSubTensorHandle Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for NeonSubTensorHandle:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1_neon_sub_tensor_handle.png" usemap="#NeonSubTensorHandle_map" alt=""/> |
| 97 | <map id="NeonSubTensorHandle_map" name="NeonSubTensorHandle_map"> |
| 98 | <area href="classarmnn_1_1_i_acl_tensor_handle.html" alt="IAclTensorHandle" shape="rect" coords="0,56,143,80"/> |
| 99 | <area href="classarmnn_1_1_i_tensor_handle.html" alt="ITensorHandle" shape="rect" coords="0,0,143,24"/> |
| 100 | </map> |
| 101 | </div></div> |
| 102 | <table class="memberdecls"> |
| 103 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 104 | Public Member Functions</h2></td></tr> |
| 105 | <tr class="memitem:a959a81401ab9e41d16bbc4a62a019aa2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a959a81401ab9e41d16bbc4a62a019aa2">NeonSubTensorHandle</a> (<a class="el" href="classarmnn_1_1_i_acl_tensor_handle.html">IAclTensorHandle</a> *parent, const arm_compute::TensorShape &shape, const arm_compute::Coordinates &coords)</td></tr> |
| 106 | <tr class="separator:a959a81401ab9e41d16bbc4a62a019aa2"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:ab18b27bb871248e2ba3120eb557dcfe4"><td class="memItemLeft" align="right" valign="top">arm_compute::ITensor & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#ab18b27bb871248e2ba3120eb557dcfe4">GetTensor</a> () override</td></tr> |
| 108 | <tr class="separator:ab18b27bb871248e2ba3120eb557dcfe4"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a6fde23d85d96f26ac7c33b69a945a922"><td class="memItemLeft" align="right" valign="top">arm_compute::ITensor const & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a6fde23d85d96f26ac7c33b69a945a922">GetTensor</a> () const override</td></tr> |
| 110 | <tr class="separator:a6fde23d85d96f26ac7c33b69a945a922"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:ac4c894e28b763523748ba2bb718d569d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#ac4c894e28b763523748ba2bb718d569d">Allocate</a> () override</td></tr> |
| 112 | <tr class="separator:ac4c894e28b763523748ba2bb718d569d"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a19aa18d78d5ac31e3a3c8f782f0e8606"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">Manage</a> () override</td></tr> |
| 114 | <tr class="separator:a19aa18d78d5ac31e3a3c8f782f0e8606"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:ab6c52b35388890f2c563afbebfb456a6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">GetParent</a> () const override</td></tr> |
| 116 | <tr class="separator:ab6c52b35388890f2c563afbebfb456a6"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:ad3e63bb560123889f1ec98e40c5f8279"><td class="memItemLeft" align="right" valign="top">virtual arm_compute::DataType </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#ad3e63bb560123889f1ec98e40c5f8279">GetDataType</a> () const override</td></tr> |
| 118 | <tr class="separator:ad3e63bb560123889f1ec98e40c5f8279"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a109757557cded8ca95e1c2ef54507a0c"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a109757557cded8ca95e1c2ef54507a0c">SetMemoryGroup</a> (const std::shared_ptr< arm_compute::IMemoryGroup > &) override</td></tr> |
| 120 | <tr class="separator:a109757557cded8ca95e1c2ef54507a0c"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:acc3fcce7a100cc3b64247519f22e37fc"><td class="memItemLeft" align="right" valign="top">virtual const void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#acc3fcce7a100cc3b64247519f22e37fc">Map</a> (bool) const override</td></tr> |
| 122 | <tr class="separator:acc3fcce7a100cc3b64247519f22e37fc"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a88ab6decf78c152e746b7d8dc2dd931f"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">Unmap</a> () const override</td></tr> |
| 124 | <tr class="memdesc:a88ab6decf78c152e746b7d8dc2dd931f"><td class="mdescLeft"> </td><td class="mdescRight">Unmap the tensor data. <a href="#a88ab6decf78c152e746b7d8dc2dd931f">More...</a><br /></td></tr> |
| 125 | <tr class="separator:a88ab6decf78c152e746b7d8dc2dd931f"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a967f220393d291f71dabce0c06bf9b6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">GetStrides</a> () const override</td></tr> |
| 127 | <tr class="separator:a967f220393d291f71dabce0c06bf9b6c"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a8e8d2fbabcac19f9e12779080ddff54e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">GetShape</a> () const override</td></tr> |
| 129 | <tr class="separator:a8e8d2fbabcac19f9e12779080ddff54e"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="inherit_header pub_methods_classarmnn_1_1_i_tensor_handle"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_i_tensor_handle')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a></td></tr> |
| 131 | <tr class="memitem:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#aff95f063e2b8041b3d0e4b4dc0e3821d">~ITensorHandle</a> ()</td></tr> |
| 132 | <tr class="separator:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a270c8f844df649b9b0599c1e4db44cd3">Map</a> (bool blocking=<a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</td></tr> |
| 134 | <tr class="separator:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#ab2be1412c91842a072ad94759f52033e">Unmap</a> ()</td></tr> |
| 136 | <tr class="memdesc:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Unmap the tensor data that was previously mapped with call to <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">Map()</a>. <a href="classarmnn_1_1_i_tensor_handle.html#ab2be1412c91842a072ad94759f52033e">More...</a><br /></td></tr> |
| 137 | <tr class="separator:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a55cddc2dbb32d680cd85b635ba370e48">GetImportFlags</a> () const</td></tr> |
| 139 | <tr class="memdesc:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Get flags describing supported import sources. <a href="classarmnn_1_1_i_tensor_handle.html#a55cddc2dbb32d680cd85b635ba370e48">More...</a><br /></td></tr> |
| 140 | <tr class="separator:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a4f81a9eff30c9b9fe76f5b83af470ba7">Import</a> (void *memory, <a class="el" href="namespacearmnn.html#a0fc99721e27eb20ecd0ea85a3cc8b488">MemorySource</a> source)</td></tr> |
| 142 | <tr class="separator:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table> |
| 144 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 145 | <div class="textblock"> |
| 146 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00240">240</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 147 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 148 | <a id="a959a81401ab9e41d16bbc4a62a019aa2"></a> |
| 149 | <h2 class="memtitle"><span class="permalink"><a href="#a959a81401ab9e41d16bbc4a62a019aa2">◆ </a></span>NeonSubTensorHandle()</h2> |
| 150 | |
| 151 | <div class="memitem"> |
| 152 | <div class="memproto"> |
| 153 | <table class="mlabels"> |
| 154 | <tr> |
| 155 | <td class="mlabels-left"> |
| 156 | <table class="memname"> |
| 157 | <tr> |
| 158 | <td class="memname"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html">NeonSubTensorHandle</a> </td> |
| 159 | <td>(</td> |
| 160 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_acl_tensor_handle.html">IAclTensorHandle</a> * </td> |
| 161 | <td class="paramname"><em>parent</em>, </td> |
| 162 | </tr> |
| 163 | <tr> |
| 164 | <td class="paramkey"></td> |
| 165 | <td></td> |
| 166 | <td class="paramtype">const arm_compute::TensorShape & </td> |
| 167 | <td class="paramname"><em>shape</em>, </td> |
| 168 | </tr> |
| 169 | <tr> |
| 170 | <td class="paramkey"></td> |
| 171 | <td></td> |
| 172 | <td class="paramtype">const arm_compute::Coordinates & </td> |
| 173 | <td class="paramname"><em>coords</em> </td> |
| 174 | </tr> |
| 175 | <tr> |
| 176 | <td></td> |
| 177 | <td>)</td> |
| 178 | <td></td><td></td> |
| 179 | </tr> |
| 180 | </table> |
| 181 | </td> |
| 182 | <td class="mlabels-right"> |
| 183 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 184 | </tr> |
| 185 | </table> |
| 186 | </div><div class="memdoc"> |
| 187 | |
| 188 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00243">243</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 189 | <div class="fragment"><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  : m_Tensor(&parent->GetTensor(), shape, coords)</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  {</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  parentHandle = parent;</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div></div><!-- fragment --> |
| 190 | </div> |
| 191 | </div> |
| 192 | <h2 class="groupheader">Member Function Documentation</h2> |
| 193 | <a id="ac4c894e28b763523748ba2bb718d569d"></a> |
| 194 | <h2 class="memtitle"><span class="permalink"><a href="#ac4c894e28b763523748ba2bb718d569d">◆ </a></span>Allocate()</h2> |
| 195 | |
| 196 | <div class="memitem"> |
| 197 | <div class="memproto"> |
| 198 | <table class="mlabels"> |
| 199 | <tr> |
| 200 | <td class="mlabels-left"> |
| 201 | <table class="memname"> |
| 202 | <tr> |
| 203 | <td class="memname">virtual void Allocate </td> |
| 204 | <td>(</td> |
| 205 | <td class="paramname"></td><td>)</td> |
| 206 | <td></td> |
| 207 | </tr> |
| 208 | </table> |
| 209 | </td> |
| 210 | <td class="mlabels-right"> |
| 211 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 212 | </tr> |
| 213 | </table> |
| 214 | </div><div class="memdoc"> |
| 215 | <p>Indicate to the memory manager that this resource is no longer active. This is used to compute overlapping lifetimes of resources. </p> |
| 216 | |
| 217 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a5cceed8b707a09bf27eb61f17acf8a88">ITensorHandle</a>.</p> |
| 218 | |
| 219 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00254">254</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 220 | <div class="fragment"><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> {}</div></div><!-- fragment --> |
| 221 | </div> |
| 222 | </div> |
| 223 | <a id="ad3e63bb560123889f1ec98e40c5f8279"></a> |
| 224 | <h2 class="memtitle"><span class="permalink"><a href="#ad3e63bb560123889f1ec98e40c5f8279">◆ </a></span>GetDataType()</h2> |
| 225 | |
| 226 | <div class="memitem"> |
| 227 | <div class="memproto"> |
| 228 | <table class="mlabels"> |
| 229 | <tr> |
| 230 | <td class="mlabels-left"> |
| 231 | <table class="memname"> |
| 232 | <tr> |
| 233 | <td class="memname">virtual arm_compute::DataType GetDataType </td> |
| 234 | <td>(</td> |
| 235 | <td class="paramname"></td><td>)</td> |
| 236 | <td> const</td> |
| 237 | </tr> |
| 238 | </table> |
| 239 | </td> |
| 240 | <td class="mlabels-right"> |
| 241 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | </div><div class="memdoc"> |
| 245 | |
| 246 | <p>Implements <a class="el" href="classarmnn_1_1_i_acl_tensor_handle.html#a3767f569fc55323ddf7b2ee57987d9c5">IAclTensorHandle</a>.</p> |
| 247 | |
| 248 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00259">259</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 249 | <div class="fragment"><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  {</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">return</span> m_Tensor.info()->data_type();</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  }</div></div><!-- fragment --> |
| 250 | </div> |
| 251 | </div> |
| 252 | <a id="ab6c52b35388890f2c563afbebfb456a6"></a> |
| 253 | <h2 class="memtitle"><span class="permalink"><a href="#ab6c52b35388890f2c563afbebfb456a6">◆ </a></span>GetParent()</h2> |
| 254 | |
| 255 | <div class="memitem"> |
| 256 | <div class="memproto"> |
| 257 | <table class="mlabels"> |
| 258 | <tr> |
| 259 | <td class="mlabels-left"> |
| 260 | <table class="memname"> |
| 261 | <tr> |
| 262 | <td class="memname">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a>* GetParent </td> |
| 263 | <td>(</td> |
| 264 | <td class="paramname"></td><td>)</td> |
| 265 | <td> const</td> |
| 266 | </tr> |
| 267 | </table> |
| 268 | </td> |
| 269 | <td class="mlabels-right"> |
| 270 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 271 | </tr> |
| 272 | </table> |
| 273 | </div><div class="memdoc"> |
| 274 | <p>Get the parent tensor if this is a subtensor. </p><dl class="section return"><dt>Returns</dt><dd>a pointer to the parent tensor. Otherwise nullptr if not a subtensor. </dd></dl> |
| 275 | |
| 276 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a437893b8dcf58a0b68b70e1ad7933be6">ITensorHandle</a>.</p> |
| 277 | |
| 278 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00257">257</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 279 | <div class="fragment"><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> { <span class="keywordflow">return</span> parentHandle; }</div></div><!-- fragment --> |
| 280 | </div> |
| 281 | </div> |
| 282 | <a id="a8e8d2fbabcac19f9e12779080ddff54e"></a> |
| 283 | <h2 class="memtitle"><span class="permalink"><a href="#a8e8d2fbabcac19f9e12779080ddff54e">◆ </a></span>GetShape()</h2> |
| 284 | |
| 285 | <div class="memitem"> |
| 286 | <div class="memproto"> |
| 287 | <table class="mlabels"> |
| 288 | <tr> |
| 289 | <td class="mlabels-left"> |
| 290 | <table class="memname"> |
| 291 | <tr> |
| 292 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetShape </td> |
| 293 | <td>(</td> |
| 294 | <td class="paramname"></td><td>)</td> |
| 295 | <td> const</td> |
| 296 | </tr> |
| 297 | </table> |
| 298 | </td> |
| 299 | <td class="mlabels-right"> |
| 300 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 301 | </tr> |
| 302 | </table> |
| 303 | </div><div class="memdoc"> |
| 304 | <p>Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. </p><dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> filled with the number of elements for each dimension. </dd></dl> |
| 305 | |
| 306 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">ITensorHandle</a>.</p> |
| 307 | |
| 308 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00277">277</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 309 | <div class="fragment"><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  {</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">return</span> armcomputetensorutils::GetShape(m_Tensor.info()->tensor_shape());</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  }</div></div><!-- fragment --> |
| 310 | </div> |
| 311 | </div> |
| 312 | <a id="a967f220393d291f71dabce0c06bf9b6c"></a> |
| 313 | <h2 class="memtitle"><span class="permalink"><a href="#a967f220393d291f71dabce0c06bf9b6c">◆ </a></span>GetStrides()</h2> |
| 314 | |
| 315 | <div class="memitem"> |
| 316 | <div class="memproto"> |
| 317 | <table class="mlabels"> |
| 318 | <tr> |
| 319 | <td class="mlabels-left"> |
| 320 | <table class="memname"> |
| 321 | <tr> |
| 322 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetStrides </td> |
| 323 | <td>(</td> |
| 324 | <td class="paramname"></td><td>)</td> |
| 325 | <td> const</td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </td> |
| 329 | <td class="mlabels-right"> |
| 330 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 331 | </tr> |
| 332 | </table> |
| 333 | </div><div class="memdoc"> |
| 334 | <p>Get the strides for each dimension ordered from largest to smallest where the smallest value is the same as the size of a single element in the tensor. </p><dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> filled with the strides for each dimension </dd></dl> |
| 335 | |
| 336 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a30c3e09ce55369b66469443a4ca5ef03">ITensorHandle</a>.</p> |
| 337 | |
| 338 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00272">272</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 339 | <div class="fragment"><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  {</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">return</span> armcomputetensorutils::GetStrides(m_Tensor.info()->strides_in_bytes());</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  }</div></div><!-- fragment --> |
| 340 | </div> |
| 341 | </div> |
| 342 | <a id="ab18b27bb871248e2ba3120eb557dcfe4"></a> |
| 343 | <h2 class="memtitle"><span class="permalink"><a href="#ab18b27bb871248e2ba3120eb557dcfe4">◆ </a></span>GetTensor() <span class="overload">[1/2]</span></h2> |
| 344 | |
| 345 | <div class="memitem"> |
| 346 | <div class="memproto"> |
| 347 | <table class="mlabels"> |
| 348 | <tr> |
| 349 | <td class="mlabels-left"> |
| 350 | <table class="memname"> |
| 351 | <tr> |
| 352 | <td class="memname">arm_compute::ITensor& GetTensor </td> |
| 353 | <td>(</td> |
| 354 | <td class="paramname"></td><td>)</td> |
| 355 | <td></td> |
| 356 | </tr> |
| 357 | </table> |
| 358 | </td> |
| 359 | <td class="mlabels-right"> |
| 360 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 361 | </tr> |
| 362 | </table> |
| 363 | </div><div class="memdoc"> |
| 364 | |
| 365 | <p>Implements <a class="el" href="classarmnn_1_1_i_acl_tensor_handle.html#a326e78519af5570a5921c6aa39968a20">IAclTensorHandle</a>.</p> |
| 366 | |
| 367 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00251">251</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 368 | <div class="fragment"><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> { <span class="keywordflow">return</span> m_Tensor; }</div></div><!-- fragment --> |
| 369 | </div> |
| 370 | </div> |
| 371 | <a id="a6fde23d85d96f26ac7c33b69a945a922"></a> |
| 372 | <h2 class="memtitle"><span class="permalink"><a href="#a6fde23d85d96f26ac7c33b69a945a922">◆ </a></span>GetTensor() <span class="overload">[2/2]</span></h2> |
| 373 | |
| 374 | <div class="memitem"> |
| 375 | <div class="memproto"> |
| 376 | <table class="mlabels"> |
| 377 | <tr> |
| 378 | <td class="mlabels-left"> |
| 379 | <table class="memname"> |
| 380 | <tr> |
| 381 | <td class="memname">arm_compute::ITensor const& GetTensor </td> |
| 382 | <td>(</td> |
| 383 | <td class="paramname"></td><td>)</td> |
| 384 | <td> const</td> |
| 385 | </tr> |
| 386 | </table> |
| 387 | </td> |
| 388 | <td class="mlabels-right"> |
| 389 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 390 | </tr> |
| 391 | </table> |
| 392 | </div><div class="memdoc"> |
| 393 | |
| 394 | <p>Implements <a class="el" href="classarmnn_1_1_i_acl_tensor_handle.html#adb0fcd17dec048e91459a89fe4433ae9">IAclTensorHandle</a>.</p> |
| 395 | |
| 396 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00252">252</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 397 | <div class="fragment"><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> { <span class="keywordflow">return</span> m_Tensor; }</div></div><!-- fragment --> |
| 398 | </div> |
| 399 | </div> |
| 400 | <a id="a19aa18d78d5ac31e3a3c8f782f0e8606"></a> |
| 401 | <h2 class="memtitle"><span class="permalink"><a href="#a19aa18d78d5ac31e3a3c8f782f0e8606">◆ </a></span>Manage()</h2> |
| 402 | |
| 403 | <div class="memitem"> |
| 404 | <div class="memproto"> |
| 405 | <table class="mlabels"> |
| 406 | <tr> |
| 407 | <td class="mlabels-left"> |
| 408 | <table class="memname"> |
| 409 | <tr> |
| 410 | <td class="memname">virtual void Manage </td> |
| 411 | <td>(</td> |
| 412 | <td class="paramname"></td><td>)</td> |
| 413 | <td></td> |
| 414 | </tr> |
| 415 | </table> |
| 416 | </td> |
| 417 | <td class="mlabels-right"> |
| 418 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 419 | </tr> |
| 420 | </table> |
| 421 | </div><div class="memdoc"> |
| 422 | <p>Indicate to the memory manager that this resource is active. This is used to compute overlapping lifetimes of resources. </p> |
| 423 | |
| 424 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a04149d0f9b9c54c05e95693111490daf">ITensorHandle</a>.</p> |
| 425 | |
| 426 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00255">255</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 427 | <div class="fragment"><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> {}</div></div><!-- fragment --> |
| 428 | </div> |
| 429 | </div> |
| 430 | <a id="acc3fcce7a100cc3b64247519f22e37fc"></a> |
| 431 | <h2 class="memtitle"><span class="permalink"><a href="#acc3fcce7a100cc3b64247519f22e37fc">◆ </a></span>Map()</h2> |
| 432 | |
| 433 | <div class="memitem"> |
| 434 | <div class="memproto"> |
| 435 | <table class="mlabels"> |
| 436 | <tr> |
| 437 | <td class="mlabels-left"> |
| 438 | <table class="memname"> |
| 439 | <tr> |
| 440 | <td class="memname">virtual const void* Map </td> |
| 441 | <td>(</td> |
| 442 | <td class="paramtype">bool </td> |
| 443 | <td class="paramname"><em>blocking</em></td><td>)</td> |
| 444 | <td> const</td> |
| 445 | </tr> |
| 446 | </table> |
| 447 | </td> |
| 448 | <td class="mlabels-right"> |
| 449 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 450 | </tr> |
| 451 | </table> |
| 452 | </div><div class="memdoc"> |
| 453 | <p>Map the tensor data for access. </p><dl class="params"><dt>Parameters</dt><dd> |
| 454 | <table class="params"> |
| 455 | <tr><td class="paramname">blocking</td><td>hint to block the calling thread until all other accesses are complete. (backend dependent) </td></tr> |
| 456 | </table> |
| 457 | </dd> |
| 458 | </dl> |
| 459 | <dl class="section return"><dt>Returns</dt><dd>pointer to the first element of the mapped data. </dd></dl> |
| 460 | |
| 461 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">ITensorHandle</a>.</p> |
| 462 | |
| 463 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00266">266</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 464 | <div class="fragment"><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  {</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keyword">const </span><span class="keywordtype">void</span>*<span class="keyword">></span>(m_Tensor.buffer() + m_Tensor.info()->offset_first_element_in_bytes());</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  }</div></div><!-- fragment --> |
| 465 | </div> |
| 466 | </div> |
| 467 | <a id="a109757557cded8ca95e1c2ef54507a0c"></a> |
| 468 | <h2 class="memtitle"><span class="permalink"><a href="#a109757557cded8ca95e1c2ef54507a0c">◆ </a></span>SetMemoryGroup()</h2> |
| 469 | |
| 470 | <div class="memitem"> |
| 471 | <div class="memproto"> |
| 472 | <table class="mlabels"> |
| 473 | <tr> |
| 474 | <td class="mlabels-left"> |
| 475 | <table class="memname"> |
| 476 | <tr> |
| 477 | <td class="memname">virtual void SetMemoryGroup </td> |
| 478 | <td>(</td> |
| 479 | <td class="paramtype">const std::shared_ptr< arm_compute::IMemoryGroup > & </td> |
| 480 | <td class="paramname"></td><td>)</td> |
| 481 | <td></td> |
| 482 | </tr> |
| 483 | </table> |
| 484 | </td> |
| 485 | <td class="mlabels-right"> |
| 486 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 487 | </tr> |
| 488 | </table> |
| 489 | </div><div class="memdoc"> |
| 490 | |
| 491 | <p>Implements <a class="el" href="classarmnn_1_1_i_acl_tensor_handle.html#a658c8c0848fa9d1fb2fc6c1422bfe3e8">IAclTensorHandle</a>.</p> |
| 492 | |
| 493 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00264">264</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 494 | <div class="fragment"><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> {}</div></div><!-- fragment --> |
| 495 | </div> |
| 496 | </div> |
| 497 | <a id="a88ab6decf78c152e746b7d8dc2dd931f"></a> |
| 498 | <h2 class="memtitle"><span class="permalink"><a href="#a88ab6decf78c152e746b7d8dc2dd931f">◆ </a></span>Unmap()</h2> |
| 499 | |
| 500 | <div class="memitem"> |
| 501 | <div class="memproto"> |
| 502 | <table class="mlabels"> |
| 503 | <tr> |
| 504 | <td class="mlabels-left"> |
| 505 | <table class="memname"> |
| 506 | <tr> |
| 507 | <td class="memname">virtual void Unmap </td> |
| 508 | <td>(</td> |
| 509 | <td class="paramname"></td><td>)</td> |
| 510 | <td> const</td> |
| 511 | </tr> |
| 512 | </table> |
| 513 | </td> |
| 514 | <td class="mlabels-right"> |
| 515 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 516 | </tr> |
| 517 | </table> |
| 518 | </div><div class="memdoc"> |
| 519 | |
| 520 | <p>Unmap the tensor data. </p> |
| 521 | |
| 522 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">ITensorHandle</a>.</p> |
| 523 | |
| 524 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_8hpp_source.html#l00270">270</a> of file <a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a>.</p> |
| 525 | <div class="fragment"><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> {}</div></div><!-- fragment --> |
| 526 | </div> |
| 527 | </div> |
| 528 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 529 | <li>src/backends/neon/<a class="el" href="_neon_tensor_handle_8hpp_source.html">NeonTensorHandle.hpp</a></li> |
| 530 | </ul> |
| 531 | </div><!-- contents --> |
| 532 | </div><!-- doc-content --> |
| 533 | <!-- start footer part --> |
| 534 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 535 | <ul> |
| 536 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html">NeonSubTensorHandle</a></li> |
| 537 | <li class="footer">Generated on Fri Mar 13 2020 16:07:04 for ArmNN by |
| 538 | <a href="http://www.doxygen.org/index.html"> |
| 539 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 540 | </ul> |
| 541 | </div> |
| 542 | </body> |
| 543 | </html> |