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: ClBackend 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_cl_backend.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_cl_backend-members.xhtml">List of all members</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">ClBackend Class Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | |
| 106 | <p><code>#include <<a class="el" href="_cl_backend_8hpp_source.xhtml">ClBackend.hpp</a>></code></p> |
| 107 | <div class="dynheader"> |
| 108 | Inheritance diagram for ClBackend:</div> |
| 109 | <div class="dyncontent"> |
| 110 | <div class="center"> |
| 111 | <img src="classarmnn_1_1_cl_backend.png" usemap="#ClBackend_map" alt=""/> |
| 112 | <map id="ClBackend_map" name="ClBackend_map"> |
| 113 | <area href="classarmnn_1_1_i_backend_internal.xhtml" alt="IBackendInternal" shape="rect" coords="0,56,106,80"/> |
| 114 | <area href="classarmnn_1_1_i_backend.xhtml" title="Each backend should implement an IBackend. " alt="IBackend" shape="rect" coords="0,0,106,24"/> |
| 115 | </map> |
| 116 | </div></div> |
| 117 | <table class="memberdecls"> |
| 118 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 119 | Public Member Functions</h2></td></tr> |
| 120 | <tr class="memitem:a8070dd32107b20fc94ef55710c0e2f04"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a8070dd32107b20fc94ef55710c0e2f04">ClBackend</a> ()=default</td></tr> |
| 121 | <tr class="separator:a8070dd32107b20fc94ef55710c0e2f04"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a2d10800539d28eead01057c1cc75815d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a2d10800539d28eead01057c1cc75815d">~ClBackend</a> ()=default</td></tr> |
| 123 | <tr class="separator:a2d10800539d28eead01057c1cc75815d"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a6c6c3d137a7792e264a89cc40ea94bb0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a6c6c3d137a7792e264a89cc40ea94bb0">GetId</a> () const override</td></tr> |
| 125 | <tr class="separator:a6c6c3d137a7792e264a89cc40ea94bb0"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a93fcb3bff141d8c77b53466a44b58eee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a12bff6d51d63dac1375c89bc8415dc46">IBackendInternal::IMemoryManagerUniquePtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a93fcb3bff141d8c77b53466a44b58eee">CreateMemoryManager</a> () const override</td></tr> |
| 127 | <tr class="separator:a93fcb3bff141d8c77b53466a44b58eee"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a8e19e275c8162e34e6d8d10a9245dbc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a8e19e275c8162e34e6d8d10a9245dbc9">CreateWorkloadFactory</a> (const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager=nullptr) const override</td></tr> |
| 129 | <tr class="separator:a8e19e275c8162e34e6d8d10a9245dbc9"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:aa2d432e503780e146c08729323da519a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#aa2d432e503780e146c08729323da519a">CreateWorkloadFactory</a> (<a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a> &registry) const override</td></tr> |
| 131 | <tr class="separator:aa2d432e503780e146c08729323da519a"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a63559c7f206c265f5fff5ffcc8a58e3e"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">ITensorHandleFactory::FactoryId</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a63559c7f206c265f5fff5ffcc8a58e3e">GetHandleFactoryPreferences</a> () const override</td></tr> |
| 133 | <tr class="memdesc:a63559c7f206c265f5fff5ffcc8a58e3e"><td class="mdescLeft"> </td><td class="mdescRight">(<a class="el" href="classarmnn_1_1_optional.xhtml">Optional</a>) Returns a vector of supported TensorHandleFactory ids in preference order. <a href="#a63559c7f206c265f5fff5ffcc8a58e3e">More...</a><br /></td></tr> |
| 134 | <tr class="separator:a63559c7f206c265f5fff5ffcc8a58e3e"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a531177ce89c53c6af616175b0b05e5c0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a531177ce89c53c6af616175b0b05e5c0">RegisterTensorHandleFactories</a> (<a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a> &registry) override</td></tr> |
| 136 | <tr class="memdesc:a531177ce89c53c6af616175b0b05e5c0"><td class="mdescLeft"> </td><td class="mdescRight">(<a class="el" href="classarmnn_1_1_optional.xhtml">Optional</a>) Register TensorHandleFactories Either this method or <a class="el" href="classarmnn_1_1_cl_backend.xhtml#a93fcb3bff141d8c77b53466a44b58eee">CreateMemoryManager()</a> and IWorkloadFactory::CreateTensor()/IWorkloadFactory::CreateSubtensor() methods must be implemented. <a href="#a531177ce89c53c6af616175b0b05e5c0">More...</a><br /></td></tr> |
| 137 | <tr class="separator:a531177ce89c53c6af616175b0b05e5c0"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:a801cf3170dc777aca3e6f926d1bd70a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">IBackendInternal::IBackendContextPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a801cf3170dc777aca3e6f926d1bd70a5">CreateBackendContext</a> (const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> &) const override</td></tr> |
| 139 | <tr class="memdesc:a801cf3170dc777aca3e6f926d1bd70a5"><td class="mdescLeft"> </td><td class="mdescRight">Create the runtime context of the backend. <a href="#a801cf3170dc777aca3e6f926d1bd70a5">More...</a><br /></td></tr> |
| 140 | <tr class="separator:a801cf3170dc777aca3e6f926d1bd70a5"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:a68c2ef244261cc9649799284774af132"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">IBackendInternal::IBackendProfilingContextPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a68c2ef244261cc9649799284774af132">CreateBackendProfilingContext</a> (const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> &, <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a> &backendProfiling) override</td></tr> |
| 142 | <tr class="memdesc:a68c2ef244261cc9649799284774af132"><td class="mdescLeft"> </td><td class="mdescRight">Create context specifically used for profiling interaction from backends. <a href="#a68c2ef244261cc9649799284774af132">More...</a><br /></td></tr> |
| 143 | <tr class="separator:a68c2ef244261cc9649799284774af132"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:a87acb43c72272d9db21c547d4f4996cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">IBackendInternal::Optimizations</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a87acb43c72272d9db21c547d4f4996cb">GetOptimizations</a> () const override</td></tr> |
| 145 | <tr class="separator:a87acb43c72272d9db21c547d4f4996cb"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:a93d4285a3ea5e4e3b35578484d889daa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">IBackendInternal::ILayerSupportSharedPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a93d4285a3ea5e4e3b35578484d889daa">GetLayerSupport</a> () const override</td></tr> |
| 147 | <tr class="separator:a93d4285a3ea5e4e3b35578484d889daa"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:a3c7ed3d210544740ecb3fa9c28d56c34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optimization_views.xhtml">OptimizationViews</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a3c7ed3d210544740ecb3fa9c28d56c34">OptimizeSubgraphView</a> (const <a class="el" href="classarmnn_1_1_subgraph_view.xhtml">SubgraphView</a> &subgraph) const override</td></tr> |
| 149 | <tr class="separator:a3c7ed3d210544740ecb3fa9c28d56c34"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <tr class="inherit_header pub_methods_classarmnn_1_1_i_backend_internal"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_i_backend_internal')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml">IBackendInternal</a></td></tr> |
| 151 | <tr class="memitem:a8c507c220869f89aec2dc370ea6c5a0b inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a8c507c220869f89aec2dc370ea6c5a0b">~IBackendInternal</a> () override=default</td></tr> |
| 152 | <tr class="memdesc:a8c507c220869f89aec2dc370ea6c5a0b inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="mdescLeft"> </td><td class="mdescRight">Allow backends created by the factory function to be destroyed through <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml">IBackendInternal</a>. <a href="classarmnn_1_1_i_backend_internal.xhtml#a8c507c220869f89aec2dc370ea6c5a0b">More...</a><br /></td></tr> |
| 153 | <tr class="separator:a8c507c220869f89aec2dc370ea6c5a0b inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 154 | <tr class="memitem:af0244952bb3d1d56b57736041c5a9fd3 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">virtual ISubGraphConverterPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#af0244952bb3d1d56b57736041c5a9fd3">CreateSubGraphConverter</a> (const std::shared_ptr< SubGraph > &subGraph) const</td></tr> |
| 155 | <tr class="separator:af0244952bb3d1d56b57736041c5a9fd3 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 156 | <tr class="memitem:a226207e25fec42b47bd86621f3176686 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">virtual SubGraphUniquePtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a226207e25fec42b47bd86621f3176686">OptimizeSubGraph</a> (const SubGraph &subGraph, bool &optimizationAttempted) const</td></tr> |
| 157 | <tr class="separator:a226207e25fec42b47bd86621f3176686 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | <tr class="memitem:af8f716b0eab6b9d63196d5a53d5fac81 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#af8f716b0eab6b9d63196d5a53d5fac81">SupportsTensorAllocatorAPI</a> () const</td></tr> |
| 159 | <tr class="separator:af8f716b0eab6b9d63196d5a53d5fac81 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <tr class="memitem:a6ccbb386cc96a5336a8295a3c25d33dd inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">ITensorHandleFactory::FactoryId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a6ccbb386cc96a5336a8295a3c25d33dd">GetBackwardCompatibleFavoriteHandleFactory</a> ()</td></tr> |
| 161 | <tr class="separator:a6ccbb386cc96a5336a8295a3c25d33dd inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 162 | </table><table class="memberdecls"> |
| 163 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 164 | Static Public Member Functions</h2></td></tr> |
| 165 | <tr class="memitem:a177af502214bbc8123fbb4a3c4f0a1b8"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend.xhtml#a177af502214bbc8123fbb4a3c4f0a1b8">GetIdStatic</a> ()</td></tr> |
| 166 | <tr class="separator:a177af502214bbc8123fbb4a3c4f0a1b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <tr class="inherit_header pub_static_methods_classarmnn_1_1_i_backend_internal"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classarmnn_1_1_i_backend_internal')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml">IBackendInternal</a></td></tr> |
| 168 | <tr class="memitem:a878b8f50d8a2f92ed624803e9f6968ae inherit pub_static_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a878b8f50d8a2f92ed624803e9f6968ae">GetApiVersion</a> ()</td></tr> |
| 169 | <tr class="memdesc:a878b8f50d8a2f92ed624803e9f6968ae inherit pub_static_methods_classarmnn_1_1_i_backend_internal"><td class="mdescLeft"> </td><td class="mdescRight">Returns the version of the Backend API. <a href="classarmnn_1_1_i_backend_internal.xhtml#a878b8f50d8a2f92ed624803e9f6968ae">More...</a><br /></td></tr> |
| 170 | <tr class="separator:a878b8f50d8a2f92ed624803e9f6968ae inherit pub_static_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 | </table><table class="memberdecls"> |
| 172 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 173 | Additional Inherited Members</h2></td></tr> |
| 174 | <tr class="inherit_header pub_types_classarmnn_1_1_i_backend_internal"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classarmnn_1_1_i_backend_internal')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml">IBackendInternal</a></td></tr> |
| 175 | <tr class="memitem:a72ca1cf423bda4b0a9ffb789627126de inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IWorkloadFactoryPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">IWorkloadFactory</a> ></td></tr> |
| 176 | <tr class="separator:a72ca1cf423bda4b0a9ffb789627126de inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 177 | <tr class="memitem:ada6d56575c0fe53cf23c7ae4610c6367 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">IBackendContextPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_i_backend_context.xhtml">IBackendContext</a> ></td></tr> |
| 178 | <tr class="separator:ada6d56575c0fe53cf23c7ae4610c6367 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 179 | <tr class="memitem:aaece3a614f6691da8de8c7295cb1b07f inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">IBackendProfilingContextPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.xhtml">armnn::profiling::IBackendProfilingContext</a> ></td></tr> |
| 180 | <tr class="memdesc:aaece3a614f6691da8de8c7295cb1b07f inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="mdescLeft"> </td><td class="mdescRight">This is the bridge between backend and backend profiling we'll keep it in the backend namespace. <a href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">More...</a><br /></td></tr> |
| 181 | <tr class="separator:aaece3a614f6691da8de8c7295cb1b07f inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <tr class="memitem:a34ab83489d1c5043b2b9b4a2ec13c481 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling.xhtml">armnn::profiling::IBackendProfiling</a> ></td></tr> |
| 183 | <tr class="separator:a34ab83489d1c5043b2b9b4a2ec13c481 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:a621bdb49c4a2f879b27d27e771693a46 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a621bdb49c4a2f879b27d27e771693a46">OptimizationPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_optimization.xhtml">Optimization</a> ></td></tr> |
| 185 | <tr class="separator:a621bdb49c4a2f879b27d27e771693a46 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <tr class="memitem:ad1794808004025d6e06c176507197b24 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">Optimizations</a> = std::vector< <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a621bdb49c4a2f879b27d27e771693a46">OptimizationPtr</a> ></td></tr> |
| 187 | <tr class="separator:ad1794808004025d6e06c176507197b24 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <tr class="memitem:a11fa919c11fe46aad613b2e960fcfe90 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">ILayerSupportSharedPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1_i_layer_support.xhtml">ILayerSupport</a> ></td></tr> |
| 189 | <tr class="separator:a11fa919c11fe46aad613b2e960fcfe90 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:a12bff6d51d63dac1375c89bc8415dc46 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a12bff6d51d63dac1375c89bc8415dc46">IMemoryManagerUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_i_memory_manager.xhtml">IMemoryManager</a> ></td></tr> |
| 191 | <tr class="separator:a12bff6d51d63dac1375c89bc8415dc46 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:a693b40e6b94e958836aeb0410ca186bd inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">IMemoryManagerSharedPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1_i_memory_manager.xhtml">IMemoryManager</a> ></td></tr> |
| 193 | <tr class="separator:a693b40e6b94e958836aeb0410ca186bd inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:a5d9d4ef183078690e3306320dc74b945 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a5d9d4ef183078690e3306320dc74b945">GraphUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_graph.xhtml">Graph</a> ></td></tr> |
| 195 | <tr class="separator:a5d9d4ef183078690e3306320dc74b945 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="memitem:a25114a92f06d5d0a915111d97c7c4d7a inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a25114a92f06d5d0a915111d97c7c4d7a">SubgraphViewUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_subgraph_view.xhtml">SubgraphView</a> ></td></tr> |
| 197 | <tr class="separator:a25114a92f06d5d0a915111d97c7c4d7a inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | <tr class="memitem:a928c74de863a45a07986816d7c9ad68a inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a928c74de863a45a07986816d7c9ad68a">supported</a> = std::unique_ptr< ISubGraphConverter ></td></tr> |
| 199 | <tr class="separator:a928c74de863a45a07986816d7c9ad68a inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 200 | <tr class="memitem:afe076d3d98038ede095765ae6ee294ac inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#afe076d3d98038ede095765ae6ee294ac">instead</a> = std::unique_ptr< SubGraph ></td></tr> |
| 201 | <tr class="separator:afe076d3d98038ede095765ae6ee294ac inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 202 | <tr class="inherit_header pro_methods_classarmnn_1_1_i_backend_internal"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_backend_internal')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml">IBackendInternal</a></td></tr> |
| 203 | <tr class="memitem:a675fed08e681be4343fb09ae73eb7641 inherit pro_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a675fed08e681be4343fb09ae73eb7641">IBackendInternal</a> ()=default</td></tr> |
| 204 | <tr class="memdesc:a675fed08e681be4343fb09ae73eb7641 inherit pro_methods_classarmnn_1_1_i_backend_internal"><td class="mdescLeft"> </td><td class="mdescRight">Creation must be done through a specific backend interface. <a href="classarmnn_1_1_i_backend_internal.xhtml#a675fed08e681be4343fb09ae73eb7641">More...</a><br /></td></tr> |
| 205 | <tr class="separator:a675fed08e681be4343fb09ae73eb7641 inherit pro_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 206 | <tr class="inherit_header pro_methods_classarmnn_1_1_i_backend"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_backend')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_backend.xhtml">IBackend</a></td></tr> |
| 207 | <tr class="memitem:a7cfc55eae265fa65b7d25e7dd3203f22 inherit pro_methods_classarmnn_1_1_i_backend"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend.xhtml#a7cfc55eae265fa65b7d25e7dd3203f22">IBackend</a> ()</td></tr> |
| 208 | <tr class="separator:a7cfc55eae265fa65b7d25e7dd3203f22 inherit pro_methods_classarmnn_1_1_i_backend"><td class="memSeparator" colspan="2"> </td></tr> |
| 209 | <tr class="memitem:aa73289e0503a4f7ec5909e117a57aa2b inherit pro_methods_classarmnn_1_1_i_backend"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend.xhtml#aa73289e0503a4f7ec5909e117a57aa2b">~IBackend</a> ()</td></tr> |
| 210 | <tr class="separator:aa73289e0503a4f7ec5909e117a57aa2b inherit pro_methods_classarmnn_1_1_i_backend"><td class="memSeparator" colspan="2"> </td></tr> |
| 211 | </table> |
| 212 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 213 | <div class="textblock"> |
| 214 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8hpp_source.xhtml#l00012">12</a> of file <a class="el" href="_cl_backend_8hpp_source.xhtml">ClBackend.hpp</a>.</p> |
| 215 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 216 | <a id="a8070dd32107b20fc94ef55710c0e2f04"></a> |
| 217 | <h2 class="memtitle"><span class="permalink"><a href="#a8070dd32107b20fc94ef55710c0e2f04">◆ </a></span>ClBackend()</h2> |
| 218 | |
| 219 | <div class="memitem"> |
| 220 | <div class="memproto"> |
| 221 | <table class="mlabels"> |
| 222 | <tr> |
| 223 | <td class="mlabels-left"> |
| 224 | <table class="memname"> |
| 225 | <tr> |
| 226 | <td class="memname"><a class="el" href="classarmnn_1_1_cl_backend.xhtml">ClBackend</a> </td> |
| 227 | <td>(</td> |
| 228 | <td class="paramname"></td><td>)</td> |
| 229 | <td></td> |
| 230 | </tr> |
| 231 | </table> |
| 232 | </td> |
| 233 | <td class="mlabels-right"> |
| 234 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 235 | </tr> |
| 236 | </table> |
| 237 | </div><div class="memdoc"> |
| 238 | |
| 239 | </div> |
| 240 | </div> |
| 241 | <a id="a2d10800539d28eead01057c1cc75815d"></a> |
| 242 | <h2 class="memtitle"><span class="permalink"><a href="#a2d10800539d28eead01057c1cc75815d">◆ </a></span>~ClBackend()</h2> |
| 243 | |
| 244 | <div class="memitem"> |
| 245 | <div class="memproto"> |
| 246 | <table class="mlabels"> |
| 247 | <tr> |
| 248 | <td class="mlabels-left"> |
| 249 | <table class="memname"> |
| 250 | <tr> |
| 251 | <td class="memname">~<a class="el" href="classarmnn_1_1_cl_backend.xhtml">ClBackend</a> </td> |
| 252 | <td>(</td> |
| 253 | <td class="paramname"></td><td>)</td> |
| 254 | <td></td> |
| 255 | </tr> |
| 256 | </table> |
| 257 | </td> |
| 258 | <td class="mlabels-right"> |
| 259 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 260 | </tr> |
| 261 | </table> |
| 262 | </div><div class="memdoc"> |
| 263 | |
| 264 | </div> |
| 265 | </div> |
| 266 | <h2 class="groupheader">Member Function Documentation</h2> |
| 267 | <a id="a801cf3170dc777aca3e6f926d1bd70a5"></a> |
| 268 | <h2 class="memtitle"><span class="permalink"><a href="#a801cf3170dc777aca3e6f926d1bd70a5">◆ </a></span>CreateBackendContext()</h2> |
| 269 | |
| 270 | <div class="memitem"> |
| 271 | <div class="memproto"> |
| 272 | <table class="mlabels"> |
| 273 | <tr> |
| 274 | <td class="mlabels-left"> |
| 275 | <table class="memname"> |
| 276 | <tr> |
| 277 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">IBackendInternal::IBackendContextPtr</a> CreateBackendContext </td> |
| 278 | <td>(</td> |
| 279 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> & </td> |
| 280 | <td class="paramname"></td><td>)</td> |
| 281 | <td> const</td> |
| 282 | </tr> |
| 283 | </table> |
| 284 | </td> |
| 285 | <td class="mlabels-right"> |
| 286 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 287 | </tr> |
| 288 | </table> |
| 289 | </div><div class="memdoc"> |
| 290 | |
| 291 | <p>Create the runtime context of the backend. </p> |
| 292 | <p>Implementations may return a default-constructed IBackendContextPtr if no context is needed at runtime. Implementations must throw <a class="el" href="classarmnn_1_1_backend_unavailable_exception.xhtml" title="Class for non-fatal exceptions raised while initialising a backend. ">BackendUnavailableException</a> if the backend cannot be used (for example, necessary accelerator hardware is not present). The default implementation always returns a default-constructed pointer. </p> |
| 293 | |
| 294 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a07a1b3f9ac897364b5c2aacc227cbebc">IBackendInternal</a>.</p> |
| 295 | |
| 296 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00072">72</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 297 | |
| 298 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 299 | <div class="fragment"><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">IBackendContextPtr</a>{<span class="keyword">new</span> ClBackendContext{<a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>}};</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div><div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 300 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_ada6d56575c0fe53cf23c7ae4610c6367"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">armnn::IBackendInternal::IBackendContextPtr</a></div><div class="ttdeci">std::unique_ptr< IBackendContext > IBackendContextPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00081">IBackendInternal.hpp:81</a></div></div> |
| 301 | </div><!-- fragment --> |
| 302 | </div> |
| 303 | </div> |
| 304 | <a id="a68c2ef244261cc9649799284774af132"></a> |
| 305 | <h2 class="memtitle"><span class="permalink"><a href="#a68c2ef244261cc9649799284774af132">◆ </a></span>CreateBackendProfilingContext()</h2> |
| 306 | |
| 307 | <div class="memitem"> |
| 308 | <div class="memproto"> |
| 309 | <table class="mlabels"> |
| 310 | <tr> |
| 311 | <td class="mlabels-left"> |
| 312 | <table class="memname"> |
| 313 | <tr> |
| 314 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">IBackendInternal::IBackendProfilingContextPtr</a> CreateBackendProfilingContext </td> |
| 315 | <td>(</td> |
| 316 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> & </td> |
| 317 | <td class="paramname"><em>creationOptions</em>, </td> |
| 318 | </tr> |
| 319 | <tr> |
| 320 | <td class="paramkey"></td> |
| 321 | <td></td> |
| 322 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a> & </td> |
| 323 | <td class="paramname"><em>backendProfiling</em> </td> |
| 324 | </tr> |
| 325 | <tr> |
| 326 | <td></td> |
| 327 | <td>)</td> |
| 328 | <td></td><td></td> |
| 329 | </tr> |
| 330 | </table> |
| 331 | </td> |
| 332 | <td class="mlabels-right"> |
| 333 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 334 | </tr> |
| 335 | </table> |
| 336 | </div><div class="memdoc"> |
| 337 | |
| 338 | <p>Create context specifically used for profiling interaction from backends. </p> |
| 339 | |
| 340 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a6c5064ef6323af5c547674d01b15d7ab">IBackendInternal</a>.</p> |
| 341 | |
| 342 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00077">77</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 343 | |
| 344 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 345 | <div class="fragment"><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">IBackendProfilingContextPtr</a>{};</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_aaece3a614f6691da8de8c7295cb1b07f"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">armnn::IBackendInternal::IBackendProfilingContextPtr</a></div><div class="ttdeci">std::shared_ptr< armnn::profiling::IBackendProfilingContext > IBackendProfilingContextPtr</div><div class="ttdoc">This is the bridge between backend and backend profiling we&#39;ll keep it in the backend namespace...</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00083">IBackendInternal.hpp:83</a></div></div> |
| 346 | </div><!-- fragment --> |
| 347 | </div> |
| 348 | </div> |
| 349 | <a id="a93fcb3bff141d8c77b53466a44b58eee"></a> |
| 350 | <h2 class="memtitle"><span class="permalink"><a href="#a93fcb3bff141d8c77b53466a44b58eee">◆ </a></span>CreateMemoryManager()</h2> |
| 351 | |
| 352 | <div class="memitem"> |
| 353 | <div class="memproto"> |
| 354 | <table class="mlabels"> |
| 355 | <tr> |
| 356 | <td class="mlabels-left"> |
| 357 | <table class="memname"> |
| 358 | <tr> |
| 359 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a12bff6d51d63dac1375c89bc8415dc46">IBackendInternal::IMemoryManagerUniquePtr</a> CreateMemoryManager </td> |
| 360 | <td>(</td> |
| 361 | <td class="paramname"></td><td>)</td> |
| 362 | <td> const</td> |
| 363 | </tr> |
| 364 | </table> |
| 365 | </td> |
| 366 | <td class="mlabels-right"> |
| 367 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 368 | </tr> |
| 369 | </table> |
| 370 | </div><div class="memdoc"> |
| 371 | |
| 372 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a0e8cb8533d1d0b2cb93f926dac11dd16">IBackendInternal</a>.</p> |
| 373 | |
| 374 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00035">35</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 375 | |
| 376 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 377 | <div class="fragment"><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>  <span class="keywordflow">return</span> std::make_unique<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> }</div></div><!-- fragment --> |
| 378 | </div> |
| 379 | </div> |
| 380 | <a id="a8e19e275c8162e34e6d8d10a9245dbc9"></a> |
| 381 | <h2 class="memtitle"><span class="permalink"><a href="#a8e19e275c8162e34e6d8d10a9245dbc9">◆ </a></span>CreateWorkloadFactory() <span class="overload">[1/2]</span></h2> |
| 382 | |
| 383 | <div class="memitem"> |
| 384 | <div class="memproto"> |
| 385 | <table class="mlabels"> |
| 386 | <tr> |
| 387 | <td class="mlabels-left"> |
| 388 | <table class="memname"> |
| 389 | <tr> |
| 390 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> CreateWorkloadFactory </td> |
| 391 | <td>(</td> |
| 392 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 393 | <td class="paramname"><em>memoryManager</em> = <code>nullptr</code></td><td>)</td> |
| 394 | <td> const</td> |
| 395 | </tr> |
| 396 | </table> |
| 397 | </td> |
| 398 | <td class="mlabels-right"> |
| 399 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 400 | </tr> |
| 401 | </table> |
| 402 | </div><div class="memdoc"> |
| 403 | |
| 404 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#afd5a5e90515b31c0174f76ec8897e9b1">IBackendInternal</a>.</p> |
| 405 | |
| 406 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00040">40</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 407 | |
| 408 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 409 | <div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> std::make_unique<ClWorkloadFactory>(</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  boost::polymorphic_pointer_downcast<ClMemoryManager>(memoryManager));</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div></div><!-- fragment --> |
| 410 | </div> |
| 411 | </div> |
| 412 | <a id="aa2d432e503780e146c08729323da519a"></a> |
| 413 | <h2 class="memtitle"><span class="permalink"><a href="#aa2d432e503780e146c08729323da519a">◆ </a></span>CreateWorkloadFactory() <span class="overload">[2/2]</span></h2> |
| 414 | |
| 415 | <div class="memitem"> |
| 416 | <div class="memproto"> |
| 417 | <table class="mlabels"> |
| 418 | <tr> |
| 419 | <td class="mlabels-left"> |
| 420 | <table class="memname"> |
| 421 | <tr> |
| 422 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> CreateWorkloadFactory </td> |
| 423 | <td>(</td> |
| 424 | <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a> & </td> |
| 425 | <td class="paramname"><em>registry</em></td><td>)</td> |
| 426 | <td> const</td> |
| 427 | </tr> |
| 428 | </table> |
| 429 | </td> |
| 430 | <td class="mlabels-right"> |
| 431 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 432 | </tr> |
| 433 | </table> |
| 434 | </div><div class="memdoc"> |
| 435 | |
| 436 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a41c5c170ef6708c1efc683d900f624ff">IBackendInternal</a>.</p> |
| 437 | |
| 438 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00047">47</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 439 | |
| 440 | <p class="reference">References <a class="el" href="_tensor_handle_factory_registry_8cpp_source.xhtml#l00034">TensorHandleFactoryRegistry::RegisterMemoryManager()</a>.</p> |
| 441 | <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="keyword">auto</span> memoryManager = std::make_shared<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  registry.RegisterMemoryManager(memoryManager);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> std::make_unique<ClWorkloadFactory>(</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  boost::polymorphic_pointer_downcast<ClMemoryManager>(memoryManager));</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div></div><!-- fragment --> |
| 442 | </div> |
| 443 | </div> |
| 444 | <a id="a63559c7f206c265f5fff5ffcc8a58e3e"></a> |
| 445 | <h2 class="memtitle"><span class="permalink"><a href="#a63559c7f206c265f5fff5ffcc8a58e3e">◆ </a></span>GetHandleFactoryPreferences()</h2> |
| 446 | |
| 447 | <div class="memitem"> |
| 448 | <div class="memproto"> |
| 449 | <table class="mlabels"> |
| 450 | <tr> |
| 451 | <td class="mlabels-left"> |
| 452 | <table class="memname"> |
| 453 | <tr> |
| 454 | <td class="memname">std::vector< <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.xhtml#a32f4aa6a7089d877af08928139c2c277">ITensorHandleFactory::FactoryId</a> > GetHandleFactoryPreferences </td> |
| 455 | <td>(</td> |
| 456 | <td class="paramname"></td><td>)</td> |
| 457 | <td> const</td> |
| 458 | </tr> |
| 459 | </table> |
| 460 | </td> |
| 461 | <td class="mlabels-right"> |
| 462 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 463 | </tr> |
| 464 | </table> |
| 465 | </div><div class="memdoc"> |
| 466 | |
| 467 | <p>(<a class="el" href="classarmnn_1_1_optional.xhtml">Optional</a>) Returns a vector of supported TensorHandleFactory ids in preference order. </p> |
| 468 | |
| 469 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ac5d107c5672f446603b6e6b92bce6244">IBackendInternal</a>.</p> |
| 470 | |
| 471 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00058">58</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 472 | |
| 473 | <p class="reference">References <a class="el" href="_cl_tensor_handle_factory_8cpp_source.xhtml#l00082">ClTensorHandleFactory::GetIdStatic()</a>.</p> |
| 474 | |
| 475 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 476 | <div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> std::vector<ITensorHandleFactory::FactoryId> {<a class="code" href="classarmnn_1_1_cl_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">ClTensorHandleFactory::GetIdStatic</a>()};</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> }</div><div class="ttc" id="classarmnn_1_1_cl_tensor_handle_factory_xhtml_acdecb5b442434112c2cc8fc48c0ea922"><div class="ttname"><a href="classarmnn_1_1_cl_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">armnn::ClTensorHandleFactory::GetIdStatic</a></div><div class="ttdeci">static const FactoryId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_cl_tensor_handle_factory_8cpp_source.xhtml#l00082">ClTensorHandleFactory.cpp:82</a></div></div> |
| 477 | </div><!-- fragment --> |
| 478 | </div> |
| 479 | </div> |
| 480 | <a id="a6c6c3d137a7792e264a89cc40ea94bb0"></a> |
| 481 | <h2 class="memtitle"><span class="permalink"><a href="#a6c6c3d137a7792e264a89cc40ea94bb0">◆ </a></span>GetId()</h2> |
| 482 | |
| 483 | <div class="memitem"> |
| 484 | <div class="memproto"> |
| 485 | <table class="mlabels"> |
| 486 | <tr> |
| 487 | <td class="mlabels-left"> |
| 488 | <table class="memname"> |
| 489 | <tr> |
| 490 | <td class="memname">const <a class="el" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& GetId </td> |
| 491 | <td>(</td> |
| 492 | <td class="paramname"></td><td>)</td> |
| 493 | <td> const</td> |
| 494 | </tr> |
| 495 | </table> |
| 496 | </td> |
| 497 | <td class="mlabels-right"> |
| 498 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 499 | </tr> |
| 500 | </table> |
| 501 | </div><div class="memdoc"> |
| 502 | |
| 503 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend.xhtml#aa9fc23b7155bd678232eeb351059b748">IBackend</a>.</p> |
| 504 | |
| 505 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">19</a> of file <a class="el" href="_cl_backend_8hpp_source.xhtml">ClBackend.hpp</a>.</p> |
| 506 | |
| 507 | <p class="reference">References <a class="el" href="_cl_backend_8cpp_source.xhtml#l00072">ClBackend::CreateBackendContext()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00077">ClBackend::CreateBackendProfilingContext()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00035">ClBackend::CreateMemoryManager()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00040">ClBackend::CreateWorkloadFactory()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00058">ClBackend::GetHandleFactoryPreferences()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00029">ClBackend::GetIdStatic()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00088">ClBackend::GetLayerSupport()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00083">ClBackend::GetOptimizations()</a>, <a class="el" href="_cl_backend_8cpp_source.xhtml#l00094">ClBackend::OptimizeSubgraphView()</a>, and <a class="el" href="_cl_backend_8cpp_source.xhtml#l00063">ClBackend::RegisterTensorHandleFactories()</a>.</p> |
| 508 | <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> { <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a177af502214bbc8123fbb4a3c4f0a1b8">GetIdStatic</a>(); }</div><div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a177af502214bbc8123fbb4a3c4f0a1b8"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a177af502214bbc8123fbb4a3c4f0a1b8">armnn::ClBackend::GetIdStatic</a></div><div class="ttdeci">static const BackendId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00029">ClBackend.cpp:29</a></div></div> |
| 509 | </div><!-- fragment --> |
| 510 | </div> |
| 511 | </div> |
| 512 | <a id="a177af502214bbc8123fbb4a3c4f0a1b8"></a> |
| 513 | <h2 class="memtitle"><span class="permalink"><a href="#a177af502214bbc8123fbb4a3c4f0a1b8">◆ </a></span>GetIdStatic()</h2> |
| 514 | |
| 515 | <div class="memitem"> |
| 516 | <div class="memproto"> |
| 517 | <table class="mlabels"> |
| 518 | <tr> |
| 519 | <td class="mlabels-left"> |
| 520 | <table class="memname"> |
| 521 | <tr> |
| 522 | <td class="memname">const <a class="el" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> & GetIdStatic </td> |
| 523 | <td>(</td> |
| 524 | <td class="paramname"></td><td>)</td> |
| 525 | <td></td> |
| 526 | </tr> |
| 527 | </table> |
| 528 | </td> |
| 529 | <td class="mlabels-right"> |
| 530 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 531 | </tr> |
| 532 | </table> |
| 533 | </div><div class="memdoc"> |
| 534 | |
| 535 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00029">29</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 536 | |
| 537 | <p class="reference">References <a class="el" href="_cl_backend_id_8hpp_source.xhtml#l00010">armnn::ClBackendId()</a>.</p> |
| 538 | |
| 539 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 540 | <div class="fragment"><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>  <span class="keyword">static</span> <span class="keyword">const</span> BackendId s_Id{<a class="code" href="namespacearmnn.xhtml#adfe10e7086e3e3b98927cf84aee03dd0">ClBackendId</a>()};</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> s_Id;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div><div class="ttc" id="namespacearmnn_xhtml_adfe10e7086e3e3b98927cf84aee03dd0"><div class="ttname"><a href="namespacearmnn.xhtml#adfe10e7086e3e3b98927cf84aee03dd0">armnn::ClBackendId</a></div><div class="ttdeci">constexpr const char * ClBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_id_8hpp_source.xhtml#l00010">ClBackendId.hpp:10</a></div></div> |
| 541 | </div><!-- fragment --> |
| 542 | </div> |
| 543 | </div> |
| 544 | <a id="a93d4285a3ea5e4e3b35578484d889daa"></a> |
| 545 | <h2 class="memtitle"><span class="permalink"><a href="#a93d4285a3ea5e4e3b35578484d889daa">◆ </a></span>GetLayerSupport()</h2> |
| 546 | |
| 547 | <div class="memitem"> |
| 548 | <div class="memproto"> |
| 549 | <table class="mlabels"> |
| 550 | <tr> |
| 551 | <td class="mlabels-left"> |
| 552 | <table class="memname"> |
| 553 | <tr> |
| 554 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">IBackendInternal::ILayerSupportSharedPtr</a> GetLayerSupport </td> |
| 555 | <td>(</td> |
| 556 | <td class="paramname"></td><td>)</td> |
| 557 | <td> const</td> |
| 558 | </tr> |
| 559 | </table> |
| 560 | </td> |
| 561 | <td class="mlabels-right"> |
| 562 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 563 | </tr> |
| 564 | </table> |
| 565 | </div><div class="memdoc"> |
| 566 | |
| 567 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ad86597efa7c25997572c80dc29f3104a">IBackendInternal</a>.</p> |
| 568 | |
| 569 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00088">88</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 570 | |
| 571 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 572 | <div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">static</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">ILayerSupportSharedPtr</a> layerSupport{<span class="keyword">new</span> ClLayerSupport};</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> layerSupport;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a11fa919c11fe46aad613b2e960fcfe90"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">armnn::IBackendInternal::ILayerSupportSharedPtr</a></div><div class="ttdeci">std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00087">IBackendInternal.hpp:87</a></div></div> |
| 573 | </div><!-- fragment --> |
| 574 | </div> |
| 575 | </div> |
| 576 | <a id="a87acb43c72272d9db21c547d4f4996cb"></a> |
| 577 | <h2 class="memtitle"><span class="permalink"><a href="#a87acb43c72272d9db21c547d4f4996cb">◆ </a></span>GetOptimizations()</h2> |
| 578 | |
| 579 | <div class="memitem"> |
| 580 | <div class="memproto"> |
| 581 | <table class="mlabels"> |
| 582 | <tr> |
| 583 | <td class="mlabels-left"> |
| 584 | <table class="memname"> |
| 585 | <tr> |
| 586 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">IBackendInternal::Optimizations</a> GetOptimizations </td> |
| 587 | <td>(</td> |
| 588 | <td class="paramname"></td><td>)</td> |
| 589 | <td> const</td> |
| 590 | </tr> |
| 591 | </table> |
| 592 | </td> |
| 593 | <td class="mlabels-right"> |
| 594 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 595 | </tr> |
| 596 | </table> |
| 597 | </div><div class="memdoc"> |
| 598 | |
| 599 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#ad870e6e2951ea3693d9f89a7bf77d695">IBackendInternal</a>.</p> |
| 600 | |
| 601 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00083">83</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 602 | |
| 603 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 604 | <div class="fragment"><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">Optimizations</a>{};</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_ad1794808004025d6e06c176507197b24"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">armnn::IBackendInternal::Optimizations</a></div><div class="ttdeci">std::vector< OptimizationPtr > Optimizations</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00086">IBackendInternal.hpp:86</a></div></div> |
| 605 | </div><!-- fragment --> |
| 606 | </div> |
| 607 | </div> |
| 608 | <a id="a3c7ed3d210544740ecb3fa9c28d56c34"></a> |
| 609 | <h2 class="memtitle"><span class="permalink"><a href="#a3c7ed3d210544740ecb3fa9c28d56c34">◆ </a></span>OptimizeSubgraphView()</h2> |
| 610 | |
| 611 | <div class="memitem"> |
| 612 | <div class="memproto"> |
| 613 | <table class="mlabels"> |
| 614 | <tr> |
| 615 | <td class="mlabels-left"> |
| 616 | <table class="memname"> |
| 617 | <tr> |
| 618 | <td class="memname"><a class="el" href="classarmnn_1_1_optimization_views.xhtml">OptimizationViews</a> OptimizeSubgraphView </td> |
| 619 | <td>(</td> |
| 620 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_subgraph_view.xhtml">SubgraphView</a> & </td> |
| 621 | <td class="paramname"><em>subgraph</em></td><td>)</td> |
| 622 | <td> const</td> |
| 623 | </tr> |
| 624 | </table> |
| 625 | </td> |
| 626 | <td class="mlabels-right"> |
| 627 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 628 | </tr> |
| 629 | </table> |
| 630 | </div><div class="memdoc"> |
| 631 | |
| 632 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a674f56c735a3d6300463cefb642f808a">IBackendInternal</a>.</p> |
| 633 | |
| 634 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00094">94</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 635 | |
| 636 | <p class="reference">References <a class="el" href="include_2armnn_2backends_2_optimization_views_8hpp_source.xhtml#l00044">OptimizationViews::AddUntouchedSubgraph()</a>.</p> |
| 637 | |
| 638 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 639 | <div class="fragment"><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  OptimizationViews optimizationViews;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  optimizationViews.AddUntouchedSubgraph(SubgraphView(subgraph));</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> optimizationViews;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div></div><!-- fragment --> |
| 640 | </div> |
| 641 | </div> |
| 642 | <a id="a531177ce89c53c6af616175b0b05e5c0"></a> |
| 643 | <h2 class="memtitle"><span class="permalink"><a href="#a531177ce89c53c6af616175b0b05e5c0">◆ </a></span>RegisterTensorHandleFactories()</h2> |
| 644 | |
| 645 | <div class="memitem"> |
| 646 | <div class="memproto"> |
| 647 | <table class="mlabels"> |
| 648 | <tr> |
| 649 | <td class="mlabels-left"> |
| 650 | <table class="memname"> |
| 651 | <tr> |
| 652 | <td class="memname">void RegisterTensorHandleFactories </td> |
| 653 | <td>(</td> |
| 654 | <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a> & </td> |
| 655 | <td class="paramname"></td><td>)</td> |
| 656 | <td></td> |
| 657 | </tr> |
| 658 | </table> |
| 659 | </td> |
| 660 | <td class="mlabels-right"> |
| 661 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 662 | </tr> |
| 663 | </table> |
| 664 | </div><div class="memdoc"> |
| 665 | |
| 666 | <p>(<a class="el" href="classarmnn_1_1_optional.xhtml">Optional</a>) Register TensorHandleFactories Either this method or <a class="el" href="classarmnn_1_1_cl_backend.xhtml#a93fcb3bff141d8c77b53466a44b58eee">CreateMemoryManager()</a> and IWorkloadFactory::CreateTensor()/IWorkloadFactory::CreateSubtensor() methods must be implemented. </p> |
| 667 | |
| 668 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a517bc1a44d6d2d7a45c1847fba287135">IBackendInternal</a>.</p> |
| 669 | |
| 670 | <p class="definition">Definition at line <a class="el" href="_cl_backend_8cpp_source.xhtml#l00063">63</a> of file <a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a>.</p> |
| 671 | |
| 672 | <p class="reference">References <a class="el" href="_tensor_handle_factory_registry_8cpp_source.xhtml#l00012">TensorHandleFactoryRegistry::RegisterFactory()</a>, and <a class="el" href="_tensor_handle_factory_registry_8cpp_source.xhtml#l00034">TensorHandleFactoryRegistry::RegisterMemoryManager()</a>.</p> |
| 673 | |
| 674 | <p class="reference">Referenced by <a class="el" href="_cl_backend_8hpp_source.xhtml#l00019">ClBackend::GetId()</a>.</p> |
| 675 | <div class="fragment"><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="keyword">auto</span> mgr = std::make_shared<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  registry.RegisterMemoryManager(mgr);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  registry.RegisterFactory(std::make_unique<ClTensorHandleFactory>(mgr));</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> }</div></div><!-- fragment --> |
| 676 | </div> |
| 677 | </div> |
| 678 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 679 | <li>src/backends/cl/<a class="el" href="_cl_backend_8hpp_source.xhtml">ClBackend.hpp</a></li> |
| 680 | <li>src/backends/cl/<a class="el" href="_cl_backend_8cpp_source.xhtml">ClBackend.cpp</a></li> |
| 681 | </ul> |
| 682 | </div><!-- contents --> |
| 683 | </div><!-- doc-content --> |
| 684 | <!-- start footer part --> |
| 685 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 686 | <ul> |
| 687 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_cl_backend.xhtml">ClBackend</a></li> |
| 688 | <li class="footer">Generated on Fri Mar 13 2020 16:09:17 for ArmNN by |
| 689 | <a href="http://www.doxygen.org/index.html"> |
| 690 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 691 | </ul> |
| 692 | </div> |
| 693 | </body> |
| 694 | </html> |