blob: c5fe73dfadb79eec99bc27284f85e85978d977ff [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: ConstCpuTensorHandle Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ArmNN
&#160;<span id="projectnumber">NotReleased</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarmnn_1_1_const_cpu_tensor_handle.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classarmnn_1_1_const_cpu_tensor_handle-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ConstCpuTensorHandle Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ConstCpuTensorHandle:</div>
<div class="dyncontent">
<div class="center">
<img src="classarmnn_1_1_const_cpu_tensor_handle.png" usemap="#ConstCpuTensorHandle_map" alt=""/>
<map id="ConstCpuTensorHandle_map" name="ConstCpuTensorHandle_map">
<area href="classarmnn_1_1_i_tensor_handle.html" alt="ITensorHandle" shape="rect" coords="113,0,329,24"/>
<area href="classarmnn_1_1_const_passthrough_cpu_tensor_handle.html" alt="ConstPassthroughCpuTensorHandle" shape="rect" coords="0,112,216,136"/>
<area href="classarmnn_1_1_cpu_tensor_handle.html" alt="CpuTensorHandle" shape="rect" coords="226,112,442,136"/>
<area href="classarmnn_1_1_passthrough_cpu_tensor_handle.html" alt="PassthroughCpuTensorHandle" shape="rect" coords="113,168,329,192"/>
<area href="classarmnn_1_1_scoped_cpu_tensor_handle.html" alt="ScopedCpuTensorHandle" shape="rect" coords="339,168,555,192"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3a76fc8b348e13d5a6ac1240c96ebef4"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3a76fc8b348e13d5a6ac1240c96ebef4"><td class="memTemplItemLeft" align="right" valign="top">const T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a3a76fc8b348e13d5a6ac1240c96ebef4">GetConstTensor</a> () const</td></tr>
<tr class="separator:a3a76fc8b348e13d5a6ac1240c96ebef4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66e8f43a5b42b500871ed96e15419567"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a> () const</td></tr>
<tr class="separator:a66e8f43a5b42b500871ed96e15419567"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19aa18d78d5ac31e3a3c8f782f0e8606"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a19aa18d78d5ac31e3a3c8f782f0e8606">Manage</a> () override</td></tr>
<tr class="separator:a19aa18d78d5ac31e3a3c8f782f0e8606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6c52b35388890f2c563afbebfb456a6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a> *&#160;</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>
<tr class="separator:ab6c52b35388890f2c563afbebfb456a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc3fcce7a100cc3b64247519f22e37fc"><td class="memItemLeft" align="right" valign="top">virtual const void *&#160;</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>
<tr class="separator:acc3fcce7a100cc3b64247519f22e37fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88ab6decf78c152e746b7d8dc2dd931f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</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>
<tr class="memdesc:a88ab6decf78c152e746b7d8dc2dd931f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unmap the tensor data. <a href="#a88ab6decf78c152e746b7d8dc2dd931f">More...</a><br /></td></tr>
<tr class="separator:a88ab6decf78c152e746b7d8dc2dd931f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a967f220393d291f71dabce0c06bf9b6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>&#160;</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>
<tr class="separator:a967f220393d291f71dabce0c06bf9b6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e8d2fbabcac19f9e12779080ddff54e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>&#160;</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>
<tr class="separator:a8e8d2fbabcac19f9e12779080ddff54e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecc243f62d4777927e15af592d330764"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:aecc243f62d4777927e15af592d330764"><td class="memTemplItemLeft" align="right" valign="top">const void *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#aecc243f62d4777927e15af592d330764">GetConstTensor</a> () const</td></tr>
<tr class="separator:aecc243f62d4777927e15af592d330764"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8faf443b026b17e61779734bd2b45d12"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a8faf443b026b17e61779734bd2b45d12"><td class="memTemplItemLeft" align="right" valign="top">const void *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html#a8faf443b026b17e61779734bd2b45d12">GetConstTensor</a> () const</td></tr>
<tr class="separator:a8faf443b026b17e61779734bd2b45d12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<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="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a></td></tr>
<tr class="memitem:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#aff95f063e2b8041b3d0e4b4dc0e3821d">~ITensorHandle</a> ()</td></tr>
<tr class="separator:aff95f063e2b8041b3d0e4b4dc0e3821d inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cceed8b707a09bf27eb61f17acf8a88 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a5cceed8b707a09bf27eb61f17acf8a88">Allocate</a> ()=0</td></tr>
<tr class="separator:a5cceed8b707a09bf27eb61f17acf8a88 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">void *&#160;</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>
<tr class="separator:a270c8f844df649b9b0599c1e4db44cd3 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#ab2be1412c91842a072ad94759f52033e">Unmap</a> ()</td></tr>
<tr class="memdesc:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft">&#160;</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>
<tr class="separator:ab2be1412c91842a072ad94759f52033e inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle.html#a55cddc2dbb32d680cd85b635ba370e48">GetImportFlags</a> () const</td></tr>
<tr class="memdesc:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="mdescLeft">&#160;</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>
<tr class="separator:a55cddc2dbb32d680cd85b635ba370e48 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</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>
<tr class="separator:a4f81a9eff30c9b9fe76f5b83af470ba7 inherit pub_methods_classarmnn_1_1_i_tensor_handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ac9bdc423c74013d226c902c3d8a263bf"><td class="memItemLeft" align="right" valign="top">&#160;</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> &amp;tensorInfo)</td></tr>
<tr class="separator:ac9bdc423c74013d226c902c3d8a263bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae21d7415b7d191de4fe6e02d134a4f38"><td class="memItemLeft" align="right" valign="top">void&#160;</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>
<tr class="separator:ae21d7415b7d191de4fe6e02d134a4f38"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00027">27</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac9bdc423c74013d226c902c3d8a263bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9bdc423c74013d226c902c3d8a263bf">&#9670;&nbsp;</a></span>ConstCpuTensorHandle()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html">ConstCpuTensorHandle</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &amp;&#160;</td>
<td class="paramname"><em>tensorInfo</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00030">30</a> of file <a class="el" href="_cpu_tensor_handle_8cpp_source.html">CpuTensorHandle.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00053">ConstCpuTensorHandle::GetShape()</a>, and <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00058">ConstCpuTensorHandle::SetConstMemory()</a>.</p>
<div class="fragment"><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;: m_TensorInfo(tensorInfo)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;, m_Memory(<span class="keyword">nullptr</span>)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3a76fc8b348e13d5a6ac1240c96ebef4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a76fc8b348e13d5a6ac1240c96ebef4">&#9670;&nbsp;</a></span>GetConstTensor() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const T* GetConstTensor </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00031">31</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<p class="reference">References <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00037">ConstCpuTensorHandle::GetTensorInfo()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00160">ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle()</a>, <a class="el" href="_cl_constant_workload_8cpp_source.html#l00024">ClConstantWorkload::Execute()</a>, <a class="el" href="_neon_workload_utils_8hpp_source.html#l00035">armnn::InitializeArmComputeTensorData()</a>, <a class="el" href="_workload_utils_8cpp_source.html#l00013">armnn::PermuteTensor()</a>, <a class="el" href="_ref_constant_workload_8cpp_source.html#l00023">RefConstantWorkload::PostAllocationConfigure()</a>, and <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00065">ScopedCpuTensorHandle::ScopedCpuTensorHandle()</a>.</p>
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; BOOST_ASSERT(CompatibleTypes&lt;T&gt;(<a class="code" href="classarmnn_1_1_const_cpu_tensor_handle.html#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a>().GetDataType()));</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span>T*<span class="keyword">&gt;</span>(m_Memory);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; }</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 &amp; GetTensorInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8hpp_source.html#l00037">CpuTensorHandle.hpp:37</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aecc243f62d4777927e15af592d330764"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecc243f62d4777927e15af592d330764">&#9670;&nbsp;</a></span>GetConstTensor() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const void * GetConstTensor </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00037">37</a> of file <a class="el" href="_cpu_tensor_handle_8cpp_source.html">CpuTensorHandle.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;{</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordflow">return</span> m_Memory;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a8faf443b026b17e61779734bd2b45d12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8faf443b026b17e61779734bd2b45d12">&#9670;&nbsp;</a></span>GetConstTensor() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const void* GetConstTensor </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ab6c52b35388890f2c563afbebfb456a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6c52b35388890f2c563afbebfb456a6">&#9670;&nbsp;</a></span>GetParent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a>* GetParent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<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>
<p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a437893b8dcf58a0b68b70e1ad7933be6">ITensorHandle</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00044">44</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;{ <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; }</div></div><!-- fragment -->
</div>
</div>
<a id="a8e8d2fbabcac19f9e12779080ddff54e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e8d2fbabcac19f9e12779080ddff54e">&#9670;&nbsp;</a></span>GetShape()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetShape </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<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>
<p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">ITensorHandle</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00053">53</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<p class="reference">References <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00030">ConstCpuTensorHandle::ConstCpuTensorHandle()</a>, and <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>.</p>
<div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;{ <span class="keywordflow">return</span> m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(); }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape &amp; GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a967f220393d291f71dabce0c06bf9b6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a967f220393d291f71dabce0c06bf9b6c">&#9670;&nbsp;</a></span>GetStrides()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetStrides </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<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>
<p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a30c3e09ce55369b66469443a4ca5ef03">ITensorHandle</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00049">49</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<p class="reference">References <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00014">armnn::GetUnpaddedTensorStrides()</a>.</p>
<div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.html#a36e8f52330a21eeab3cc7c4e030f3583">GetUnpaddedTensorStrides</a>(m_TensorInfo);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; }</div><div class="ttc" id="namespacearmnn_html_a36e8f52330a21eeab3cc7c4e030f3583"><div class="ttname"><a href="namespacearmnn.html#a36e8f52330a21eeab3cc7c4e030f3583">armnn::GetUnpaddedTensorStrides</a></div><div class="ttdeci">TensorShape GetUnpaddedTensorStrides(const TensorInfo &amp;tensorInfo)</div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8cpp_source.html#l00014">CpuTensorHandle.cpp:14</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a66e8f43a5b42b500871ed96e15419567"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66e8f43a5b42b500871ed96e15419567">&#9670;&nbsp;</a></span>GetTensorInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>&amp; GetTensorInfo </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00037">37</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00090">ScopedCpuTensorHandle::Allocate()</a>, <a class="el" href="_cl_convolution2d_workload_8cpp_source.html#l00058">ClConvolution2dWorkload::ClConvolution2dWorkload()</a>, <a class="el" href="_cl_depthwise_convolution_workload_8cpp_source.html#l00070">ClDepthwiseConvolutionWorkload::ClDepthwiseConvolutionWorkload()</a>, <a class="el" href="_cl_transpose_convolution2d_workload_8cpp_source.html#l00056">ClTransposeConvolution2dWorkload::ClTransposeConvolution2dWorkload()</a>, <a class="el" href="_workload_utils_8cpp_source.html#l00132">armnn::ConvertWeightTensorFromArmnnToAcl()</a>, <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00031">ConstCpuTensorHandle::GetConstTensor()</a>, <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00080">CpuTensorHandle::GetTensor()</a>, <a class="el" href="_neon_workload_utils_8hpp_source.html#l00035">armnn::InitializeArmComputeTensorData()</a>, <a class="el" href="_neon_depthwise_convolution_workload_8cpp_source.html#l00072">NeonDepthwiseConvolutionWorkload::NeonDepthwiseConvolutionWorkload()</a>, <a class="el" href="_workload_utils_8cpp_source.html#l00013">armnn::PermuteTensor()</a>, <a class="el" href="_ref_constant_workload_8cpp_source.html#l00023">RefConstantWorkload::PostAllocationConfigure()</a>, and <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00065">ScopedCpuTensorHandle::ScopedCpuTensorHandle()</a>.</p>
<div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keywordflow">return</span> m_TensorInfo;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; }</div></div><!-- fragment -->
</div>
</div>
<a id="a19aa18d78d5ac31e3a3c8f782f0e8606"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19aa18d78d5ac31e3a3c8f782f0e8606">&#9670;&nbsp;</a></span>Manage()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Manage </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Indicate to the memory manager that this resource is active. This is used to compute overlapping lifetimes of resources. </p>
<p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a04149d0f9b9c54c05e95693111490daf">ITensorHandle</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00042">42</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;{}</div></div><!-- fragment -->
</div>
</div>
<a id="acc3fcce7a100cc3b64247519f22e37fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc3fcce7a100cc3b64247519f22e37fc">&#9670;&nbsp;</a></span>Map()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual const void* Map </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>blocking</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Map the tensor data for access. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">blocking</td><td>hint to block the calling thread until all other accesses are complete. (backend dependent) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to the first element of the mapped data. </dd></dl>
<p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">ITensorHandle</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00046">46</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;{ <span class="keywordflow">return</span> m_Memory; }</div></div><!-- fragment -->
</div>
</div>
<a id="ae21d7415b7d191de4fe6e02d134a4f38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae21d7415b7d191de4fe6e02d134a4f38">&#9670;&nbsp;</a></span>SetConstMemory()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void SetConstMemory </td>
<td>(</td>
<td class="paramtype">const void *&#160;</td>
<td class="paramname"><em>mem</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00058">58</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<p class="reference">References <a class="el" href="_cpu_tensor_handle_8cpp_source.html#l00030">ConstCpuTensorHandle::ConstCpuTensorHandle()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00160">ConstPassthroughCpuTensorHandle::ConstPassthroughCpuTensorHandle()</a>, and <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00089">CpuTensorHandle::SetMemory()</a>.</p>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;{ m_Memory = mem; }</div></div><!-- fragment -->
</div>
</div>
<a id="a88ab6decf78c152e746b7d8dc2dd931f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88ab6decf78c152e746b7d8dc2dd931f">&#9670;&nbsp;</a></span>Unmap()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Unmap </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Unmap the tensor data. </p>
<p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">ITensorHandle</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cpu_tensor_handle_8hpp_source.html#l00047">47</a> of file <a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;{}</div></div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/backends/backendsCommon/<a class="el" href="_cpu_tensor_handle_8hpp_source.html">CpuTensorHandle.hpp</a></li>
<li>src/backends/backendsCommon/<a class="el" href="_cpu_tensor_handle_8cpp_source.html">CpuTensorHandle.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_const_cpu_tensor_handle.html">ConstCpuTensorHandle</a></li>
<li class="footer">Generated on Fri Mar 13 2020 16:07:02 for ArmNN by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>