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: OutputHandler 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_output_handler.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_output_handler-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">OutputHandler Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a>></code></p> |
| 106 | <table class="memberdecls"> |
| 107 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 108 | Public Member Functions</h2></td></tr> |
| 109 | <tr class="memitem:a97db12c41024f5545ef5cc4153e5443b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#a97db12c41024f5545ef5cc4153e5443b">SetTensorInfo</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> &tensorInfo)</td></tr> |
| 110 | <tr class="memdesc:a97db12c41024f5545ef5cc4153e5443b"><td class="mdescLeft"> </td><td class="mdescRight"><ul> |
| 111 | <li>Sets the <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> used by this output handler. </li> |
| 112 | </ul> |
| 113 | <a href="#a97db12c41024f5545ef5cc4153e5443b">More...</a><br /></td></tr> |
| 114 | <tr class="separator:a97db12c41024f5545ef5cc4153e5443b"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:abdad6d5574323cbbca22ddd158e66759"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#abdad6d5574323cbbca22ddd158e66759">CreateTensorHandles</a> (const <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">IWorkloadFactory</a> &factory, const bool IsMemoryManaged=<a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</td></tr> |
| 116 | <tr class="memdesc:abdad6d5574323cbbca22ddd158e66759"><td class="mdescLeft"> </td><td class="mdescRight"><ul> |
| 117 | <li>Creates tensor handles used by the intermediate tensors. </li> |
| 118 | </ul> |
| 119 | <a href="#abdad6d5574323cbbca22ddd158e66759">More...</a><br /></td></tr> |
| 120 | <tr class="separator:abdad6d5574323cbbca22ddd158e66759"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a215e032fe5f2a1232d84888c041cd3a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#a215e032fe5f2a1232d84888c041cd3a5">CreateTensorHandles</a> (const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml">ITensorHandleFactory</a> &factory, const bool IsMemoryManaged=<a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</td></tr> |
| 122 | <tr class="separator:a215e032fe5f2a1232d84888c041cd3a5"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a66e8f43a5b42b500871ed96e15419567"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a> () const</td></tr> |
| 124 | <tr class="memdesc:a66e8f43a5b42b500871ed96e15419567"><td class="mdescLeft"> </td><td class="mdescRight"><ul> |
| 125 | <li>Gets the matching <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> for the output. </li> |
| 126 | </ul> |
| 127 | <a href="#a66e8f43a5b42b500871ed96e15419567">More...</a><br /></td></tr> |
| 128 | <tr class="separator:a66e8f43a5b42b500871ed96e15419567"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:afe3429ac30b180c11f01ea0f9f546f0e"><td class="memItemLeft" align="right" valign="top"><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_output_handler.xhtml#afe3429ac30b180c11f01ea0f9f546f0e">GetData</a> () const</td></tr> |
| 130 | <tr class="memdesc:afe3429ac30b180c11f01ea0f9f546f0e"><td class="mdescLeft"> </td><td class="mdescRight"><ul> |
| 131 | <li>Gets the allocated tensor memory. </li> |
| 132 | </ul> |
| 133 | <a href="#afe3429ac30b180c11f01ea0f9f546f0e">More...</a><br /></td></tr> |
| 134 | <tr class="separator:afe3429ac30b180c11f01ea0f9f546f0e"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a9a0cf27287d6b104547d2177e4a0a3ee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#a9a0cf27287d6b104547d2177e4a0a3ee">CollectWorkloadOutputs</a> (<a class="el" href="classarmnn_1_1_workload_data_collector.xhtml">WorkloadDataCollector</a> &dataCollector) const</td></tr> |
| 136 | <tr class="memdesc:a9a0cf27287d6b104547d2177e4a0a3ee"><td class="mdescLeft"> </td><td class="mdescRight">Fill the outputs for a given queue descriptor. <a href="#a9a0cf27287d6b104547d2177e4a0a3ee">More...</a><br /></td></tr> |
| 137 | <tr class="separator:a9a0cf27287d6b104547d2177e4a0a3ee"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:a714596a278cb512fb2368c9293118455"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#a714596a278cb512fb2368c9293118455">SetData</a> (std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > data)</td></tr> |
| 139 | <tr class="separator:a714596a278cb512fb2368c9293118455"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:aca366a3098776fdd06f23e9f9329721b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_output_handler.xhtml#aca366a3098776fdd06f23e9f9329721b">IsTensorInfoSet</a> () const</td></tr> |
| 141 | <tr class="memdesc:aca366a3098776fdd06f23e9f9329721b"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if <a class="el" href="classarmnn_1_1_output_handler.xhtml#a97db12c41024f5545ef5cc4153e5443b" title="Sets the TensorInfo used by this output handler. ">SetTensorInfo()</a> has been called at least once on this. <a href="#aca366a3098776fdd06f23e9f9329721b">More...</a><br /></td></tr> |
| 142 | <tr class="separator:aca366a3098776fdd06f23e9f9329721b"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table> |
| 144 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 145 | <div class="textblock"> |
| 146 | <p class="definition">Definition at line <a class="el" href="_output_handler_8hpp_source.xhtml#l00030">30</a> of file <a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a>.</p> |
| 147 | </div><h2 class="groupheader">Member Function Documentation</h2> |
| 148 | <a id="a9a0cf27287d6b104547d2177e4a0a3ee"></a> |
| 149 | <h2 class="memtitle"><span class="permalink"><a href="#a9a0cf27287d6b104547d2177e4a0a3ee">◆ </a></span>CollectWorkloadOutputs()</h2> |
| 150 | |
| 151 | <div class="memitem"> |
| 152 | <div class="memproto"> |
| 153 | <table class="memname"> |
| 154 | <tr> |
| 155 | <td class="memname">void CollectWorkloadOutputs </td> |
| 156 | <td>(</td> |
| 157 | <td class="paramtype"><a class="el" href="classarmnn_1_1_workload_data_collector.xhtml">WorkloadDataCollector</a> & </td> |
| 158 | <td class="paramname"><em>dataCollector</em></td><td>)</td> |
| 159 | <td> const</td> |
| 160 | </tr> |
| 161 | </table> |
| 162 | </div><div class="memdoc"> |
| 163 | |
| 164 | <p>Fill the outputs for a given queue descriptor. </p> |
| 165 | |
| 166 | <p class="definition">Definition at line <a class="el" href="_output_handler_8cpp_source.xhtml#l00033">33</a> of file <a class="el" href="_output_handler_8cpp_source.xhtml">OutputHandler.cpp</a>.</p> |
| 167 | |
| 168 | <p class="reference">References <a class="el" href="_workload_data_collector_8hpp_source.xhtml#l00024">WorkloadDataCollector::Push()</a>.</p> |
| 169 | |
| 170 | <p class="reference">Referenced by <a class="el" href="_output_handler_8hpp_source.xhtml#l00048">OutputHandler::GetData()</a>.</p> |
| 171 | <div class="fragment"><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>  dataCollector.Push(m_TensorHandle.get(), m_TensorInfo);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div></div><!-- fragment --> |
| 172 | </div> |
| 173 | </div> |
| 174 | <a id="abdad6d5574323cbbca22ddd158e66759"></a> |
| 175 | <h2 class="memtitle"><span class="permalink"><a href="#abdad6d5574323cbbca22ddd158e66759">◆ </a></span>CreateTensorHandles() <span class="overload">[1/2]</span></h2> |
| 176 | |
| 177 | <div class="memitem"> |
| 178 | <div class="memproto"> |
| 179 | <table class="memname"> |
| 180 | <tr> |
| 181 | <td class="memname">void CreateTensorHandles </td> |
| 182 | <td>(</td> |
| 183 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">IWorkloadFactory</a> & </td> |
| 184 | <td class="paramname"><em>factory</em>, </td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td class="paramkey"></td> |
| 188 | <td></td> |
| 189 | <td class="paramtype">const bool </td> |
| 190 | <td class="paramname"><em>IsMemoryManaged</em> = <code><a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a></code> </td> |
| 191 | </tr> |
| 192 | <tr> |
| 193 | <td></td> |
| 194 | <td>)</td> |
| 195 | <td></td><td></td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </div><div class="memdoc"> |
| 199 | |
| 200 | <p><ul> |
| 201 | <li>Creates tensor handles used by the intermediate tensors. </li> |
| 202 | </ul> |
| 203 | </p> |
| 204 | <p>Does not allocate memory. </p><dl class="params"><dt>Parameters</dt><dd> |
| 205 | <table class="params"> |
| 206 | <tr><td class="paramname">factory</td><td>- Factory to be used for handler creation. </td></tr> |
| 207 | </table> |
| 208 | </dd> |
| 209 | </dl> |
| 210 | |
| 211 | <p class="definition">Definition at line <a class="el" href="_output_handler_8cpp_source.xhtml#l00023">23</a> of file <a class="el" href="_output_handler_8cpp_source.xhtml">OutputHandler.cpp</a>.</p> |
| 212 | |
| 213 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>.</p> |
| 214 | |
| 215 | <p class="reference">Referenced by <a class="el" href="_layer_8cpp_source.xhtml#l00240">Layer::CreateTensorHandles()</a>.</p> |
| 216 | <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  m_TensorHandle = factory.CreateTensorHandle(m_TensorInfo, IsMemoryManaged);</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> }</div></div><!-- fragment --> |
| 217 | </div> |
| 218 | </div> |
| 219 | <a id="a215e032fe5f2a1232d84888c041cd3a5"></a> |
| 220 | <h2 class="memtitle"><span class="permalink"><a href="#a215e032fe5f2a1232d84888c041cd3a5">◆ </a></span>CreateTensorHandles() <span class="overload">[2/2]</span></h2> |
| 221 | |
| 222 | <div class="memitem"> |
| 223 | <div class="memproto"> |
| 224 | <table class="memname"> |
| 225 | <tr> |
| 226 | <td class="memname">void CreateTensorHandles </td> |
| 227 | <td>(</td> |
| 228 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml">ITensorHandleFactory</a> & </td> |
| 229 | <td class="paramname"><em>factory</em>, </td> |
| 230 | </tr> |
| 231 | <tr> |
| 232 | <td class="paramkey"></td> |
| 233 | <td></td> |
| 234 | <td class="paramtype">const bool </td> |
| 235 | <td class="paramname"><em>IsMemoryManaged</em> = <code><a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a></code> </td> |
| 236 | </tr> |
| 237 | <tr> |
| 238 | <td></td> |
| 239 | <td>)</td> |
| 240 | <td></td><td></td> |
| 241 | </tr> |
| 242 | </table> |
| 243 | </div><div class="memdoc"> |
| 244 | |
| 245 | <p class="definition">Definition at line <a class="el" href="_output_handler_8cpp_source.xhtml#l00028">28</a> of file <a class="el" href="_output_handler_8cpp_source.xhtml">OutputHandler.cpp</a>.</p> |
| 246 | |
| 247 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a375f11dd42ff042435e8771cf287b20c">ITensorHandleFactory::CreateTensorHandle()</a>.</p> |
| 248 | <div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  m_TensorHandle = factory.CreateTensorHandle(m_TensorInfo, IsMemoryManaged);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div></div><!-- fragment --> |
| 249 | </div> |
| 250 | </div> |
| 251 | <a id="afe3429ac30b180c11f01ea0f9f546f0e"></a> |
| 252 | <h2 class="memtitle"><span class="permalink"><a href="#afe3429ac30b180c11f01ea0f9f546f0e">◆ </a></span>GetData()</h2> |
| 253 | |
| 254 | <div class="memitem"> |
| 255 | <div class="memproto"> |
| 256 | <table class="mlabels"> |
| 257 | <tr> |
| 258 | <td class="mlabels-left"> |
| 259 | <table class="memname"> |
| 260 | <tr> |
| 261 | <td class="memname"><a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a>* GetData </td> |
| 262 | <td>(</td> |
| 263 | <td class="paramname"></td><td>)</td> |
| 264 | <td> const</td> |
| 265 | </tr> |
| 266 | </table> |
| 267 | </td> |
| 268 | <td class="mlabels-right"> |
| 269 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 270 | </tr> |
| 271 | </table> |
| 272 | </div><div class="memdoc"> |
| 273 | |
| 274 | <p><ul> |
| 275 | <li>Gets the allocated tensor memory. </li> |
| 276 | </ul> |
| 277 | </p> |
| 278 | <dl class="section return"><dt>Returns</dt><dd>- Pointer to the tensor memory. </dd></dl> |
| 279 | |
| 280 | <p class="definition">Definition at line <a class="el" href="_output_handler_8hpp_source.xhtml#l00048">48</a> of file <a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a>.</p> |
| 281 | |
| 282 | <p class="reference">References <a class="el" href="_output_handler_8cpp_source.xhtml#l00033">OutputHandler::CollectWorkloadOutputs()</a>.</p> |
| 283 | |
| 284 | <p class="reference">Referenced by <a class="el" href="_concat_layer_8cpp_source.xhtml#l00022">ConcatLayer::CreateWorkload()</a>, and <a class="el" href="_splitter_layer_8cpp_source.xhtml#l00021">SplitterLayer::CreateWorkload()</a>.</p> |
| 285 | <div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> { <span class="keywordflow">return</span> m_TensorHandle.get(); }</div></div><!-- fragment --> |
| 286 | </div> |
| 287 | </div> |
| 288 | <a id="a66e8f43a5b42b500871ed96e15419567"></a> |
| 289 | <h2 class="memtitle"><span class="permalink"><a href="#a66e8f43a5b42b500871ed96e15419567">◆ </a></span>GetTensorInfo()</h2> |
| 290 | |
| 291 | <div class="memitem"> |
| 292 | <div class="memproto"> |
| 293 | <table class="mlabels"> |
| 294 | <tr> |
| 295 | <td class="mlabels-left"> |
| 296 | <table class="memname"> |
| 297 | <tr> |
| 298 | <td class="memname">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a>& GetTensorInfo </td> |
| 299 | <td>(</td> |
| 300 | <td class="paramname"></td><td>)</td> |
| 301 | <td> const</td> |
| 302 | </tr> |
| 303 | </table> |
| 304 | </td> |
| 305 | <td class="mlabels-right"> |
| 306 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 307 | </tr> |
| 308 | </table> |
| 309 | </div><div class="memdoc"> |
| 310 | |
| 311 | <p><ul> |
| 312 | <li>Gets the matching <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> for the output. </li> |
| 313 | </ul> |
| 314 | </p> |
| 315 | <dl class="section return"><dt>Returns</dt><dd>- References to the output <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a>. </dd></dl> |
| 316 | |
| 317 | <p class="definition">Definition at line <a class="el" href="_output_handler_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a>.</p> |
| 318 | |
| 319 | <p class="reference">Referenced by <a class="el" href="_concat_layer_8cpp_source.xhtml#l00022">ConcatLayer::CreateWorkload()</a>, <a class="el" href="_splitter_layer_8cpp_source.xhtml#l00021">SplitterLayer::CreateWorkload()</a>, <a class="el" href="_permute_as_reshape_8hpp_source.xhtml#l00018">PermuteAsReshapeImpl::Run()</a>, <a class="el" href="_transpose_as_reshape_8hpp_source.xhtml#l00018">TransposeAsReshapeImpl::Run()</a>, <a class="el" href="_optimize_consecutive_reshapes_8hpp_source.xhtml#l00019">OptimizeConsecutiveReshapesImpl::Run()</a>, and <a class="el" href="_fold_pad_into_convolution2d_8hpp_source.xhtml#l00019">FoldPadIntoConvolution2dImpl::Run()</a>.</p> |
| 320 | <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> { <span class="keywordflow">return</span> m_TensorInfo; }</div></div><!-- fragment --> |
| 321 | </div> |
| 322 | </div> |
| 323 | <a id="aca366a3098776fdd06f23e9f9329721b"></a> |
| 324 | <h2 class="memtitle"><span class="permalink"><a href="#aca366a3098776fdd06f23e9f9329721b">◆ </a></span>IsTensorInfoSet()</h2> |
| 325 | |
| 326 | <div class="memitem"> |
| 327 | <div class="memproto"> |
| 328 | <table class="mlabels"> |
| 329 | <tr> |
| 330 | <td class="mlabels-left"> |
| 331 | <table class="memname"> |
| 332 | <tr> |
| 333 | <td class="memname">bool IsTensorInfoSet </td> |
| 334 | <td>(</td> |
| 335 | <td class="paramname"></td><td>)</td> |
| 336 | <td> const</td> |
| 337 | </tr> |
| 338 | </table> |
| 339 | </td> |
| 340 | <td class="mlabels-right"> |
| 341 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 342 | </tr> |
| 343 | </table> |
| 344 | </div><div class="memdoc"> |
| 345 | |
| 346 | <p>Returns true if <a class="el" href="classarmnn_1_1_output_handler.xhtml#a97db12c41024f5545ef5cc4153e5443b" title="Sets the TensorInfo used by this output handler. ">SetTensorInfo()</a> has been called at least once on this. </p> |
| 347 | |
| 348 | <p class="definition">Definition at line <a class="el" href="_output_handler_8hpp_source.xhtml#l00056">56</a> of file <a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a>.</p> |
| 349 | <div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> { <span class="keywordflow">return</span> m_bTensorInfoSet; }</div></div><!-- fragment --> |
| 350 | </div> |
| 351 | </div> |
| 352 | <a id="a714596a278cb512fb2368c9293118455"></a> |
| 353 | <h2 class="memtitle"><span class="permalink"><a href="#a714596a278cb512fb2368c9293118455">◆ </a></span>SetData()</h2> |
| 354 | |
| 355 | <div class="memitem"> |
| 356 | <div class="memproto"> |
| 357 | <table class="mlabels"> |
| 358 | <tr> |
| 359 | <td class="mlabels-left"> |
| 360 | <table class="memname"> |
| 361 | <tr> |
| 362 | <td class="memname">void SetData </td> |
| 363 | <td>(</td> |
| 364 | <td class="paramtype">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.xhtml">ITensorHandle</a> > </td> |
| 365 | <td class="paramname"><em>data</em></td><td>)</td> |
| 366 | <td></td> |
| 367 | </tr> |
| 368 | </table> |
| 369 | </td> |
| 370 | <td class="mlabels-right"> |
| 371 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 372 | </tr> |
| 373 | </table> |
| 374 | </div><div class="memdoc"> |
| 375 | |
| 376 | <p class="definition">Definition at line <a class="el" href="_output_handler_8hpp_source.xhtml#l00053">53</a> of file <a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a>.</p> |
| 377 | |
| 378 | <p class="reference">Referenced by <a class="el" href="_concat_layer_8cpp_source.xhtml#l00022">ConcatLayer::CreateWorkload()</a>.</p> |
| 379 | <div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> { m_TensorHandle = std::move(data); }</div></div><!-- fragment --> |
| 380 | </div> |
| 381 | </div> |
| 382 | <a id="a97db12c41024f5545ef5cc4153e5443b"></a> |
| 383 | <h2 class="memtitle"><span class="permalink"><a href="#a97db12c41024f5545ef5cc4153e5443b">◆ </a></span>SetTensorInfo()</h2> |
| 384 | |
| 385 | <div class="memitem"> |
| 386 | <div class="memproto"> |
| 387 | <table class="memname"> |
| 388 | <tr> |
| 389 | <td class="memname">void SetTensorInfo </td> |
| 390 | <td>(</td> |
| 391 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> & </td> |
| 392 | <td class="paramname"><em>tensorInfo</em></td><td>)</td> |
| 393 | <td></td> |
| 394 | </tr> |
| 395 | </table> |
| 396 | </div><div class="memdoc"> |
| 397 | |
| 398 | <p><ul> |
| 399 | <li>Sets the <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> used by this output handler. </li> |
| 400 | </ul> |
| 401 | </p> |
| 402 | <dl class="params"><dt>Parameters</dt><dd> |
| 403 | <table class="params"> |
| 404 | <tr><td class="paramname">tensorInfo</td><td>- <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> for the output. </td></tr> |
| 405 | </table> |
| 406 | </dd> |
| 407 | </dl> |
| 408 | |
| 409 | <p class="definition">Definition at line <a class="el" href="_output_handler_8cpp_source.xhtml#l00017">17</a> of file <a class="el" href="_output_handler_8cpp_source.xhtml">OutputHandler.cpp</a>.</p> |
| 410 | |
| 411 | <p class="reference">Referenced by <a class="el" href="_move_permute_up_tests_8cpp_source.xhtml#l00015">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00020">InputSlot::Insert()</a>, <a class="el" href="_transpose_as_reshape_8hpp_source.xhtml#l00018">TransposeAsReshapeImpl::Run()</a>, <a class="el" href="_permute_as_reshape_8hpp_source.xhtml#l00018">PermuteAsReshapeImpl::Run()</a>, <a class="el" href="_fold_pad_into_convolution2d_8hpp_source.xhtml#l00019">FoldPadIntoConvolution2dImpl::Run()</a>, <a class="el" href="_optimize_consecutive_reshapes_8hpp_source.xhtml#l00019">OptimizeConsecutiveReshapesImpl::Run()</a>, <a class="el" href="_permute_and_batch_to_space_as_depth_to_space_8hpp_source.xhtml#l00021">PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run()</a>, <a class="el" href="_move_transpose_up_8hpp_source.xhtml#l00022">MoveTransposeUpImpl::Run()</a>, and <a class="el" href="_move_permute_up_8hpp_source.xhtml#l00022">MovePermuteUpImpl::Run()</a>.</p> |
| 412 | <div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  m_TensorInfo = tensorInfo;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  m_bTensorInfoSet = <span class="keyword">true</span>;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div></div><!-- fragment --> |
| 413 | </div> |
| 414 | </div> |
| 415 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 416 | <li>src/armnn/<a class="el" href="_output_handler_8hpp_source.xhtml">OutputHandler.hpp</a></li> |
| 417 | <li>src/armnn/<a class="el" href="_output_handler_8cpp_source.xhtml">OutputHandler.cpp</a></li> |
| 418 | </ul> |
| 419 | </div><!-- contents --> |
| 420 | </div><!-- doc-content --> |
| 421 | <!-- start footer part --> |
| 422 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 423 | <ul> |
| 424 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_output_handler.xhtml">OutputHandler</a></li> |
| 425 | <li class="footer">Generated on Fri Mar 13 2020 16:09:19 for ArmNN by |
| 426 | <a href="http://www.doxygen.org/index.html"> |
| 427 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 428 | </ul> |
| 429 | </div> |
| 430 | </body> |
| 431 | </html> |