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: ConstTensor 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_tensor.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="classarmnn_1_1_const_tensor-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">ConstTensor Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p>A tensor defined by a <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> (shape and data type) and an immutable backing store. |
| 106 | <a href="classarmnn_1_1_const_tensor.xhtml#details">More...</a></p> |
| 107 | |
| 108 | <p><code>#include <<a class="el" href="_tensor_8hpp_source.xhtml">Tensor.hpp</a>></code></p> |
| 109 | <div class="dynheader"> |
| 110 | Inheritance diagram for ConstTensor:</div> |
| 111 | <div class="dyncontent"> |
| 112 | <div class="center"> |
| 113 | <img src="classarmnn_1_1_const_tensor.png" usemap="#ConstTensor_map" alt=""/> |
| 114 | <map id="ConstTensor_map" name="ConstTensor_map"> |
| 115 | <area href="classarmnn_1_1_base_tensor.xhtml" alt="BaseTensor< const void *>" shape="rect" coords="0,0,169,24"/> |
| 116 | </map> |
| 117 | </div></div> |
| 118 | <table class="memberdecls"> |
| 119 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 120 | Public Member Functions</h2></td></tr> |
| 121 | <tr class="memitem:a6b6561873c02b1bd9b7a7ae8dd4a339c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_tensor.xhtml#a6b6561873c02b1bd9b7a7ae8dd4a339c">ConstTensor</a> ()</td></tr> |
| 122 | <tr class="separator:a6b6561873c02b1bd9b7a7ae8dd4a339c"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a42aec46c635aa2e38932ca103d2064ed"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_tensor.xhtml#a42aec46c635aa2e38932ca103d2064ed">ConstTensor</a> (const <a class="el" href="classarmnn_1_1_tensor.xhtml">Tensor</a> &other)</td></tr> |
| 124 | <tr class="memdesc:a42aec46c635aa2e38932ca103d2064ed"><td class="mdescLeft"> </td><td class="mdescRight">Can be implicitly constructed from non-const <a class="el" href="classarmnn_1_1_tensor.xhtml" title="A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. ">Tensor</a>. <a href="#a42aec46c635aa2e38932ca103d2064ed">More...</a><br /></td></tr> |
| 125 | <tr class="separator:a42aec46c635aa2e38932ca103d2064ed"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:aa04de06d072895b6df9125338d55c205"><td class="memTemplParams" colspan="2">template<template< typename, typename... > class ContainerType, typename T , typename... ContainerArgs> </td></tr> |
| 127 | <tr class="memitem:aa04de06d072895b6df9125338d55c205"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_const_tensor.xhtml#aa04de06d072895b6df9125338d55c205">ConstTensor</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &<a class="el" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>, const ContainerType< T, ContainerArgs... > &container)</td></tr> |
| 128 | <tr class="memdesc:aa04de06d072895b6df9125338d55c205"><td class="mdescLeft"> </td><td class="mdescRight">Constructor from a backing container. <a href="#aa04de06d072895b6df9125338d55c205">More...</a><br /></td></tr> |
| 129 | <tr class="separator:aa04de06d072895b6df9125338d55c205"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="inherit_header pub_methods_classarmnn_1_1_base_tensor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_base_tensor')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_base_tensor.xhtml">BaseTensor< const void *></a></td></tr> |
| 131 | <tr class="memitem:aca0044508ebeb3b236a777db828910ed inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#aca0044508ebeb3b236a777db828910ed">BaseTensor</a> ()</td></tr> |
| 132 | <tr class="memdesc:aca0044508ebeb3b236a777db828910ed inherit pub_methods_classarmnn_1_1_base_tensor"><td class="mdescLeft"> </td><td class="mdescRight">Empty (invalid) constructor. <a href="classarmnn_1_1_base_tensor.xhtml#aca0044508ebeb3b236a777db828910ed">More...</a><br /></td></tr> |
| 133 | <tr class="separator:aca0044508ebeb3b236a777db828910ed inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:aa84008eafa57252bcb4cc4b2d779a6f4 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#aa84008eafa57252bcb4cc4b2d779a6f4">BaseTensor</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &info, const void * memoryArea)</td></tr> |
| 135 | <tr class="memdesc:aa84008eafa57252bcb4cc4b2d779a6f4 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="mdescLeft"> </td><td class="mdescRight">Constructor from a raw memory pointer. <a href="classarmnn_1_1_base_tensor.xhtml#aa84008eafa57252bcb4cc4b2d779a6f4">More...</a><br /></td></tr> |
| 136 | <tr class="separator:aa84008eafa57252bcb4cc4b2d779a6f4 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:afb147b6b672ce7ed642e1d12727e749f inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#afb147b6b672ce7ed642e1d12727e749f">BaseTensor</a> (const <a class="el" href="classarmnn_1_1_base_tensor.xhtml">BaseTensor</a> &other)</td></tr> |
| 138 | <tr class="memdesc:afb147b6b672ce7ed642e1d12727e749f inherit pub_methods_classarmnn_1_1_base_tensor"><td class="mdescLeft"> </td><td class="mdescRight">Tensors are copyable. <a href="classarmnn_1_1_base_tensor.xhtml#afb147b6b672ce7ed642e1d12727e749f">More...</a><br /></td></tr> |
| 139 | <tr class="separator:afb147b6b672ce7ed642e1d12727e749f inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:a844fc6ba8f5435b5a200072a3ec163af inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_base_tensor.xhtml">BaseTensor</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#a844fc6ba8f5435b5a200072a3ec163af">operator=</a> (const <a class="el" href="classarmnn_1_1_base_tensor.xhtml">BaseTensor</a> &)</td></tr> |
| 141 | <tr class="memdesc:a844fc6ba8f5435b5a200072a3ec163af inherit pub_methods_classarmnn_1_1_base_tensor"><td class="mdescLeft"> </td><td class="mdescRight">Tensors are copyable. <a href="classarmnn_1_1_base_tensor.xhtml#a844fc6ba8f5435b5a200072a3ec163af">More...</a><br /></td></tr> |
| 142 | <tr class="separator:a844fc6ba8f5435b5a200072a3ec163af inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:a8aeddebdcf02e1832b22203c08a6b678 inherit pub_methods_classarmnn_1_1_base_tensor"><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_base_tensor.xhtml#a8aeddebdcf02e1832b22203c08a6b678">GetInfo</a> () const</td></tr> |
| 144 | <tr class="separator:a8aeddebdcf02e1832b22203c08a6b678 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:ab2e02564acd2ce6db36de310702a75de inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"><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_base_tensor.xhtml#ab2e02564acd2ce6db36de310702a75de">GetInfo</a> ()</td></tr> |
| 146 | <tr class="separator:ab2e02564acd2ce6db36de310702a75de inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr class="memitem:a8b5d0f8a24e9d9238f412260a552acf8 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top">const <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_base_tensor.xhtml#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a> () const</td></tr> |
| 148 | <tr class="separator:a8b5d0f8a24e9d9238f412260a552acf8 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:a350bcc7d86f7d9333340a0a04be078f6 inherit pub_methods_classarmnn_1_1_base_tensor"><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_base_tensor.xhtml#a350bcc7d86f7d9333340a0a04be078f6">GetShape</a> ()</td></tr> |
| 150 | <tr class="separator:a350bcc7d86f7d9333340a0a04be078f6 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <tr class="memitem:aea909c7327109228ef618d459015def3 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#aea909c7327109228ef618d459015def3">GetDataType</a> () const</td></tr> |
| 152 | <tr class="separator:aea909c7327109228ef618d459015def3 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | <tr class="memitem:a157e27d41e9f6b21f0d3c025fa47dc24 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a> () const</td></tr> |
| 154 | <tr class="separator:a157e27d41e9f6b21f0d3c025fa47dc24 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:abcbdfb544ece4c31d0b37715ad0f3be0 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#abcbdfb544ece4c31d0b37715ad0f3be0">GetNumBytes</a> () const</td></tr> |
| 156 | <tr class="separator:abcbdfb544ece4c31d0b37715ad0f3be0 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:a8846406ac37fbd2204f0be16ee05d5b7 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a> () const</td></tr> |
| 158 | <tr class="separator:a8846406ac37fbd2204f0be16ee05d5b7 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 | <tr class="memitem:aa81f67ac64f0c249e26499600c45d996 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top">const void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#aa81f67ac64f0c249e26499600c45d996">GetMemoryArea</a> () const</td></tr> |
| 160 | <tr class="separator:aa81f67ac64f0c249e26499600c45d996 inherit pub_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | </table><table class="memberdecls"> |
| 162 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 163 | Additional Inherited Members</h2></td></tr> |
| 164 | <tr class="inherit_header pro_methods_classarmnn_1_1_base_tensor"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_base_tensor')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_base_tensor.xhtml">BaseTensor< const void *></a></td></tr> |
| 165 | <tr class="memitem:abac025efeffc6e099a365bdb17b5ca3e inherit pro_methods_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#abac025efeffc6e099a365bdb17b5ca3e">~BaseTensor</a> ()</td></tr> |
| 166 | <tr class="memdesc:abac025efeffc6e099a365bdb17b5ca3e inherit pro_methods_classarmnn_1_1_base_tensor"><td class="mdescLeft"> </td><td class="mdescRight">Protected destructor to stop users from making these (could still new one on the heap and then leak it...) <a href="classarmnn_1_1_base_tensor.xhtml#abac025efeffc6e099a365bdb17b5ca3e">More...</a><br /></td></tr> |
| 167 | <tr class="separator:abac025efeffc6e099a365bdb17b5ca3e inherit pro_methods_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 168 | <tr class="inherit_header pro_attribs_classarmnn_1_1_base_tensor"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classarmnn_1_1_base_tensor')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classarmnn_1_1_base_tensor.xhtml">BaseTensor< const void *></a></td></tr> |
| 169 | <tr class="memitem:aba26e5decca8be8786d8a5faf2e06a49 inherit pro_attribs_classarmnn_1_1_base_tensor"><td class="memItemLeft" align="right" valign="top">const void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_base_tensor.xhtml#aba26e5decca8be8786d8a5faf2e06a49">m_MemoryArea</a></td></tr> |
| 170 | <tr class="separator:aba26e5decca8be8786d8a5faf2e06a49 inherit pro_attribs_classarmnn_1_1_base_tensor"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 | </table> |
| 172 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 173 | <div class="textblock"><p>A tensor defined by a <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> (shape and data type) and an immutable backing store. </p> |
| 174 | |
| 175 | <p class="definition">Definition at line <a class="el" href="_tensor_8hpp_source.xhtml#l00199">199</a> of file <a class="el" href="_tensor_8hpp_source.xhtml">Tensor.hpp</a>.</p> |
| 176 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 177 | <a id="a6b6561873c02b1bd9b7a7ae8dd4a339c"></a> |
| 178 | <h2 class="memtitle"><span class="permalink"><a href="#a6b6561873c02b1bd9b7a7ae8dd4a339c">◆ </a></span>ConstTensor() <span class="overload">[1/3]</span></h2> |
| 179 | |
| 180 | <div class="memitem"> |
| 181 | <div class="memproto"> |
| 182 | <table class="mlabels"> |
| 183 | <tr> |
| 184 | <td class="mlabels-left"> |
| 185 | <table class="memname"> |
| 186 | <tr> |
| 187 | <td class="memname"><a class="el" href="classarmnn_1_1_const_tensor.xhtml">ConstTensor</a> </td> |
| 188 | <td>(</td> |
| 189 | <td class="paramname"></td><td>)</td> |
| 190 | <td></td> |
| 191 | </tr> |
| 192 | </table> |
| 193 | </td> |
| 194 | <td class="mlabels-right"> |
| 195 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </div><div class="memdoc"> |
| 199 | |
| 200 | <p class="definition">Definition at line <a class="el" href="_tensor_8hpp_source.xhtml#l00204">204</a> of file <a class="el" href="_tensor_8hpp_source.xhtml">Tensor.hpp</a>.</p> |
| 201 | <div class="fragment"><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> : BaseTensor<const void*>() {} <span class="comment">// This needs to be redefined explicitly??</span></div></div><!-- fragment --> |
| 202 | </div> |
| 203 | </div> |
| 204 | <a id="a42aec46c635aa2e38932ca103d2064ed"></a> |
| 205 | <h2 class="memtitle"><span class="permalink"><a href="#a42aec46c635aa2e38932ca103d2064ed">◆ </a></span>ConstTensor() <span class="overload">[2/3]</span></h2> |
| 206 | |
| 207 | <div class="memitem"> |
| 208 | <div class="memproto"> |
| 209 | <table class="mlabels"> |
| 210 | <tr> |
| 211 | <td class="mlabels-left"> |
| 212 | <table class="memname"> |
| 213 | <tr> |
| 214 | <td class="memname"><a class="el" href="classarmnn_1_1_const_tensor.xhtml">ConstTensor</a> </td> |
| 215 | <td>(</td> |
| 216 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor.xhtml">Tensor</a> & </td> |
| 217 | <td class="paramname"><em>other</em></td><td>)</td> |
| 218 | <td></td> |
| 219 | </tr> |
| 220 | </table> |
| 221 | </td> |
| 222 | <td class="mlabels-right"> |
| 223 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 224 | </tr> |
| 225 | </table> |
| 226 | </div><div class="memdoc"> |
| 227 | |
| 228 | <p>Can be implicitly constructed from non-const <a class="el" href="classarmnn_1_1_tensor.xhtml" title="A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. ">Tensor</a>. </p> |
| 229 | |
| 230 | <p class="definition">Definition at line <a class="el" href="_tensor_8hpp_source.xhtml#l00207">207</a> of file <a class="el" href="_tensor_8hpp_source.xhtml">Tensor.hpp</a>.</p> |
| 231 | <div class="fragment"><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> : BaseTensor<const void*>(other.GetInfo(), other.GetMemoryArea()) {}</div></div><!-- fragment --> |
| 232 | </div> |
| 233 | </div> |
| 234 | <a id="aa04de06d072895b6df9125338d55c205"></a> |
| 235 | <h2 class="memtitle"><span class="permalink"><a href="#aa04de06d072895b6df9125338d55c205">◆ </a></span>ConstTensor() <span class="overload">[3/3]</span></h2> |
| 236 | |
| 237 | <div class="memitem"> |
| 238 | <div class="memproto"> |
| 239 | <table class="mlabels"> |
| 240 | <tr> |
| 241 | <td class="mlabels-left"> |
| 242 | <table class="memname"> |
| 243 | <tr> |
| 244 | <td class="memname"><a class="el" href="classarmnn_1_1_const_tensor.xhtml">ConstTensor</a> </td> |
| 245 | <td>(</td> |
| 246 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 247 | <td class="paramname"><em>info</em>, </td> |
| 248 | </tr> |
| 249 | <tr> |
| 250 | <td class="paramkey"></td> |
| 251 | <td></td> |
| 252 | <td class="paramtype">const ContainerType< T, ContainerArgs... > & </td> |
| 253 | <td class="paramname"><em>container</em> </td> |
| 254 | </tr> |
| 255 | <tr> |
| 256 | <td></td> |
| 257 | <td>)</td> |
| 258 | <td></td><td></td> |
| 259 | </tr> |
| 260 | </table> |
| 261 | </td> |
| 262 | <td class="mlabels-right"> |
| 263 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 264 | </tr> |
| 265 | </table> |
| 266 | </div><div class="memdoc"> |
| 267 | |
| 268 | <p>Constructor from a backing container. </p> |
| 269 | <dl class="params"><dt>Parameters</dt><dd> |
| 270 | <table class="params"> |
| 271 | <tr><td class="paramname">container</td><td>- An stl-like container type which implements data() and size() methods. Presence of data() and size() is a strong indicator of the continuous memory layout of the container, which is a requirement for <a class="el" href="classarmnn_1_1_tensor.xhtml" title="A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. ">Tensor</a> data. <a class="el" href="classarmnn_1_1_tensor.xhtml" title="A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. ">Tensor</a> instances do not claim ownership of referenced memory regions, that is, no attempt will be made by ArmNN to free these memory regions automatically. </td></tr> |
| 272 | </table> |
| 273 | </dd> |
| 274 | </dl> |
| 275 | |
| 276 | <p class="definition">Definition at line <a class="el" href="_tensor_8hpp_source.xhtml#l00215">215</a> of file <a class="el" href="_tensor_8hpp_source.xhtml">Tensor.hpp</a>.</p> |
| 277 | |
| 278 | <p class="reference">References <a class="el" href="_tensor_8cpp_source.xhtml#l00213">TensorInfo::GetNumBytes()</a>.</p> |
| 279 | <div class="fragment"><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  : BaseTensor<const void*>(<a class="code" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>, container.data())</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  {</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">if</span> (container.size() * <span class="keyword">sizeof</span>(T) != <a class="code" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>.GetNumBytes())</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">throw</span> InvalidArgumentException(<span class="stringliteral">"Container size is not correct"</span>);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  }</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  }</div><div class="ttc" id="namespacearmnn_xhtml_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 280 | </div><!-- fragment --> |
| 281 | </div> |
| 282 | </div> |
| 283 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 284 | <li>include/armnn/<a class="el" href="_tensor_8hpp_source.xhtml">Tensor.hpp</a></li> |
| 285 | </ul> |
| 286 | </div><!-- contents --> |
| 287 | </div><!-- doc-content --> |
| 288 | <!-- start footer part --> |
| 289 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 290 | <ul> |
| 291 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_const_tensor.xhtml">ConstTensor</a></li> |
| 292 | <li class="footer">Generated on Fri Mar 13 2020 16:09:17 for ArmNN by |
| 293 | <a href="http://www.doxygen.org/index.html"> |
| 294 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 295 | </ul> |
| 296 | </div> |
| 297 | </body> |
| 298 | </html> |