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: CpuTensorHandle 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_cpu_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="#pro-methods">Protected Member Functions</a> | |
| 86 | <a href="classarmnn_1_1_cpu_tensor_handle-members.html">List of all members</a> </div> |
| 87 | <div class="headertitle"> |
| 88 | <div class="title">CpuTensorHandle Class Reference</div> </div> |
| 89 | </div><!--header--> |
| 90 | <div class="contents"> |
| 91 | |
| 92 | <p><code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>></code></p> |
| 93 | <div class="dynheader"> |
| 94 | Inheritance diagram for CpuTensorHandle:</div> |
| 95 | <div class="dyncontent"> |
| 96 | <div class="center"> |
| 97 | <img src="classarmnn_1_1_cpu_tensor_handle.png" usemap="#CpuTensorHandle_map" alt=""/> |
| 98 | <map id="CpuTensorHandle_map" name="CpuTensorHandle_map"> |
| 99 | <area href="classarmnn_1_1_const_cpu_tensor_handle.html" alt="ConstCpuTensorHandle" shape="rect" coords="97,56,281,80"/> |
| 100 | <area href="classarmnn_1_1_i_tensor_handle.html" alt="ITensorHandle" shape="rect" coords="97,0,281,24"/> |
| 101 | <area href="classarmnn_1_1_passthrough_cpu_tensor_handle.html" alt="PassthroughCpuTensorHandle" shape="rect" coords="0,168,184,192"/> |
| 102 | <area href="classarmnn_1_1_scoped_cpu_tensor_handle.html" alt="ScopedCpuTensorHandle" shape="rect" coords="194,168,378,192"/> |
| 103 | </map> |
| 104 | </div></div> |
| 105 | <table class="memberdecls"> |
| 106 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 107 | Public Member Functions</h2></td></tr> |
| 108 | <tr class="memitem:aabedf69ab42fd7a0b0f751dd8534e2ab"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 109 | <tr class="memitem:aabedf69ab42fd7a0b0f751dd8534e2ab"><td class="memTemplItemLeft" align="right" valign="top">T * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html#aabedf69ab42fd7a0b0f751dd8534e2ab">GetTensor</a> () const</td></tr> |
| 110 | <tr class="separator:aabedf69ab42fd7a0b0f751dd8534e2ab"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:a3871e7881538e3be0b16e70beb2d0c38"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 112 | <tr class="memitem:a3871e7881538e3be0b16e70beb2d0c38"><td class="memTemplItemLeft" align="right" valign="top">void * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html#a3871e7881538e3be0b16e70beb2d0c38">GetTensor</a> () const</td></tr> |
| 113 | <tr class="separator:a3871e7881538e3be0b16e70beb2d0c38"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:ac1e740b316dcd4f95d2031bc811f8e77"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 115 | <tr class="memitem:ac1e740b316dcd4f95d2031bc811f8e77"><td class="memTemplItemLeft" align="right" valign="top">void * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html#ac1e740b316dcd4f95d2031bc811f8e77">GetTensor</a> () const</td></tr> |
| 116 | <tr class="separator:ac1e740b316dcd4f95d2031bc811f8e77"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="inherit_header pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_const_cpu_tensor_handle')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html">ConstCpuTensorHandle</a></td></tr> |
| 118 | <tr class="memitem:a3a76fc8b348e13d5a6ac1240c96ebef4 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 119 | <tr class="memitem:a3a76fc8b348e13d5a6ac1240c96ebef4 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#a3a76fc8b348e13d5a6ac1240c96ebef4">GetConstTensor</a> () const</td></tr> |
| 120 | <tr class="separator:a3a76fc8b348e13d5a6ac1240c96ebef4 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a66e8f43a5b42b500871ed96e15419567 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a> () const</td></tr> |
| 122 | <tr class="separator:a66e8f43a5b42b500871ed96e15419567 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a19aa18d78d5ac31e3a3c8f782f0e8606 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#a19aa18d78d5ac31e3a3c8f782f0e8606">Manage</a> () override</td></tr> |
| 124 | <tr class="separator:a19aa18d78d5ac31e3a3c8f782f0e8606 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:ab6c52b35388890f2c563afbebfb456a6 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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_const_cpu_tensor_handle.html#ab6c52b35388890f2c563afbebfb456a6">GetParent</a> () const override</td></tr> |
| 126 | <tr class="separator:ab6c52b35388890f2c563afbebfb456a6 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:acc3fcce7a100cc3b64247519f22e37fc inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#acc3fcce7a100cc3b64247519f22e37fc">Map</a> (bool) const override</td></tr> |
| 128 | <tr class="separator:acc3fcce7a100cc3b64247519f22e37fc inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a88ab6decf78c152e746b7d8dc2dd931f inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#a88ab6decf78c152e746b7d8dc2dd931f">Unmap</a> () const override</td></tr> |
| 130 | <tr class="memdesc:a88ab6decf78c152e746b7d8dc2dd931f inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Unmap the tensor data. <a href="classarmnn_1_1_const_cpu_tensor_handle.html#a88ab6decf78c152e746b7d8dc2dd931f">More...</a><br /></td></tr> |
| 131 | <tr class="separator:a88ab6decf78c152e746b7d8dc2dd931f inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a967f220393d291f71dabce0c06bf9b6c inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a967f220393d291f71dabce0c06bf9b6c">GetStrides</a> () const override</td></tr> |
| 133 | <tr class="separator:a967f220393d291f71dabce0c06bf9b6c inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a8e8d2fbabcac19f9e12779080ddff54e inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a8e8d2fbabcac19f9e12779080ddff54e">GetShape</a> () const override</td></tr> |
| 135 | <tr class="separator:a8e8d2fbabcac19f9e12779080ddff54e inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:aecc243f62d4777927e15af592d330764 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 137 | <tr class="memitem:aecc243f62d4777927e15af592d330764 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#aecc243f62d4777927e15af592d330764">GetConstTensor</a> () const</td></tr> |
| 138 | <tr class="separator:aecc243f62d4777927e15af592d330764 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:a8faf443b026b17e61779734bd2b45d12 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 140 | <tr class="memitem:a8faf443b026b17e61779734bd2b45d12 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#a8faf443b026b17e61779734bd2b45d12">GetConstTensor</a> () const</td></tr> |
| 141 | <tr class="separator:a8faf443b026b17e61779734bd2b45d12 inherit pub_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="inherit_header pub_methods_classarmnn_1_1_i_tensor_handle"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_i_tensor_handle')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a></td></tr> |
| 143 | <tr class="memitem:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#aff95f063e2b8041b3d0e4b4dc0e3821d">~ITensorHandle</a> ()</td></tr> |
| 144 | <tr class="separator:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <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.html#a5cceed8b707a09bf27eb61f17acf8a88">Allocate</a> ()=0</td></tr> |
| 146 | <tr class="separator:a5cceed8b707a09bf27eb61f17acf8a88 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr class="memitem:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a270c8f844df649b9b0599c1e4db44cd3">Map</a> (bool blocking=<a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</td></tr> |
| 148 | <tr class="separator:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#ab2be1412c91842a072ad94759f52033e">Unmap</a> ()</td></tr> |
| 150 | <tr class="memdesc:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Unmap the tensor data that was previously mapped with call to <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">Map()</a>. <a href="classarmnn_1_1_i_tensor_handle.html#ab2be1412c91842a072ad94759f52033e">More...</a><br /></td></tr> |
| 151 | <tr class="separator:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr class="memitem:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a55cddc2dbb32d680cd85b635ba370e48">GetImportFlags</a> () const</td></tr> |
| 153 | <tr class="memdesc:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft"> </td><td class="mdescRight">Get flags describing supported import sources. <a href="classarmnn_1_1_i_tensor_handle.html#a55cddc2dbb32d680cd85b635ba370e48">More...</a><br /></td></tr> |
| 154 | <tr class="separator:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a4f81a9eff30c9b9fe76f5b83af470ba7">Import</a> (void *memory, <a class="el" href="namespacearmnn.html#a0fc99721e27eb20ecd0ea85a3cc8b488">MemorySource</a> source)</td></tr> |
| 156 | <tr class="separator:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | </table><table class="memberdecls"> |
| 158 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 159 | Protected Member Functions</h2></td></tr> |
| 160 | <tr class="memitem:aeacd5d2fd0265f9bbc7d494bb4026315"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html#aeacd5d2fd0265f9bbc7d494bb4026315">CpuTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &tensorInfo)</td></tr> |
| 161 | <tr class="separator:aeacd5d2fd0265f9bbc7d494bb4026315"><td class="memSeparator" colspan="2"> </td></tr> |
| 162 | <tr class="memitem:a0feac8591ac1a88993aa3278b24dcb57"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html#a0feac8591ac1a88993aa3278b24dcb57">SetMemory</a> (void *mem)</td></tr> |
| 163 | <tr class="separator:a0feac8591ac1a88993aa3278b24dcb57"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <tr class="inherit_header pro_methods_classarmnn_1_1_const_cpu_tensor_handle"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_const_cpu_tensor_handle')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html">ConstCpuTensorHandle</a></td></tr> |
| 165 | <tr class="memitem:ac9bdc423c74013d226c902c3d8a263bf inherit pro_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#ac9bdc423c74013d226c902c3d8a263bf">ConstCpuTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &tensorInfo)</td></tr> |
| 166 | <tr class="separator:ac9bdc423c74013d226c902c3d8a263bf inherit pro_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <tr class="memitem:ae21d7415b7d191de4fe6e02d134a4f38 inherit pro_methods_classarmnn_1_1_const_cpu_tensor_handle"><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.html#ae21d7415b7d191de4fe6e02d134a4f38">SetConstMemory</a> (const void *mem)</td></tr> |
| 168 | <tr class="separator:ae21d7415b7d191de4fe6e02d134a4f38 inherit pro_methods_classarmnn_1_1_const_cpu_tensor_handle"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | </table> |
| 170 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 171 | <div class="textblock"> |
| 172 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00076">76</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p> |
| 173 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 174 | <a id="aeacd5d2fd0265f9bbc7d494bb4026315"></a> |
| 175 | <h2 class="memtitle"><span class="permalink"><a href="#aeacd5d2fd0265f9bbc7d494bb4026315">◆ </a></span>CpuTensorHandle()</h2> |
| 176 | |
| 177 | <div class="memitem"> |
| 178 | <div class="memproto"> |
| 179 | <table class="mlabels"> |
| 180 | <tr> |
| 181 | <td class="mlabels-left"> |
| 182 | <table class="memname"> |
| 183 | <tr> |
| 184 | <td class="memname"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html">CpuTensorHandle</a> </td> |
| 185 | <td>(</td> |
| 186 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 187 | <td class="paramname"><em>tensorInfo</em></td><td>)</td> |
| 188 | <td></td> |
| 189 | </tr> |
| 190 | </table> |
| 191 | </td> |
| 192 | <td class="mlabels-right"> |
| 193 | <span class="mlabels"><span class="mlabel">protected</span></span> </td> |
| 194 | </tr> |
| 195 | </table> |
| 196 | </div><div class="memdoc"> |
| 197 | |
| 198 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00042">42</a> of file <a class="el" href="_cpu_tensor_handle_8cpp_source.html">CpuTensorHandle.cpp</a>.</p> |
| 199 | <div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> : <a class="code" href="classarmnn_1_1_const_cpu_tensor_handle.html#ac9bdc423c74013d226c902c3d8a263bf">ConstCpuTensorHandle</a>(tensorInfo)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> , m_MutableMemory(<span class="keyword">nullptr</span>)</div><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> }</div><div class="ttc" id="classarmnn_1_1_const_cpu_tensor_handle_html_ac9bdc423c74013d226c902c3d8a263bf"><div class="ttname"><a href="classarmnn_1_1_const_cpu_tensor_handle.html#ac9bdc423c74013d226c902c3d8a263bf">armnn::ConstCpuTensorHandle::ConstCpuTensorHandle</a></div><div class="ttdeci">ConstCpuTensorHandle(const TensorInfo &tensorInfo)</div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8cpp_source.html#l00030">CpuTensorHandle.cpp:30</a></div></div> |
| 200 | </div><!-- fragment --> |
| 201 | </div> |
| 202 | </div> |
| 203 | <h2 class="groupheader">Member Function Documentation</h2> |
| 204 | <a id="a3871e7881538e3be0b16e70beb2d0c38"></a> |
| 205 | <h2 class="memtitle"><span class="permalink"><a href="#a3871e7881538e3be0b16e70beb2d0c38">◆ </a></span>GetTensor() <span class="overload">[1/3]</span></h2> |
| 206 | |
| 207 | <div class="memitem"> |
| 208 | <div class="memproto"> |
| 209 | <table class="memname"> |
| 210 | <tr> |
| 211 | <td class="memname">void * GetTensor </td> |
| 212 | <td>(</td> |
| 213 | <td class="paramname"></td><td>)</td> |
| 214 | <td> const</td> |
| 215 | </tr> |
| 216 | </table> |
| 217 | </div><div class="memdoc"> |
| 218 | |
| 219 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00049">49</a> of file <a class="el" href="_cpu_tensor_handle_8cpp_source.html">CpuTensorHandle.cpp</a>.</p> |
| 220 | <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> m_MutableMemory;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div></div><!-- fragment --> |
| 221 | </div> |
| 222 | </div> |
| 223 | <a id="aabedf69ab42fd7a0b0f751dd8534e2ab"></a> |
| 224 | <h2 class="memtitle"><span class="permalink"><a href="#aabedf69ab42fd7a0b0f751dd8534e2ab">◆ </a></span>GetTensor() <span class="overload">[2/3]</span></h2> |
| 225 | |
| 226 | <div class="memitem"> |
| 227 | <div class="memproto"> |
| 228 | <table class="mlabels"> |
| 229 | <tr> |
| 230 | <td class="mlabels-left"> |
| 231 | <table class="memname"> |
| 232 | <tr> |
| 233 | <td class="memname">T* GetTensor </td> |
| 234 | <td>(</td> |
| 235 | <td class="paramname"></td><td>)</td> |
| 236 | <td> const</td> |
| 237 | </tr> |
| 238 | </table> |
| 239 | </td> |
| 240 | <td class="mlabels-right"> |
| 241 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | </div><div class="memdoc"> |
| 245 | |
| 246 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00080">80</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p> |
| 247 | |
| 248 | <p class="reference">References <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00037">ConstCpuTensorHandle::GetTensorInfo()</a>.</p> |
| 249 | |
| 250 | <p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00090">ScopedCpuTensorHandle::Allocate()</a>, and <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00160">ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle()</a>.</p> |
| 251 | <div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  BOOST_ASSERT(CompatibleTypes<T>(<a class="code" href="classarmnn_1_1_const_cpu_tensor_handle.html#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a>().GetDataType()));</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span>T*<span class="keyword">></span>(m_MutableMemory);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</div><div class="ttc" id="classarmnn_1_1_const_cpu_tensor_handle_html_a66e8f43a5b42b500871ed96e15419567"><div class="ttname"><a href="classarmnn_1_1_const_cpu_tensor_handle.html#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.html#l00037">CpuTensorHandle.hpp:37</a></div></div> |
| 252 | </div><!-- fragment --> |
| 253 | </div> |
| 254 | </div> |
| 255 | <a id="ac1e740b316dcd4f95d2031bc811f8e77"></a> |
| 256 | <h2 class="memtitle"><span class="permalink"><a href="#ac1e740b316dcd4f95d2031bc811f8e77">◆ </a></span>GetTensor() <span class="overload">[3/3]</span></h2> |
| 257 | |
| 258 | <div class="memitem"> |
| 259 | <div class="memproto"> |
| 260 | <table class="memname"> |
| 261 | <tr> |
| 262 | <td class="memname">void* GetTensor </td> |
| 263 | <td>(</td> |
| 264 | <td class="paramname"></td><td>)</td> |
| 265 | <td> const</td> |
| 266 | </tr> |
| 267 | </table> |
| 268 | </div><div class="memdoc"> |
| 269 | |
| 270 | </div> |
| 271 | </div> |
| 272 | <a id="a0feac8591ac1a88993aa3278b24dcb57"></a> |
| 273 | <h2 class="memtitle"><span class="permalink"><a href="#a0feac8591ac1a88993aa3278b24dcb57">◆ </a></span>SetMemory()</h2> |
| 274 | |
| 275 | <div class="memitem"> |
| 276 | <div class="memproto"> |
| 277 | <table class="mlabels"> |
| 278 | <tr> |
| 279 | <td class="mlabels-left"> |
| 280 | <table class="memname"> |
| 281 | <tr> |
| 282 | <td class="memname">void SetMemory </td> |
| 283 | <td>(</td> |
| 284 | <td class="paramtype">void * </td> |
| 285 | <td class="paramname"><em>mem</em></td><td>)</td> |
| 286 | <td></td> |
| 287 | </tr> |
| 288 | </table> |
| 289 | </td> |
| 290 | <td class="mlabels-right"> |
| 291 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | </div><div class="memdoc"> |
| 295 | |
| 296 | <p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00089">89</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p> |
| 297 | |
| 298 | <p class="reference">References <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00058">ConstCpuTensorHandle::SetConstMemory()</a>.</p> |
| 299 | |
| 300 | <p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00090">ScopedCpuTensorHandle::Allocate()</a>, and <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00077">ScopedCpuTensorHandle::operator=()</a>.</p> |
| 301 | <div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  m_MutableMemory = mem;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classarmnn_1_1_const_cpu_tensor_handle.html#ae21d7415b7d191de4fe6e02d134a4f38">SetConstMemory</a>(m_MutableMemory);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div><div class="ttc" id="classarmnn_1_1_const_cpu_tensor_handle_html_ae21d7415b7d191de4fe6e02d134a4f38"><div class="ttname"><a href="classarmnn_1_1_const_cpu_tensor_handle.html#ae21d7415b7d191de4fe6e02d134a4f38">armnn::ConstCpuTensorHandle::SetConstMemory</a></div><div class="ttdeci">void SetConstMemory(const void *mem)</div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8hpp_source.html#l00058">CpuTensorHandle.hpp:58</a></div></div> |
| 302 | </div><!-- fragment --> |
| 303 | </div> |
| 304 | </div> |
| 305 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 306 | <li>src/backends/backendsCommon/<a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a></li> |
| 307 | <li>src/backends/backendsCommon/<a class="el" href="_cpu_tensor_handle_8cpp_source.html">CpuTensorHandle.cpp</a></li> |
| 308 | </ul> |
| 309 | </div><!-- contents --> |
| 310 | </div><!-- doc-content --> |
| 311 | <!-- start footer part --> |
| 312 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 313 | <ul> |
| 314 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_cpu_tensor_handle.html">CpuTensorHandle</a></li> |
| 315 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 316 | <a href="http://www.doxygen.org/index.html"> |
| 317 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 318 | </ul> |
| 319 | </div> |
| 320 | </body> |
| 321 | </html> |