diff options
author | Ryan OShea <Ryan.OShea2@arm.com> | 2020-03-13 16:26:19 +0000 |
---|---|---|
committer | Ryan OShea <Ryan.OShea2@arm.com> | 2020-03-13 16:26:19 +0000 |
commit | de36e4a9c299028e792c3a5bd99ad0816d806077 (patch) | |
tree | 6c71d89db68da1033bb422253cee2970580ed692 /Documentation/_cl_backend_8cpp_source.xhtml | |
parent | 78b26f024641e763c7252198339c83bad8c0982f (diff) | |
download | armnn-de36e4a9c299028e792c3a5bd99ad0816d806077.tar.gz |
IVGCVSW-3726 Upload ArmNN Doxygen files
* Upload current ArmNN Doxygen files
Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285
Diffstat (limited to 'Documentation/_cl_backend_8cpp_source.xhtml')
-rw-r--r-- | Documentation/_cl_backend_8cpp_source.xhtml | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/Documentation/_cl_backend_8cpp_source.xhtml b/Documentation/_cl_backend_8cpp_source.xhtml new file mode 100644 index 0000000000..fd60e7e4ce --- /dev/null +++ b/Documentation/_cl_backend_8cpp_source.xhtml @@ -0,0 +1,156 @@ +<!-- Copyright (c) 2020 ARM Limited. --> +<!-- --> +<!-- SPDX-License-Identifier: MIT --> +<!-- --> +<!-- HTML header for doxygen 1.8.13--> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.13"/> +<meta name="robots" content="NOINDEX, NOFOLLOW" /> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>ArmNN: src/backends/cl/ClBackend.cpp Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtreedata.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/searchdata.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/x-mathjax-config"> + MathJax.Hub.Config({ + extensions: ["tex2jax.js"], + jax: ["input/TeX","output/HTML-CSS"], +}); +</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +<link href="stylesheet.css" rel="stylesheet" type="text/css"/> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> + <td style="padding-left: 0.5em;"> + <div id="projectname"> +  <span id="projectnumber">20.02</span> + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.13 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> +<script type="text/javascript" src="menudata.js"></script> +<script type="text/javascript" src="menu.js"></script> +<script type="text/javascript"> +$(function() { + initMenu('',true,false,'search.php','Search'); + $(document).ready(function() { init_search(); }); +}); +</script> +<div id="main-nav"></div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + <div id="nav-sync" class="sync"></div> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_cl_backend_8cpp_source.xhtml','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">ClBackend.cpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_cl_backend_8cpp.xhtml">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">#include "<a class="code" href="_cl_backend_8hpp.xhtml">ClBackend.hpp</a>"</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="_cl_backend_id_8hpp.xhtml">ClBackendId.hpp</a>"</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="_cl_workload_factory_8hpp.xhtml">ClWorkloadFactory.hpp</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="_cl_backend_context_8hpp.xhtml">ClBackendContext.hpp</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="_cl_layer_support_8hpp.xhtml">ClLayerSupport.hpp</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="_cl_tensor_handle_factory_8hpp.xhtml">ClTensorHandleFactory.hpp</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_backend_registry_8hpp.xhtml">armnn/BackendRegistry.hpp</a>></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="preprocessor">#include <<a class="code" href="_base_memory_manager_8hpp.xhtml">aclCommon/BaseMemoryManager.hpp</a>></span></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> <span class="preprocessor">#include <<a class="code" href="include_2armnn_2backends_2_i_backend_context_8hpp.xhtml">armnn/backends/IBackendContext.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="include_2armnn_2backends_2_i_memory_manager_8hpp.xhtml">armnn/backends/IMemoryManager.hpp</a>></span></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="preprocessor">#include <<a class="code" href="_optimizer_8hpp.xhtml">Optimizer.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <arm_compute/runtime/CL/CLBufferAllocator.h></span></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="preprocessor">#include <boost/polymorphic_pointer_cast.hpp></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a177af502214bbc8123fbb4a3c4f0a1b8"> 29</a></span> <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a177af502214bbc8123fbb4a3c4f0a1b8">ClBackend::GetIdStatic</a>()</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> s_Id{<a class="code" href="namespacearmnn.xhtml#adfe10e7086e3e3b98927cf84aee03dd0">ClBackendId</a>()};</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> s_Id;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a93fcb3bff141d8c77b53466a44b58eee"> 35</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a12bff6d51d63dac1375c89bc8415dc46">IBackendInternal::IMemoryManagerUniquePtr</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a93fcb3bff141d8c77b53466a44b58eee">ClBackend::CreateMemoryManager</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword"></span>{</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> std::make_unique<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> }</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a8e19e275c8162e34e6d8d10a9245dbc9"> 40</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a8e19e275c8162e34e6d8d10a9245dbc9">ClBackend::CreateWorkloadFactory</a>(</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager)<span class="keyword"> const</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword"></span>{</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> std::make_unique<ClWorkloadFactory>(</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  boost::polymorphic_pointer_downcast<ClMemoryManager>(memoryManager));</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#aa2d432e503780e146c08729323da519a"> 47</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a8e19e275c8162e34e6d8d10a9245dbc9">ClBackend::CreateWorkloadFactory</a>(</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a>& registry)<span class="keyword"> const</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword"></span>{</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">auto</span> memoryManager = std::make_shared<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  registry.<a class="code" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml#a958ab0c60b6bfdfba5cc075211edec37">RegisterMemoryManager</a>(memoryManager);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> std::make_unique<ClWorkloadFactory>(</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  boost::polymorphic_pointer_downcast<ClMemoryManager>(memoryManager));</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a63559c7f206c265f5fff5ffcc8a58e3e"> 58</a></span> std::vector<ITensorHandleFactory::FactoryId> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a63559c7f206c265f5fff5ffcc8a58e3e">ClBackend::GetHandleFactoryPreferences</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword"></span>{</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> std::vector<ITensorHandleFactory::FactoryId> {<a class="code" href="classarmnn_1_1_cl_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">ClTensorHandleFactory::GetIdStatic</a>()};</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a531177ce89c53c6af616175b0b05e5c0"> 63</a></span> <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a531177ce89c53c6af616175b0b05e5c0">ClBackend::RegisterTensorHandleFactories</a>(<a class="code" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a>& registry)</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">auto</span> mgr = std::make_shared<ClMemoryManager>(std::make_unique<arm_compute::CLBufferAllocator>());</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  registry.<a class="code" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml#a958ab0c60b6bfdfba5cc075211edec37">RegisterMemoryManager</a>(mgr);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  registry.<a class="code" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml#a05f82bd846630bb3aa8afe22ef6f15fc">RegisterFactory</a>(std::make_unique<ClTensorHandleFactory>(mgr));</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">IBackendInternal::IBackendContextPtr</a></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a801cf3170dc777aca3e6f926d1bd70a5"> 72</a></span> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a801cf3170dc777aca3e6f926d1bd70a5">ClBackend::CreateBackendContext</a>(<span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a>& <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>)<span class="keyword"> const</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword"></span>{</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">IBackendContextPtr</a>{<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_cl_backend_context.xhtml">ClBackendContext</a>{options}};</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a68c2ef244261cc9649799284774af132"> 77</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">IBackendInternal::IBackendProfilingContextPtr</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a68c2ef244261cc9649799284774af132">ClBackend::CreateBackendProfilingContext</a>(</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a>&, <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a>&)</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">IBackendProfilingContextPtr</a>{};</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a87acb43c72272d9db21c547d4f4996cb"> 83</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">IBackendInternal::Optimizations</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a87acb43c72272d9db21c547d4f4996cb">ClBackend::GetOptimizations</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword"></span>{</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">Optimizations</a>{};</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a93d4285a3ea5e4e3b35578484d889daa"> 88</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">IBackendInternal::ILayerSupportSharedPtr</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a93d4285a3ea5e4e3b35578484d889daa">ClBackend::GetLayerSupport</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword"></span>{</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">static</span> <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">ILayerSupportSharedPtr</a> layerSupport{<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_cl_layer_support.xhtml">ClLayerSupport</a>};</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> layerSupport;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_backend.xhtml#a3c7ed3d210544740ecb3fa9c28d56c34"> 94</a></span> <a class="code" href="classarmnn_1_1_optimization_views.xhtml">OptimizationViews</a> <a class="code" href="classarmnn_1_1_cl_backend.xhtml#a3c7ed3d210544740ecb3fa9c28d56c34">ClBackend::OptimizeSubgraphView</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.xhtml">SubgraphView</a>& subgraph)<span class="keyword"> const</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword"></span>{</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="classarmnn_1_1_optimization_views.xhtml">OptimizationViews</a> optimizationViews;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  optimizationViews.<a class="code" href="classarmnn_1_1_optimization_views.xhtml#a28e41bdd6b719a3d60a1a0de2e1ebc95">AddUntouchedSubgraph</a>(<a class="code" href="classarmnn_1_1_subgraph_view.xhtml">SubgraphView</a>(subgraph));</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> optimizationViews;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> } <span class="comment">// namespace armnn</span></div><div class="ttc" id="classarmnn_1_1_tensor_handle_factory_registry_xhtml_a958ab0c60b6bfdfba5cc075211edec37"><div class="ttname"><a href="classarmnn_1_1_tensor_handle_factory_registry.xhtml#a958ab0c60b6bfdfba5cc075211edec37">armnn::TensorHandleFactoryRegistry::RegisterMemoryManager</a></div><div class="ttdeci">void RegisterMemoryManager(std::shared_ptr< IMemoryManager > memoryManger)</div><div class="ttdoc">Register a memory manager with shared ownership. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_factory_registry_8cpp_source.xhtml#l00034">TensorHandleFactoryRegistry.cpp:34</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_tensor_handle_factory_xhtml_acdecb5b442434112c2cc8fc48c0ea922"><div class="ttname"><a href="classarmnn_1_1_cl_tensor_handle_factory.xhtml#acdecb5b442434112c2cc8fc48c0ea922">armnn::ClTensorHandleFactory::GetIdStatic</a></div><div class="ttdeci">static const FactoryId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_cl_tensor_handle_factory_8cpp_source.xhtml#l00082">ClTensorHandleFactory.cpp:82</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a72ca1cf423bda4b0a9ffb789627126de"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#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.xhtml#l00080">IBackendInternal.hpp:80</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_ad1794808004025d6e06c176507197b24"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#ad1794808004025d6e06c176507197b24">armnn::IBackendInternal::Optimizations</a></div><div class="ttdeci">std::vector< OptimizationPtr > Optimizations</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00086">IBackendInternal.hpp:86</a></div></div> +<div class="ttc" id="include_2armnn_2backends_2_i_backend_context_8hpp_xhtml"><div class="ttname"><a href="include_2armnn_2backends_2_i_backend_context_8hpp.xhtml">IBackendContext.hpp</a></div></div> +<div class="ttc" id="namespacearmnn_xhtml_adfe10e7086e3e3b98927cf84aee03dd0"><div class="ttname"><a href="namespacearmnn.xhtml#adfe10e7086e3e3b98927cf84aee03dd0">armnn::ClBackendId</a></div><div class="ttdeci">constexpr const char * ClBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_id_8hpp_source.xhtml#l00010">ClBackendId.hpp:10</a></div></div> +<div class="ttc" id="classarmnn_1_1_tensor_handle_factory_registry_xhtml_a05f82bd846630bb3aa8afe22ef6f15fc"><div class="ttname"><a href="classarmnn_1_1_tensor_handle_factory_registry.xhtml#a05f82bd846630bb3aa8afe22ef6f15fc">armnn::TensorHandleFactoryRegistry::RegisterFactory</a></div><div class="ttdeci">void RegisterFactory(std::unique_ptr< ITensorHandleFactory > allocator)</div><div class="ttdoc">Register a TensorHandleFactory and transfer ownership. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_factory_registry_8cpp_source.xhtml#l00012">TensorHandleFactoryRegistry.cpp:12</a></div></div> +<div class="ttc" id="classarmnn_1_1_optimization_views_xhtml"><div class="ttname"><a href="classarmnn_1_1_optimization_views.xhtml">armnn::OptimizationViews</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.xhtml#l00013">OptimizationViews.hpp:13</a></div></div> +<div class="ttc" id="_cl_workload_factory_8hpp_xhtml"><div class="ttname"><a href="_cl_workload_factory_8hpp.xhtml">ClWorkloadFactory.hpp</a></div></div> +<div class="ttc" id="_base_memory_manager_8hpp_xhtml"><div class="ttname"><a href="_base_memory_manager_8hpp.xhtml">BaseMemoryManager.hpp</a></div></div> +<div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a12bff6d51d63dac1375c89bc8415dc46"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#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.xhtml#l00089">IBackendInternal.hpp:89</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a93fcb3bff141d8c77b53466a44b58eee"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a93fcb3bff141d8c77b53466a44b58eee">armnn::ClBackend::CreateMemoryManager</a></div><div class="ttdeci">IBackendInternal::IMemoryManagerUniquePtr CreateMemoryManager() const override</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00035">ClBackend.cpp:35</a></div></div> +<div class="ttc" id="_cl_backend_8hpp_xhtml"><div class="ttname"><a href="_cl_backend_8hpp.xhtml">ClBackend.hpp</a></div></div> +<div class="ttc" id="_backend_registry_8hpp_xhtml"><div class="ttname"><a href="_backend_registry_8hpp.xhtml">BackendRegistry.hpp</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a531177ce89c53c6af616175b0b05e5c0"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a531177ce89c53c6af616175b0b05e5c0">armnn::ClBackend::RegisterTensorHandleFactories</a></div><div class="ttdeci">void RegisterTensorHandleFactories(TensorHandleFactoryRegistry &registry) override</div><div class="ttdoc">(Optional) Register TensorHandleFactories Either this method or CreateMemoryManager() and IWorkloadFa...</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00063">ClBackend.cpp:63</a></div></div> +<div class="ttc" id="_optimizer_8hpp_xhtml"><div class="ttname"><a href="_optimizer_8hpp.xhtml">Optimizer.hpp</a></div></div> +<div class="ttc" id="classarmnn_1_1_subgraph_view_xhtml"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.xhtml">armnn::SubgraphView</a></div><div class="ttdoc">The SubgraphView class represents a subgraph of a Graph. </div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.xhtml#l00023">SubgraphView.hpp:23</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a34ab83489d1c5043b2b9b4a2ec13c481"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#a34ab83489d1c5043b2b9b4a2ec13c481">armnn::IBackendInternal::IBackendProfilingPtr</a></div><div class="ttdeci">std::unique_ptr< armnn::profiling::IBackendProfiling > IBackendProfilingPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00084">IBackendInternal.hpp:84</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a693b40e6b94e958836aeb0410ca186bd"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a></div><div class="ttdeci">std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00090">IBackendInternal.hpp:90</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a801cf3170dc777aca3e6f926d1bd70a5"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a801cf3170dc777aca3e6f926d1bd70a5">armnn::ClBackend::CreateBackendContext</a></div><div class="ttdeci">IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const override</div><div class="ttdoc">Create the runtime context of the backend. </div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00072">ClBackend.cpp:72</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a63559c7f206c265f5fff5ffcc8a58e3e"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a63559c7f206c265f5fff5ffcc8a58e3e">armnn::ClBackend::GetHandleFactoryPreferences</a></div><div class="ttdeci">std::vector< ITensorHandleFactory::FactoryId > GetHandleFactoryPreferences() const override</div><div class="ttdoc">(Optional) Returns a vector of supported TensorHandleFactory ids in preference order. </div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00058">ClBackend.cpp:58</a></div></div> +<div class="ttc" id="classarmnn_1_1_optimization_views_xhtml_a28e41bdd6b719a3d60a1a0de2e1ebc95"><div class="ttname"><a href="classarmnn_1_1_optimization_views.xhtml#a28e41bdd6b719a3d60a1a0de2e1ebc95">armnn::OptimizationViews::AddUntouchedSubgraph</a></div><div class="ttdeci">void AddUntouchedSubgraph(SubgraphView &&subgraph)</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.xhtml#l00044">OptimizationViews.hpp:44</a></div></div> +<div class="ttc" id="_cl_backend_context_8hpp_xhtml"><div class="ttname"><a href="_cl_backend_context_8hpp.xhtml">ClBackendContext.hpp</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a3c7ed3d210544740ecb3fa9c28d56c34"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a3c7ed3d210544740ecb3fa9c28d56c34">armnn::ClBackend::OptimizeSubgraphView</a></div><div class="ttdeci">OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph) const override</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00094">ClBackend.cpp:94</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a8e19e275c8162e34e6d8d10a9245dbc9"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a8e19e275c8162e34e6d8d10a9245dbc9">armnn::ClBackend::CreateWorkloadFactory</a></div><div class="ttdeci">IBackendInternal::IWorkloadFactoryPtr CreateWorkloadFactory(const IBackendInternal::IMemoryManagerSharedPtr &memoryManager=nullptr) const override</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00040">ClBackend.cpp:40</a></div></div> +<div class="ttc" id="classarmnn_1_1_tensor_handle_factory_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">armnn::TensorHandleFactoryRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_factory_registry_8hpp_source.xhtml#l00020">TensorHandleFactoryRegistry.hpp:20</a></div></div> +<div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a11fa919c11fe46aad613b2e960fcfe90"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#a11fa919c11fe46aad613b2e960fcfe90">armnn::IBackendInternal::ILayerSupportSharedPtr</a></div><div class="ttdeci">std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00087">IBackendInternal.hpp:87</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a93d4285a3ea5e4e3b35578484d889daa"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a93d4285a3ea5e4e3b35578484d889daa">armnn::ClBackend::GetLayerSupport</a></div><div class="ttdeci">IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00088">ClBackend.cpp:88</a></div></div> +<div class="ttc" id="_cl_tensor_handle_factory_8hpp_xhtml"><div class="ttname"><a href="_cl_tensor_handle_factory_8hpp.xhtml">ClTensorHandleFactory.hpp</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a68c2ef244261cc9649799284774af132"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a68c2ef244261cc9649799284774af132">armnn::ClBackend::CreateBackendProfilingContext</a></div><div class="ttdeci">IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &, IBackendProfilingPtr &backendProfiling) override</div><div class="ttdoc">Create context specifically used for profiling interaction from backends. </div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00077">ClBackend.cpp:77</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_layer_support_xhtml"><div class="ttname"><a href="classarmnn_1_1_cl_layer_support.xhtml">armnn::ClLayerSupport</a></div><div class="ttdef"><b>Definition:</b> <a href="_cl_layer_support_8hpp_source.xhtml#l00012">ClLayerSupport.hpp:12</a></div></div> +<div class="ttc" id="_cl_backend_id_8hpp_xhtml"><div class="ttname"><a href="_cl_backend_id_8hpp.xhtml">ClBackendId.hpp</a></div></div> +<div class="ttc" id="include_2armnn_2backends_2_i_memory_manager_8hpp_xhtml"><div class="ttname"><a href="include_2armnn_2backends_2_i_memory_manager_8hpp.xhtml">IMemoryManager.hpp</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_context_xhtml"><div class="ttname"><a href="classarmnn_1_1_cl_backend_context.xhtml">armnn::ClBackendContext</a></div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_context_8hpp_source.xhtml#l00016">ClBackendContext.hpp:16</a></div></div> +<div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a87acb43c72272d9db21c547d4f4996cb"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a87acb43c72272d9db21c547d4f4996cb">armnn::ClBackend::GetOptimizations</a></div><div class="ttdeci">IBackendInternal::Optimizations GetOptimizations() const override</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00083">ClBackend.cpp:83</a></div></div> +<div class="ttc" id="classarmnn_1_1_cl_backend_xhtml_a177af502214bbc8123fbb4a3c4f0a1b8"><div class="ttname"><a href="classarmnn_1_1_cl_backend.xhtml#a177af502214bbc8123fbb4a3c4f0a1b8">armnn::ClBackend::GetIdStatic</a></div><div class="ttdeci">static const BackendId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_8cpp_source.xhtml#l00029">ClBackend.cpp:29</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_aaece3a614f6691da8de8c7295cb1b07f"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#aaece3a614f6691da8de8c7295cb1b07f">armnn::IBackendInternal::IBackendProfilingContextPtr</a></div><div class="ttdeci">std::shared_ptr< armnn::profiling::IBackendProfilingContext > IBackendProfilingContextPtr</div><div class="ttdoc">This is the bridge between backend and backend profiling we&#39;ll keep it in the backend namespace...</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00083">IBackendInternal.hpp:83</a></div></div> +<div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> +<div class="ttc" id="_cl_layer_support_8hpp_xhtml"><div class="ttname"><a href="_cl_layer_support_8hpp.xhtml">ClLayerSupport.hpp</a></div></div> +<div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_ada6d56575c0fe53cf23c7ae4610c6367"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#ada6d56575c0fe53cf23c7ae4610c6367">armnn::IBackendInternal::IBackendContextPtr</a></div><div class="ttdeci">std::unique_ptr< IBackendContext > IBackendContextPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00081">IBackendInternal.hpp:81</a></div></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.xhtml">backends</a></li><li class="navelem"><a class="el" href="dir_1ad86c6d39ab715a831555571b9e98a5.xhtml">cl</a></li><li class="navelem"><a class="el" href="_cl_backend_8cpp.xhtml">ClBackend.cpp</a></li> + <li class="footer">Generated on Fri Mar 13 2020 16:09:11 for ArmNN by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> + </ul> +</div> +</body> +</html> |