Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: ConstCpuTensorHandle Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1_const_cpu_tensor_handle.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="#pro-methods">Protected Member Functions</a> | |
| 100 | <a href="classarmnn_1_1_const_cpu_tensor_handle-members.xhtml">List of all members</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">ConstCpuTensorHandle Class Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | |
| 106 | <p><code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>></code></p> |
| 107 | <div class="dynheader"> |
| 108 | Inheritance diagram for ConstCpuTensorHandle:</div> |
| 109 | <div class="dyncontent"> |
| 110 | <div class="center"> |
| 111 | <img src="classarmnn_1_1_const_cpu_tensor_handle.png" usemap="#ConstCpuTensorHandle_map" alt=""/> |
| 112 | <map id="ConstCpuTensorHandle_map" name="ConstCpuTensorHandle_map"> |
| 113 | <area href="classarmnn_1_1_i_tensor_handle.xhtml" alt="ITensorHandle" shape="rect" coords="113,0,329,24"/> |
| 114 | <area href="classarmnn_1_1_const_passthrough_cpu_tensor_handle.xhtml" alt="ConstPassthroughCpuTensorHandle" shape="rect" coords="0,112,216,136"/> |
| 115 | <area href="classarmnn_1_1_cpu_tensor_handle.xhtml" alt="CpuTensorHandle" shape="rect" coords="226,112,442,136"/> |
| 116 | <area href="classarmnn_1_1_passthrough_cpu_tensor_handle.xhtml" alt="PassthroughCpuTensorHandle" shape="rect" coords="113,168,329,192"/> |
| 117 | <area href="classarmnn_1_1_scoped_cpu_tensor_handle.xhtml" alt="ScopedCpuTensorHandle" shape="rect" coords="339,168,555,192"/> |
| 118 | </map> |
| 119 | </div></div> |
| 120 | <table class="memberdecls"> |
| 121 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 122 | Public Member Functions</h2></td></tr> |
| 123 | <tr class="memitem:a3a76fc8b348e13d5a6ac1240c96ebef4"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 124 | <tr class="memitem:a3a76fc8b348e13d5a6ac1240c96ebef4"><td class="memTemplItemLeft" align="right" valign="top">const T * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a3a76fc8b348e13d5a6ac1240c96ebef4">GetConstTensor</a> () const</td></tr> |
| 125 | <tr class="separator:a3a76fc8b348e13d5a6ac1240c96ebef4"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a66e8f43a5b42b500871ed96e15419567"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a> () const</td></tr> |
| 127 | <tr class="separator:a66e8f43a5b42b500871ed96e15419567"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <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_const_cpu_tensor_handle.xhtml#a19aa18d78d5ac31e3a3c8f782f0e8606">Manage</a> () override</td></tr> |
| 129 | <tr class="memdesc:a19aa18d78d5ac31e3a3c8f782f0e8606"><td class="mdescLeft"> </td><td class="mdescRight">Indicate to the memory manager that this resource is active. <a href="#a19aa18d78d5ac31e3a3c8f782f0e8606">More...</a><br /></td></tr> |
| 130 | <tr class="separator:a19aa18d78d5ac31e3a3c8f782f0e8606"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:ab6c52b35388890f2c563afbebfb456a6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#ab6c52b35388890f2c563afbebfb456a6">GetParent</a> () const override</td></tr> |
| 132 | <tr class="memdesc:ab6c52b35388890f2c563afbebfb456a6"><td class="mdescLeft"> </td><td class="mdescRight">Get the parent tensor if this is a subtensor. <a href="#ab6c52b35388890f2c563afbebfb456a6">More...</a><br /></td></tr> |
| 133 | <tr class="separator:ab6c52b35388890f2c563afbebfb456a6"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <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_const_cpu_tensor_handle.xhtml#acc3fcce7a100cc3b64247519f22e37fc">Map</a> (bool) const override</td></tr> |
| 135 | <tr class="memdesc:acc3fcce7a100cc3b64247519f22e37fc"><td class="mdescLeft"> </td><td class="mdescRight">Map the tensor data for access. <a href="#acc3fcce7a100cc3b64247519f22e37fc">More...</a><br /></td></tr> |
| 136 | <tr class="separator:acc3fcce7a100cc3b64247519f22e37fc"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <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_const_cpu_tensor_handle.xhtml#a88ab6decf78c152e746b7d8dc2dd931f">Unmap</a> () const override</td></tr> |
| 138 | <tr class="memdesc:a88ab6decf78c152e746b7d8dc2dd931f"><td class="mdescLeft"> </td><td class="mdescRight">Unmap the tensor data. <a href="#a88ab6decf78c152e746b7d8dc2dd931f">More...</a><br /></td></tr> |
| 139 | <tr class="separator:a88ab6decf78c152e746b7d8dc2dd931f"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:a967f220393d291f71dabce0c06bf9b6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a967f220393d291f71dabce0c06bf9b6c">GetStrides</a> () const override</td></tr> |
| 141 | <tr class="memdesc:a967f220393d291f71dabce0c06bf9b6c"><td class="mdescLeft"> </td><td class="mdescRight">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. <a href="#a967f220393d291f71dabce0c06bf9b6c">More...</a><br /></td></tr> |
| 142 | <tr class="separator:a967f220393d291f71dabce0c06bf9b6c"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:a8e8d2fbabcac19f9e12779080ddff54e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a8e8d2fbabcac19f9e12779080ddff54e">GetShape</a> () const override</td></tr> |
| 144 | <tr class="memdesc:a8e8d2fbabcac19f9e12779080ddff54e"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. <a href="#a8e8d2fbabcac19f9e12779080ddff54e">More...</a><br /></td></tr> |
| 145 | <tr class="separator:a8e8d2fbabcac19f9e12779080ddff54e"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:aecc243f62d4777927e15af592d330764"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 147 | <tr class="memitem:aecc243f62d4777927e15af592d330764"><td class="memTemplItemLeft" align="right" valign="top">const void * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#aecc243f62d4777927e15af592d330764">GetConstTensor</a> () const</td></tr> |
| 148 | <tr class="separator:aecc243f62d4777927e15af592d330764"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:a8faf443b026b17e61779734bd2b45d12"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 150 | <tr class="memitem:a8faf443b026b17e61779734bd2b45d12"><td class="memTemplItemLeft" align="right" valign="top">const void * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a8faf443b026b17e61779734bd2b45d12">GetConstTensor</a> () const</td></tr> |
| 151 | <tr class="separator:a8faf443b026b17e61779734bd2b45d12"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <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.xhtml">ITensorHandle</a></td></tr> |
| 153 | <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.xhtml#aff95f063e2b8041b3d0e4b4dc0e3821d">~ITensorHandle</a> ()</td></tr> |
| 154 | <tr class="separator:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a5cceed8b707a09bf27eb61f17acf8a88 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><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.xhtml#a5cceed8b707a09bf27eb61f17acf8a88">Allocate</a> ()=0</td></tr> |
| 156 | <tr class="memdesc:a5cceed8b707a09bf27eb61f17acf8a88 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Indicate to the memory manager that this resource is no longer active. <a href="classarmnn_1_1_i_tensor_handle.xhtml#a5cceed8b707a09bf27eb61f17acf8a88">More...</a><br /></td></tr> |
| 157 | <tr class="separator:a5cceed8b707a09bf27eb61f17acf8a88 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | <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.xhtml#a270c8f844df649b9b0599c1e4db44cd3">Map</a> (bool blocking=<a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</td></tr> |
| 159 | <tr class="memdesc:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Map the tensor data for access. <a href="classarmnn_1_1_i_tensor_handle.xhtml#a270c8f844df649b9b0599c1e4db44cd3">More...</a><br /></td></tr> |
| 160 | <tr class="separator:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <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.xhtml#ab2be1412c91842a072ad94759f52033e">Unmap</a> ()</td></tr> |
| 162 | <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.xhtml#a9afbc055a017adf1bc38ee137bca6e90" title="Map the tensor data for access. ">Map()</a>. <a href="classarmnn_1_1_i_tensor_handle.xhtml#ab2be1412c91842a072ad94759f52033e">More...</a><br /></td></tr> |
| 163 | <tr class="separator:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <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.xhtml#a55cddc2dbb32d680cd85b635ba370e48">GetImportFlags</a> () const</td></tr> |
| 165 | <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.xhtml#a55cddc2dbb32d680cd85b635ba370e48">More...</a><br /></td></tr> |
| 166 | <tr class="separator:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <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.xhtml#a4f81a9eff30c9b9fe76f5b83af470ba7">Import</a> (void *memory, <a class="el" href="namespacearmnn.xhtml#a0fc99721e27eb20ecd0ea85a3cc8b488">MemorySource</a> source)</td></tr> |
| 168 | <tr class="memdesc:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Import externally allocated memory. <a href="classarmnn_1_1_i_tensor_handle.xhtml#a4f81a9eff30c9b9fe76f5b83af470ba7">More...</a><br /></td></tr> |
| 169 | <tr class="separator:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 170 | </table><table class="memberdecls"> |
| 171 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 172 | Protected Member Functions</h2></td></tr> |
| 173 | <tr class="memitem:ac9bdc423c74013d226c902c3d8a263bf"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#ac9bdc423c74013d226c902c3d8a263bf">ConstCpuTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &tensorInfo)</td></tr> |
| 174 | <tr class="separator:ac9bdc423c74013d226c902c3d8a263bf"><td class="memSeparator" colspan="2"> </td></tr> |
| 175 | <tr class="memitem:ae21d7415b7d191de4fe6e02d134a4f38"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#ae21d7415b7d191de4fe6e02d134a4f38">SetConstMemory</a> (const void *mem)</td></tr> |
| 176 | <tr class="separator:ae21d7415b7d191de4fe6e02d134a4f38"><td class="memSeparator" colspan="2"> </td></tr> |
| 177 | </table> |
| 178 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 179 | <div class="textblock"> |
| 180 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 181 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 182 | <a id="ac9bdc423c74013d226c902c3d8a263bf"></a> |
| 183 | <h2 class="memtitle"><span class="permalink"><a href="#ac9bdc423c74013d226c902c3d8a263bf">◆ </a></span>ConstCpuTensorHandle()</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"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml">ConstCpuTensorHandle</a> </td> |
| 193 | <td>(</td> |
| 194 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 195 | <td class="paramname"><em>tensorInfo</em></td><td>)</td> |
| 196 | <td></td> |
| 197 | </tr> |
| 198 | </table> |
| 199 | </td> |
| 200 | <td class="mlabels-right"> |
| 201 | <span class="mlabels"><span class="mlabel">protected</span></span> </td> |
| 202 | </tr> |
| 203 | </table> |
| 204 | </div><div class="memdoc"> |
| 205 | |
| 206 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00031">31</a> of file <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml">CpuTensorHandle.cpp</a>.</p> |
| 207 | |
| 208 | <p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00053">ConstCpuTensorHandle::GetShape()</a>, and <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00058">ConstCpuTensorHandle::SetConstMemory()</a>.</p> |
| 209 | <div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> : m_TensorInfo(tensorInfo)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> , m_Memory(<span class="keyword">nullptr</span>)</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div></div><!-- fragment --> |
| 210 | </div> |
| 211 | </div> |
| 212 | <h2 class="groupheader">Member Function Documentation</h2> |
| 213 | <a id="a3a76fc8b348e13d5a6ac1240c96ebef4"></a> |
| 214 | <h2 class="memtitle"><span class="permalink"><a href="#a3a76fc8b348e13d5a6ac1240c96ebef4">◆ </a></span>GetConstTensor() <span class="overload">[1/3]</span></h2> |
| 215 | |
| 216 | <div class="memitem"> |
| 217 | <div class="memproto"> |
| 218 | <table class="mlabels"> |
| 219 | <tr> |
| 220 | <td class="mlabels-left"> |
| 221 | <table class="memname"> |
| 222 | <tr> |
| 223 | <td class="memname">const T* GetConstTensor </td> |
| 224 | <td>(</td> |
| 225 | <td class="paramname"></td><td>)</td> |
| 226 | <td> const</td> |
| 227 | </tr> |
| 228 | </table> |
| 229 | </td> |
| 230 | <td class="mlabels-right"> |
| 231 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 232 | </tr> |
| 233 | </table> |
| 234 | </div><div class="memdoc"> |
| 235 | |
| 236 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00031">31</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 237 | |
| 238 | <p class="reference">References <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00037">ConstCpuTensorHandle::GetTensorInfo()</a>.</p> |
| 239 | |
| 240 | <p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00160">ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle()</a>, <a class="el" href="_cl_constant_workload_8cpp_source.xhtml#l00024">ClConstantWorkload::Execute()</a>, <a class="el" href="_neon_workload_utils_8hpp_source.xhtml#l00035">armnn::InitializeArmComputeTensorData()</a>, <a class="el" href="_workload_utils_8cpp_source.xhtml#l00013">armnn::PermuteTensor()</a>, <a class="el" href="_ref_constant_workload_8cpp_source.xhtml#l00023">RefConstantWorkload::PostAllocationConfigure()</a>, and <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00066">ScopedCpuTensorHandle::ScopedCpuTensorHandle()</a>.</p> |
| 241 | <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>  BOOST_ASSERT(CompatibleTypes<T>(<a class="code" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a>().GetDataType()));</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span>T*<span class="keyword">></span>(m_Memory);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div><div class="ttc" id="classarmnn_1_1_const_cpu_tensor_handle_xhtml_a66e8f43a5b42b500871ed96e15419567"><div class="ttname"><a href="classarmnn_1_1_const_cpu_tensor_handle.xhtml#a66e8f43a5b42b500871ed96e15419567">armnn::ConstCpuTensorHandle::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8hpp_source.xhtml#l00037">CpuTensorHandle.hpp:37</a></div></div> |
| 242 | </div><!-- fragment --> |
| 243 | </div> |
| 244 | </div> |
| 245 | <a id="aecc243f62d4777927e15af592d330764"></a> |
| 246 | <h2 class="memtitle"><span class="permalink"><a href="#aecc243f62d4777927e15af592d330764">◆ </a></span>GetConstTensor() <span class="overload">[2/3]</span></h2> |
| 247 | |
| 248 | <div class="memitem"> |
| 249 | <div class="memproto"> |
| 250 | <table class="memname"> |
| 251 | <tr> |
| 252 | <td class="memname">const void * GetConstTensor </td> |
| 253 | <td>(</td> |
| 254 | <td class="paramname"></td><td>)</td> |
| 255 | <td> const</td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00038">38</a> of file <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml">CpuTensorHandle.cpp</a>.</p> |
| 261 | <div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> m_Memory;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div></div><!-- fragment --> |
| 262 | </div> |
| 263 | </div> |
| 264 | <a id="a8faf443b026b17e61779734bd2b45d12"></a> |
| 265 | <h2 class="memtitle"><span class="permalink"><a href="#a8faf443b026b17e61779734bd2b45d12">◆ </a></span>GetConstTensor() <span class="overload">[3/3]</span></h2> |
| 266 | |
| 267 | <div class="memitem"> |
| 268 | <div class="memproto"> |
| 269 | <table class="memname"> |
| 270 | <tr> |
| 271 | <td class="memname">const void* GetConstTensor </td> |
| 272 | <td>(</td> |
| 273 | <td class="paramname"></td><td>)</td> |
| 274 | <td> const</td> |
| 275 | </tr> |
| 276 | </table> |
| 277 | </div><div class="memdoc"> |
| 278 | |
| 279 | </div> |
| 280 | </div> |
| 281 | <a id="ab6c52b35388890f2c563afbebfb456a6"></a> |
| 282 | <h2 class="memtitle"><span class="permalink"><a href="#ab6c52b35388890f2c563afbebfb456a6">◆ </a></span>GetParent()</h2> |
| 283 | |
| 284 | <div class="memitem"> |
| 285 | <div class="memproto"> |
| 286 | <table class="mlabels"> |
| 287 | <tr> |
| 288 | <td class="mlabels-left"> |
| 289 | <table class="memname"> |
| 290 | <tr> |
| 291 | <td class="memname">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a>* GetParent </td> |
| 292 | <td>(</td> |
| 293 | <td class="paramname"></td><td>)</td> |
| 294 | <td> const</td> |
| 295 | </tr> |
| 296 | </table> |
| 297 | </td> |
| 298 | <td class="mlabels-right"> |
| 299 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 300 | </tr> |
| 301 | </table> |
| 302 | </div><div class="memdoc"> |
| 303 | |
| 304 | <p>Get the parent tensor if this is a subtensor. </p> |
| 305 | <dl class="section return"><dt>Returns</dt><dd>a pointer to the parent tensor. Otherwise nullptr if not a subtensor. </dd></dl> |
| 306 | |
| 307 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml#a437893b8dcf58a0b68b70e1ad7933be6">ITensorHandle</a>.</p> |
| 308 | |
| 309 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 310 | <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> { <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; }</div></div><!-- fragment --> |
| 311 | </div> |
| 312 | </div> |
| 313 | <a id="a8e8d2fbabcac19f9e12779080ddff54e"></a> |
| 314 | <h2 class="memtitle"><span class="permalink"><a href="#a8e8d2fbabcac19f9e12779080ddff54e">◆ </a></span>GetShape()</h2> |
| 315 | |
| 316 | <div class="memitem"> |
| 317 | <div class="memproto"> |
| 318 | <table class="mlabels"> |
| 319 | <tr> |
| 320 | <td class="mlabels-left"> |
| 321 | <table class="memname"> |
| 322 | <tr> |
| 323 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> GetShape </td> |
| 324 | <td>(</td> |
| 325 | <td class="paramname"></td><td>)</td> |
| 326 | <td> const</td> |
| 327 | </tr> |
| 328 | </table> |
| 329 | </td> |
| 330 | <td class="mlabels-right"> |
| 331 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 332 | </tr> |
| 333 | </table> |
| 334 | </div><div class="memdoc"> |
| 335 | |
| 336 | <p>Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. </p> |
| 337 | <dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> filled with the number of elements for each dimension. </dd></dl> |
| 338 | |
| 339 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml#affd5aae75cad90f472f96cfd25a13f29">ITensorHandle</a>.</p> |
| 340 | |
| 341 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00053">53</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 342 | |
| 343 | <p class="reference">References <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00031">ConstCpuTensorHandle::ConstCpuTensorHandle()</a>, and <a class="el" href="_tensor_8hpp_source.xhtml#l00088">TensorInfo::GetShape()</a>.</p> |
| 344 | <div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> { <span class="keywordflow">return</span> m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(); }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00088">Tensor.hpp:88</a></div></div> |
| 345 | </div><!-- fragment --> |
| 346 | </div> |
| 347 | </div> |
| 348 | <a id="a967f220393d291f71dabce0c06bf9b6c"></a> |
| 349 | <h2 class="memtitle"><span class="permalink"><a href="#a967f220393d291f71dabce0c06bf9b6c">◆ </a></span>GetStrides()</h2> |
| 350 | |
| 351 | <div class="memitem"> |
| 352 | <div class="memproto"> |
| 353 | <table class="mlabels"> |
| 354 | <tr> |
| 355 | <td class="mlabels-left"> |
| 356 | <table class="memname"> |
| 357 | <tr> |
| 358 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> GetStrides </td> |
| 359 | <td>(</td> |
| 360 | <td class="paramname"></td><td>)</td> |
| 361 | <td> const</td> |
| 362 | </tr> |
| 363 | </table> |
| 364 | </td> |
| 365 | <td class="mlabels-right"> |
| 366 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 367 | </tr> |
| 368 | </table> |
| 369 | </div><div class="memdoc"> |
| 370 | |
| 371 | <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> |
| 372 | <dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> filled with the strides for each dimension </dd></dl> |
| 373 | |
| 374 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml#a30c3e09ce55369b66469443a4ca5ef03">ITensorHandle</a>.</p> |
| 375 | |
| 376 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00049">49</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 377 | |
| 378 | <p class="reference">References <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00015">armnn::GetUnpaddedTensorStrides()</a>.</p> |
| 379 | <div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a36e8f52330a21eeab3cc7c4e030f3583">GetUnpaddedTensorStrides</a>(m_TensorInfo);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="ttc" id="namespacearmnn_xhtml_a36e8f52330a21eeab3cc7c4e030f3583"><div class="ttname"><a href="namespacearmnn.xhtml#a36e8f52330a21eeab3cc7c4e030f3583">armnn::GetUnpaddedTensorStrides</a></div><div class="ttdeci">TensorShape GetUnpaddedTensorStrides(const TensorInfo &tensorInfo)</div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8cpp_source.xhtml#l00015">CpuTensorHandle.cpp:15</a></div></div> |
| 380 | </div><!-- fragment --> |
| 381 | </div> |
| 382 | </div> |
| 383 | <a id="a66e8f43a5b42b500871ed96e15419567"></a> |
| 384 | <h2 class="memtitle"><span class="permalink"><a href="#a66e8f43a5b42b500871ed96e15419567">◆ </a></span>GetTensorInfo()</h2> |
| 385 | |
| 386 | <div class="memitem"> |
| 387 | <div class="memproto"> |
| 388 | <table class="mlabels"> |
| 389 | <tr> |
| 390 | <td class="mlabels-left"> |
| 391 | <table class="memname"> |
| 392 | <tr> |
| 393 | <td class="memname">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a>& GetTensorInfo </td> |
| 394 | <td>(</td> |
| 395 | <td class="paramname"></td><td>)</td> |
| 396 | <td> const</td> |
| 397 | </tr> |
| 398 | </table> |
| 399 | </td> |
| 400 | <td class="mlabels-right"> |
| 401 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 402 | </tr> |
| 403 | </table> |
| 404 | </div><div class="memdoc"> |
| 405 | |
| 406 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00037">37</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 407 | |
| 408 | <p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00091">ScopedCpuTensorHandle::Allocate()</a>, <a class="el" href="_cl_convolution2d_workload_8cpp_source.xhtml#l00058">ClConvolution2dWorkload::ClConvolution2dWorkload()</a>, <a class="el" href="_cl_depthwise_convolution_workload_8cpp_source.xhtml#l00070">ClDepthwiseConvolutionWorkload::ClDepthwiseConvolutionWorkload()</a>, <a class="el" href="_cl_transpose_convolution2d_workload_8cpp_source.xhtml#l00056">ClTransposeConvolution2dWorkload::ClTransposeConvolution2dWorkload()</a>, <a class="el" href="_workload_utils_8cpp_source.xhtml#l00132">armnn::ConvertWeightTensorFromArmnnToAcl()</a>, <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00031">ConstCpuTensorHandle::GetConstTensor()</a>, <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00080">CpuTensorHandle::GetTensor()</a>, <a class="el" href="_neon_workload_utils_8hpp_source.xhtml#l00035">armnn::InitializeArmComputeTensorData()</a>, <a class="el" href="_neon_depthwise_convolution_workload_8cpp_source.xhtml#l00072">NeonDepthwiseConvolutionWorkload::NeonDepthwiseConvolutionWorkload()</a>, <a class="el" href="_workload_utils_8cpp_source.xhtml#l00013">armnn::PermuteTensor()</a>, <a class="el" href="_ref_constant_workload_8cpp_source.xhtml#l00023">RefConstantWorkload::PostAllocationConfigure()</a>, and <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00066">ScopedCpuTensorHandle::ScopedCpuTensorHandle()</a>.</p> |
| 409 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> m_TensorInfo;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div></div><!-- fragment --> |
| 410 | </div> |
| 411 | </div> |
| 412 | <a id="a19aa18d78d5ac31e3a3c8f782f0e8606"></a> |
| 413 | <h2 class="memtitle"><span class="permalink"><a href="#a19aa18d78d5ac31e3a3c8f782f0e8606">◆ </a></span>Manage()</h2> |
| 414 | |
| 415 | <div class="memitem"> |
| 416 | <div class="memproto"> |
| 417 | <table class="mlabels"> |
| 418 | <tr> |
| 419 | <td class="mlabels-left"> |
| 420 | <table class="memname"> |
| 421 | <tr> |
| 422 | <td class="memname">virtual void Manage </td> |
| 423 | <td>(</td> |
| 424 | <td class="paramname"></td><td>)</td> |
| 425 | <td></td> |
| 426 | </tr> |
| 427 | </table> |
| 428 | </td> |
| 429 | <td class="mlabels-right"> |
| 430 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 431 | </tr> |
| 432 | </table> |
| 433 | </div><div class="memdoc"> |
| 434 | |
| 435 | <p>Indicate to the memory manager that this resource is active. </p> |
| 436 | <p>This is used to compute overlapping lifetimes of resources. </p> |
| 437 | |
| 438 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml#a04149d0f9b9c54c05e95693111490daf">ITensorHandle</a>.</p> |
| 439 | |
| 440 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00042">42</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 441 | <div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {}</div></div><!-- fragment --> |
| 442 | </div> |
| 443 | </div> |
| 444 | <a id="acc3fcce7a100cc3b64247519f22e37fc"></a> |
| 445 | <h2 class="memtitle"><span class="permalink"><a href="#acc3fcce7a100cc3b64247519f22e37fc">◆ </a></span>Map()</h2> |
| 446 | |
| 447 | <div class="memitem"> |
| 448 | <div class="memproto"> |
| 449 | <table class="mlabels"> |
| 450 | <tr> |
| 451 | <td class="mlabels-left"> |
| 452 | <table class="memname"> |
| 453 | <tr> |
| 454 | <td class="memname">virtual const void* Map </td> |
| 455 | <td>(</td> |
| 456 | <td class="paramtype">bool </td> |
| 457 | <td class="paramname"><em>blocking</em></td><td>)</td> |
| 458 | <td> const</td> |
| 459 | </tr> |
| 460 | </table> |
| 461 | </td> |
| 462 | <td class="mlabels-right"> |
| 463 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 464 | </tr> |
| 465 | </table> |
| 466 | </div><div class="memdoc"> |
| 467 | |
| 468 | <p>Map the tensor data for access. </p> |
| 469 | <dl class="params"><dt>Parameters</dt><dd> |
| 470 | <table class="params"> |
| 471 | <tr><td class="paramname">blocking</td><td>hint to block the calling thread until all other accesses are complete. (backend dependent) </td></tr> |
| 472 | </table> |
| 473 | </dd> |
| 474 | </dl> |
| 475 | <dl class="section return"><dt>Returns</dt><dd>pointer to the first element of the mapped data. </dd></dl> |
| 476 | |
| 477 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml#a9afbc055a017adf1bc38ee137bca6e90">ITensorHandle</a>.</p> |
| 478 | |
| 479 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00046">46</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 480 | <div class="fragment"><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> { <span class="keywordflow">return</span> m_Memory; }</div></div><!-- fragment --> |
| 481 | </div> |
| 482 | </div> |
| 483 | <a id="ae21d7415b7d191de4fe6e02d134a4f38"></a> |
| 484 | <h2 class="memtitle"><span class="permalink"><a href="#ae21d7415b7d191de4fe6e02d134a4f38">◆ </a></span>SetConstMemory()</h2> |
| 485 | |
| 486 | <div class="memitem"> |
| 487 | <div class="memproto"> |
| 488 | <table class="mlabels"> |
| 489 | <tr> |
| 490 | <td class="mlabels-left"> |
| 491 | <table class="memname"> |
| 492 | <tr> |
| 493 | <td class="memname">void SetConstMemory </td> |
| 494 | <td>(</td> |
| 495 | <td class="paramtype">const void * </td> |
| 496 | <td class="paramname"><em>mem</em></td><td>)</td> |
| 497 | <td></td> |
| 498 | </tr> |
| 499 | </table> |
| 500 | </td> |
| 501 | <td class="mlabels-right"> |
| 502 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td> |
| 503 | </tr> |
| 504 | </table> |
| 505 | </div><div class="memdoc"> |
| 506 | |
| 507 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00058">58</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 508 | |
| 509 | <p class="reference">References <a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml#l00031">ConstCpuTensorHandle::ConstCpuTensorHandle()</a>.</p> |
| 510 | |
| 511 | <p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00160">ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle()</a>, and <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00089">CpuTensorHandle::SetMemory()</a>.</p> |
| 512 | <div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> { m_Memory = mem; }</div></div><!-- fragment --> |
| 513 | </div> |
| 514 | </div> |
| 515 | <a id="a88ab6decf78c152e746b7d8dc2dd931f"></a> |
| 516 | <h2 class="memtitle"><span class="permalink"><a href="#a88ab6decf78c152e746b7d8dc2dd931f">◆ </a></span>Unmap()</h2> |
| 517 | |
| 518 | <div class="memitem"> |
| 519 | <div class="memproto"> |
| 520 | <table class="mlabels"> |
| 521 | <tr> |
| 522 | <td class="mlabels-left"> |
| 523 | <table class="memname"> |
| 524 | <tr> |
| 525 | <td class="memname">virtual void Unmap </td> |
| 526 | <td>(</td> |
| 527 | <td class="paramname"></td><td>)</td> |
| 528 | <td> const</td> |
| 529 | </tr> |
| 530 | </table> |
| 531 | </td> |
| 532 | <td class="mlabels-right"> |
| 533 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 534 | </tr> |
| 535 | </table> |
| 536 | </div><div class="memdoc"> |
| 537 | |
| 538 | <p>Unmap the tensor data. </p> |
| 539 | |
| 540 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml#a563609828050f1b3a7868c23f3365923">ITensorHandle</a>.</p> |
| 541 | |
| 542 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml#l00047">47</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a>.</p> |
| 543 | <div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {}</div></div><!-- fragment --> |
| 544 | </div> |
| 545 | </div> |
| 546 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 547 | <li>src/backends/backendsCommon/<a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">CpuTensorHandle.hpp</a></li> |
| 548 | <li>src/backends/backendsCommon/<a class="el" href="_cpu_tensor_handle_8cpp_source.xhtml">CpuTensorHandle.cpp</a></li> |
| 549 | </ul> |
| 550 | </div><!-- contents --> |
| 551 | </div><!-- doc-content --> |
| 552 | <!-- start footer part --> |
| 553 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 554 | <ul> |
| 555 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.xhtml">ConstCpuTensorHandle</a></li> |
| 556 | <li class="footer">Generated on Fri Mar 13 2020 16:09:17 for ArmNN by |
| 557 | <a href="http://www.doxygen.org/index.html"> |
| 558 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 559 | </ul> |
| 560 | </div> |
| 561 | </body> |
| 562 | </html> |