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: include/armnn/backends/DynamicBackend.hpp Source File</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('include_2armnn_2backends_2_dynamic_backend_8hpp_source.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="headertitle"> |
| 84 | <div class="title">DynamicBackend.hpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="include_2armnn_2backends_2_dynamic_backend_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="include_2armnn_2backends_2_i_backend_internal_8hpp.html">IBackendInternal.hpp</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="_backend_registry_8hpp.html">armnn/BackendRegistry.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <functional></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.html">armnn</a></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classarmnn_1_1_dynamic_backend.html"> 18</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_dynamic_backend.html">DynamicBackend</a> final</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classarmnn_1_1_dynamic_backend.html#afc391d6dc3d75baff0e86b70ae710a50"> 21</a></span>  <span class="keyword">using</span> <a class="code" href="classarmnn_1_1_dynamic_backend.html#afc391d6dc3d75baff0e86b70ae710a50">HandleCloser</a> = std::function<void(const void*)>;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classarmnn_1_1_dynamic_backend.html#a8bdc460894ec6fe25c7754d0d5d10866"> 22</a></span>  <span class="keyword">using</span> <a class="code" href="classarmnn_1_1_dynamic_backend.html#a8bdc460894ec6fe25c7754d0d5d10866">HandlePtr</a> = std::unique_ptr<void, HandleCloser>;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">explicit</span> <a class="code" href="classarmnn_1_1_dynamic_backend.html#a1c1454fae6258415712b5e720023fbd1">DynamicBackend</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* sharedObjectHandle);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classarmnn_1_1_backend_id.html">BackendId</a> <a class="code" href="classarmnn_1_1_dynamic_backend.html#a6deb5373920ee59a800eca6b01085654">GetBackendId</a>();</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="structarmnn_1_1_backend_version.html">BackendVersion</a> <a class="code" href="classarmnn_1_1_dynamic_backend.html#a74db049ad0000a58b9a58a6cd6d88feb">GetBackendVersion</a>();</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> <a class="code" href="classarmnn_1_1_dynamic_backend.html#a9d10388a851fc1a748c3e385f484b52a">GetBackend</a>();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classarmnn_1_1_backend_registry.html#aa33ac375677ee8436456a585dd6f68d9">BackendRegistry::FactoryFunction</a> <a class="code" href="classarmnn_1_1_dynamic_backend.html#a4c24f07cb0b4bff43655dfdbd5eac539">GetFactoryFunction</a>();</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">template</span><<span class="keyword">typename</span> BackendFunctionType></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  BackendFunctionType SetFunctionPointer(<span class="keyword">const</span> std::string& backendFunctionName);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> CreateBackend();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">using</span> IdFunctionType = <span class="keyword">const</span> <span class="keywordtype">char</span>*(*)();</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">using</span> VersionFunctionType = void(*)(uint32_t*, uint32_t*);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">using</span> FactoryFunctionType = <span class="keywordtype">void</span>*(*)();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  IdFunctionType m_BackendIdFunction;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  VersionFunctionType m_BackendVersionFunction;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  FactoryFunctionType m_BackendFactoryFunction;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classarmnn_1_1_dynamic_backend.html#a8bdc460894ec6fe25c7754d0d5d10866">HandlePtr</a> m_Handle;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="namespacearmnn.html#a754d43dc24a0fe36ecb3044d8f13a413"> 52</a></span> <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> = std::unique_ptr<DynamicBackend>;</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="comment">// namespace armnn</span></div><div class="ttc" id="namespacearmnn_html_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.html#l00018">BackendRegistry.hpp:18</a></div></div> |
| 88 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_a74db049ad0000a58b9a58a6cd6d88feb"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#a74db049ad0000a58b9a58a6cd6d88feb">armnn::DynamicBackend::GetBackendVersion</a></div><div class="ttdeci">BackendVersion GetBackendVersion()</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_8cpp_source.html#l00057">DynamicBackend.cpp:57</a></div></div> |
| 89 | <div class="ttc" id="classarmnn_1_1_backend_registry_html_aa33ac375677ee8436456a585dd6f68d9"><div class="ttname"><a href="classarmnn_1_1_backend_registry.html#aa33ac375677ee8436456a585dd6f68d9">armnn::BackendRegistry::FactoryFunction</a></div><div class="ttdeci">std::function< PointerType()> FactoryFunction</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.html#l00024">BackendRegistry.hpp:24</a></div></div> |
| 90 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.html#l00018">DynamicBackend.hpp:18</a></div></div> |
| 91 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_afc391d6dc3d75baff0e86b70ae710a50"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#afc391d6dc3d75baff0e86b70ae710a50">armnn::DynamicBackend::HandleCloser</a></div><div class="ttdeci">std::function< void(const void *)> HandleCloser</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.html#l00021">DynamicBackend.hpp:21</a></div></div> |
| 92 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_a8bdc460894ec6fe25c7754d0d5d10866"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#a8bdc460894ec6fe25c7754d0d5d10866">armnn::DynamicBackend::HandlePtr</a></div><div class="ttdeci">std::unique_ptr< void, HandleCloser > HandlePtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.html#l00022">DynamicBackend.hpp:22</a></div></div> |
| 93 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_a6deb5373920ee59a800eca6b01085654"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#a6deb5373920ee59a800eca6b01085654">armnn::DynamicBackend::GetBackendId</a></div><div class="ttdeci">BackendId GetBackendId()</div><div class="ttdoc">Public dynamic backend functions. </div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_8cpp_source.html#l00041">DynamicBackend.cpp:41</a></div></div> |
| 94 | <div class="ttc" id="classarmnn_1_1_backend_id_html"><div class="ttname"><a href="classarmnn_1_1_backend_id.html">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.html#l00075">BackendId.hpp:75</a></div></div> |
| 95 | <div class="ttc" id="namespacearmnn_html_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.html#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.html#l00052">DynamicBackend.hpp:52</a></div></div> |
| 96 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_a4c24f07cb0b4bff43655dfdbd5eac539"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#a4c24f07cb0b4bff43655dfdbd5eac539">armnn::DynamicBackend::GetFactoryFunction</a></div><div class="ttdeci">BackendRegistry::FactoryFunction GetFactoryFunction()</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_8cpp_source.html#l00077">DynamicBackend.cpp:77</a></div></div> |
| 97 | <div class="ttc" id="structarmnn_1_1_backend_version_html"><div class="ttname"><a href="structarmnn_1_1_backend_version.html">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00032">IBackendInternal.hpp:32</a></div></div> |
| 98 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 99 | <div class="ttc" id="include_2armnn_2backends_2_i_backend_internal_8hpp_html"><div class="ttname"><a href="include_2armnn_2backends_2_i_backend_internal_8hpp.html">IBackendInternal.hpp</a></div></div> |
| 100 | <div class="ttc" id="_backend_registry_8hpp_html"><div class="ttname"><a href="_backend_registry_8hpp.html">BackendRegistry.hpp</a></div></div> |
| 101 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_a1c1454fae6258415712b5e720023fbd1"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#a1c1454fae6258415712b5e720023fbd1">armnn::DynamicBackend::DynamicBackend</a></div><div class="ttdeci">DynamicBackend(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_8cpp_source.html#l00012">DynamicBackend.cpp:12</a></div></div> |
| 102 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_html_a9d10388a851fc1a748c3e385f484b52a"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.html#a9d10388a851fc1a748c3e385f484b52a">armnn::DynamicBackend::GetBackend</a></div><div class="ttdeci">IBackendInternalUniquePtr GetBackend()</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_8cpp_source.html#l00071">DynamicBackend.cpp:71</a></div></div> |
| 103 | </div><!-- fragment --></div><!-- contents --> |
| 104 | </div><!-- doc-content --> |
| 105 | <!-- start footer part --> |
| 106 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 107 | <ul> |
| 108 | <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_2b72cc348e06937955e62ebdd8a13436.html">armnn</a></li><li class="navelem"><a class="el" href="dir_8946eb9d8f826e973720979438627a91.html">backends</a></li><li class="navelem"><a class="el" href="include_2armnn_2backends_2_dynamic_backend_8hpp.html">DynamicBackend.hpp</a></li> |
| 109 | <li class="footer">Generated on Fri Mar 13 2020 16:06:53 for ArmNN by |
| 110 | <a href="http://www.doxygen.org/index.html"> |
| 111 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 112 | </ul> |
| 113 | </div> |
| 114 | </body> |
| 115 | </html> |