Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: MockBackend Class Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_1_1_mock_backend.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="#pub-static-methods">Static Public Member Functions</a> | |
| 86 | <a href="classarmnn_1_1_mock_backend-members.html">List of all members</a> </div> |
| 87 | <div class="headertitle"> |
| 88 | <div class="title">MockBackend Class Reference</div> </div> |
| 89 | </div><!--header--> |
| 90 | <div class="contents"> |
| 91 | |
| 92 | <p><code>#include <<a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>></code></p> |
| 93 | <div class="dynheader"> |
| 94 | Inheritance diagram for MockBackend:</div> |
| 95 | <div class="dyncontent"> |
| 96 | <div class="center"> |
| 97 | <img src="classarmnn_1_1_mock_backend.png" usemap="#MockBackend_map" alt=""/> |
| 98 | <map id="MockBackend_map" name="MockBackend_map"> |
| 99 | <area href="classarmnn_1_1_i_backend_internal.html" alt="IBackendInternal" shape="rect" coords="0,56,106,80"/> |
| 100 | <area href="classarmnn_1_1_i_backend.html" title="Each backend should implement an IBackend. " alt="IBackend" shape="rect" coords="0,0,106,24"/> |
| 101 | </map> |
| 102 | </div></div> |
| 103 | <table class="memberdecls"> |
| 104 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 105 | Public Member Functions</h2></td></tr> |
| 106 | <tr class="memitem:aa14555710b0db5c5752595415504511a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#aa14555710b0db5c5752595415504511a">MockBackend</a> ()=default</td></tr> |
| 107 | <tr class="separator:aa14555710b0db5c5752595415504511a"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a2904536c70c0959cc462089d4c51cd88"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a2904536c70c0959cc462089d4c51cd88">~MockBackend</a> ()=default</td></tr> |
| 109 | <tr class="separator:a2904536c70c0959cc462089d4c51cd88"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a6c6c3d137a7792e264a89cc40ea94bb0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a6c6c3d137a7792e264a89cc40ea94bb0">GetId</a> () const override</td></tr> |
| 111 | <tr class="separator:a6c6c3d137a7792e264a89cc40ea94bb0"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a93fcb3bff141d8c77b53466a44b58eee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">IBackendInternal::IMemoryManagerUniquePtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a93fcb3bff141d8c77b53466a44b58eee">CreateMemoryManager</a> () const override</td></tr> |
| 113 | <tr class="separator:a93fcb3bff141d8c77b53466a44b58eee"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a8e19e275c8162e34e6d8d10a9245dbc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a8e19e275c8162e34e6d8d10a9245dbc9">CreateWorkloadFactory</a> (const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager=nullptr) const override</td></tr> |
| 115 | <tr class="separator:a8e19e275c8162e34e6d8d10a9245dbc9"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a801cf3170dc777aca3e6f926d1bd70a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#ada6d56575c0fe53cf23c7ae4610c6367">IBackendInternal::IBackendContextPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a801cf3170dc777aca3e6f926d1bd70a5">CreateBackendContext</a> (const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a> &) const override</td></tr> |
| 117 | <tr class="separator:a801cf3170dc777aca3e6f926d1bd70a5"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:ac2480fbc4ae790e2e64f55d78b7f31a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#aaece3a614f6691da8de8c7295cb1b07f">IBackendInternal::IBackendProfilingContextPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#ac2480fbc4ae790e2e64f55d78b7f31a0">CreateBackendProfilingContext</a> (const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a> &creationOptions, <a class="el" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a> &backendProfiling) override</td></tr> |
| 119 | <tr class="memdesc:ac2480fbc4ae790e2e64f55d78b7f31a0"><td class="mdescLeft"> </td><td class="mdescRight">Create context specifically used for profiling interaction from backends. <a href="#ac2480fbc4ae790e2e64f55d78b7f31a0">More...</a><br /></td></tr> |
| 120 | <tr class="separator:ac2480fbc4ae790e2e64f55d78b7f31a0"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a87acb43c72272d9db21c547d4f4996cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#ad1794808004025d6e06c176507197b24">IBackendInternal::Optimizations</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a87acb43c72272d9db21c547d4f4996cb">GetOptimizations</a> () const override</td></tr> |
| 122 | <tr class="separator:a87acb43c72272d9db21c547d4f4996cb"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a93d4285a3ea5e4e3b35578484d889daa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a11fa919c11fe46aad613b2e960fcfe90">IBackendInternal::ILayerSupportSharedPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a93d4285a3ea5e4e3b35578484d889daa">GetLayerSupport</a> () const override</td></tr> |
| 124 | <tr class="separator:a93d4285a3ea5e4e3b35578484d889daa"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a3c7ed3d210544740ecb3fa9c28d56c34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optimization_views.html">OptimizationViews</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a3c7ed3d210544740ecb3fa9c28d56c34">OptimizeSubgraphView</a> (const <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> &subgraph) const override</td></tr> |
| 126 | <tr class="separator:a3c7ed3d210544740ecb3fa9c28d56c34"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <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.html">IBackendInternal</a></td></tr> |
| 128 | <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.html#a8c507c220869f89aec2dc370ea6c5a0b">~IBackendInternal</a> () override=default</td></tr> |
| 129 | <tr class="separator:a8c507c220869f89aec2dc370ea6c5a0b inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <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.html#af0244952bb3d1d56b57736041c5a9fd3">CreateSubGraphConverter</a> (const std::shared_ptr< SubGraph > &subGraph) const</td></tr> |
| 131 | <tr class="separator:af0244952bb3d1d56b57736041c5a9fd3 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <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.html#a226207e25fec42b47bd86621f3176686">OptimizeSubGraph</a> (const SubGraph &subGraph, bool &optimizationAttempted) const</td></tr> |
| 133 | <tr class="separator:a226207e25fec42b47bd86621f3176686 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a41c5c170ef6708c1efc683d900f624ff inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">IWorkloadFactoryPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a41c5c170ef6708c1efc683d900f624ff">CreateWorkloadFactory</a> (class <a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.html">TensorHandleFactoryRegistry</a> &tensorHandleFactoryRegistry) const</td></tr> |
| 135 | <tr class="separator:a41c5c170ef6708c1efc683d900f624ff inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <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.html#af8f716b0eab6b9d63196d5a53d5fac81">SupportsTensorAllocatorAPI</a> () const</td></tr> |
| 137 | <tr class="separator:af8f716b0eab6b9d63196d5a53d5fac81 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <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.html#a32f4aa6a7089d877af08928139c2c277">ITensorHandleFactory::FactoryId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a6ccbb386cc96a5336a8295a3c25d33dd">GetBackwardCompatibleFavoriteHandleFactory</a> ()</td></tr> |
| 139 | <tr class="separator:a6ccbb386cc96a5336a8295a3c25d33dd inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:ac5d107c5672f446603b6e6b92bce6244 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">virtual std::vector< <a class="el" href="classarmnn_1_1_i_tensor_handle_factory.html#a32f4aa6a7089d877af08928139c2c277">ITensorHandleFactory::FactoryId</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.html#ac5d107c5672f446603b6e6b92bce6244">GetHandleFactoryPreferences</a> () const</td></tr> |
| 141 | <tr class="memdesc:ac5d107c5672f446603b6e6b92bce6244 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="mdescLeft"> </td><td class="mdescRight">(<a class="el" href="classarmnn_1_1_optional.html">Optional</a>) Returns a vector of supported TensorHandleFactory ids in preference order. <a href="classarmnn_1_1_i_backend_internal.html#ac5d107c5672f446603b6e6b92bce6244">More...</a><br /></td></tr> |
| 142 | <tr class="separator:ac5d107c5672f446603b6e6b92bce6244 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:a517bc1a44d6d2d7a45c1847fba287135 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a517bc1a44d6d2d7a45c1847fba287135">RegisterTensorHandleFactories</a> (class <a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.html">TensorHandleFactoryRegistry</a> &)</td></tr> |
| 144 | <tr class="separator:a517bc1a44d6d2d7a45c1847fba287135 inherit pub_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | </table><table class="memberdecls"> |
| 146 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 147 | Static Public Member Functions</h2></td></tr> |
| 148 | <tr class="memitem:a177af502214bbc8123fbb4a3c4f0a1b8"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">GetIdStatic</a> ()</td></tr> |
| 149 | <tr class="separator:a177af502214bbc8123fbb4a3c4f0a1b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <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.html">IBackendInternal</a></td></tr> |
| 151 | <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.html">BackendVersion</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a878b8f50d8a2f92ed624803e9f6968ae">GetApiVersion</a> ()</td></tr> |
| 152 | <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.html#a878b8f50d8a2f92ed624803e9f6968ae">More...</a><br /></td></tr> |
| 153 | <tr class="separator:a878b8f50d8a2f92ed624803e9f6968ae inherit pub_static_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 154 | </table><table class="memberdecls"> |
| 155 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 156 | Additional Inherited Members</h2></td></tr> |
| 157 | <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.html">IBackendInternal</a></td></tr> |
| 158 | <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.html#a72ca1cf423bda4b0a9ffb789627126de">IWorkloadFactoryPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> ></td></tr> |
| 159 | <tr class="separator:a72ca1cf423bda4b0a9ffb789627126de inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <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.html#ada6d56575c0fe53cf23c7ae4610c6367">IBackendContextPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_i_backend_context.html">IBackendContext</a> ></td></tr> |
| 161 | <tr class="separator:ada6d56575c0fe53cf23c7ae4610c6367 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 162 | <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.html#aaece3a614f6691da8de8c7295cb1b07f">IBackendProfilingContextPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html">armnn::profiling::IBackendProfilingContext</a> ></td></tr> |
| 163 | <tr class="separator:aaece3a614f6691da8de8c7295cb1b07f inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <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.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling.html">armnn::profiling::IBackendProfiling</a> ></td></tr> |
| 165 | <tr class="separator:a34ab83489d1c5043b2b9b4a2ec13c481 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <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.html#a621bdb49c4a2f879b27d27e771693a46">OptimizationPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_optimization.html">Optimization</a> ></td></tr> |
| 167 | <tr class="separator:a621bdb49c4a2f879b27d27e771693a46 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 168 | <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.html#ad1794808004025d6e06c176507197b24">Optimizations</a> = std::vector< <a class="el" href="classarmnn_1_1_i_backend_internal.html#a621bdb49c4a2f879b27d27e771693a46">OptimizationPtr</a> ></td></tr> |
| 169 | <tr class="separator:ad1794808004025d6e06c176507197b24 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 170 | <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.html#a11fa919c11fe46aad613b2e960fcfe90">ILayerSupportSharedPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1_i_layer_support.html">ILayerSupport</a> ></td></tr> |
| 171 | <tr class="separator:a11fa919c11fe46aad613b2e960fcfe90 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 172 | <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.html#a12bff6d51d63dac1375c89bc8415dc46">IMemoryManagerUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_i_memory_manager.html">IMemoryManager</a> ></td></tr> |
| 173 | <tr class="separator:a12bff6d51d63dac1375c89bc8415dc46 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 174 | <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.html#a693b40e6b94e958836aeb0410ca186bd">IMemoryManagerSharedPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1_i_memory_manager.html">IMemoryManager</a> ></td></tr> |
| 175 | <tr class="separator:a693b40e6b94e958836aeb0410ca186bd inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <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.html#a5d9d4ef183078690e3306320dc74b945">GraphUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_graph.html">Graph</a> ></td></tr> |
| 177 | <tr class="separator:a5d9d4ef183078690e3306320dc74b945 inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <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.html#a25114a92f06d5d0a915111d97c7c4d7a">SubgraphViewUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> ></td></tr> |
| 179 | <tr class="separator:a25114a92f06d5d0a915111d97c7c4d7a inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <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.html#a928c74de863a45a07986816d7c9ad68a">supported</a> = std::unique_ptr< ISubGraphConverter ></td></tr> |
| 181 | <tr class="separator:a928c74de863a45a07986816d7c9ad68a inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <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.html#afe076d3d98038ede095765ae6ee294ac">instead</a> = std::unique_ptr< SubGraph ></td></tr> |
| 183 | <tr class="separator:afe076d3d98038ede095765ae6ee294ac inherit pub_types_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <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.html">IBackendInternal</a></td></tr> |
| 185 | <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.html#a675fed08e681be4343fb09ae73eb7641">IBackendInternal</a> ()=default</td></tr> |
| 186 | <tr class="separator:a675fed08e681be4343fb09ae73eb7641 inherit pro_methods_classarmnn_1_1_i_backend_internal"><td class="memSeparator" colspan="2"> </td></tr> |
| 187 | <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.html">IBackend</a></td></tr> |
| 188 | <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.html#a7cfc55eae265fa65b7d25e7dd3203f22">IBackend</a> ()</td></tr> |
| 189 | <tr class="separator:a7cfc55eae265fa65b7d25e7dd3203f22 inherit pro_methods_classarmnn_1_1_i_backend"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <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.html#aa73289e0503a4f7ec5909e117a57aa2b">~IBackend</a> ()</td></tr> |
| 191 | <tr class="separator:aa73289e0503a4f7ec5909e117a57aa2b inherit pro_methods_classarmnn_1_1_i_backend"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | </table> |
| 193 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 194 | <div class="textblock"> |
| 195 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00124">124</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 196 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 197 | <a id="aa14555710b0db5c5752595415504511a"></a> |
| 198 | <h2 class="memtitle"><span class="permalink"><a href="#aa14555710b0db5c5752595415504511a">◆ </a></span>MockBackend()</h2> |
| 199 | |
| 200 | <div class="memitem"> |
| 201 | <div class="memproto"> |
| 202 | <table class="mlabels"> |
| 203 | <tr> |
| 204 | <td class="mlabels-left"> |
| 205 | <table class="memname"> |
| 206 | <tr> |
| 207 | <td class="memname"><a class="el" href="classarmnn_1_1_mock_backend.html">MockBackend</a> </td> |
| 208 | <td>(</td> |
| 209 | <td class="paramname"></td><td>)</td> |
| 210 | <td></td> |
| 211 | </tr> |
| 212 | </table> |
| 213 | </td> |
| 214 | <td class="mlabels-right"> |
| 215 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 216 | </tr> |
| 217 | </table> |
| 218 | </div><div class="memdoc"> |
| 219 | |
| 220 | </div> |
| 221 | </div> |
| 222 | <a id="a2904536c70c0959cc462089d4c51cd88"></a> |
| 223 | <h2 class="memtitle"><span class="permalink"><a href="#a2904536c70c0959cc462089d4c51cd88">◆ </a></span>~MockBackend()</h2> |
| 224 | |
| 225 | <div class="memitem"> |
| 226 | <div class="memproto"> |
| 227 | <table class="mlabels"> |
| 228 | <tr> |
| 229 | <td class="mlabels-left"> |
| 230 | <table class="memname"> |
| 231 | <tr> |
| 232 | <td class="memname">~<a class="el" href="classarmnn_1_1_mock_backend.html">MockBackend</a> </td> |
| 233 | <td>(</td> |
| 234 | <td class="paramname"></td><td>)</td> |
| 235 | <td></td> |
| 236 | </tr> |
| 237 | </table> |
| 238 | </td> |
| 239 | <td class="mlabels-right"> |
| 240 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 241 | </tr> |
| 242 | </table> |
| 243 | </div><div class="memdoc"> |
| 244 | |
| 245 | </div> |
| 246 | </div> |
| 247 | <h2 class="groupheader">Member Function Documentation</h2> |
| 248 | <a id="a801cf3170dc777aca3e6f926d1bd70a5"></a> |
| 249 | <h2 class="memtitle"><span class="permalink"><a href="#a801cf3170dc777aca3e6f926d1bd70a5">◆ </a></span>CreateBackendContext()</h2> |
| 250 | |
| 251 | <div class="memitem"> |
| 252 | <div class="memproto"> |
| 253 | <table class="mlabels"> |
| 254 | <tr> |
| 255 | <td class="mlabels-left"> |
| 256 | <table class="memname"> |
| 257 | <tr> |
| 258 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#ada6d56575c0fe53cf23c7ae4610c6367">IBackendInternal::IBackendContextPtr</a> CreateBackendContext </td> |
| 259 | <td>(</td> |
| 260 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a> & </td> |
| 261 | <td class="paramname"></td><td>)</td> |
| 262 | <td> const</td> |
| 263 | </tr> |
| 264 | </table> |
| 265 | </td> |
| 266 | <td class="mlabels-right"> |
| 267 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 268 | </tr> |
| 269 | </table> |
| 270 | </div><div class="memdoc"> |
| 271 | <p>Create the runtime context of the backend</p> |
| 272 | <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.html" 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> |
| 273 | |
| 274 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.html#a07a1b3f9ac897364b5c2aacc227cbebc">IBackendInternal</a>.</p> |
| 275 | |
| 276 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00103">103</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 277 | <div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#ada6d56575c0fe53cf23c7ae4610c6367">IBackendContextPtr</a>{};</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_html_ada6d56575c0fe53cf23c7ae4610c6367"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#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.html#l00081">IBackendInternal.hpp:81</a></div></div> |
| 278 | </div><!-- fragment --> |
| 279 | </div> |
| 280 | </div> |
| 281 | <a id="ac2480fbc4ae790e2e64f55d78b7f31a0"></a> |
| 282 | <h2 class="memtitle"><span class="permalink"><a href="#ac2480fbc4ae790e2e64f55d78b7f31a0">◆ </a></span>CreateBackendProfilingContext()</h2> |
| 283 | |
| 284 | <div class="memitem"> |
| 285 | <div class="memproto"> |
| 286 | <table class="mlabels"> |
| 287 | <tr> |
| 288 | <td class="mlabels-left"> |
| 289 | <table class="memname"> |
| 290 | <tr> |
| 291 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#aaece3a614f6691da8de8c7295cb1b07f">IBackendInternal::IBackendProfilingContextPtr</a> CreateBackendProfilingContext </td> |
| 292 | <td>(</td> |
| 293 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a> & </td> |
| 294 | <td class="paramname"><em>creationOptions</em>, </td> |
| 295 | </tr> |
| 296 | <tr> |
| 297 | <td class="paramkey"></td> |
| 298 | <td></td> |
| 299 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a> & </td> |
| 300 | <td class="paramname"><em>backendProfiling</em> </td> |
| 301 | </tr> |
| 302 | <tr> |
| 303 | <td></td> |
| 304 | <td>)</td> |
| 305 | <td></td><td></td> |
| 306 | </tr> |
| 307 | </table> |
| 308 | </td> |
| 309 | <td class="mlabels-right"> |
| 310 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 311 | </tr> |
| 312 | </table> |
| 313 | </div><div class="memdoc"> |
| 314 | |
| 315 | <p>Create context specifically used for profiling interaction from backends. </p> |
| 316 | |
| 317 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.html#a6c5064ef6323af5c547674d01b15d7ab">IBackendInternal</a>.</p> |
| 318 | |
| 319 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00108">108</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 320 | |
| 321 | <p class="reference">References <a class="el" href="_mock_backend_8hpp_source.html#l00104">MockBackendProfilingService::Instance()</a>, and <a class="el" href="_mock_backend_8hpp_source.html#l00115">MockBackendProfilingService::SetProfilingContextPtr()</a>.</p> |
| 322 | <div class="fragment"><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  boost::ignore_unused(<a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  std::shared_ptr<armnn::MockBackendProfilingContext> context =</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::make_shared<MockBackendProfilingContext>(backendProfiling);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classarmnn_1_1_mock_backend_profiling_service.html#a15a5e913e48840d7b767a4453d83f361">MockBackendProfilingService::Instance</a>().<a class="code" href="classarmnn_1_1_mock_backend_profiling_service.html#a3458b64cd6375e3842160a28ad6e2301">SetProfilingContextPtr</a>(context);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> context;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div><div class="ttc" id="classarmnn_1_1_mock_backend_profiling_service_html_a15a5e913e48840d7b767a4453d83f361"><div class="ttname"><a href="classarmnn_1_1_mock_backend_profiling_service.html#a15a5e913e48840d7b767a4453d83f361">armnn::MockBackendProfilingService::Instance</a></div><div class="ttdeci">static MockBackendProfilingService & Instance()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8hpp_source.html#l00104">MockBackend.hpp:104</a></div></div> |
| 323 | <div class="ttc" id="classarmnn_1_1_mock_backend_profiling_service_html_a3458b64cd6375e3842160a28ad6e2301"><div class="ttname"><a href="classarmnn_1_1_mock_backend_profiling_service.html#a3458b64cd6375e3842160a28ad6e2301">armnn::MockBackendProfilingService::SetProfilingContextPtr</a></div><div class="ttdeci">void SetProfilingContextPtr(std::shared_ptr< MockBackendProfilingContext > shared)</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8hpp_source.html#l00115">MockBackend.hpp:115</a></div></div> |
| 324 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#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.html#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 325 | </div><!-- fragment --> |
| 326 | </div> |
| 327 | </div> |
| 328 | <a id="a93fcb3bff141d8c77b53466a44b58eee"></a> |
| 329 | <h2 class="memtitle"><span class="permalink"><a href="#a93fcb3bff141d8c77b53466a44b58eee">◆ </a></span>CreateMemoryManager()</h2> |
| 330 | |
| 331 | <div class="memitem"> |
| 332 | <div class="memproto"> |
| 333 | <table class="mlabels"> |
| 334 | <tr> |
| 335 | <td class="mlabels-left"> |
| 336 | <table class="memname"> |
| 337 | <tr> |
| 338 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">IBackendInternal::IMemoryManagerUniquePtr</a> CreateMemoryManager </td> |
| 339 | <td>(</td> |
| 340 | <td class="paramname"></td><td>)</td> |
| 341 | <td> const</td> |
| 342 | </tr> |
| 343 | </table> |
| 344 | </td> |
| 345 | <td class="mlabels-right"> |
| 346 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 347 | </tr> |
| 348 | </table> |
| 349 | </div><div class="memdoc"> |
| 350 | |
| 351 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.html#a0e8cb8533d1d0b2cb93f926dac11dd16">IBackendInternal</a>.</p> |
| 352 | |
| 353 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00118">118</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 354 | <div class="fragment"><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">IMemoryManagerUniquePtr</a>{};</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a12bff6d51d63dac1375c89bc8415dc46"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">armnn::IBackendInternal::IMemoryManagerUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00089">IBackendInternal.hpp:89</a></div></div> |
| 355 | </div><!-- fragment --> |
| 356 | </div> |
| 357 | </div> |
| 358 | <a id="a8e19e275c8162e34e6d8d10a9245dbc9"></a> |
| 359 | <h2 class="memtitle"><span class="permalink"><a href="#a8e19e275c8162e34e6d8d10a9245dbc9">◆ </a></span>CreateWorkloadFactory()</h2> |
| 360 | |
| 361 | <div class="memitem"> |
| 362 | <div class="memproto"> |
| 363 | <table class="mlabels"> |
| 364 | <tr> |
| 365 | <td class="mlabels-left"> |
| 366 | <table class="memname"> |
| 367 | <tr> |
| 368 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> CreateWorkloadFactory </td> |
| 369 | <td>(</td> |
| 370 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 371 | <td class="paramname"><em>memoryManager</em> = <code>nullptr</code></td><td>)</td> |
| 372 | <td> const</td> |
| 373 | </tr> |
| 374 | </table> |
| 375 | </td> |
| 376 | <td class="mlabels-right"> |
| 377 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 378 | </tr> |
| 379 | </table> |
| 380 | </div><div class="memdoc"> |
| 381 | |
| 382 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_internal.html#afd5a5e90515b31c0174f76ec8897e9b1">IBackendInternal</a>.</p> |
| 383 | |
| 384 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00097">97</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 385 | <div class="fragment"><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> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">IWorkloadFactoryPtr</a>{};</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a72ca1cf423bda4b0a9ffb789627126de"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">armnn::IBackendInternal::IWorkloadFactoryPtr</a></div><div class="ttdeci">std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00080">IBackendInternal.hpp:80</a></div></div> |
| 386 | </div><!-- fragment --> |
| 387 | </div> |
| 388 | </div> |
| 389 | <a id="a6c6c3d137a7792e264a89cc40ea94bb0"></a> |
| 390 | <h2 class="memtitle"><span class="permalink"><a href="#a6c6c3d137a7792e264a89cc40ea94bb0">◆ </a></span>GetId()</h2> |
| 391 | |
| 392 | <div class="memitem"> |
| 393 | <div class="memproto"> |
| 394 | <table class="mlabels"> |
| 395 | <tr> |
| 396 | <td class="mlabels-left"> |
| 397 | <table class="memname"> |
| 398 | <tr> |
| 399 | <td class="memname">const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a>& GetId </td> |
| 400 | <td>(</td> |
| 401 | <td class="paramname"></td><td>)</td> |
| 402 | <td> const</td> |
| 403 | </tr> |
| 404 | </table> |
| 405 | </td> |
| 406 | <td class="mlabels-right"> |
| 407 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 408 | </tr> |
| 409 | </table> |
| 410 | </div><div class="memdoc"> |
| 411 | |
| 412 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend.html#aa9fc23b7155bd678232eeb351059b748">IBackend</a>.</p> |
| 413 | |
| 414 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00131">131</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 415 | <div class="fragment"><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">GetIdStatic</a>();</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div><div class="ttc" id="classarmnn_1_1_mock_backend_html_a177af502214bbc8123fbb4a3c4f0a1b8"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">armnn::MockBackend::GetIdStatic</a></div><div class="ttdeci">static const BackendId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00091">MockBackend.cpp:91</a></div></div> |
| 416 | </div><!-- fragment --> |
| 417 | </div> |
| 418 | </div> |
| 419 | <a id="a177af502214bbc8123fbb4a3c4f0a1b8"></a> |
| 420 | <h2 class="memtitle"><span class="permalink"><a href="#a177af502214bbc8123fbb4a3c4f0a1b8">◆ </a></span>GetIdStatic()</h2> |
| 421 | |
| 422 | <div class="memitem"> |
| 423 | <div class="memproto"> |
| 424 | <table class="mlabels"> |
| 425 | <tr> |
| 426 | <td class="mlabels-left"> |
| 427 | <table class="memname"> |
| 428 | <tr> |
| 429 | <td class="memname">const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> & GetIdStatic </td> |
| 430 | <td>(</td> |
| 431 | <td class="paramname"></td><td>)</td> |
| 432 | <td></td> |
| 433 | </tr> |
| 434 | </table> |
| 435 | </td> |
| 436 | <td class="mlabels-right"> |
| 437 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 438 | </tr> |
| 439 | </table> |
| 440 | </div><div class="memdoc"> |
| 441 | |
| 442 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00091">91</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 443 | |
| 444 | <p class="reference">References <a class="el" href="_mock_backend_id_8hpp_source.html#l00011">armnn::MockBackendId()</a>.</p> |
| 445 | |
| 446 | <p class="reference">Referenced by <a class="el" href="_optimization_views_tests_8cpp_source.html#l00182">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_mock_backend_8cpp_source.html#l00070">MockBackendInitialiser::MockBackendInitialiser()</a>, and <a class="el" href="_mock_backend_8cpp_source.html#l00079">MockBackendInitialiser::~MockBackendInitialiser()</a>.</p> |
| 447 | <div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">static</span> <span class="keyword">const</span> BackendId s_Id{<a class="code" href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">MockBackendId</a>()};</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> s_Id;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> }</div><div class="ttc" id="namespacearmnn_html_a17955517b0d148f7ffdbffe8b46e41e0"><div class="ttname"><a href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">armnn::MockBackendId</a></div><div class="ttdeci">constexpr const char * MockBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_id_8hpp_source.html#l00011">MockBackendId.hpp:11</a></div></div> |
| 448 | </div><!-- fragment --> |
| 449 | </div> |
| 450 | </div> |
| 451 | <a id="a93d4285a3ea5e4e3b35578484d889daa"></a> |
| 452 | <h2 class="memtitle"><span class="permalink"><a href="#a93d4285a3ea5e4e3b35578484d889daa">◆ </a></span>GetLayerSupport()</h2> |
| 453 | |
| 454 | <div class="memitem"> |
| 455 | <div class="memproto"> |
| 456 | <table class="mlabels"> |
| 457 | <tr> |
| 458 | <td class="mlabels-left"> |
| 459 | <table class="memname"> |
| 460 | <tr> |
| 461 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a11fa919c11fe46aad613b2e960fcfe90">IBackendInternal::ILayerSupportSharedPtr</a> GetLayerSupport </td> |
| 462 | <td>(</td> |
| 463 | <td class="paramname"></td><td>)</td> |
| 464 | <td> const</td> |
| 465 | </tr> |
| 466 | </table> |
| 467 | </td> |
| 468 | <td class="mlabels-right"> |
| 469 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 470 | </tr> |
| 471 | </table> |
| 472 | </div><div class="memdoc"> |
| 473 | |
| 474 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_internal.html#ad86597efa7c25997572c80dc29f3104a">IBackendInternal</a>.</p> |
| 475 | |
| 476 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00128">128</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 477 | <div class="fragment"><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">static</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a11fa919c11fe46aad613b2e960fcfe90">ILayerSupportSharedPtr</a> layerSupport{<span class="keyword">new</span> MockLayerSupport};</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> layerSupport;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a11fa919c11fe46aad613b2e960fcfe90"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#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.html#l00087">IBackendInternal.hpp:87</a></div></div> |
| 478 | </div><!-- fragment --> |
| 479 | </div> |
| 480 | </div> |
| 481 | <a id="a87acb43c72272d9db21c547d4f4996cb"></a> |
| 482 | <h2 class="memtitle"><span class="permalink"><a href="#a87acb43c72272d9db21c547d4f4996cb">◆ </a></span>GetOptimizations()</h2> |
| 483 | |
| 484 | <div class="memitem"> |
| 485 | <div class="memproto"> |
| 486 | <table class="mlabels"> |
| 487 | <tr> |
| 488 | <td class="mlabels-left"> |
| 489 | <table class="memname"> |
| 490 | <tr> |
| 491 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#ad1794808004025d6e06c176507197b24">IBackendInternal::Optimizations</a> GetOptimizations </td> |
| 492 | <td>(</td> |
| 493 | <td class="paramname"></td><td>)</td> |
| 494 | <td> const</td> |
| 495 | </tr> |
| 496 | </table> |
| 497 | </td> |
| 498 | <td class="mlabels-right"> |
| 499 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 500 | </tr> |
| 501 | </table> |
| 502 | </div><div class="memdoc"> |
| 503 | |
| 504 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.html#ad870e6e2951ea3693d9f89a7bf77d695">IBackendInternal</a>.</p> |
| 505 | |
| 506 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00123">123</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 507 | <div class="fragment"><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#ad1794808004025d6e06c176507197b24">Optimizations</a>{};</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div><div class="ttc" id="classarmnn_1_1_i_backend_internal_html_ad1794808004025d6e06c176507197b24"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#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.html#l00086">IBackendInternal.hpp:86</a></div></div> |
| 508 | </div><!-- fragment --> |
| 509 | </div> |
| 510 | </div> |
| 511 | <a id="a3c7ed3d210544740ecb3fa9c28d56c34"></a> |
| 512 | <h2 class="memtitle"><span class="permalink"><a href="#a3c7ed3d210544740ecb3fa9c28d56c34">◆ </a></span>OptimizeSubgraphView()</h2> |
| 513 | |
| 514 | <div class="memitem"> |
| 515 | <div class="memproto"> |
| 516 | <table class="mlabels"> |
| 517 | <tr> |
| 518 | <td class="mlabels-left"> |
| 519 | <table class="memname"> |
| 520 | <tr> |
| 521 | <td class="memname"><a class="el" href="classarmnn_1_1_optimization_views.html">OptimizationViews</a> OptimizeSubgraphView </td> |
| 522 | <td>(</td> |
| 523 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> & </td> |
| 524 | <td class="paramname"><em>subgraph</em></td><td>)</td> |
| 525 | <td> const</td> |
| 526 | </tr> |
| 527 | </table> |
| 528 | </td> |
| 529 | <td class="mlabels-right"> |
| 530 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 531 | </tr> |
| 532 | </table> |
| 533 | </div><div class="memdoc"> |
| 534 | |
| 535 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_backend_internal.html#a674f56c735a3d6300463cefb642f808a">IBackendInternal</a>.</p> |
| 536 | |
| 537 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8cpp_source.html#l00134">134</a> of file <a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a>.</p> |
| 538 | |
| 539 | <p class="reference">References <a class="el" href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00039">OptimizationViews::AddFailedSubgraph()</a>, <a class="el" href="_graph_8hpp_source.html#l00397">Graph::AddLayer()</a>, <a class="el" href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00034">OptimizationViews::AddSubstitution()</a>, <a class="el" href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00044">OptimizationViews::AddUntouchedSubgraph()</a>, <a class="el" href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00059">OptimizationViews::GetGraph()</a>, <a class="el" href="_subgraph_view_8cpp_source.html#l00158">SubgraphView::GetLayers()</a>, <a class="el" href="_layer_8hpp_source.html#l00259">Layer::GetType()</a>, <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">armnn::Input</a>, <a class="el" href="_mock_backend_id_8hpp_source.html#l00011">armnn::MockBackendId()</a>, <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">armnn::Output</a>, <a class="el" href="_subgraph_view_selector_8cpp_source.html#l00251">SubgraphViewSelector::SelectSubgraphs()</a>, and <a class="el" href="_layer_8hpp_source.html#l00264">Layer::SetBackendId()</a>.</p> |
| 540 | <div class="fragment"><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="comment">// Prepare the optimization views</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  OptimizationViews optimizationViews;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// Get the layers of the input sub-graph</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a>& subgraphLayers = subgraph.GetLayers();</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">// Parse the layers</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a> supportedLayers;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a> unsupportedLayers;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a> untouchedLayers;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  std::for_each(subgraphLayers.begin(),</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  subgraphLayers.end(),</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  [&](Layer* layer)</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a928c74de863a45a07986816d7c9ad68a">supported</a> = IsLayerSupported(layer);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">if</span> (supported)</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">// Layer supported, check if it's optimizable</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">bool</span> optimizable = IsLayerOptimizable(layer);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">if</span> (optimizable)</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// Layer fully supported</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  supportedLayers.push_back(layer);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="comment">// Layer supported but not optimizable</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  untouchedLayers.push_back(layer);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  }</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  {</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// Layer unsupported</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  unsupportedLayers.push_back(layer);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  }</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  });</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="comment">// Check if there are supported layers</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span> (!supportedLayers.empty())</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  {</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="comment">// Select the layers that are neither inputs or outputs, but that are optimizable</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">auto</span> supportedSubgraphSelector = [](<span class="keyword">const</span> Layer& layer)</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> layer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">LayerType::Input</a> &&</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  layer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a> &&</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  IsLayerSupported(layer) &&</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  IsLayerOptimizable(layer);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  };</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">// Apply the subgraph selector to the supported layers to group them into sub-graphs were appropriate</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  SubgraphView mutableSubgraph(subgraph);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">SubgraphViewSelector::Subgraphs</a> supportedSubgraphs =</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">SubgraphViewSelector::SelectSubgraphs</a>(mutableSubgraph, supportedSubgraphSelector);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">// Create a substitution pair for each supported sub-graph</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  std::for_each(supportedSubgraphs.begin(),</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  supportedSubgraphs.end(),</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  [&optimizationViews](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">SubgraphView::SubgraphViewPtr</a>& supportedSubgraph)</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  BOOST_ASSERT(supportedSubgraph != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  PreCompiledLayer* preCompiledLayer =</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  optimizationViews.GetGraph().AddLayer<PreCompiledLayer>(</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  PreCompiledDescriptor(supportedSubgraph->GetNumInputSlots(),</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  supportedSubgraph->GetNumOutputSlots()),</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="stringliteral">"pre-compiled"</span>);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  preCompiledLayer->SetBackendId(<a class="code" href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">MockBackendId</a>());</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  SubgraphView substitutionSubgraph(*supportedSubgraph);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  SubgraphView replacementSubgraph(preCompiledLayer);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  optimizationViews.AddSubstitution({ substitutionSubgraph, replacementSubgraph });</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  });</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="comment">// Check if there are unsupported layers</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span> (!unsupportedLayers.empty())</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="comment">// Select the layers that are neither inputs or outputs, and are not optimizable</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keyword">auto</span> unsupportedSubgraphSelector = [](<span class="keyword">const</span> Layer& layer)</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">return</span> layer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">LayerType::Input</a> &&</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  layer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a> &&</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  !IsLayerSupported(layer);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  };</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">// Apply the subgraph selector to the unsupported layers to group them into sub-graphs were appropriate</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  SubgraphView mutableSubgraph(subgraph);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">SubgraphViewSelector::Subgraphs</a> unsupportedSubgraphs =</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">SubgraphViewSelector::SelectSubgraphs</a>(mutableSubgraph, unsupportedSubgraphSelector);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="comment">// Add each unsupported sub-graph to the list of failed sub-graphs in the optimizization views</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  std::for_each(unsupportedSubgraphs.begin(),</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  unsupportedSubgraphs.end(),</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  [&optimizationViews](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">SubgraphView::SubgraphViewPtr</a>& unsupportedSubgraph)</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  {</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  BOOST_ASSERT(unsupportedSubgraph != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  optimizationViews.AddFailedSubgraph(SubgraphView(*unsupportedSubgraph));</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  });</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="comment">// Check if there are untouched layers</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (!untouchedLayers.empty())</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  {</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">// Select the layers that are neither inputs or outputs, that are supported but that and are not optimizable</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keyword">auto</span> untouchedSubgraphSelector = [](<span class="keyword">const</span> Layer& layer)</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  {</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">return</span> layer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">LayerType::Input</a> &&</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  layer.GetType() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a> &&</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  IsLayerSupported(layer) &&</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  !IsLayerOptimizable(layer);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  };</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="comment">// Apply the subgraph selector to the untouched layers to group them into sub-graphs were appropriate</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  SubgraphView mutableSubgraph(subgraph);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">SubgraphViewSelector::Subgraphs</a> untouchedSubgraphs =</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">SubgraphViewSelector::SelectSubgraphs</a>(mutableSubgraph, untouchedSubgraphSelector);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="comment">// Add each untouched sub-graph to the list of untouched sub-graphs in the optimizization views</span></div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  std::for_each(untouchedSubgraphs.begin(),</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  untouchedSubgraphs.end(),</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  [&optimizationViews](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">SubgraphView::SubgraphViewPtr</a>& untouchedSubgraph)</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  {</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  BOOST_ASSERT(untouchedSubgraph != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  optimizationViews.AddUntouchedSubgraph(SubgraphView(*untouchedSubgraph));</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  });</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  }</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">return</span> optimizationViews;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> }</div><div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">armnn::LayerType::Output</a></div></div> |
| 541 | <div class="ttc" id="classarmnn_1_1_subgraph_view_html_a74798938fdaeae75c8adfa4a7439e7f9"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">armnn::SubgraphView::Layers</a></div><div class="ttdeci">std::list< Layer * > Layers</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00040">SubgraphView.hpp:40</a></div></div> |
| 542 | <div class="ttc" id="classarmnn_1_1_subgraph_view_selector_html_a3730b0a6006f0d87f894a44e01869d90"><div class="ttname"><a href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">armnn::SubgraphViewSelector::SelectSubgraphs</a></div><div class="ttdeci">static Subgraphs SelectSubgraphs(Graph &graph, const LayerSelectorFunction &selector)</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_selector_8cpp_source.html#l00251">SubgraphViewSelector.cpp:251</a></div></div> |
| 543 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a928c74de863a45a07986816d7c9ad68a"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a928c74de863a45a07986816d7c9ad68a">armnn::IBackendInternal::supported</a></div><div class="ttdeci">std::unique_ptr< ISubGraphConverter > supported</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00097">IBackendInternal.hpp:97</a></div></div> |
| 544 | <div class="ttc" id="classarmnn_1_1_subgraph_view_selector_html_aaf71a63dbbc776f8961b0f4fdb9da021"><div class="ttname"><a href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">armnn::SubgraphViewSelector::Subgraphs</a></div><div class="ttdeci">std::vector< SubgraphViewPtr > Subgraphs</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_selector_8hpp_source.html#l00025">SubgraphViewSelector.hpp:25</a></div></div> |
| 545 | <div class="ttc" id="namespacearmnn_html_a17955517b0d148f7ffdbffe8b46e41e0"><div class="ttname"><a href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">armnn::MockBackendId</a></div><div class="ttdeci">constexpr const char * MockBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_id_8hpp_source.html#l00011">MockBackendId.hpp:11</a></div></div> |
| 546 | <div class="ttc" id="classarmnn_1_1_subgraph_view_html_a4684a457c7786484375f06e9ab2d2265"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">armnn::SubgraphView::SubgraphViewPtr</a></div><div class="ttdeci">std::unique_ptr< SubgraphView > SubgraphViewPtr</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00037">SubgraphView.hpp:37</a></div></div> |
| 547 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">armnn::LayerType::Input</a></div></div> |
| 548 | </div><!-- fragment --> |
| 549 | </div> |
| 550 | </div> |
| 551 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 552 | <li>src/backends/backendsCommon/test/<a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a></li> |
| 553 | <li>src/backends/backendsCommon/test/<a class="el" href="_mock_backend_8cpp_source.html">MockBackend.cpp</a></li> |
| 554 | </ul> |
| 555 | </div><!-- contents --> |
| 556 | </div><!-- doc-content --> |
| 557 | <!-- start footer part --> |
| 558 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 559 | <ul> |
| 560 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_mock_backend.html">MockBackend</a></li> |
| 561 | <li class="footer">Generated on Fri Mar 13 2020 16:07:04 for ArmNN by |
| 562 | <a href="http://www.doxygen.org/index.html"> |
| 563 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 564 | </ul> |
| 565 | </div> |
| 566 | </body> |
| 567 | </html> |