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: NeonTensorHandleFactory 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_neon_tensor_handle_factory.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="#pub-static-methods">Static Public Member Functions</a> | |
| 100 | <a href="classarmnn_1_1_neon_tensor_handle_factory-members.xhtml">List of all members</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">NeonTensorHandleFactory Class Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | |
| 106 | <p><code>#include <<a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml">NeonTensorHandleFactory.hpp</a>></code></p> |
| 107 | <div class="dynheader"> |
| 108 | Inheritance diagram for NeonTensorHandleFactory:</div> |
| 109 | <div class="dyncontent"> |
| 110 | <div class="center"> |
| 111 | <img src="classarmnn_1_1_neon_tensor_handle_factory.png" usemap="#NeonTensorHandleFactory_map" alt=""/> |
| 112 | <map id="NeonTensorHandleFactory_map" name="NeonTensorHandleFactory_map"> |
| 113 | <area href="classarmnn_1_1_i_tensor_handle_factory.xhtml" alt="ITensorHandleFactory" shape="rect" coords="0,0,165,24"/> |
| 114 | </map> |
| 115 | </div></div> |
| 116 | <table class="memberdecls"> |
| 117 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 118 | Public Member Functions</h2></td></tr> |
| 119 | <tr class="memitem:a07a3328cd4d6d3de55f19db56386c87a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a07a3328cd4d6d3de55f19db56386c87a">NeonTensorHandleFactory</a> (std::weak_ptr< <a class="el" href="classarmnn_1_1_neon_memory_manager.xhtml">NeonMemoryManager</a> > mgr)</td></tr> |
| 120 | <tr class="separator:a07a3328cd4d6d3de55f19db56386c87a"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a9edb76ddc7ba9d619f93192388e25cb3"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a9edb76ddc7ba9d619f93192388e25cb3">CreateSubTensorHandle</a> (<a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> &parent, const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> &subTensorShape, const unsigned int *subTensorOrigin) const override</td></tr> |
| 122 | <tr class="separator:a9edb76ddc7ba9d619f93192388e25cb3"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a36255ab20159b07024f505d5a58644d0"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a36255ab20159b07024f505d5a58644d0">CreateTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &tensorInfo) const override</td></tr> |
| 124 | <tr class="separator:a36255ab20159b07024f505d5a58644d0"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a3da30737e325dcae4479e96bdcb6a862"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a3da30737e325dcae4479e96bdcb6a862">CreateTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &tensorInfo, <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> dataLayout) const override</td></tr> |
| 126 | <tr class="separator:a3da30737e325dcae4479e96bdcb6a862"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:a7239477811c44d4398f0c2d291d9ea76"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a7239477811c44d4398f0c2d291d9ea76">CreateTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &tensorInfo, const bool IsMemoryManaged=<a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a>) const override</td></tr> |
| 128 | <tr class="memdesc:a7239477811c44d4398f0c2d291d9ea76"><td class="mdescLeft"> </td><td class="mdescRight">Utility Functions for backends which require TensorHandles to have unmanaged memory. <a href="#a7239477811c44d4398f0c2d291d9ea76">More...</a><br /></td></tr> |
| 129 | <tr class="separator:a7239477811c44d4398f0c2d291d9ea76"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:aaed323bbcbaded57334783e4732ee3ed"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aaed323bbcbaded57334783e4732ee3ed">CreateTensorHandle</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &tensorInfo, <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> dataLayout, const bool IsMemoryManaged=<a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a>) const override</td></tr> |
| 131 | <tr class="separator:aaed323bbcbaded57334783e4732ee3ed"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a0f624341aa5ff798d7a678f612994b98"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a0f624341aa5ff798d7a678f612994b98">GetId</a> () const override</td></tr> |
| 133 | <tr class="separator:a0f624341aa5ff798d7a678f612994b98"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:aed0a782f32856bde72bc10d9381dc11e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aed0a782f32856bde72bc10d9381dc11e">SupportsSubTensors</a> () const override</td></tr> |
| 135 | <tr class="separator:aed0a782f32856bde72bc10d9381dc11e"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a4d6272060edbc0c5ed7d43db78cc65c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a5b05f3b7208ec7cea3338e30057c0bac">MemorySourceFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a4d6272060edbc0c5ed7d43db78cc65c6">GetExportFlags</a> () const override</td></tr> |
| 137 | <tr class="separator:a4d6272060edbc0c5ed7d43db78cc65c6"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:aa1d3334a17a9f136fe65ed833fbf68b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a5b05f3b7208ec7cea3338e30057c0bac">MemorySourceFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aa1d3334a17a9f136fe65ed833fbf68b4">GetImportFlags</a> () const override</td></tr> |
| 139 | <tr class="separator:aa1d3334a17a9f136fe65ed833fbf68b4"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="inherit_header pub_methods_classarmnn_1_1_i_tensor_handle_factory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_i_tensor_handle_factory')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml">ITensorHandleFactory</a></td></tr> |
| 141 | <tr class="memitem:adb85a4d24c06a926c5fe50a2fd73111c inherit pub_methods_classarmnn_1_1_i_tensor_handle_factory"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#adb85a4d24c06a926c5fe50a2fd73111c">~ITensorHandleFactory</a> ()</td></tr> |
| 142 | <tr class="memdesc:adb85a4d24c06a926c5fe50a2fd73111c inherit pub_methods_classarmnn_1_1_i_tensor_handle_factory"><td class="mdescLeft"> </td><td class="mdescRight">Some TensorHandleFactory decisions are deferred to run-time. <a href="classarmnn_1_1_i_tensor_handle_factory.xhtml#adb85a4d24c06a926c5fe50a2fd73111c">More...</a><br /></td></tr> |
| 143 | <tr class="separator:adb85a4d24c06a926c5fe50a2fd73111c inherit pub_methods_classarmnn_1_1_i_tensor_handle_factory"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:aa262a54803b53b8198cd60e7af2f60e4 inherit pub_methods_classarmnn_1_1_i_tensor_handle_factory"><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_factory.xhtml#aa262a54803b53b8198cd60e7af2f60e4">SupportsMapUnmap</a> () const final</td></tr> |
| 145 | <tr class="separator:aa262a54803b53b8198cd60e7af2f60e4 inherit pub_methods_classarmnn_1_1_i_tensor_handle_factory"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | </table><table class="memberdecls"> |
| 147 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 148 | Static Public Member Functions</h2></td></tr> |
| 149 | <tr class="memitem:acdecb5b442434112c2cc8fc48c0ea922"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">GetIdStatic</a> ()</td></tr> |
| 150 | <tr class="separator:acdecb5b442434112c2cc8fc48c0ea922"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | </table><table class="memberdecls"> |
| 152 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 153 | Additional Inherited Members</h2></td></tr> |
| 154 | <tr class="inherit_header pub_types_classarmnn_1_1_i_tensor_handle_factory"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classarmnn_1_1_i_tensor_handle_factory')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml">ITensorHandleFactory</a></td></tr> |
| 155 | <tr class="memitem:a32f4aa6a7089d877af08928139c2c277 inherit pub_types_classarmnn_1_1_i_tensor_handle_factory"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> = std::string</td></tr> |
| 156 | <tr class="separator:a32f4aa6a7089d877af08928139c2c277 inherit pub_types_classarmnn_1_1_i_tensor_handle_factory"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="inherit_header pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory')"><img src="closed.png" alt="-"/> Static Public Attributes inherited from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml">ITensorHandleFactory</a></td></tr> |
| 158 | <tr class="memitem:a9c95f90eb40e31f629e0e2947b8bc6f9 inherit pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a9c95f90eb40e31f629e0e2947b8bc6f9">LegacyFactoryId</a> = "armnn_legacy_factory"</td></tr> |
| 159 | <tr class="separator:a9c95f90eb40e31f629e0e2947b8bc6f9 inherit pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <tr class="memitem:ac043d9a6e3f861fc6aa057ff95e56f18 inherit pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#ac043d9a6e3f861fc6aa057ff95e56f18">DeferredFactoryId</a> = "armnn_deferred_factory"</td></tr> |
| 161 | <tr class="memdesc:ac043d9a6e3f861fc6aa057ff95e56f18 inherit pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory"><td class="mdescLeft"> </td><td class="mdescRight">Use the workload factory to create the tensor handle. <a href="classarmnn_1_1_i_tensor_handle_factory.xhtml#ac043d9a6e3f861fc6aa057ff95e56f18">More...</a><br /></td></tr> |
| 162 | <tr class="separator:ac043d9a6e3f861fc6aa057ff95e56f18 inherit pub_static_attribs_classarmnn_1_1_i_tensor_handle_factory"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 | </table> |
| 164 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 165 | <div class="textblock"> |
| 166 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00016">16</a> of file <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml">NeonTensorHandleFactory.hpp</a>.</p> |
| 167 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 168 | <a id="a07a3328cd4d6d3de55f19db56386c87a"></a> |
| 169 | <h2 class="memtitle"><span class="permalink"><a href="#a07a3328cd4d6d3de55f19db56386c87a">◆ </a></span>NeonTensorHandleFactory()</h2> |
| 170 | |
| 171 | <div class="memitem"> |
| 172 | <div class="memproto"> |
| 173 | <table class="mlabels"> |
| 174 | <tr> |
| 175 | <td class="mlabels-left"> |
| 176 | <table class="memname"> |
| 177 | <tr> |
| 178 | <td class="memname"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml">NeonTensorHandleFactory</a> </td> |
| 179 | <td>(</td> |
| 180 | <td class="paramtype">std::weak_ptr< <a class="el" href="classarmnn_1_1_neon_memory_manager.xhtml">NeonMemoryManager</a> > </td> |
| 181 | <td class="paramname"><em>mgr</em></td><td>)</td> |
| 182 | <td></td> |
| 183 | </tr> |
| 184 | </table> |
| 185 | </td> |
| 186 | <td class="mlabels-right"> |
| 187 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 188 | </tr> |
| 189 | </table> |
| 190 | </div><div class="memdoc"> |
| 191 | |
| 192 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">19</a> of file <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml">NeonTensorHandleFactory.hpp</a>.</p> |
| 193 | |
| 194 | <p class="reference">References <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00016">NeonTensorHandleFactory::CreateSubTensorHandle()</a>, <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00042">NeonTensorHandleFactory::CreateTensorHandle()</a>, <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00100">NeonTensorHandleFactory::GetExportFlags()</a>, <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00090">NeonTensorHandleFactory::GetId()</a>, <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00084">NeonTensorHandleFactory::GetIdStatic()</a>, <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00105">NeonTensorHandleFactory::GetImportFlags()</a>, and <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00095">NeonTensorHandleFactory::SupportsSubTensors()</a>.</p> |
| 195 | <div class="fragment"><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  : m_MemoryManager(mgr)</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  {}</div></div><!-- fragment --> |
| 196 | </div> |
| 197 | </div> |
| 198 | <h2 class="groupheader">Member Function Documentation</h2> |
| 199 | <a id="a9edb76ddc7ba9d619f93192388e25cb3"></a> |
| 200 | <h2 class="memtitle"><span class="permalink"><a href="#a9edb76ddc7ba9d619f93192388e25cb3">◆ </a></span>CreateSubTensorHandle()</h2> |
| 201 | |
| 202 | <div class="memitem"> |
| 203 | <div class="memproto"> |
| 204 | <table class="mlabels"> |
| 205 | <tr> |
| 206 | <td class="mlabels-left"> |
| 207 | <table class="memname"> |
| 208 | <tr> |
| 209 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > CreateSubTensorHandle </td> |
| 210 | <td>(</td> |
| 211 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> & </td> |
| 212 | <td class="paramname"><em>parent</em>, </td> |
| 213 | </tr> |
| 214 | <tr> |
| 215 | <td class="paramkey"></td> |
| 216 | <td></td> |
| 217 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> & </td> |
| 218 | <td class="paramname"><em>subTensorShape</em>, </td> |
| 219 | </tr> |
| 220 | <tr> |
| 221 | <td class="paramkey"></td> |
| 222 | <td></td> |
| 223 | <td class="paramtype">const unsigned int * </td> |
| 224 | <td class="paramname"><em>subTensorOrigin</em> </td> |
| 225 | </tr> |
| 226 | <tr> |
| 227 | <td></td> |
| 228 | <td>)</td> |
| 229 | <td></td><td> const</td> |
| 230 | </tr> |
| 231 | </table> |
| 232 | </td> |
| 233 | <td class="mlabels-right"> |
| 234 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 235 | </tr> |
| 236 | </table> |
| 237 | </div><div class="memdoc"> |
| 238 | |
| 239 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#ac043991b839903b2ba9da884e4020848">ITensorHandleFactory</a>.</p> |
| 240 | |
| 241 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00016">16</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 242 | |
| 243 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 244 | <div class="fragment"><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">const</span> arm_compute::TensorShape shape = armcomputetensorutils::BuildArmComputeTensorShape(subTensorShape);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="namespacearmnn.xhtml#ac6e86c1def7f674d3c4cb7f577874aa6">arm_compute::Coordinates</a> coords;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  coords.set_num_dimensions(subTensorShape.GetNumDimensions());</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < subTensorShape.GetNumDimensions(); ++i)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="comment">// Arm compute indexes tensor coords in reverse order.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> revertedIndex = subTensorShape.GetNumDimensions() - i - 1;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  coords.set(i, boost::numeric_cast<int>(subTensorOrigin[revertedIndex]));</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  }</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keyword">const</span> arm_compute::TensorShape parentShape = armcomputetensorutils::BuildArmComputeTensorShape(parent.GetShape());</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">if</span> (!::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, parentShape, coords, shape))</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">return</span> std::make_unique<NeonSubTensorHandle>(</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  boost::polymorphic_downcast<IAclTensorHandle*>(&parent), shape, coords);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ac6e86c1def7f674d3c4cb7f577874aa6"><div class="ttname"><a href="namespacearmnn.xhtml#ac6e86c1def7f674d3c4cb7f577874aa6">armnn::Coordinates</a></div><div class="ttdeci">std::array< unsigned int, MaxNumOfTensorDimensions > Coordinates</div><div class="ttdef"><b>Definition:</b> <a href="_internal_types_8hpp_source.xhtml#l00080">InternalTypes.hpp:80</a></div></div> |
| 245 | </div><!-- fragment --> |
| 246 | </div> |
| 247 | </div> |
| 248 | <a id="a36255ab20159b07024f505d5a58644d0"></a> |
| 249 | <h2 class="memtitle"><span class="permalink"><a href="#a36255ab20159b07024f505d5a58644d0">◆ </a></span>CreateTensorHandle() <span class="overload">[1/4]</span></h2> |
| 250 | |
| 251 | <div class="memitem"> |
| 252 | <div class="memproto"> |
| 253 | <table class="mlabels"> |
| 254 | <tr> |
| 255 | <td class="mlabels-left"> |
| 256 | <table class="memname"> |
| 257 | <tr> |
| 258 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > CreateTensorHandle </td> |
| 259 | <td>(</td> |
| 260 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 261 | <td class="paramname"><em>tensorInfo</em></td><td>)</td> |
| 262 | <td> const</td> |
| 263 | </tr> |
| 264 | </table> |
| 265 | </td> |
| 266 | <td class="mlabels-right"> |
| 267 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 268 | </tr> |
| 269 | </table> |
| 270 | </div><div class="memdoc"> |
| 271 | |
| 272 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a375f11dd42ff042435e8771cf287b20c">ITensorHandleFactory</a>.</p> |
| 273 | |
| 274 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00042">42</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 275 | |
| 276 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00047">NeonTensorHandleFactory::CreateTensorHandle()</a>, and <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 277 | <div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a36255ab20159b07024f505d5a58644d0">NeonTensorHandleFactory::CreateTensorHandle</a>(tensorInfo, <span class="keyword">true</span>);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div><div class="ttc" id="classarmnn_1_1_neon_tensor_handle_factory_xhtml_a36255ab20159b07024f505d5a58644d0"><div class="ttname"><a href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a36255ab20159b07024f505d5a58644d0">armnn::NeonTensorHandleFactory::CreateTensorHandle</a></div><div class="ttdeci">std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00042">NeonTensorHandleFactory.cpp:42</a></div></div> |
| 278 | </div><!-- fragment --> |
| 279 | </div> |
| 280 | </div> |
| 281 | <a id="a3da30737e325dcae4479e96bdcb6a862"></a> |
| 282 | <h2 class="memtitle"><span class="permalink"><a href="#a3da30737e325dcae4479e96bdcb6a862">◆ </a></span>CreateTensorHandle() <span class="overload">[2/4]</span></h2> |
| 283 | |
| 284 | <div class="memitem"> |
| 285 | <div class="memproto"> |
| 286 | <table class="mlabels"> |
| 287 | <tr> |
| 288 | <td class="mlabels-left"> |
| 289 | <table class="memname"> |
| 290 | <tr> |
| 291 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > CreateTensorHandle </td> |
| 292 | <td>(</td> |
| 293 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 294 | <td class="paramname"><em>tensorInfo</em>, </td> |
| 295 | </tr> |
| 296 | <tr> |
| 297 | <td class="paramkey"></td> |
| 298 | <td></td> |
| 299 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> </td> |
| 300 | <td class="paramname"><em>dataLayout</em> </td> |
| 301 | </tr> |
| 302 | <tr> |
| 303 | <td></td> |
| 304 | <td>)</td> |
| 305 | <td></td><td> const</td> |
| 306 | </tr> |
| 307 | </table> |
| 308 | </td> |
| 309 | <td class="mlabels-right"> |
| 310 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 311 | </tr> |
| 312 | </table> |
| 313 | </div><div class="memdoc"> |
| 314 | |
| 315 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a82c11d5c2878a7beaed8b916eb1df648">ITensorHandleFactory</a>.</p> |
| 316 | |
| 317 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00047">47</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 318 | |
| 319 | <p class="reference">References <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00042">NeonTensorHandleFactory::CreateTensorHandle()</a>.</p> |
| 320 | <div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a36255ab20159b07024f505d5a58644d0">NeonTensorHandleFactory::CreateTensorHandle</a>(tensorInfo, dataLayout, <span class="keyword">true</span>);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div><div class="ttc" id="classarmnn_1_1_neon_tensor_handle_factory_xhtml_a36255ab20159b07024f505d5a58644d0"><div class="ttname"><a href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#a36255ab20159b07024f505d5a58644d0">armnn::NeonTensorHandleFactory::CreateTensorHandle</a></div><div class="ttdeci">std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00042">NeonTensorHandleFactory.cpp:42</a></div></div> |
| 321 | </div><!-- fragment --> |
| 322 | </div> |
| 323 | </div> |
| 324 | <a id="a7239477811c44d4398f0c2d291d9ea76"></a> |
| 325 | <h2 class="memtitle"><span class="permalink"><a href="#a7239477811c44d4398f0c2d291d9ea76">◆ </a></span>CreateTensorHandle() <span class="overload">[3/4]</span></h2> |
| 326 | |
| 327 | <div class="memitem"> |
| 328 | <div class="memproto"> |
| 329 | <table class="mlabels"> |
| 330 | <tr> |
| 331 | <td class="mlabels-left"> |
| 332 | <table class="memname"> |
| 333 | <tr> |
| 334 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > CreateTensorHandle </td> |
| 335 | <td>(</td> |
| 336 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 337 | <td class="paramname"><em>tensorInfo</em>, </td> |
| 338 | </tr> |
| 339 | <tr> |
| 340 | <td class="paramkey"></td> |
| 341 | <td></td> |
| 342 | <td class="paramtype">const bool </td> |
| 343 | <td class="paramname"><em>IsMemoryManaged</em> = <code><a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a></code> </td> |
| 344 | </tr> |
| 345 | <tr> |
| 346 | <td></td> |
| 347 | <td>)</td> |
| 348 | <td></td><td> const</td> |
| 349 | </tr> |
| 350 | </table> |
| 351 | </td> |
| 352 | <td class="mlabels-right"> |
| 353 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 354 | </tr> |
| 355 | </table> |
| 356 | </div><div class="memdoc"> |
| 357 | |
| 358 | <p>Utility Functions for backends which require TensorHandles to have unmanaged memory. </p> |
| 359 | <p>These should be overloaded if required to facilitate direct import of input tensors and direct export of output tensors. </p> |
| 360 | |
| 361 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a42c6c26eed9d9ed8df7bb24f951c282c">ITensorHandleFactory</a>.</p> |
| 362 | |
| 363 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00053">53</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 364 | |
| 365 | <p class="reference">References <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00105">NeonTensorHandleFactory::GetImportFlags()</a>.</p> |
| 366 | <div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">auto</span> tensorHandle = std::make_unique<NeonTensorHandle>(tensorInfo);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (IsMemoryManaged)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  tensorHandle->SetMemoryGroup(m_MemoryManager->GetInterLayerMemoryGroup());</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// If we are not Managing the Memory then we must be importing</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  tensorHandle->SetImportEnabledFlag(!IsMemoryManaged);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  tensorHandle->SetImportFlags(<a class="code" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aa1d3334a17a9f136fe65ed833fbf68b4">GetImportFlags</a>());</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> tensorHandle;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> }</div><div class="ttc" id="classarmnn_1_1_neon_tensor_handle_factory_xhtml_aa1d3334a17a9f136fe65ed833fbf68b4"><div class="ttname"><a href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aa1d3334a17a9f136fe65ed833fbf68b4">armnn::NeonTensorHandleFactory::GetImportFlags</a></div><div class="ttdeci">MemorySourceFlags GetImportFlags() const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00105">NeonTensorHandleFactory.cpp:105</a></div></div> |
| 367 | </div><!-- fragment --> |
| 368 | </div> |
| 369 | </div> |
| 370 | <a id="aaed323bbcbaded57334783e4732ee3ed"></a> |
| 371 | <h2 class="memtitle"><span class="permalink"><a href="#aaed323bbcbaded57334783e4732ee3ed">◆ </a></span>CreateTensorHandle() <span class="overload">[4/4]</span></h2> |
| 372 | |
| 373 | <div class="memitem"> |
| 374 | <div class="memproto"> |
| 375 | <table class="mlabels"> |
| 376 | <tr> |
| 377 | <td class="mlabels-left"> |
| 378 | <table class="memname"> |
| 379 | <tr> |
| 380 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > CreateTensorHandle </td> |
| 381 | <td>(</td> |
| 382 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 383 | <td class="paramname"><em>tensorInfo</em>, </td> |
| 384 | </tr> |
| 385 | <tr> |
| 386 | <td class="paramkey"></td> |
| 387 | <td></td> |
| 388 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> </td> |
| 389 | <td class="paramname"><em>dataLayout</em>, </td> |
| 390 | </tr> |
| 391 | <tr> |
| 392 | <td class="paramkey"></td> |
| 393 | <td></td> |
| 394 | <td class="paramtype">const bool </td> |
| 395 | <td class="paramname"><em>IsMemoryManaged</em> = <code><a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a></code> </td> |
| 396 | </tr> |
| 397 | <tr> |
| 398 | <td></td> |
| 399 | <td>)</td> |
| 400 | <td></td><td> const</td> |
| 401 | </tr> |
| 402 | </table> |
| 403 | </td> |
| 404 | <td class="mlabels-right"> |
| 405 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 406 | </tr> |
| 407 | </table> |
| 408 | </div><div class="memdoc"> |
| 409 | |
| 410 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a3d113070d658f1dea761060b297ba6ed">ITensorHandleFactory</a>.</p> |
| 411 | |
| 412 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00068">68</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 413 | |
| 414 | <p class="reference">References <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00105">NeonTensorHandleFactory::GetImportFlags()</a>.</p> |
| 415 | <div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">auto</span> tensorHandle = std::make_unique<NeonTensorHandle>(tensorInfo, dataLayout);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">if</span> (IsMemoryManaged)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  tensorHandle->SetMemoryGroup(m_MemoryManager->GetInterLayerMemoryGroup());</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// If we are not Managing the Memory then we must be importing</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  tensorHandle->SetImportEnabledFlag(!IsMemoryManaged);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  tensorHandle->SetImportFlags(<a class="code" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aa1d3334a17a9f136fe65ed833fbf68b4">GetImportFlags</a>());</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> tensorHandle;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> }</div><div class="ttc" id="classarmnn_1_1_neon_tensor_handle_factory_xhtml_aa1d3334a17a9f136fe65ed833fbf68b4"><div class="ttname"><a href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#aa1d3334a17a9f136fe65ed833fbf68b4">armnn::NeonTensorHandleFactory::GetImportFlags</a></div><div class="ttdeci">MemorySourceFlags GetImportFlags() const override</div><div class="ttdef"><b>Definition:</b> <a href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00105">NeonTensorHandleFactory.cpp:105</a></div></div> |
| 416 | </div><!-- fragment --> |
| 417 | </div> |
| 418 | </div> |
| 419 | <a id="a4d6272060edbc0c5ed7d43db78cc65c6"></a> |
| 420 | <h2 class="memtitle"><span class="permalink"><a href="#a4d6272060edbc0c5ed7d43db78cc65c6">◆ </a></span>GetExportFlags()</h2> |
| 421 | |
| 422 | <div class="memitem"> |
| 423 | <div class="memproto"> |
| 424 | <table class="mlabels"> |
| 425 | <tr> |
| 426 | <td class="mlabels-left"> |
| 427 | <table class="memname"> |
| 428 | <tr> |
| 429 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a5b05f3b7208ec7cea3338e30057c0bac">MemorySourceFlags</a> GetExportFlags </td> |
| 430 | <td>(</td> |
| 431 | <td class="paramname"></td><td>)</td> |
| 432 | <td> const</td> |
| 433 | </tr> |
| 434 | </table> |
| 435 | </td> |
| 436 | <td class="mlabels-right"> |
| 437 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 438 | </tr> |
| 439 | </table> |
| 440 | </div><div class="memdoc"> |
| 441 | |
| 442 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a9892b82652ffac03f1e4e7ad93906078">ITensorHandleFactory</a>.</p> |
| 443 | |
| 444 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00100">100</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 445 | |
| 446 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 447 | <div class="fragment"><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div></div><!-- fragment --> |
| 448 | </div> |
| 449 | </div> |
| 450 | <a id="a0f624341aa5ff798d7a678f612994b98"></a> |
| 451 | <h2 class="memtitle"><span class="permalink"><a href="#a0f624341aa5ff798d7a678f612994b98">◆ </a></span>GetId()</h2> |
| 452 | |
| 453 | <div class="memitem"> |
| 454 | <div class="memproto"> |
| 455 | <table class="mlabels"> |
| 456 | <tr> |
| 457 | <td class="mlabels-left"> |
| 458 | <table class="memname"> |
| 459 | <tr> |
| 460 | <td class="memname">const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> & GetId </td> |
| 461 | <td>(</td> |
| 462 | <td class="paramname"></td><td>)</td> |
| 463 | <td> const</td> |
| 464 | </tr> |
| 465 | </table> |
| 466 | </td> |
| 467 | <td class="mlabels-right"> |
| 468 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 469 | </tr> |
| 470 | </table> |
| 471 | </div><div class="memdoc"> |
| 472 | |
| 473 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a4afcbe1ccd8f71ba118f210f2a591a4c">ITensorHandleFactory</a>.</p> |
| 474 | |
| 475 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00090">90</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 476 | |
| 477 | <p class="reference">References <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00084">NeonTensorHandleFactory::GetIdStatic()</a>.</p> |
| 478 | |
| 479 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 480 | <div class="fragment"><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">GetIdStatic</a>();</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> }</div><div class="ttc" id="classarmnn_1_1_neon_tensor_handle_factory_xhtml_acdecb5b442434112c2cc8fc48c0ea922"><div class="ttname"><a href="classarmnn_1_1_neon_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">armnn::NeonTensorHandleFactory::GetIdStatic</a></div><div class="ttdeci">static const FactoryId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00084">NeonTensorHandleFactory.cpp:84</a></div></div> |
| 481 | </div><!-- fragment --> |
| 482 | </div> |
| 483 | </div> |
| 484 | <a id="acdecb5b442434112c2cc8fc48c0ea922"></a> |
| 485 | <h2 class="memtitle"><span class="permalink"><a href="#acdecb5b442434112c2cc8fc48c0ea922">◆ </a></span>GetIdStatic()</h2> |
| 486 | |
| 487 | <div class="memitem"> |
| 488 | <div class="memproto"> |
| 489 | <table class="mlabels"> |
| 490 | <tr> |
| 491 | <td class="mlabels-left"> |
| 492 | <table class="memname"> |
| 493 | <tr> |
| 494 | <td class="memname">const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> & GetIdStatic </td> |
| 495 | <td>(</td> |
| 496 | <td class="paramname"></td><td>)</td> |
| 497 | <td></td> |
| 498 | </tr> |
| 499 | </table> |
| 500 | </td> |
| 501 | <td class="mlabels-right"> |
| 502 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 503 | </tr> |
| 504 | </table> |
| 505 | </div><div class="memdoc"> |
| 506 | |
| 507 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00084">84</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 508 | |
| 509 | <p class="reference">References <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00014">armnn::NeonTensorHandleFactoryId()</a>.</p> |
| 510 | |
| 511 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00090">NeonTensorHandleFactory::GetId()</a>, and <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 512 | <div class="fragment"><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">FactoryId</a> s_Id(<a class="code" href="namespacearmnn.xhtml#aad5d4888304a57fb22c4608dc5d94dc1">NeonTensorHandleFactoryId</a>());</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">return</span> s_Id;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div><div class="ttc" id="namespacearmnn_xhtml_aad5d4888304a57fb22c4608dc5d94dc1"><div class="ttname"><a href="namespacearmnn.xhtml#aad5d4888304a57fb22c4608dc5d94dc1">armnn::NeonTensorHandleFactoryId</a></div><div class="ttdeci">constexpr const char * NeonTensorHandleFactoryId()</div><div class="ttdef"><b>Definition:</b> <a href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00014">NeonTensorHandleFactory.hpp:14</a></div></div> |
| 513 | <div class="ttc" id="classarmnn_1_1_i_tensor_handle_factory_xhtml_a32f4aa6a7089d877af08928139c2c277"><div class="ttname"><a href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">armnn::ITensorHandleFactory::FactoryId</a></div><div class="ttdeci">std::string FactoryId</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_tensor_handle_factory_8hpp_source.xhtml#l00021">ITensorHandleFactory.hpp:21</a></div></div> |
| 514 | </div><!-- fragment --> |
| 515 | </div> |
| 516 | </div> |
| 517 | <a id="aa1d3334a17a9f136fe65ed833fbf68b4"></a> |
| 518 | <h2 class="memtitle"><span class="permalink"><a href="#aa1d3334a17a9f136fe65ed833fbf68b4">◆ </a></span>GetImportFlags()</h2> |
| 519 | |
| 520 | <div class="memitem"> |
| 521 | <div class="memproto"> |
| 522 | <table class="mlabels"> |
| 523 | <tr> |
| 524 | <td class="mlabels-left"> |
| 525 | <table class="memname"> |
| 526 | <tr> |
| 527 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a5b05f3b7208ec7cea3338e30057c0bac">MemorySourceFlags</a> GetImportFlags </td> |
| 528 | <td>(</td> |
| 529 | <td class="paramname"></td><td>)</td> |
| 530 | <td> const</td> |
| 531 | </tr> |
| 532 | </table> |
| 533 | </td> |
| 534 | <td class="mlabels-right"> |
| 535 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 536 | </tr> |
| 537 | </table> |
| 538 | </div><div class="memdoc"> |
| 539 | |
| 540 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#ab17a7eb3afac8667ace153b0fe2f82fe">ITensorHandleFactory</a>.</p> |
| 541 | |
| 542 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00105">105</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 543 | |
| 544 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00053">NeonTensorHandleFactory::CreateTensorHandle()</a>, and <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 545 | <div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> }</div></div><!-- fragment --> |
| 546 | </div> |
| 547 | </div> |
| 548 | <a id="aed0a782f32856bde72bc10d9381dc11e"></a> |
| 549 | <h2 class="memtitle"><span class="permalink"><a href="#aed0a782f32856bde72bc10d9381dc11e">◆ </a></span>SupportsSubTensors()</h2> |
| 550 | |
| 551 | <div class="memitem"> |
| 552 | <div class="memproto"> |
| 553 | <table class="mlabels"> |
| 554 | <tr> |
| 555 | <td class="mlabels-left"> |
| 556 | <table class="memname"> |
| 557 | <tr> |
| 558 | <td class="memname">bool SupportsSubTensors </td> |
| 559 | <td>(</td> |
| 560 | <td class="paramname"></td><td>)</td> |
| 561 | <td> const</td> |
| 562 | </tr> |
| 563 | </table> |
| 564 | </td> |
| 565 | <td class="mlabels-right"> |
| 566 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 567 | </tr> |
| 568 | </table> |
| 569 | </div><div class="memdoc"> |
| 570 | |
| 571 | <p>Implements <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a37f4eba7877deb34f4d8d64c9bcb9ab5">ITensorHandleFactory</a>.</p> |
| 572 | |
| 573 | <p class="definition">Definition at line <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml#l00095">95</a> of file <a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a>.</p> |
| 574 | |
| 575 | <p class="reference">Referenced by <a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml#l00019">NeonTensorHandleFactory::NeonTensorHandleFactory()</a>.</p> |
| 576 | <div class="fragment"><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> {</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> }</div></div><!-- fragment --> |
| 577 | </div> |
| 578 | </div> |
| 579 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 580 | <li>src/backends/neon/<a class="el" href="_neon_tensor_handle_factory_8hpp_source.xhtml">NeonTensorHandleFactory.hpp</a></li> |
| 581 | <li>src/backends/neon/<a class="el" href="_neon_tensor_handle_factory_8cpp_source.xhtml">NeonTensorHandleFactory.cpp</a></li> |
| 582 | </ul> |
| 583 | </div><!-- contents --> |
| 584 | </div><!-- doc-content --> |
| 585 | <!-- start footer part --> |
| 586 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 587 | <ul> |
| 588 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_neon_tensor_handle_factory.xhtml">NeonTensorHandleFactory</a></li> |
| 589 | <li class="footer">Generated on Fri Mar 13 2020 16:09:19 for ArmNN by |
| 590 | <a href="http://www.doxygen.org/index.html"> |
| 591 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 592 | </ul> |
| 593 | </div> |
| 594 | </body> |
| 595 | </html> |