blob: c933c4862916f6aa924d2e1f0ceac6c6ddbd3692 [file] [log] [blame]
<!-- 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: ClTunedParameters Class Reference</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">
&#160;<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('classarmnn_1_1_cl_tuned_parameters.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="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classarmnn_1_1_cl_tuned_parameters-members.xhtml">List of all members</a> </div>
<div class="headertitle">
<div class="title">ClTunedParameters Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_cl_context_control_8hpp_source.xhtml">ClContextControl.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ClTunedParameters:</div>
<div class="dyncontent">
<div class="center">
<img src="classarmnn_1_1_cl_tuned_parameters.png" usemap="#ClTunedParameters_map" alt=""/>
<map id="ClTunedParameters_map" name="ClTunedParameters_map">
<area href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml" title="Manages a set of GpuAcc parameters which have been tuned for maximum performance. ..." alt="IGpuAccTunedParameters" shape="rect" coords="0,0,160,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a73cc0aa02d5ea2b86e235fda9ecc643c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#a73cc0aa02d5ea2b86e235fda9ecc643c">ClTunedParameters</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">armnn::IGpuAccTunedParameters::Mode</a> mode, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">armnn::IGpuAccTunedParameters::TuningLevel</a> tuningLevel)</td></tr>
<tr class="separator:a73cc0aa02d5ea2b86e235fda9ecc643c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a889d1f94053989d53d14a401d38cbe66"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#a889d1f94053989d53d14a401d38cbe66">Load</a> (const char *filename)</td></tr>
<tr class="memdesc:a889d1f94053989d53d14a401d38cbe66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads an existing set of tuned parameters from the given file. <a href="#a889d1f94053989d53d14a401d38cbe66">More...</a><br /></td></tr>
<tr class="separator:a889d1f94053989d53d14a401d38cbe66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abba27f4c1828aae6b0103bf1bc093f2c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#abba27f4c1828aae6b0103bf1bc093f2c">Save</a> (const char *filename) const</td></tr>
<tr class="memdesc:abba27f4c1828aae6b0103bf1bc093f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the current set of tuned parameters to the given file. <a href="#abba27f4c1828aae6b0103bf1bc093f2c">More...</a><br /></td></tr>
<tr class="separator:abba27f4c1828aae6b0103bf1bc093f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a22f392e24a1f2155875e3063a7491e4d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#a22f392e24a1f2155875e3063a7491e4d">m_Mode</a></td></tr>
<tr class="separator:a22f392e24a1f2155875e3063a7491e4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab277b661f23f9ff45b28027f47a126ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#ab277b661f23f9ff45b28027f47a126ef">m_TuningLevel</a></td></tr>
<tr class="separator:ab277b661f23f9ff45b28027f47a126ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6747d9aa587bd8b4ded70fbdcbe1d4a"><td class="memItemLeft" align="right" valign="top">arm_compute::CLTuner&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">m_Tuner</a></td></tr>
<tr class="separator:af6747d9aa587bd8b4ded70fbdcbe1d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classarmnn_1_1_i_gpu_acc_tuned_parameters')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a></td></tr>
<tr class="memitem:a46c8a310cf4c094f8c80e1cb8dc1f911 inherit pub_types_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> { <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b">UseTunedParameters</a>,
<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104">UpdateTunedParameters</a>
}</td></tr>
<tr class="separator:a46c8a310cf4c094f8c80e1cb8dc1f911 inherit pub_types_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a707090747256af276c389e0cf1cb0a9a inherit pub_types_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> { <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">Rapid</a> = 0,
<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">Normal</a> = 1,
<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">Exhaustive</a> = 2
}</td></tr>
<tr class="separator:a707090747256af276c389e0cf1cb0a9a inherit pub_types_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a></td></tr>
<tr class="memitem:a2c9ba55e7d8c02cb8596149e4e94e009 inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a2c9ba55e7d8c02cb8596149e4e94e009">Destroy</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> *params)</td></tr>
<tr class="separator:a2c9ba55e7d8c02cb8596149e4e94e009 inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab5b1541a77a293348a19f5885a4245e inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#aab5b1541a77a293348a19f5885a4245e">CreateRaw</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> mode, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> tunerMode)</td></tr>
<tr class="memdesc:aab5b1541a77a293348a19f5885a4245e inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an IClTunedParameters with the given mode. <a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#aab5b1541a77a293348a19f5885a4245e">More...</a><br /></td></tr>
<tr class="separator:aab5b1541a77a293348a19f5885a4245e inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44a119f8130b33053df7b48615729868 inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">IGpuAccTunedParametersPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a44a119f8130b33053df7b48615729868">Create</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> mode, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> tunerMode)</td></tr>
<tr class="separator:a44a119f8130b33053df7b48615729868 inherit pub_static_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a></td></tr>
<tr class="memitem:a42b98f24092313b6a7673b54a3a84aa4 inherit pro_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a42b98f24092313b6a7673b54a3a84aa4">~IGpuAccTunedParameters</a> ()</td></tr>
<tr class="separator:a42b98f24092313b6a7673b54a3a84aa4 inherit pro_methods_classarmnn_1_1_i_gpu_acc_tuned_parameters"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8hpp_source.xhtml#l00042">42</a> of file <a class="el" href="_cl_context_control_8hpp_source.xhtml">ClContextControl.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a73cc0aa02d5ea2b86e235fda9ecc643c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73cc0aa02d5ea2b86e235fda9ecc643c">&#9670;&nbsp;</a></span>ClTunedParameters()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml">ClTunedParameters</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">armnn::IGpuAccTunedParameters::Mode</a>&#160;</td>
<td class="paramname"><em>mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">armnn::IGpuAccTunedParameters::TuningLevel</a>&#160;</td>
<td class="paramname"><em>tuningLevel</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00185">185</a> of file <a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; : <a class="code" href="classarmnn_1_1_cl_tuned_parameters.xhtml#a22f392e24a1f2155875e3063a7491e4d">m_Mode</a>(mode)</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; , <a class="code" href="classarmnn_1_1_cl_tuned_parameters.xhtml#ab277b661f23f9ff45b28027f47a126ef">m_TuningLevel</a>(tuningLevel)</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; , <a class="code" href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">m_Tuner</a>(mode == <a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104">ClTunedParameters::Mode::UpdateTunedParameters</a>)</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;{</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_cl_tuned_parameters_xhtml_af6747d9aa587bd8b4ded70fbdcbe1d4a"><div class="ttname"><a href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">armnn::ClTunedParameters::m_Tuner</a></div><div class="ttdeci">arm_compute::CLTuner m_Tuner</div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8hpp_source.xhtml#l00053">ClContextControl.hpp:53</a></div></div>
<div class="ttc" id="classarmnn_1_1_cl_tuned_parameters_xhtml_ab277b661f23f9ff45b28027f47a126ef"><div class="ttname"><a href="classarmnn_1_1_cl_tuned_parameters.xhtml#ab277b661f23f9ff45b28027f47a126ef">armnn::ClTunedParameters::m_TuningLevel</a></div><div class="ttdeci">TuningLevel m_TuningLevel</div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8hpp_source.xhtml#l00051">ClContextControl.hpp:51</a></div></div>
<div class="ttc" id="classarmnn_1_1_cl_tuned_parameters_xhtml_a22f392e24a1f2155875e3063a7491e4d"><div class="ttname"><a href="classarmnn_1_1_cl_tuned_parameters.xhtml#a22f392e24a1f2155875e3063a7491e4d">armnn::ClTunedParameters::m_Mode</a></div><div class="ttdeci">Mode m_Mode</div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8hpp_source.xhtml#l00050">ClContextControl.hpp:50</a></div></div>
<div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104">armnn::IGpuAccTunedParameters::Mode::UpdateTunedParameters</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a889d1f94053989d53d14a401d38cbe66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a889d1f94053989d53d14a401d38cbe66">&#9670;&nbsp;</a></span>Load()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Load </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Loads an existing set of tuned parameters from the given file. </p>
<p>If there is an error loading the file, an <a class="el" href="classarmnn_1_1_exception.xhtml" title="Base class for all ArmNN exceptions so that users can filter to just those. ">armnn::Exception</a> is thrown. </p>
<p>Implements <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a45a36d69dc436c159d724481d5e9d34a">IGpuAccTunedParameters</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00193">193</a> of file <a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a>.</p>
<p class="reference">References <a class="el" href="_cl_context_control_8hpp_source.xhtml#l00053">ClTunedParameters::m_Tuner</a>.</p>
<div class="fragment"><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;{</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">try</span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; {</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <a class="code" href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">m_Tuner</a>.load_from_file(filename);</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; }</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception&amp; e)</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; {</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(std::string(<span class="stringliteral">&quot;Failed to load tuned parameters file &#39;&quot;</span>) + filename + <span class="stringliteral">&quot;&#39;: &quot;</span> +</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; e.what());</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; }</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_cl_tuned_parameters_xhtml_af6747d9aa587bd8b4ded70fbdcbe1d4a"><div class="ttname"><a href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">armnn::ClTunedParameters::m_Tuner</a></div><div class="ttdeci">arm_compute::CLTuner m_Tuner</div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8hpp_source.xhtml#l00053">ClContextControl.hpp:53</a></div></div>
<div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00046">Exceptions.hpp:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="abba27f4c1828aae6b0103bf1bc093f2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abba27f4c1828aae6b0103bf1bc093f2c">&#9670;&nbsp;</a></span>Save()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Save </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Saves the current set of tuned parameters to the given file. </p>
<p>If there is an error saving to the file, an <a class="el" href="classarmnn_1_1_exception.xhtml" title="Base class for all ArmNN exceptions so that users can filter to just those. ">armnn::Exception</a> is thrown. </p>
<p>Implements <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a11d846652618fd5fe876891076cc6a68">IGpuAccTunedParameters</a>.</p>
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00206">206</a> of file <a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a>.</p>
<p class="reference">References <a class="el" href="_cl_context_control_8hpp_source.xhtml#l00053">ClTunedParameters::m_Tuner</a>.</p>
<div class="fragment"><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;{</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordflow">try</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <a class="code" href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">m_Tuner</a>.save_to_file(filename);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; }</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception&amp; e)</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(std::string(<span class="stringliteral">&quot;Failed to save tuned parameters file to &#39;&quot;</span>) + filename + <span class="stringliteral">&quot;&#39;: &quot;</span> +</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; e.what());</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; }</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_cl_tuned_parameters_xhtml_af6747d9aa587bd8b4ded70fbdcbe1d4a"><div class="ttname"><a href="classarmnn_1_1_cl_tuned_parameters.xhtml#af6747d9aa587bd8b4ded70fbdcbe1d4a">armnn::ClTunedParameters::m_Tuner</a></div><div class="ttdeci">arm_compute::CLTuner m_Tuner</div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8hpp_source.xhtml#l00053">ClContextControl.hpp:53</a></div></div>
<div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00046">Exceptions.hpp:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a22f392e24a1f2155875e3063a7491e4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22f392e24a1f2155875e3063a7491e4d">&#9670;&nbsp;</a></span>m_Mode</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> m_Mode</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8hpp_source.xhtml#l00050">50</a> of file <a class="el" href="_cl_context_control_8hpp_source.xhtml">ClContextControl.hpp</a>.</p>
</div>
</div>
<a id="af6747d9aa587bd8b4ded70fbdcbe1d4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6747d9aa587bd8b4ded70fbdcbe1d4a">&#9670;&nbsp;</a></span>m_Tuner</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">arm_compute::CLTuner m_Tuner</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8hpp_source.xhtml#l00053">53</a> of file <a class="el" href="_cl_context_control_8hpp_source.xhtml">ClContextControl.hpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00193">ClTunedParameters::Load()</a>, and <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00206">ClTunedParameters::Save()</a>.</p>
</div>
</div>
<a id="ab277b661f23f9ff45b28027f47a126ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab277b661f23f9ff45b28027f47a126ef">&#9670;&nbsp;</a></span>m_TuningLevel</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> m_TuningLevel</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cl_context_control_8hpp_source.xhtml#l00051">51</a> of file <a class="el" href="_cl_context_control_8hpp_source.xhtml">ClContextControl.hpp</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/backends/cl/<a class="el" href="_cl_context_control_8hpp_source.xhtml">ClContextControl.hpp</a></li>
<li>src/backends/cl/<a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a></li>
</ul>
</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="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml">ClTunedParameters</a></li>
<li class="footer">Generated on Fri Mar 13 2020 16:09:17 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>