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: ITensorHandle 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_i_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_i_tensor_handle-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">ITensorHandle Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for ITensorHandle:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1_i_tensor_handle.png" usemap="#ITensorHandle_map" alt=""/> |
| 97 | <map id="ITensorHandle_map" name="ITensorHandle_map"> |
| 98 | <area href="classarmnn_1_1_const_cpu_tensor_handle.html" alt="ConstCpuTensorHandle" shape="rect" coords="113,56,329,80"/> |
| 99 | <area href="classarmnn_1_1_i_acl_tensor_handle.html" alt="IAclTensorHandle" shape="rect" coords="904,56,1120,80"/> |
| 100 | <area href="classarmnn_1_1_ref_tensor_handle.html" alt="RefTensorHandle" shape="rect" coords="1130,56,1346,80"/> |
| 101 | <area href="classarmnn_1_1_sample_tensor_handle.html" alt="SampleTensorHandle" shape="rect" coords="1356,56,1572,80"/> |
| 102 | <area href="classarmnn_1_1_const_passthrough_cpu_tensor_handle.html" alt="ConstPassthroughCpuTensorHandle" shape="rect" coords="0,112,216,136"/> |
| 103 | <area href="classarmnn_1_1_cpu_tensor_handle.html" alt="CpuTensorHandle" shape="rect" coords="226,112,442,136"/> |
| 104 | <area href="classarmnn_1_1_i_cl_tensor_handle.html" alt="IClTensorHandle" shape="rect" coords="678,112,894,136"/> |
| 105 | <area href="classarmnn_1_1_neon_sub_tensor_handle.html" alt="NeonSubTensorHandle" shape="rect" coords="904,112,1120,136"/> |
| 106 | <area href="classarmnn_1_1_neon_tensor_handle.html" alt="NeonTensorHandle" shape="rect" coords="1130,112,1346,136"/> |
| 107 | <area href="classarmnn_1_1_passthrough_cpu_tensor_handle.html" alt="PassthroughCpuTensorHandle" shape="rect" coords="113,168,329,192"/> |
| 108 | <area href="classarmnn_1_1_scoped_cpu_tensor_handle.html" alt="ScopedCpuTensorHandle" shape="rect" coords="339,168,555,192"/> |
| 109 | <area href="classarmnn_1_1_cl_sub_tensor_handle.html" alt="ClSubTensorHandle" shape="rect" coords="565,168,781,192"/> |
| 110 | <area href="classarmnn_1_1_cl_tensor_handle.html" alt="ClTensorHandle" shape="rect" coords="791,168,1007,192"/> |
| 111 | </map> |
| 112 | </div></div> |
| 113 | <table class="memberdecls"> |
| 114 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 115 | Public Member Functions</h2></td></tr> |
| 116 | <tr class="memitem:aff95f063e2b8041b3d0e4b4dc0e3821d"><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> |
| 117 | <tr class="separator:aff95f063e2b8041b3d0e4b4dc0e3821d"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:a04149d0f9b9c54c05e95693111490daf"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a04149d0f9b9c54c05e95693111490daf">Manage</a> ()=0</td></tr> |
| 119 | <tr class="separator:a04149d0f9b9c54c05e95693111490daf"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a5cceed8b707a09bf27eb61f17acf8a88"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a5cceed8b707a09bf27eb61f17acf8a88">Allocate</a> ()=0</td></tr> |
| 121 | <tr class="separator:a5cceed8b707a09bf27eb61f17acf8a88"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a437893b8dcf58a0b68b70e1ad7933be6"><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_i_tensor_handle.html#a437893b8dcf58a0b68b70e1ad7933be6">GetParent</a> () const =0</td></tr> |
| 123 | <tr class="separator:a437893b8dcf58a0b68b70e1ad7933be6"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a9afbc055a017adf1bc38ee137bca6e90"><td class="memItemLeft" align="right" valign="top">virtual const void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">Map</a> (bool blocking=<a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a>) const =0</td></tr> |
| 125 | <tr class="separator:a9afbc055a017adf1bc38ee137bca6e90"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a563609828050f1b3a7868c23f3365923"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">Unmap</a> () const =0</td></tr> |
| 127 | <tr class="memdesc:a563609828050f1b3a7868c23f3365923"><td class="mdescLeft"> </td><td class="mdescRight">Unmap the tensor data. <a href="#a563609828050f1b3a7868c23f3365923">More...</a><br /></td></tr> |
| 128 | <tr class="separator:a563609828050f1b3a7868c23f3365923"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a270c8f844df649b9b0599c1e4db44cd3"><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> |
| 130 | <tr class="separator:a270c8f844df649b9b0599c1e4db44cd3"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:ab2be1412c91842a072ad94759f52033e"><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> |
| 132 | <tr class="memdesc:ab2be1412c91842a072ad94759f52033e"><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="#ab2be1412c91842a072ad94759f52033e">More...</a><br /></td></tr> |
| 133 | <tr class="separator:ab2be1412c91842a072ad94759f52033e"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a30c3e09ce55369b66469443a4ca5ef03"><td class="memItemLeft" align="right" valign="top">virtual <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_i_tensor_handle.html#a30c3e09ce55369b66469443a4ca5ef03">GetStrides</a> () const =0</td></tr> |
| 135 | <tr class="separator:a30c3e09ce55369b66469443a4ca5ef03"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:affd5aae75cad90f472f96cfd25a13f29"><td class="memItemLeft" align="right" valign="top">virtual <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_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">GetShape</a> () const =0</td></tr> |
| 137 | <tr class="separator:affd5aae75cad90f472f96cfd25a13f29"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:a4ec32790513ea4af4c5746f1ee48fbfe"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a4ec32790513ea4af4c5746f1ee48fbfe">CopyOutTo</a> (void *memory) const =0</td></tr> |
| 139 | <tr class="separator:a4ec32790513ea4af4c5746f1ee48fbfe"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:ad495ac6d9fd9e1ba5bb7a02c731a2d83"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#ad495ac6d9fd9e1ba5bb7a02c731a2d83">CopyInFrom</a> (const void *memory)=0</td></tr> |
| 141 | <tr class="separator:ad495ac6d9fd9e1ba5bb7a02c731a2d83"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:a55cddc2dbb32d680cd85b635ba370e48"><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> |
| 143 | <tr class="memdesc:a55cddc2dbb32d680cd85b635ba370e48"><td class="mdescLeft"> </td><td class="mdescRight">Get flags describing supported import sources. <a href="#a55cddc2dbb32d680cd85b635ba370e48">More...</a><br /></td></tr> |
| 144 | <tr class="separator:a55cddc2dbb32d680cd85b635ba370e48"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:a4f81a9eff30c9b9fe76f5b83af470ba7"><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> |
| 146 | <tr class="separator:a4f81a9eff30c9b9fe76f5b83af470ba7"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | </table> |
| 148 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 149 | <div class="textblock"> |
| 150 | <p class="definition">Definition at line <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00016">16</a> of file <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>.</p> |
| 151 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 152 | <a id="aff95f063e2b8041b3d0e4b4dc0e3821d"></a> |
| 153 | <h2 class="memtitle"><span class="permalink"><a href="#aff95f063e2b8041b3d0e4b4dc0e3821d">◆ </a></span>~ITensorHandle()</h2> |
| 154 | |
| 155 | <div class="memitem"> |
| 156 | <div class="memproto"> |
| 157 | <table class="mlabels"> |
| 158 | <tr> |
| 159 | <td class="mlabels-left"> |
| 160 | <table class="memname"> |
| 161 | <tr> |
| 162 | <td class="memname">virtual ~<a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a> </td> |
| 163 | <td>(</td> |
| 164 | <td class="paramname"></td><td>)</td> |
| 165 | <td></td> |
| 166 | </tr> |
| 167 | </table> |
| 168 | </td> |
| 169 | <td class="mlabels-right"> |
| 170 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 171 | </tr> |
| 172 | </table> |
| 173 | </div><div class="memdoc"> |
| 174 | |
| 175 | <p class="definition">Definition at line <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00019">19</a> of file <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>.</p> |
| 176 | |
| 177 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a5cceed8b707a09bf27eb61f17acf8a88">ITensorHandle::Allocate()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a437893b8dcf58a0b68b70e1ad7933be6">ITensorHandle::GetParent()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a04149d0f9b9c54c05e95693111490daf">ITensorHandle::Manage()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">ITensorHandle::Map()</a>, and <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">ITensorHandle::Unmap()</a>.</p> |
| 178 | <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {}</div></div><!-- fragment --> |
| 179 | </div> |
| 180 | </div> |
| 181 | <h2 class="groupheader">Member Function Documentation</h2> |
| 182 | <a id="a5cceed8b707a09bf27eb61f17acf8a88"></a> |
| 183 | <h2 class="memtitle"><span class="permalink"><a href="#a5cceed8b707a09bf27eb61f17acf8a88">◆ </a></span>Allocate()</h2> |
| 184 | |
| 185 | <div class="memitem"> |
| 186 | <div class="memproto"> |
| 187 | <table class="mlabels"> |
| 188 | <tr> |
| 189 | <td class="mlabels-left"> |
| 190 | <table class="memname"> |
| 191 | <tr> |
| 192 | <td class="memname">virtual void Allocate </td> |
| 193 | <td>(</td> |
| 194 | <td class="paramname"></td><td>)</td> |
| 195 | <td></td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </td> |
| 199 | <td class="mlabels-right"> |
| 200 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 201 | </tr> |
| 202 | </table> |
| 203 | </div><div class="memdoc"> |
| 204 | <p>Indicate to the memory manager that this resource is no longer active. This is used to compute overlapping lifetimes of resources. </p> |
| 205 | |
| 206 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#ac4c894e28b763523748ba2bb718d569d">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#ac4c894e28b763523748ba2bb718d569d">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_passthrough_cpu_tensor_handle.html#a8518772c5d692e334a76617582b10b92">ConstPassthroughCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_passthrough_cpu_tensor_handle.html#a8518772c5d692e334a76617582b10b92">PassthroughCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html#a8518772c5d692e334a76617582b10b92">ScopedCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#ac4c894e28b763523748ba2bb718d569d">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#ac4c894e28b763523748ba2bb718d569d">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#a8518772c5d692e334a76617582b10b92">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#a8518772c5d692e334a76617582b10b92">RefTensorHandle</a>.</p> |
| 207 | |
| 208 | <p class="reference">Referenced by <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00019">AllocateAndCopyDataToITensorHandle()</a>, <a class="el" href="_graph_8cpp_source.html#l00142">Graph::AllocateDynamicBuffers()</a>, <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00160">ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle()</a>, <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00141">PassthroughCpuTensorHandle::PassthroughCpuTensorHandle()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00019">ITensorHandle::~ITensorHandle()</a>.</p> |
| 209 | |
| 210 | </div> |
| 211 | </div> |
| 212 | <a id="ad495ac6d9fd9e1ba5bb7a02c731a2d83"></a> |
| 213 | <h2 class="memtitle"><span class="permalink"><a href="#ad495ac6d9fd9e1ba5bb7a02c731a2d83">◆ </a></span>CopyInFrom()</h2> |
| 214 | |
| 215 | <div class="memitem"> |
| 216 | <div class="memproto"> |
| 217 | <table class="mlabels"> |
| 218 | <tr> |
| 219 | <td class="mlabels-left"> |
| 220 | <table class="memname"> |
| 221 | <tr> |
| 222 | <td class="memname">virtual void CopyInFrom </td> |
| 223 | <td>(</td> |
| 224 | <td class="paramtype">const void * </td> |
| 225 | <td class="paramname"><em>memory</em></td><td>)</td> |
| 226 | <td></td> |
| 227 | </tr> |
| 228 | </table> |
| 229 | </td> |
| 230 | <td class="mlabels-right"> |
| 231 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 232 | </tr> |
| 233 | </table> |
| 234 | </div><div class="memdoc"> |
| 235 | |
| 236 | <p class="reference">Referenced by <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00009">CopyDataToITensorHandle()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00050">ITensorHandle::Unmap()</a>.</p> |
| 237 | |
| 238 | </div> |
| 239 | </div> |
| 240 | <a id="a4ec32790513ea4af4c5746f1ee48fbfe"></a> |
| 241 | <h2 class="memtitle"><span class="permalink"><a href="#a4ec32790513ea4af4c5746f1ee48fbfe">◆ </a></span>CopyOutTo()</h2> |
| 242 | |
| 243 | <div class="memitem"> |
| 244 | <div class="memproto"> |
| 245 | <table class="mlabels"> |
| 246 | <tr> |
| 247 | <td class="mlabels-left"> |
| 248 | <table class="memname"> |
| 249 | <tr> |
| 250 | <td class="memname">virtual void CopyOutTo </td> |
| 251 | <td>(</td> |
| 252 | <td class="paramtype">void * </td> |
| 253 | <td class="paramname"><em>memory</em></td><td>)</td> |
| 254 | <td> const</td> |
| 255 | </tr> |
| 256 | </table> |
| 257 | </td> |
| 258 | <td class="mlabels-right"> |
| 259 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 260 | </tr> |
| 261 | </table> |
| 262 | </div><div class="memdoc"> |
| 263 | |
| 264 | <p class="reference">Referenced by <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00014">CopyDataFromITensorHandle()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00050">ITensorHandle::Unmap()</a>.</p> |
| 265 | |
| 266 | </div> |
| 267 | </div> |
| 268 | <a id="a55cddc2dbb32d680cd85b635ba370e48"></a> |
| 269 | <h2 class="memtitle"><span class="permalink"><a href="#a55cddc2dbb32d680cd85b635ba370e48">◆ </a></span>GetImportFlags()</h2> |
| 270 | |
| 271 | <div class="memitem"> |
| 272 | <div class="memproto"> |
| 273 | <table class="mlabels"> |
| 274 | <tr> |
| 275 | <td class="mlabels-left"> |
| 276 | <table class="memname"> |
| 277 | <tr> |
| 278 | <td class="memname">virtual unsigned int GetImportFlags </td> |
| 279 | <td>(</td> |
| 280 | <td class="paramname"></td><td>)</td> |
| 281 | <td> const</td> |
| 282 | </tr> |
| 283 | </table> |
| 284 | </td> |
| 285 | <td class="mlabels-right"> |
| 286 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 287 | </tr> |
| 288 | </table> |
| 289 | </div><div class="memdoc"> |
| 290 | |
| 291 | <p>Get flags describing supported import sources. </p> |
| 292 | |
| 293 | <p>Reimplemented in <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#aa1d3334a17a9f136fe65ed833fbf68b4">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#ada8abaac0e81a715dedadf76aaadcbac">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#ada8abaac0e81a715dedadf76aaadcbac">RefTensorHandle</a>.</p> |
| 294 | |
| 295 | <p class="definition">Definition at line <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00070">70</a> of file <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>.</p> |
| 296 | |
| 297 | <p class="reference">Referenced by <a class="el" href="_loaded_network_8cpp_source.html#l00412">LoadedNetwork::EnqueueWorkload()</a>.</p> |
| 298 | <div class="fragment"><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> { <span class="keywordflow">return</span> 0; }</div></div><!-- fragment --> |
| 299 | </div> |
| 300 | </div> |
| 301 | <a id="a437893b8dcf58a0b68b70e1ad7933be6"></a> |
| 302 | <h2 class="memtitle"><span class="permalink"><a href="#a437893b8dcf58a0b68b70e1ad7933be6">◆ </a></span>GetParent()</h2> |
| 303 | |
| 304 | <div class="memitem"> |
| 305 | <div class="memproto"> |
| 306 | <table class="mlabels"> |
| 307 | <tr> |
| 308 | <td class="mlabels-left"> |
| 309 | <table class="memname"> |
| 310 | <tr> |
| 311 | <td class="memname">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a>* GetParent </td> |
| 312 | <td>(</td> |
| 313 | <td class="paramname"></td><td>)</td> |
| 314 | <td> const</td> |
| 315 | </tr> |
| 316 | </table> |
| 317 | </td> |
| 318 | <td class="mlabels-right"> |
| 319 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 320 | </tr> |
| 321 | </table> |
| 322 | </div><div class="memdoc"> |
| 323 | <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> |
| 324 | |
| 325 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">ConstCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">RefTensorHandle</a>.</p> |
| 326 | |
| 327 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.html#l00142">Graph::AllocateDynamicBuffers()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00019">ITensorHandle::~ITensorHandle()</a>.</p> |
| 328 | |
| 329 | </div> |
| 330 | </div> |
| 331 | <a id="affd5aae75cad90f472f96cfd25a13f29"></a> |
| 332 | <h2 class="memtitle"><span class="permalink"><a href="#affd5aae75cad90f472f96cfd25a13f29">◆ </a></span>GetShape()</h2> |
| 333 | |
| 334 | <div class="memitem"> |
| 335 | <div class="memproto"> |
| 336 | <table class="mlabels"> |
| 337 | <tr> |
| 338 | <td class="mlabels-left"> |
| 339 | <table class="memname"> |
| 340 | <tr> |
| 341 | <td class="memname">virtual <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetShape </td> |
| 342 | <td>(</td> |
| 343 | <td class="paramname"></td><td>)</td> |
| 344 | <td> const</td> |
| 345 | </tr> |
| 346 | </table> |
| 347 | </td> |
| 348 | <td class="mlabels-right"> |
| 349 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 350 | </tr> |
| 351 | </table> |
| 352 | </div><div class="memdoc"> |
| 353 | <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> |
| 354 | |
| 355 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">ConstCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">RefTensorHandle</a>.</p> |
| 356 | |
| 357 | <p class="reference">Referenced by <a class="el" href="_workload_utils_8hpp_source.html#l00049">armnn::CopyTensorContentsGeneric()</a>, <a class="el" href="_tensor_utils_8cpp_source.html#l00058">armnnUtils::FindMinMax()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00050">ITensorHandle::Unmap()</a>.</p> |
| 358 | |
| 359 | </div> |
| 360 | </div> |
| 361 | <a id="a30c3e09ce55369b66469443a4ca5ef03"></a> |
| 362 | <h2 class="memtitle"><span class="permalink"><a href="#a30c3e09ce55369b66469443a4ca5ef03">◆ </a></span>GetStrides()</h2> |
| 363 | |
| 364 | <div class="memitem"> |
| 365 | <div class="memproto"> |
| 366 | <table class="mlabels"> |
| 367 | <tr> |
| 368 | <td class="mlabels-left"> |
| 369 | <table class="memname"> |
| 370 | <tr> |
| 371 | <td class="memname">virtual <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetStrides </td> |
| 372 | <td>(</td> |
| 373 | <td class="paramname"></td><td>)</td> |
| 374 | <td> const</td> |
| 375 | </tr> |
| 376 | </table> |
| 377 | </td> |
| 378 | <td class="mlabels-right"> |
| 379 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 380 | </tr> |
| 381 | </table> |
| 382 | </div><div class="memdoc"> |
| 383 | <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> |
| 384 | |
| 385 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">ConstCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">RefTensorHandle</a>.</p> |
| 386 | |
| 387 | <p class="reference">Referenced by <a class="el" href="_workload_utils_8hpp_source.html#l00049">armnn::CopyTensorContentsGeneric()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00050">ITensorHandle::Unmap()</a>.</p> |
| 388 | |
| 389 | </div> |
| 390 | </div> |
| 391 | <a id="a4f81a9eff30c9b9fe76f5b83af470ba7"></a> |
| 392 | <h2 class="memtitle"><span class="permalink"><a href="#a4f81a9eff30c9b9fe76f5b83af470ba7">◆ </a></span>Import()</h2> |
| 393 | |
| 394 | <div class="memitem"> |
| 395 | <div class="memproto"> |
| 396 | <table class="mlabels"> |
| 397 | <tr> |
| 398 | <td class="mlabels-left"> |
| 399 | <table class="memname"> |
| 400 | <tr> |
| 401 | <td class="memname">virtual bool Import </td> |
| 402 | <td>(</td> |
| 403 | <td class="paramtype">void * </td> |
| 404 | <td class="paramname"><em>memory</em>, </td> |
| 405 | </tr> |
| 406 | <tr> |
| 407 | <td class="paramkey"></td> |
| 408 | <td></td> |
| 409 | <td class="paramtype"><a class="el" href="namespacearmnn.html#a0fc99721e27eb20ecd0ea85a3cc8b488">MemorySource</a> </td> |
| 410 | <td class="paramname"><em>source</em> </td> |
| 411 | </tr> |
| 412 | <tr> |
| 413 | <td></td> |
| 414 | <td>)</td> |
| 415 | <td></td><td></td> |
| 416 | </tr> |
| 417 | </table> |
| 418 | </td> |
| 419 | <td class="mlabels-right"> |
| 420 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 421 | </tr> |
| 422 | </table> |
| 423 | </div><div class="memdoc"> |
| 424 | <p>Import externally allocated memory </p><dl class="params"><dt>Parameters</dt><dd> |
| 425 | <table class="params"> |
| 426 | <tr><td class="paramname">memory</td><td>base address of the memory being imported. </td></tr> |
| 427 | <tr><td class="paramname">source</td><td>source of the allocation for the memory being imported. </td></tr> |
| 428 | </table> |
| 429 | </dd> |
| 430 | </dl> |
| 431 | <dl class="section return"><dt>Returns</dt><dd>true on success or false on failure </dd></dl> |
| 432 | |
| 433 | <p>Reimplemented in <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#a468bf13728df2ac9ec772733047ff136">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#ab1766bd9f6a7902c5806178f3fd68f0b">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#ab1766bd9f6a7902c5806178f3fd68f0b">RefTensorHandle</a>.</p> |
| 434 | |
| 435 | <p class="definition">Definition at line <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00076">76</a> of file <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>.</p> |
| 436 | |
| 437 | <p class="reference">Referenced by <a class="el" href="_loaded_network_8cpp_source.html#l00412">LoadedNetwork::EnqueueWorkload()</a>.</p> |
| 438 | <div class="fragment"><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  boost::ignore_unused(memory, source);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  };</div></div><!-- fragment --> |
| 439 | </div> |
| 440 | </div> |
| 441 | <a id="a04149d0f9b9c54c05e95693111490daf"></a> |
| 442 | <h2 class="memtitle"><span class="permalink"><a href="#a04149d0f9b9c54c05e95693111490daf">◆ </a></span>Manage()</h2> |
| 443 | |
| 444 | <div class="memitem"> |
| 445 | <div class="memproto"> |
| 446 | <table class="mlabels"> |
| 447 | <tr> |
| 448 | <td class="mlabels-left"> |
| 449 | <table class="memname"> |
| 450 | <tr> |
| 451 | <td class="memname">virtual void Manage </td> |
| 452 | <td>(</td> |
| 453 | <td class="paramname"></td><td>)</td> |
| 454 | <td></td> |
| 455 | </tr> |
| 456 | </table> |
| 457 | </td> |
| 458 | <td class="mlabels-right"> |
| 459 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </div><div class="memdoc"> |
| 463 | <p>Indicate to the memory manager that this resource is active. This is used to compute overlapping lifetimes of resources. </p> |
| 464 | |
| 465 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">ConstCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#aca21728cdaa75f9d656d25ae7200ade5">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#aca21728cdaa75f9d656d25ae7200ade5">RefTensorHandle</a>.</p> |
| 466 | |
| 467 | <p class="reference">Referenced by <a class="el" href="_graph_8cpp_source.html#l00142">Graph::AllocateDynamicBuffers()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00019">ITensorHandle::~ITensorHandle()</a>.</p> |
| 468 | |
| 469 | </div> |
| 470 | </div> |
| 471 | <a id="a9afbc055a017adf1bc38ee137bca6e90"></a> |
| 472 | <h2 class="memtitle"><span class="permalink"><a href="#a9afbc055a017adf1bc38ee137bca6e90">◆ </a></span>Map() <span class="overload">[1/2]</span></h2> |
| 473 | |
| 474 | <div class="memitem"> |
| 475 | <div class="memproto"> |
| 476 | <table class="mlabels"> |
| 477 | <tr> |
| 478 | <td class="mlabels-left"> |
| 479 | <table class="memname"> |
| 480 | <tr> |
| 481 | <td class="memname">virtual const void* Map </td> |
| 482 | <td>(</td> |
| 483 | <td class="paramtype">bool </td> |
| 484 | <td class="paramname"><em>blocking</em> = <code><a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a></code></td><td>)</td> |
| 485 | <td> const</td> |
| 486 | </tr> |
| 487 | </table> |
| 488 | </td> |
| 489 | <td class="mlabels-right"> |
| 490 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 491 | </tr> |
| 492 | </table> |
| 493 | </div><div class="memdoc"> |
| 494 | <p>Map the tensor data for access. </p><dl class="params"><dt>Parameters</dt><dd> |
| 495 | <table class="params"> |
| 496 | <tr><td class="paramname">blocking</td><td>hint to block the calling thread until all other accesses are complete. (backend dependent) </td></tr> |
| 497 | </table> |
| 498 | </dd> |
| 499 | </dl> |
| 500 | <dl class="section return"><dt>Returns</dt><dd>pointer to the first element of the mapped data. </dd></dl> |
| 501 | |
| 502 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#acc3fcce7a100cc3b64247519f22e37fc">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#abe9956a614f816b4181a47a046e42db9">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#acc3fcce7a100cc3b64247519f22e37fc">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#abe9956a614f816b4181a47a046e42db9">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#acc3fcce7a100cc3b64247519f22e37fc">ConstCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#adc70d69d2748d1432e4999d4af361f3b">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#adc70d69d2748d1432e4999d4af361f3b">RefTensorHandle</a>.</p> |
| 503 | |
| 504 | <p class="reference">Referenced by <a class="el" href="_workload_utils_8hpp_source.html#l00049">armnn::CopyTensorContentsGeneric()</a>, <a class="el" href="_loaded_network_8cpp_source.html#l00412">LoadedNetwork::EnqueueWorkload()</a>, <a class="el" href="_mem_sync_workload_8cpp_source.html#l00025">SyncMemGenericWorkload::Execute()</a>, <a class="el" href="_tensor_utils_8cpp_source.html#l00058">armnnUtils::FindMinMax()</a>, <a class="el" href="_ref_workload_utils_8hpp_source.html#l00034">armnn::GetInputTensorData()</a>, <a class="el" href="_ref_workload_utils_8hpp_source.html#l00041">armnn::GetOutputTensorData()</a>, <a class="el" href="_ref_tensor_handle_8hpp_source.html#l00029">RefTensorHandle::GetParent()</a>, <a class="el" href="_sample_tensor_handle_8hpp_source.html#l00030">SampleTensorHandle::GetParent()</a>, <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00044">ITensorHandle::Map()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00019">ITensorHandle::~ITensorHandle()</a>.</p> |
| 505 | |
| 506 | </div> |
| 507 | </div> |
| 508 | <a id="a270c8f844df649b9b0599c1e4db44cd3"></a> |
| 509 | <h2 class="memtitle"><span class="permalink"><a href="#a270c8f844df649b9b0599c1e4db44cd3">◆ </a></span>Map() <span class="overload">[2/2]</span></h2> |
| 510 | |
| 511 | <div class="memitem"> |
| 512 | <div class="memproto"> |
| 513 | <table class="mlabels"> |
| 514 | <tr> |
| 515 | <td class="mlabels-left"> |
| 516 | <table class="memname"> |
| 517 | <tr> |
| 518 | <td class="memname">void* Map </td> |
| 519 | <td>(</td> |
| 520 | <td class="paramtype">bool </td> |
| 521 | <td class="paramname"><em>blocking</em> = <code><a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a></code></td><td>)</td> |
| 522 | <td></td> |
| 523 | </tr> |
| 524 | </table> |
| 525 | </td> |
| 526 | <td class="mlabels-right"> |
| 527 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 528 | </tr> |
| 529 | </table> |
| 530 | </div><div class="memdoc"> |
| 531 | <p>Map the tensor data for access. Must be paired with call to <a class="el" href="classarmnn_1_1_i_tensor_handle.html#ab2be1412c91842a072ad94759f52033e" title="Unmap the tensor data that was previously mapped with call to Map(). ">Unmap()</a>. </p><dl class="params"><dt>Parameters</dt><dd> |
| 532 | <table class="params"> |
| 533 | <tr><td class="paramname">blocking</td><td>hint to block the calling thread until all other accesses are complete. (backend dependent) </td></tr> |
| 534 | </table> |
| 535 | </dd> |
| 536 | </dl> |
| 537 | <dl class="section return"><dt>Returns</dt><dd>pointer to the first element of the mapped data. </dd></dl> |
| 538 | |
| 539 | <p class="definition">Definition at line <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00044">44</a> of file <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>.</p> |
| 540 | |
| 541 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">ITensorHandle::Map()</a>.</p> |
| 542 | <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">return</span> <span class="keyword">const_cast<</span><span class="keywordtype">void</span>*<span class="keyword">></span>(<span class="keyword">static_cast<</span><span class="keyword">const </span>ITensorHandle*<span class="keyword">></span>(<span class="keyword">this</span>)-><a class="code" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">Map</a>(blocking));</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  }</div><div class="ttc" id="classarmnn_1_1_i_tensor_handle_html_a9afbc055a017adf1bc38ee137bca6e90"><div class="ttname"><a href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">armnn::ITensorHandle::Map</a></div><div class="ttdeci">virtual const void * Map(bool blocking=true) const =0</div></div> |
| 543 | </div><!-- fragment --> |
| 544 | </div> |
| 545 | </div> |
| 546 | <a id="a563609828050f1b3a7868c23f3365923"></a> |
| 547 | <h2 class="memtitle"><span class="permalink"><a href="#a563609828050f1b3a7868c23f3365923">◆ </a></span>Unmap() <span class="overload">[1/2]</span></h2> |
| 548 | |
| 549 | <div class="memitem"> |
| 550 | <div class="memproto"> |
| 551 | <table class="mlabels"> |
| 552 | <tr> |
| 553 | <td class="mlabels-left"> |
| 554 | <table class="memname"> |
| 555 | <tr> |
| 556 | <td class="memname">virtual void Unmap </td> |
| 557 | <td>(</td> |
| 558 | <td class="paramname"></td><td>)</td> |
| 559 | <td> const</td> |
| 560 | </tr> |
| 561 | </table> |
| 562 | </td> |
| 563 | <td class="mlabels-right"> |
| 564 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 565 | </tr> |
| 566 | </table> |
| 567 | </div><div class="memdoc"> |
| 568 | |
| 569 | <p>Unmap the tensor data. </p> |
| 570 | |
| 571 | <p>Implemented in <a class="el" href="classarmnn_1_1_neon_sub_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">NeonSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_sub_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">ClSubTensorHandle</a>, <a class="el" href="classarmnn_1_1_neon_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">NeonTensorHandle</a>, <a class="el" href="classarmnn_1_1_cl_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">ClTensorHandle</a>, <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">ConstCpuTensorHandle</a>, <a class="el" href="classarmnn_1_1_sample_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">SampleTensorHandle</a>, and <a class="el" href="classarmnn_1_1_ref_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">RefTensorHandle</a>.</p> |
| 572 | |
| 573 | <p class="reference">Referenced by <a class="el" href="_workload_utils_8hpp_source.html#l00049">armnn::CopyTensorContentsGeneric()</a>, <a class="el" href="_loaded_network_8cpp_source.html#l00412">LoadedNetwork::EnqueueWorkload()</a>, <a class="el" href="_mem_sync_workload_8cpp_source.html#l00025">SyncMemGenericWorkload::Execute()</a>, <a class="el" href="_tensor_utils_8cpp_source.html#l00058">armnnUtils::FindMinMax()</a>, <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00050">ITensorHandle::Unmap()</a>, and <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00019">ITensorHandle::~ITensorHandle()</a>.</p> |
| 574 | |
| 575 | </div> |
| 576 | </div> |
| 577 | <a id="ab2be1412c91842a072ad94759f52033e"></a> |
| 578 | <h2 class="memtitle"><span class="permalink"><a href="#ab2be1412c91842a072ad94759f52033e">◆ </a></span>Unmap() <span class="overload">[2/2]</span></h2> |
| 579 | |
| 580 | <div class="memitem"> |
| 581 | <div class="memproto"> |
| 582 | <table class="mlabels"> |
| 583 | <tr> |
| 584 | <td class="mlabels-left"> |
| 585 | <table class="memname"> |
| 586 | <tr> |
| 587 | <td class="memname">void Unmap </td> |
| 588 | <td>(</td> |
| 589 | <td class="paramname"></td><td>)</td> |
| 590 | <td></td> |
| 591 | </tr> |
| 592 | </table> |
| 593 | </td> |
| 594 | <td class="mlabels-right"> |
| 595 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 596 | </tr> |
| 597 | </table> |
| 598 | </div><div class="memdoc"> |
| 599 | |
| 600 | <p>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>. </p> |
| 601 | |
| 602 | <p class="definition">Definition at line <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html#l00050">50</a> of file <a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a>.</p> |
| 603 | |
| 604 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_tensor_handle.html#ad495ac6d9fd9e1ba5bb7a02c731a2d83">ITensorHandle::CopyInFrom()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a4ec32790513ea4af4c5746f1ee48fbfe">ITensorHandle::CopyOutTo()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">ITensorHandle::GetShape()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a30c3e09ce55369b66469443a4ca5ef03">ITensorHandle::GetStrides()</a>, and <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">ITensorHandle::Unmap()</a>.</p> |
| 605 | <div class="fragment"><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keyword">const </span>ITensorHandle*<span class="keyword">></span>(<span class="keyword">this</span>)-><a class="code" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">Unmap</a>();</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="ttc" id="classarmnn_1_1_i_tensor_handle_html_a563609828050f1b3a7868c23f3365923"><div class="ttname"><a href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">armnn::ITensorHandle::Unmap</a></div><div class="ttdeci">virtual void Unmap() const =0</div><div class="ttdoc">Unmap the tensor data. </div></div> |
| 606 | </div><!-- fragment --> |
| 607 | </div> |
| 608 | </div> |
| 609 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 610 | <li>include/armnn/backends/<a class="el" href="include_2armnn_2backends_2_i_tensor_handle_8hpp_source.html">ITensorHandle.hpp</a></li> |
| 611 | </ul> |
| 612 | </div><!-- contents --> |
| 613 | </div><!-- doc-content --> |
| 614 | <!-- start footer part --> |
| 615 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 616 | <ul> |
| 617 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a></li> |
| 618 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 619 | <a href="http://www.doxygen.org/index.html"> |
| 620 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 621 | </ul> |
| 622 | </div> |
| 623 | </body> |
| 624 | </html> |