Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: ClBackendContext Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1_cl_backend_context.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="classarmnn_1_1_cl_backend_context-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">ClBackendContext Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_cl_backend_context_8hpp_source.xhtml">ClBackendContext.hpp</a>></code></p> |
| 106 | <div class="dynheader"> |
| 107 | Inheritance diagram for ClBackendContext:</div> |
| 108 | <div class="dyncontent"> |
| 109 | <div class="center"> |
| 110 | <img src="classarmnn_1_1_cl_backend_context.png" usemap="#ClBackendContext_map" alt=""/> |
| 111 | <map id="ClBackendContext_map" name="ClBackendContext_map"> |
| 112 | <area href="classarmnn_1_1_i_backend_context.xhtml" alt="IBackendContext" shape="rect" coords="0,0,115,24"/> |
| 113 | </map> |
| 114 | </div></div> |
| 115 | <table class="memberdecls"> |
| 116 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 117 | Public Member Functions</h2></td></tr> |
| 118 | <tr class="memitem:a46628231c197cb066ddf3fe676b44038"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml#a46628231c197cb066ddf3fe676b44038">ClBackendContext</a> (const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> &<a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>)</td></tr> |
| 119 | <tr class="separator:a46628231c197cb066ddf3fe676b44038"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:ae8b132bb727f3594b8613a66096fbd99"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml#ae8b132bb727f3594b8613a66096fbd99">BeforeLoadNetwork</a> (<a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) override</td></tr> |
| 121 | <tr class="memdesc:ae8b132bb727f3594b8613a66096fbd99"><td class="mdescLeft"> </td><td class="mdescRight">Before and after Load network events. <a href="#ae8b132bb727f3594b8613a66096fbd99">More...</a><br /></td></tr> |
| 122 | <tr class="separator:ae8b132bb727f3594b8613a66096fbd99"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a8285e428113914dee00fb06ac0f3af1e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml#a8285e428113914dee00fb06ac0f3af1e">AfterLoadNetwork</a> (<a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) override</td></tr> |
| 124 | <tr class="separator:a8285e428113914dee00fb06ac0f3af1e"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:acb272e49e9da9835827451184feee061"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml#acb272e49e9da9835827451184feee061">BeforeUnloadNetwork</a> (<a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) override</td></tr> |
| 126 | <tr class="memdesc:acb272e49e9da9835827451184feee061"><td class="mdescLeft"> </td><td class="mdescRight">Before and after Unload network events. <a href="#acb272e49e9da9835827451184feee061">More...</a><br /></td></tr> |
| 127 | <tr class="separator:acb272e49e9da9835827451184feee061"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a16900a3d8c0121a45ceb870f1815bc4d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml#a16900a3d8c0121a45ceb870f1815bc4d">AfterUnloadNetwork</a> (<a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) override</td></tr> |
| 129 | <tr class="separator:a16900a3d8c0121a45ceb870f1815bc4d"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:a9cd81257364a0a85008f1d4109016264"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml#a9cd81257364a0a85008f1d4109016264">~ClBackendContext</a> () override</td></tr> |
| 131 | <tr class="separator:a9cd81257364a0a85008f1d4109016264"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="inherit_header pub_methods_classarmnn_1_1_i_backend_context"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_i_backend_context')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_backend_context.xhtml">IBackendContext</a></td></tr> |
| 133 | <tr class="memitem:a13815a4455284ba43cae24ff99f6fc43 inherit pub_methods_classarmnn_1_1_i_backend_context"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_context.xhtml#a13815a4455284ba43cae24ff99f6fc43">~IBackendContext</a> ()</td></tr> |
| 134 | <tr class="separator:a13815a4455284ba43cae24ff99f6fc43 inherit pub_methods_classarmnn_1_1_i_backend_context"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | </table><table class="memberdecls"> |
| 136 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 137 | Additional Inherited Members</h2></td></tr> |
| 138 | <tr class="inherit_header pro_methods_classarmnn_1_1_i_backend_context"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_backend_context')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_backend_context.xhtml">IBackendContext</a></td></tr> |
| 139 | <tr class="memitem:a5d40cc5069980f1cd99780fdd6230cc8 inherit pro_methods_classarmnn_1_1_i_backend_context"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_backend_context.xhtml#a5d40cc5069980f1cd99780fdd6230cc8">IBackendContext</a> (const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> &)</td></tr> |
| 140 | <tr class="separator:a5d40cc5069980f1cd99780fdd6230cc8 inherit pro_methods_classarmnn_1_1_i_backend_context"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | </table> |
| 142 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 143 | <div class="textblock"> |
| 144 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8hpp_source.xhtml#l00016">16</a> of file <a class="el" href="_cl_backend_context_8hpp_source.xhtml">ClBackendContext.hpp</a>.</p> |
| 145 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 146 | <a id="a46628231c197cb066ddf3fe676b44038"></a> |
| 147 | <h2 class="memtitle"><span class="permalink"><a href="#a46628231c197cb066ddf3fe676b44038">◆ </a></span>ClBackendContext()</h2> |
| 148 | |
| 149 | <div class="memitem"> |
| 150 | <div class="memproto"> |
| 151 | <table class="memname"> |
| 152 | <tr> |
| 153 | <td class="memname"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml">ClBackendContext</a> </td> |
| 154 | <td>(</td> |
| 155 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> & </td> |
| 156 | <td class="paramname"><em>options</em></td><td>)</td> |
| 157 | <td></td> |
| 158 | </tr> |
| 159 | </table> |
| 160 | </div><div class="memdoc"> |
| 161 | |
| 162 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00153">153</a> of file <a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a>.</p> |
| 163 | |
| 164 | <p class="reference">References <a class="el" href="_logging_8hpp_source.xhtml#l00163">ARMNN_LOG</a>, <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00131">armnn::ConfigureTuner()</a>, <a class="el" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">armnn::Exhaustive</a>, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">IGpuAccTunedParameters::Exhaustive</a>, <a class="el" href="_i_runtime_8hpp_source.xhtml#l00108">IRuntime::CreationOptions::m_BackendOptions</a>, <a class="el" href="_i_runtime_8hpp_source.xhtml#l00054">IRuntime::CreationOptions::m_EnableGpuProfiling</a>, <a class="el" href="_i_runtime_8hpp_source.xhtml#l00051">IRuntime::CreationOptions::m_GpuAccTunedParameters</a>, <a class="el" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa6adf97f83acf6453d4a6a4b1070f3754">armnn::None</a>, <a class="el" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">armnn::Normal</a>, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">IGpuAccTunedParameters::Normal</a>, <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00106">armnn::ParseFile()</a>, <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00116">armnn::ParseOptions()</a>, <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00078">armnn::ParseTuningLevel()</a>, <a class="el" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">armnn::Rapid</a>, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">IGpuAccTunedParameters::Rapid</a>, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b">IGpuAccTunedParameters::UseTunedParameters</a>, and <a class="el" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">armnn::warning</a>.</p> |
| 165 | <div class="fragment"><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  : <a class="code" href="classarmnn_1_1_i_backend_context.xhtml#a5d40cc5069980f1cd99780fdd6230cc8">IBackendContext</a>(<a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>)</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  , m_TuningFile()</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="keywordtype">bool</span> kernelProfiling = <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>.m_EnableGpuProfiling;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  arm_compute::CLTuner* tuner = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">bool</span> useLegacyTunerAPI = <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>.m_GpuAccTunedParameters.get() != <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">if</span> (useLegacyTunerAPI)</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  {</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">auto</span> clTunerParams = boost::polymorphic_downcast<ClTunedParameters*>(</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>.m_GpuAccTunedParameters.get());</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  tuner = &clTunerParams->m_Tuner;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">if</span> (tuner)</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">auto</span> ConvertTuningLevel = [](<a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">IGpuAccTunedParameters::TuningLevel</a> level,</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">armnn::IGpuAccTunedParameters::Mode</a> mode)</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>  <span class="keywordflow">if</span> (mode == <a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b">armnn::IGpuAccTunedParameters::Mode::UseTunedParameters</a>)</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa6adf97f83acf6453d4a6a4b1070f3754">TuningLevel::None</a>;</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> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">switch</span>(level)</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">case</span> <a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">IGpuAccTunedParameters::TuningLevel::Rapid</a>:</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">TuningLevel::Rapid</a>;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">case</span> <a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">IGpuAccTunedParameters::TuningLevel::Normal</a>:</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">TuningLevel::Normal</a>;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">case</span> <a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">IGpuAccTunedParameters::TuningLevel::Exhaustive</a>:</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">TuningLevel::Exhaustive</a>;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Tuning level not recognised."</span>);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa6adf97f83acf6453d4a6a4b1070f3754">TuningLevel::None</a>;</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>  }</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  };</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> tuningLevel = ConvertTuningLevel(clTunerParams->m_TuningLevel, clTunerParams->m_Mode);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="namespacearmnn.xhtml#ab562537b5c1ef1e6cde9db9f5fa322bd">ConfigureTuner</a>(*tuner, tuningLevel);</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</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>  <span class="keywordflow">else</span> <span class="comment">//New backend options API</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  {</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> defaultTuningLevel = <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa6adf97f83acf6453d4a6a4b1070f3754">TuningLevel::None</a>;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keyword">auto</span> tuningLevel = defaultTuningLevel;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="namespacearmnn.xhtml#af457790132251cde6545072d879c7684">ParseOptions</a>(<a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>.m_BackendOptions, <span class="stringliteral">"GpuAcc"</span>, [&](std::string name, <span class="keyword">const</span> BackendOptions::Var& value)</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>  if (name == <span class="stringliteral">"KernelProfilingEnabled"</span>)</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  kernelProfiling |= ParseBoolean(value, false);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  } <span class="keywordflow">else</span> if (name == <span class="stringliteral">"TuningFile"</span>)</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>  m_TuningFile = <a class="code" href="namespacearmnn.xhtml#a4e9a59f936f3d2050a17597d22825f53">ParseFile</a>(value, <span class="stringliteral">""</span>);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (name == <span class="stringliteral">"TuningLevel"</span>)</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  {</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  tuningLevel = <a class="code" href="namespacearmnn.xhtml#a3ca05ac77af0a0444ff34c1319094f6d">ParseTuningLevel</a>(value, defaultTuningLevel);</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>  });</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="comment">// Create the tuner, in tuning mode initially.</span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  m_Tuner = std::make_unique<arm_compute::CLTuner>(<span class="keyword">true</span>);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="namespacearmnn.xhtml#ab562537b5c1ef1e6cde9db9f5fa322bd">ConfigureTuner</a>(*(m_Tuner.get()), tuningLevel);</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>  <span class="keywordflow">if</span> (!m_TuningFile.empty())</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  {</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  {</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  m_Tuner->load_from_file(m_TuningFile.c_str());</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  } <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception& e)</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  {</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="_logging_8hpp.xhtml#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(<a class="code" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">warning</a>) << <span class="stringliteral">"Could not load GpuAcc tuner data file."</span>;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  tuner = m_Tuner.get();</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</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> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  m_ClContextControlWrapper = std::make_unique<ClContextControlWrapper>(</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  tuner,</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  kernelProfiling</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  );</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div><div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b">armnn::IGpuAccTunedParameters::Mode::UseTunedParameters</a></div></div> |
| 166 | <div class="ttc" id="namespacearmnn_xhtml_af457790132251cde6545072d879c7684"><div class="ttname"><a href="namespacearmnn.xhtml#af457790132251cde6545072d879c7684">armnn::ParseOptions</a></div><div class="ttdeci">void ParseOptions(const std::vector< BackendOptions > &options, BackendId backend, F f)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_context_8cpp_source.xhtml#l00116">ClBackendContext.cpp:116</a></div></div> |
| 167 | <div class="ttc" id="_logging_8hpp_xhtml_a7b6ad073975f437ec38ca7d20154727f"><div class="ttname"><a href="_logging_8hpp.xhtml#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a></div><div class="ttdeci">#define ARMNN_LOG(severity)</div><div class="ttdef"><b>Definition:</b> <a href="_logging_8hpp_source.xhtml#l00163">Logging.hpp:163</a></div></div> |
| 168 | <div class="ttc" id="namespacearmnn_xhtml_ab562537b5c1ef1e6cde9db9f5fa322bd"><div class="ttname"><a href="namespacearmnn.xhtml#ab562537b5c1ef1e6cde9db9f5fa322bd">armnn::ConfigureTuner</a></div><div class="ttdeci">void ConfigureTuner(arm_compute::CLTuner &tuner, TuningLevel level)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_context_8cpp_source.xhtml#l00131">ClBackendContext.cpp:131</a></div></div> |
| 169 | <div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a46c8a310cf4c094f8c80e1cb8dc1f911"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">armnn::IGpuAccTunedParameters::Mode</a></div><div class="ttdeci">Mode</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00186">IRuntime.hpp:186</a></div></div> |
| 170 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9a"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9a">armnn::TuningLevel</a></div><div class="ttdeci">TuningLevel</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_context_8cpp_source.xhtml#l00069">ClBackendContext.cpp:69</a></div></div> |
| 171 | <div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a707090747256af276c389e0cf1cb0a9a"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">armnn::IGpuAccTunedParameters::TuningLevel</a></div><div class="ttdeci">TuningLevel</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00192">IRuntime.hpp:192</a></div></div> |
| 172 | <div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">armnn::IGpuAccTunedParameters::TuningLevel::Rapid</a></div></div> |
| 173 | <div class="ttc" id="namespacearmnn_xhtml_a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd"><div class="ttname"><a href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">armnn::BoostLogSeverityMapping::warning</a></div></div> |
| 174 | <div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">armnn::IGpuAccTunedParameters::TuningLevel::Normal</a></div></div> |
| 175 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">armnn::TuningLevel::Rapid</a></div></div> |
| 176 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">armnn::TuningLevel::Exhaustive</a></div></div> |
| 177 | <div class="ttc" id="namespacearmnn_xhtml_a4e9a59f936f3d2050a17597d22825f53"><div class="ttname"><a href="namespacearmnn.xhtml#a4e9a59f936f3d2050a17597d22825f53">armnn::ParseFile</a></div><div class="ttdeci">std::string ParseFile(const BackendOptions::Var &value, std::string defaultValue)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_context_8cpp_source.xhtml#l00106">ClBackendContext.cpp:106</a></div></div> |
| 178 | <div class="ttc" id="namespacearmnn_xhtml_a3ca05ac77af0a0444ff34c1319094f6d"><div class="ttname"><a href="namespacearmnn.xhtml#a3ca05ac77af0a0444ff34c1319094f6d">armnn::ParseTuningLevel</a></div><div class="ttdeci">TuningLevel ParseTuningLevel(const BackendOptions::Var &value, TuningLevel defaultValue)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_backend_context_8cpp_source.xhtml#l00078">ClBackendContext.cpp:78</a></div></div> |
| 179 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">armnn::TuningLevel::Normal</a></div></div> |
| 180 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aa6adf97f83acf6453d4a6a4b1070f3754"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa6adf97f83acf6453d4a6a4b1070f3754">armnn::TuningLevel::None</a></div></div> |
| 181 | <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> |
| 182 | <div class="ttc" id="classarmnn_1_1_i_backend_context_xhtml_a5d40cc5069980f1cd99780fdd6230cc8"><div class="ttname"><a href="classarmnn_1_1_i_backend_context.xhtml#a5d40cc5069980f1cd99780fdd6230cc8">armnn::IBackendContext::IBackendContext</a></div><div class="ttdeci">IBackendContext(const IRuntime::CreationOptions &)</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_context_8hpp_source.xhtml#l00016">IBackendContext.hpp:16</a></div></div> |
| 183 | <div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">armnn::IGpuAccTunedParameters::TuningLevel::Exhaustive</a></div></div> |
| 184 | </div><!-- fragment --> |
| 185 | </div> |
| 186 | </div> |
| 187 | <a id="a9cd81257364a0a85008f1d4109016264"></a> |
| 188 | <h2 class="memtitle"><span class="permalink"><a href="#a9cd81257364a0a85008f1d4109016264">◆ </a></span>~ClBackendContext()</h2> |
| 189 | |
| 190 | <div class="memitem"> |
| 191 | <div class="memproto"> |
| 192 | <table class="mlabels"> |
| 193 | <tr> |
| 194 | <td class="mlabels-left"> |
| 195 | <table class="memname"> |
| 196 | <tr> |
| 197 | <td class="memname">~<a class="el" href="classarmnn_1_1_cl_backend_context.xhtml">ClBackendContext</a> </td> |
| 198 | <td>(</td> |
| 199 | <td class="paramname"></td><td>)</td> |
| 200 | <td></td> |
| 201 | </tr> |
| 202 | </table> |
| 203 | </td> |
| 204 | <td class="mlabels-right"> |
| 205 | <span class="mlabels"><span class="mlabel">override</span></span> </td> |
| 206 | </tr> |
| 207 | </table> |
| 208 | </div><div class="memdoc"> |
| 209 | |
| 210 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00277">277</a> of file <a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a>.</p> |
| 211 | |
| 212 | <p class="reference">References <a class="el" href="_logging_8hpp_source.xhtml#l00163">ARMNN_LOG</a>, and <a class="el" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">armnn::warning</a>.</p> |
| 213 | <div class="fragment"><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> {</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">if</span> (m_Tuner && !m_TuningFile.empty())</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  {</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  {</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  m_Tuner->save_to_file(m_TuningFile.c_str());</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  }</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordflow">catch</span>(<span class="keyword">const</span> std::exception& e)</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  {</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="_logging_8hpp.xhtml#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(<a class="code" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">warning</a>) << <span class="stringliteral">"Could not save GpuAcc tuner data to file "</span> << m_TuningFile;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  }</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  }</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> }</div><div class="ttc" id="_logging_8hpp_xhtml_a7b6ad073975f437ec38ca7d20154727f"><div class="ttname"><a href="_logging_8hpp.xhtml#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a></div><div class="ttdeci">#define ARMNN_LOG(severity)</div><div class="ttdef"><b>Definition:</b> <a href="_logging_8hpp_source.xhtml#l00163">Logging.hpp:163</a></div></div> |
| 214 | <div class="ttc" id="namespacearmnn_xhtml_a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd"><div class="ttname"><a href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">armnn::BoostLogSeverityMapping::warning</a></div></div> |
| 215 | </div><!-- fragment --> |
| 216 | </div> |
| 217 | </div> |
| 218 | <h2 class="groupheader">Member Function Documentation</h2> |
| 219 | <a id="a8285e428113914dee00fb06ac0f3af1e"></a> |
| 220 | <h2 class="memtitle"><span class="permalink"><a href="#a8285e428113914dee00fb06ac0f3af1e">◆ </a></span>AfterLoadNetwork()</h2> |
| 221 | |
| 222 | <div class="memitem"> |
| 223 | <div class="memproto"> |
| 224 | <table class="mlabels"> |
| 225 | <tr> |
| 226 | <td class="mlabels-left"> |
| 227 | <table class="memname"> |
| 228 | <tr> |
| 229 | <td class="memname">bool AfterLoadNetwork </td> |
| 230 | <td>(</td> |
| 231 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> </td> |
| 232 | <td class="paramname"><em>networkId</em></td><td>)</td> |
| 233 | <td></td> |
| 234 | </tr> |
| 235 | </table> |
| 236 | </td> |
| 237 | <td class="mlabels-right"> |
| 238 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 239 | </tr> |
| 240 | </table> |
| 241 | </div><div class="memdoc"> |
| 242 | |
| 243 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_context.xhtml#ac938e77cdaee5ad3b2ed5edb29e71ec4">IBackendContext</a>.</p> |
| 244 | |
| 245 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00246">246</a> of file <a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a>.</p> |
| 246 | <div class="fragment"><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> {</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>  std::lock_guard<std::mutex> lockGuard(m_Mutex);</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  m_NetworkIds.insert(networkId);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  }</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> }</div></div><!-- fragment --> |
| 247 | </div> |
| 248 | </div> |
| 249 | <a id="a16900a3d8c0121a45ceb870f1815bc4d"></a> |
| 250 | <h2 class="memtitle"><span class="permalink"><a href="#a16900a3d8c0121a45ceb870f1815bc4d">◆ </a></span>AfterUnloadNetwork()</h2> |
| 251 | |
| 252 | <div class="memitem"> |
| 253 | <div class="memproto"> |
| 254 | <table class="mlabels"> |
| 255 | <tr> |
| 256 | <td class="mlabels-left"> |
| 257 | <table class="memname"> |
| 258 | <tr> |
| 259 | <td class="memname">bool AfterUnloadNetwork </td> |
| 260 | <td>(</td> |
| 261 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> </td> |
| 262 | <td class="paramname"><em>networkId</em></td><td>)</td> |
| 263 | <td></td> |
| 264 | </tr> |
| 265 | </table> |
| 266 | </td> |
| 267 | <td class="mlabels-right"> |
| 268 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 269 | </tr> |
| 270 | </table> |
| 271 | </div><div class="memdoc"> |
| 272 | |
| 273 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_context.xhtml#a9daa97deba9fecfe23bdd0b6ec387ceb">IBackendContext</a>.</p> |
| 274 | |
| 275 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00260">260</a> of file <a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a>.</p> |
| 276 | <div class="fragment"><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>  <span class="keywordtype">bool</span> clearCache = <span class="keyword">false</span>;</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>  std::lock_guard<std::mutex> lockGuard(m_Mutex);</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  m_NetworkIds.erase(networkId);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  clearCache = m_NetworkIds.empty();</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  }</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">if</span> (clearCache)</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  {</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  m_ClContextControlWrapper->ClearClCache();</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  }</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> </div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> }</div></div><!-- fragment --> |
| 277 | </div> |
| 278 | </div> |
| 279 | <a id="ae8b132bb727f3594b8613a66096fbd99"></a> |
| 280 | <h2 class="memtitle"><span class="permalink"><a href="#ae8b132bb727f3594b8613a66096fbd99">◆ </a></span>BeforeLoadNetwork()</h2> |
| 281 | |
| 282 | <div class="memitem"> |
| 283 | <div class="memproto"> |
| 284 | <table class="mlabels"> |
| 285 | <tr> |
| 286 | <td class="mlabels-left"> |
| 287 | <table class="memname"> |
| 288 | <tr> |
| 289 | <td class="memname">bool BeforeLoadNetwork </td> |
| 290 | <td>(</td> |
| 291 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> </td> |
| 292 | <td class="paramname"><em>networkId</em></td><td>)</td> |
| 293 | <td></td> |
| 294 | </tr> |
| 295 | </table> |
| 296 | </td> |
| 297 | <td class="mlabels-right"> |
| 298 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 299 | </tr> |
| 300 | </table> |
| 301 | </div><div class="memdoc"> |
| 302 | |
| 303 | <p>Before and after Load network events. </p> |
| 304 | |
| 305 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_context.xhtml#a713bc02a1dd5b8e9ef512a8d32d70b61">IBackendContext</a>.</p> |
| 306 | |
| 307 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00241">241</a> of file <a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a>.</p> |
| 308 | <div class="fragment"><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> {</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> }</div></div><!-- fragment --> |
| 309 | </div> |
| 310 | </div> |
| 311 | <a id="acb272e49e9da9835827451184feee061"></a> |
| 312 | <h2 class="memtitle"><span class="permalink"><a href="#acb272e49e9da9835827451184feee061">◆ </a></span>BeforeUnloadNetwork()</h2> |
| 313 | |
| 314 | <div class="memitem"> |
| 315 | <div class="memproto"> |
| 316 | <table class="mlabels"> |
| 317 | <tr> |
| 318 | <td class="mlabels-left"> |
| 319 | <table class="memname"> |
| 320 | <tr> |
| 321 | <td class="memname">bool BeforeUnloadNetwork </td> |
| 322 | <td>(</td> |
| 323 | <td class="paramtype"><a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> </td> |
| 324 | <td class="paramname"><em>networkId</em></td><td>)</td> |
| 325 | <td></td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </td> |
| 329 | <td class="mlabels-right"> |
| 330 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 331 | </tr> |
| 332 | </table> |
| 333 | </div><div class="memdoc"> |
| 334 | |
| 335 | <p>Before and after Unload network events. </p> |
| 336 | |
| 337 | <p>Implements <a class="el" href="classarmnn_1_1_i_backend_context.xhtml#a8c6bb1875b98f745a05ca3881d3122d9">IBackendContext</a>.</p> |
| 338 | |
| 339 | <p class="definition">Definition at line <a class="el" href="_cl_backend_context_8cpp_source.xhtml#l00255">255</a> of file <a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a>.</p> |
| 340 | <div class="fragment"><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> {</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">return</span> m_ClContextControlWrapper->Sync();</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> }</div></div><!-- fragment --> |
| 341 | </div> |
| 342 | </div> |
| 343 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 344 | <li>src/backends/cl/<a class="el" href="_cl_backend_context_8hpp_source.xhtml">ClBackendContext.hpp</a></li> |
| 345 | <li>src/backends/cl/<a class="el" href="_cl_backend_context_8cpp_source.xhtml">ClBackendContext.cpp</a></li> |
| 346 | </ul> |
| 347 | </div><!-- contents --> |
| 348 | </div><!-- doc-content --> |
| 349 | <!-- start footer part --> |
| 350 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 351 | <ul> |
| 352 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_cl_backend_context.xhtml">ClBackendContext</a></li> |
| 353 | <li class="footer">Generated on Fri Mar 13 2020 16:09:17 for ArmNN by |
| 354 | <a href="http://www.doxygen.org/index.html"> |
| 355 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 356 | </ul> |
| 357 | </div> |
| 358 | </body> |
| 359 | </html> |