blob: cf726d4aabc2bc5e97adbb735f41c265e1d7f384 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.15-->
<!-- Remember to use version doxygen 1.8.15 +-->
<!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.15"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: utils/CommonGraphOptions.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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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" async="async" 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="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">19.08</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_common_graph_options_8cpp_source.xhtml','');});
/* @license-end */
</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">CommonGraphOptions.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_common_graph_options_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>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Copyright (c) 2018-2019 ARM Limited.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * of this software and associated documentation files (the &quot;Software&quot;), to</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * deal in the Software without restriction, including without limitation the</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * sell copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_common_graph_options_8h.xhtml">CommonGraphOptions.h</a>&quot;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_type_loader_8h.xhtml">arm_compute/graph/TypeLoader.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="arm__compute_2graph_2_type_printer_8h.xhtml">arm_compute/graph/TypePrinter.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_toolchain_support_8h.xhtml">support/ToolchainSupport.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacearm__compute_1_1graph.xhtml">arm_compute::graph</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;{</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;std::pair&lt;unsigned int, unsigned int&gt; parse_validation_range(<span class="keyword">const</span> std::string &amp;validation_range)</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;{</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; std::pair&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="comment">/* start */</span>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="comment">/* end */</span>&gt; <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a> = { 0, std::numeric_limits&lt;unsigned int&gt;::max() };</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">if</span>(!validation_range.empty())</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; std::string str;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; std::stringstream stream(validation_range);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="comment">// Get first value</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; std::getline(stream, str, <span class="charliteral">&#39;,&#39;</span>);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">if</span>(stream.fail())</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>.first = <a class="code" href="namespacearm__compute_1_1support_1_1cpp11.xhtml#abdba606a789b8d664774f17d18f45cfe">arm_compute::support::cpp11::stoi</a>(str);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// Get second value</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; std::getline(stream, str);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">if</span>(stream.fail())</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>.second = <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>.first;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>.second = <a class="code" href="namespacearm__compute_1_1support_1_1cpp11.xhtml#abdba606a789b8d664774f17d18f45cfe">arm_compute::support::cpp11::stoi</a>(str);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">range</a>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;}</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;} <span class="comment">// namespace</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacearm__compute.xhtml">arm_compute</a></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;{</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="keyword">namespace </span>utils</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;{</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="namespacearm__compute_1_1utils.xhtml#a24e5f40fb2db725a749dd5103ced9760"> 76</a></span>&#160;::std::ostream &amp;<a class="code" href="namespacearm__compute_1_1graph.xhtml#a7e067080ce8169b2f8be64c190edab9e">operator&lt;&lt;</a>(::std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml">CommonGraphParams</a> &amp;common_params)</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;{</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; std::string false_str = std::string(<span class="stringliteral">&quot;false&quot;</span>);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; std::string true_str = std::string(<span class="stringliteral">&quot;true&quot;</span>);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Threads : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a4f987a98d3e1221916748962e45399fe">threads</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Target : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a29d9bc83bfba2fba21af47e575569dde">target</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Data type : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a901f5f80dfec4ef700c14947ca8397c9">data_type</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Data layout : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#aa56f0562febf49bc0e29a4257551191b">data_layout</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Tuner enabled? : &quot;</span> &lt;&lt; (common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ad2e53638e2c19bbbe968b95f60256cee">enable_tuner</a> ? true_str : false_str) &lt;&lt; std::endl;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Cache enabled? : &quot;</span> &lt;&lt; (common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ab4170b9a9eb611db146c5a776dc191ef">enable_cl_cache</a> ? true_str : false_str) &lt;&lt; std::endl;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Tuner mode : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a3ebea56a33e2632ae2a9b25b160e0705">tuner_mode</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Tuner file : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a5cabfb35cd0014387f7ec2a0c362c20f">tuner_file</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Fast math enabled? : &quot;</span> &lt;&lt; (common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#acafd85ac6eb76b9037643104b48403e9">fast_math_hint</a> == <a class="code" href="namespacearm__compute_1_1graph.xhtml#ac85a46f3ebd3ab09f576a994ac2dce11a00d23a76e43b46dae9ec7aa9dcbebb32">FastMathHint::Enabled</a> ? true_str : false_str) &lt;&lt; std::endl;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">if</span>(!common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a30a81dbc66a8e9eeb693a75046b4655d">data_path</a>.empty())</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Data path : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a30a81dbc66a8e9eeb693a75046b4655d">data_path</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">if</span>(!common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a96b4a087acee7543a7624102a67fc14d">image</a>.empty())</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Image file : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a96b4a087acee7543a7624102a67fc14d">image</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">if</span>(!common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ad48071cd70c8b31c4ebdd6445eddaa0c">labels</a>.empty())</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Labels file : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ad48071cd70c8b31c4ebdd6445eddaa0c">labels</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordflow">if</span>(!common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a8795de58b39cf31914df35a032c1a486">validation_file</a>.empty())</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Validation range : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a5c135a9c2ced82186156930974ded8a0">validation_range_start</a> &lt;&lt; <span class="stringliteral">&quot;-&quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a1543de48b9546e5e234de4c1196f0d0f">validation_range_end</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Validation file : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a8795de58b39cf31914df35a032c1a486">validation_file</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">if</span>(!common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a91652a4f41fde8020674577dd0e5933d">validation_path</a>.empty())</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; os &lt;&lt; <span class="stringliteral">&quot;Validation path : &quot;</span> &lt;&lt; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a91652a4f41fde8020674577dd0e5933d">validation_path</a> &lt;&lt; std::endl;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; }</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> os;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;}</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aeea2bdaecbe56d3a5bed95161b14bd38"> 115</a></span>&#160;CommonGraphOptions::CommonGraphOptions(<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml">CommandLineParser</a> &amp;parser)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; : help(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">ToggleOption</a>&gt;(<span class="stringliteral">&quot;help&quot;</span>)),</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; threads(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;int&gt;&gt;(<span class="stringliteral">&quot;threads&quot;</span>, 1)),</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; target(),</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a5f5b6c4337eac9e2e0046ca2304d80dc">data_type</a>(),</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acf5f12bbab64dd614bd8220c97fe484f">data_layout</a>(),</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; enable_tuner(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">ToggleOption</a>&gt;(<span class="stringliteral">&quot;enable-tuner&quot;</span>)),</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; enable_cl_cache(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">ToggleOption</a>&gt;(<span class="stringliteral">&quot;enable-cl-cache&quot;</span>)),</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; tuner_mode(),</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; fast_math_hint(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">ToggleOption</a>&gt;(<span class="stringliteral">&quot;fast-math&quot;</span>)),</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; data_path(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;data&quot;</span>)),</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; image(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;image&quot;</span>)),</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; labels(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;labels&quot;</span>)),</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; validation_file(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;validation-file&quot;</span>)),</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; validation_path(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;validation-path&quot;</span>)),</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; validation_range(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;validation-range&quot;</span>)),</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; tuner_file(parser.add_option&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">SimpleOption</a>&lt;std::string&gt;&gt;(<span class="stringliteral">&quot;tuner-file&quot;</span>))</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;{</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; std::set&lt;arm_compute::graph::Target&gt; supported_targets</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; Target::NEON,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; Target::CL,</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; Target::GC,</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; };</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; std::set&lt;arm_compute::DataType&gt; supported_data_types</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">DataType::F16</a>,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">DataType::F32</a>,</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6af14462d71aa842202c3e4b272c7ec924">DataType::QASYMM8</a>,</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; };</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; std::set&lt;DataLayout&gt; supported_data_layouts</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; {</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; };</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keyword">const</span> std::set&lt;CLTunerMode&gt; supported_tuner_modes</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; {</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ae76ef5bd3ad69f7380ebb3ac6033ec5ca39e07a5dab0694c7ebb6a0578511ee15">CLTunerMode::EXHAUSTIVE</a>,</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <a class="code" href="namespacearm__compute.xhtml#a4c9101ca1a1f72f48efff28b4b9a6495a1e23852820b9154316c7c06e2b7ba051">CLTunerMode::NORMAL</a>,</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <a class="code" href="namespacearm__compute.xhtml#ae76ef5bd3ad69f7380ebb3ac6033ec5caba44d3559b36fc1c14e5752bccce1eef">CLTunerMode::RAPID</a></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; };</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a770e3e82cb8e4632d754e651fd29b9cb">target</a> = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml">EnumOption&lt;Target&gt;</a>&gt;(<span class="stringliteral">&quot;target&quot;</span>, supported_targets, Target::NEON);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a07e18432725b2e2d3c0a5625a8aea8a8">data_type</a> = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml">EnumOption&lt;DataType&gt;</a>&gt;(<span class="stringliteral">&quot;type&quot;</span>, supported_data_types, <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">DataType::F32</a>);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa276d896db24e95060047eb2f886614d">data_layout</a> = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml">EnumOption&lt;DataLayout&gt;</a>&gt;(<span class="stringliteral">&quot;layout&quot;</span>, supported_data_layouts);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a152c80450373e13e5e2f543b4ae4bb3b">tuner_mode</a> = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml">EnumOption&lt;CLTunerMode&gt;</a>&gt;(<span class="stringliteral">&quot;tuner-mode&quot;</span>, supported_tuner_modes, <a class="code" href="namespacearm__compute.xhtml#a4c9101ca1a1f72f48efff28b4b9a6495a1e23852820b9154316c7c06e2b7ba051">CLTunerMode::NORMAL</a>);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb3f1fc6ee2cea2cf9074e7dfa4acf2b">help</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Show this help message&quot;</span>);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#ad6174941c7ae1c945e4f7fcb3261f87c">threads</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Number of threads to use&quot;</span>);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a770e3e82cb8e4632d754e651fd29b9cb">target</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Target to execute on&quot;</span>);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a07e18432725b2e2d3c0a5625a8aea8a8">data_type</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Data type to use&quot;</span>);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa276d896db24e95060047eb2f886614d">data_layout</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Data layout to use&quot;</span>);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#afb574a4d09ddbdd9675da603fbad34a4">enable_tuner</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Enable OpenCL dynamic tuner&quot;</span>);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa1fb173121a67e58388e74cf4f9f42f4">enable_cl_cache</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Enable OpenCL program caches&quot;</span>);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a152c80450373e13e5e2f543b4ae4bb3b">tuner_mode</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Configures the time taken by the tuner to tune. Slow tuner produces the most performant LWS configuration&quot;</span>);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb7fa90ec602efaaee1e7ab25ccbfa98">fast_math_hint</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Enable fast math&quot;</span>);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a10f94123b5c23f4d0ee7362c2617d812">data_path</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Path where graph parameters reside&quot;</span>);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#ac6f31ad641b0389e976af0679af2cc02">image</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Input image for the graph&quot;</span>);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a21ea35d20a82601710f523bc964c59a3">labels</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;File containing the output labels&quot;</span>);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a30fbf7b83e14786a1cdab47e5e389cba">validation_file</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;File used to validate the graph&quot;</span>);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a9846145d91730995d71b3cc3a92d2a84">validation_path</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Path to the validation data&quot;</span>);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a553cdf5b02f190b9ed0f9b4ec711019c">validation_range</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Range of the images to validate for (Format : start,end)&quot;</span>);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aac3ce1ee0a145bb6c131c9d94f30062e">tuner_file</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;File to load/save CLTuner values&quot;</span>);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;}</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="namespacearm__compute_1_1utils.xhtml#a04125f2e4cecaffad8724cee7e1c19b0"> 183</a></span>&#160;<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml">CommonGraphParams</a> <a class="code" href="namespacearm__compute_1_1utils.xhtml#a04125f2e4cecaffad8724cee7e1c19b0">consume_common_graph_parameters</a>(<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml">CommonGraphOptions</a> &amp;options)</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;{</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <a class="code" href="namespacearm__compute_1_1graph.xhtml#ac85a46f3ebd3ab09f576a994ac2dce11">FastMathHint</a> fast_math_hint_value = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb7fa90ec602efaaee1e7ab25ccbfa98">fast_math_hint</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>() ? FastMathHint::Enabled : FastMathHint::Disabled;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">auto</span> validation_range = parse_validation_range(options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a553cdf5b02f190b9ed0f9b4ec711019c">validation_range</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>());</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml">CommonGraphParams</a> common_params;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; common_params.<a class="code" href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a545363392790133c5dec1fd9e2cb279d">help</a> = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb3f1fc6ee2cea2cf9074e7dfa4acf2b">help</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a8d75095e0ce4d0cc3ed6bc4733664a74">is_set</a>() ? options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb3f1fc6ee2cea2cf9074e7dfa4acf2b">help</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>() : <span class="keyword">false</span>;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; common_params.threads = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#ad6174941c7ae1c945e4f7fcb3261f87c">threads</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; common_params.target = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a770e3e82cb8e4632d754e651fd29b9cb">target</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; common_params.data_type = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a07e18432725b2e2d3c0a5625a8aea8a8">data_type</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keywordflow">if</span>(options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa276d896db24e95060047eb2f886614d">data_layout</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a8d75095e0ce4d0cc3ed6bc4733664a74">is_set</a>())</div><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; common_params.data_layout = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa276d896db24e95060047eb2f886614d">data_layout</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</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; common_params.enable_tuner = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#afb574a4d09ddbdd9675da603fbad34a4">enable_tuner</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a8d75095e0ce4d0cc3ed6bc4733664a74">is_set</a>() ? options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#afb574a4d09ddbdd9675da603fbad34a4">enable_tuner</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>() : <span class="keyword">false</span>;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; common_params.enable_cl_cache = common_params.target == <a class="code" href="namespacearm__compute_1_1graph.xhtml#a31488d29805a596498c0234ae392d35da5bc574a47246f122016869b32a6aa6f0">arm_compute::graph::Target::CL</a> ? (options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa1fb173121a67e58388e74cf4f9f42f4">enable_cl_cache</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a8d75095e0ce4d0cc3ed6bc4733664a74">is_set</a>() ? options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa1fb173121a67e58388e74cf4f9f42f4">enable_cl_cache</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>() : <span class="keyword">true</span>) : <span class="keyword">false</span>;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; common_params.tuner_mode = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a152c80450373e13e5e2f543b4ae4bb3b">tuner_mode</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; common_params.fast_math_hint = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb7fa90ec602efaaee1e7ab25ccbfa98">fast_math_hint</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a8d75095e0ce4d0cc3ed6bc4733664a74">is_set</a>() ? fast_math_hint_value : FastMathHint::Disabled;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; common_params.data_path = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a10f94123b5c23f4d0ee7362c2617d812">data_path</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; common_params.image = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#ac6f31ad641b0389e976af0679af2cc02">image</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; common_params.labels = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a21ea35d20a82601710f523bc964c59a3">labels</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; common_params.validation_file = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a30fbf7b83e14786a1cdab47e5e389cba">validation_file</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; common_params.validation_path = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a9846145d91730995d71b3cc3a92d2a84">validation_path</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; common_params.validation_range_start = validation_range.first;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; common_params.validation_range_end = validation_range.second;</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; common_params.tuner_file = options.<a class="code" href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aac3ce1ee0a145bb6c131c9d94f30062e">tuner_file</a>-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">value</a>();</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; <span class="keywordflow">return</span> common_params;</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="comment">// namespace utils</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;} <span class="comment">// namespace arm_compute</span></div><div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_acf5f12bbab64dd614bd8220c97fe484f"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#acf5f12bbab64dd614bd8220c97fe484f">arm_compute::test::validation::data_layout</a></div><div class="ttdeci">const DataLayout data_layout</div><div class="ttdef"><b>Definition:</b> <a href="_n_e_o_n_2_im2_col_8cpp_source.xhtml#l00146">Im2Col.cpp:146</a></div></div>
<div class="ttc" id="_toolchain_support_8h_xhtml"><div class="ttname"><a href="_toolchain_support_8h.xhtml">ToolchainSupport.h</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_afb574a4d09ddbdd9675da603fbad34a4"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#afb574a4d09ddbdd9675da603fbad34a4">arm_compute::utils::CommonGraphOptions::enable_tuner</a></div><div class="ttdeci">ToggleOption * enable_tuner</div><div class="ttdoc">Enable tuner.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00153">CommonGraphOptions.h:153</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a152c80450373e13e5e2f543b4ae4bb3b"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a152c80450373e13e5e2f543b4ae4bb3b">arm_compute::utils::CommonGraphOptions::tuner_mode</a></div><div class="ttdeci">SimpleOption&lt; arm_compute::CLTunerMode &gt; * tuner_mode</div><div class="ttdoc">Tuner mode.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00155">CommonGraphOptions.h:155</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a91652a4f41fde8020674577dd0e5933d"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a91652a4f41fde8020674577dd0e5933d">arm_compute::utils::CommonGraphParams::validation_path</a></div><div class="ttdeci">std::string validation_path</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00105">CommonGraphOptions.h:105</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a5c135a9c2ced82186156930974ded8a0"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a5c135a9c2ced82186156930974ded8a0">arm_compute::utils::CommonGraphParams::validation_range_start</a></div><div class="ttdeci">unsigned int validation_range_start</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00107">CommonGraphOptions.h:107</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_acb3f1fc6ee2cea2cf9074e7dfa4acf2b"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb3f1fc6ee2cea2cf9074e7dfa4acf2b">arm_compute::utils::CommonGraphOptions::help</a></div><div class="ttdeci">ToggleOption * help</div><div class="ttdoc">Show help option.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00148">CommonGraphOptions.h:148</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a07e18432725b2e2d3c0a5625a8aea8a8"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a07e18432725b2e2d3c0a5625a8aea8a8">arm_compute::utils::CommonGraphOptions::data_type</a></div><div class="ttdeci">EnumOption&lt; arm_compute::DataType &gt; * data_type</div><div class="ttdoc">Graph data type.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00151">CommonGraphOptions.h:151</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_aa276d896db24e95060047eb2f886614d"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa276d896db24e95060047eb2f886614d">arm_compute::utils::CommonGraphOptions::data_layout</a></div><div class="ttdeci">EnumOption&lt; arm_compute::DataLayout &gt; * data_layout</div><div class="ttdoc">Graph data layout.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00152">CommonGraphOptions.h:152</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a29d9bc83bfba2fba21af47e575569dde"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a29d9bc83bfba2fba21af47e575569dde">arm_compute::utils::CommonGraphParams::target</a></div><div class="ttdeci">arm_compute::graph::Target target</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00094">CommonGraphOptions.h:94</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_toggle_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">arm_compute::utils::ToggleOption</a></div><div class="ttdoc">Implementation of an option that can be either true or false.</div><div class="ttdef"><b>Definition:</b> <a href="_toggle_option_8h_source.xhtml#l00036">ToggleOption.h:36</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">arm_compute::Format::F32</a></div><div class="ttdoc">1 channel, 1 F32 per channel</div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_ac85a46f3ebd3ab09f576a994ac2dce11a00d23a76e43b46dae9ec7aa9dcbebb32"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#ac85a46f3ebd3ab09f576a994ac2dce11a00d23a76e43b46dae9ec7aa9dcbebb32">arm_compute::graph::FastMathHint::Enabled</a></div><div class="ttdoc">Fast math enabled for Convolution layer.</div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml">arm_compute::utils::CommonGraphOptions</a></div><div class="ttdoc">Common command line options used to configure the graph examples.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00129">CommonGraphOptions.h:129</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_aac3ce1ee0a145bb6c131c9d94f30062e"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aac3ce1ee0a145bb6c131c9d94f30062e">arm_compute::utils::CommonGraphOptions::tuner_file</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * tuner_file</div><div class="ttdoc">File to load/store the tuner's values from.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00163">CommonGraphOptions.h:163</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml">arm_compute::utils::CommandLineParser</a></div><div class="ttdoc">Class to parse command line arguments.</div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8h_source.xhtml#l00044">CommandLineParser.h:44</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_aa56f0562febf49bc0e29a4257551191b"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#aa56f0562febf49bc0e29a4257551191b">arm_compute::utils::CommonGraphParams::data_layout</a></div><div class="ttdeci">arm_compute::DataLayout data_layout</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00096">CommonGraphOptions.h:96</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a3ebea56a33e2632ae2a9b25b160e0705"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a3ebea56a33e2632ae2a9b25b160e0705">arm_compute::utils::CommonGraphParams::tuner_mode</a></div><div class="ttdeci">arm_compute::CLTunerMode tuner_mode</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00099">CommonGraphOptions.h:99</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a1543de48b9546e5e234de4c1196f0d0f"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a1543de48b9546e5e234de4c1196f0d0f">arm_compute::utils::CommonGraphParams::validation_range_end</a></div><div class="ttdeci">unsigned int validation_range_end</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00108">CommonGraphOptions.h:108</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml"><div class="ttname"><a href="namespacearm__compute.xhtml">arm_compute</a></div><div class="ttdoc">Copyright (c) 2017-2018 ARM Limited.</div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00024">00_introduction.dox:24</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">arm_compute::Format::F16</a></div><div class="ttdoc">1 channel, 1 F16 per channel</div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a770e3e82cb8e4632d754e651fd29b9cb"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a770e3e82cb8e4632d754e651fd29b9cb">arm_compute::utils::CommonGraphOptions::target</a></div><div class="ttdeci">EnumOption&lt; arm_compute::graph::Target &gt; * target</div><div class="ttdoc">Graph execution target.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00150">CommonGraphOptions.h:150</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ae76ef5bd3ad69f7380ebb3ac6033ec5caba44d3559b36fc1c14e5752bccce1eef"><div class="ttname"><a href="namespacearm__compute.xhtml#ae76ef5bd3ad69f7380ebb3ac6033ec5caba44d3559b36fc1c14e5752bccce1eef">arm_compute::CLTunerMode::RAPID</a></div><div class="ttdoc">Searches a minimal subset of LWS configurations while tuning.</div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml_a68e2f681ec6686a130c4af96caf4d9fc"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">arm_compute::utils::CommandLineParser::add_option</a></div><div class="ttdeci">T * add_option(const std::string &amp;name, As &amp;&amp;... args)</div><div class="ttdoc">Function to add a new option to the parser.</div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8h_source.xhtml#l00103">CommandLineParser.h:103</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_a4c9101ca1a1f72f48efff28b4b9a6495a1e23852820b9154316c7c06e2b7ba051"><div class="ttname"><a href="namespacearm__compute.xhtml#a4c9101ca1a1f72f48efff28b4b9a6495a1e23852820b9154316c7c06e2b7ba051">arm_compute::MemoryPolicy::NORMAL</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_a7e067080ce8169b2f8be64c190edab9e"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#a7e067080ce8169b2f8be64c190edab9e">arm_compute::graph::operator&lt;&lt;</a></div><div class="ttdeci">inline ::std::ostream &amp; operator&lt;&lt;(::std::ostream &amp;os, const Target &amp;target)</div><div class="ttdoc">Formatted output of the Target.</div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2graph_2_type_printer_8h_source.xhtml#l00038">TypePrinter.h:38</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a8795de58b39cf31914df35a032c1a486"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a8795de58b39cf31914df35a032c1a486">arm_compute::utils::CommonGraphParams::validation_file</a></div><div class="ttdeci">std::string validation_file</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00104">CommonGraphOptions.h:104</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_1_1reference_xhtml_a87f09c74765be18a99038478f96daf9b"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation_1_1reference.xhtml#a87f09c74765be18a99038478f96daf9b">arm_compute::test::validation::reference::range</a></div><div class="ttdeci">SimpleTensor&lt; T &gt; range(SimpleTensor&lt; T &gt; &amp;dst, float start, const size_t num_of_elements, float step)</div><div class="ttdef"><b>Definition:</b> <a href="reference_2_range_8cpp_source.xhtml#l00050">Range.cpp:50</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_aa1fb173121a67e58388e74cf4f9f42f4"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#aa1fb173121a67e58388e74cf4f9f42f4">arm_compute::utils::CommonGraphOptions::enable_cl_cache</a></div><div class="ttdeci">ToggleOption * enable_cl_cache</div><div class="ttdoc">Enable opencl kernels cache.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00154">CommonGraphOptions.h:154</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6af14462d71aa842202c3e4b272c7ec924"><div class="ttname"><a href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6af14462d71aa842202c3e4b272c7ec924">arm_compute::DataType::QASYMM8</a></div><div class="ttdoc">quantized, asymmetric fixed-point 8-bit number</div></div>
<div class="ttc" id="namespacearm__compute_1_1utils_xhtml_a04125f2e4cecaffad8724cee7e1c19b0"><div class="ttname"><a href="namespacearm__compute_1_1utils.xhtml#a04125f2e4cecaffad8724cee7e1c19b0">arm_compute::utils::consume_common_graph_parameters</a></div><div class="ttdeci">CommonGraphParams consume_common_graph_parameters(CommonGraphOptions &amp;options)</div><div class="ttdoc">Consumes the common graph options and creates a structure containing any information.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8cpp_source.xhtml#l00183">CommonGraphOptions.cpp:183</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml">arm_compute::graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_topological_sort_8h_source.xhtml#l00033">TopologicalSort.h:33</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a5cabfb35cd0014387f7ec2a0c362c20f"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a5cabfb35cd0014387f7ec2a0c362c20f">arm_compute::utils::CommonGraphParams::tuner_file</a></div><div class="ttdeci">std::string tuner_file</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00106">CommonGraphOptions.h:106</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_simple_option_xhtml_ab5d906b55180c260032ce43d6c5d4d06"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_simple_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">arm_compute::utils::SimpleOption::value</a></div><div class="ttdeci">const T &amp; value() const</div><div class="ttdoc">Get the option value.</div><div class="ttdef"><b>Definition:</b> <a href="_simple_option_8h_source.xhtml#l00112">SimpleOption.h:112</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1support_1_1cpp11_xhtml_abdba606a789b8d664774f17d18f45cfe"><div class="ttname"><a href="namespacearm__compute_1_1support_1_1cpp11.xhtml#abdba606a789b8d664774f17d18f45cfe">arm_compute::support::cpp11::stoi</a></div><div class="ttdeci">int stoi(const std::string &amp;str, std::size_t *pos=0, NumericBase base=NumericBase::BASE_10)</div><div class="ttdoc">Convert string values to integer.</div><div class="ttdef"><b>Definition:</b> <a href="_toolchain_support_8h_source.xhtml#l00063">ToolchainSupport.h:63</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_acb7fa90ec602efaaee1e7ab25ccbfa98"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#acb7fa90ec602efaaee1e7ab25ccbfa98">arm_compute::utils::CommonGraphOptions::fast_math_hint</a></div><div class="ttdeci">ToggleOption * fast_math_hint</div><div class="ttdoc">Fast math hint.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00156">CommonGraphOptions.h:156</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a545363392790133c5dec1fd9e2cb279d"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a545363392790133c5dec1fd9e2cb279d">arm_compute::utils::CommonGraphParams::help</a></div><div class="ttdeci">bool help</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00092">CommonGraphOptions.h:92</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a30fbf7b83e14786a1cdab47e5e389cba"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a30fbf7b83e14786a1cdab47e5e389cba">arm_compute::utils::CommonGraphOptions::validation_file</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * validation_file</div><div class="ttdoc">Validation file.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00160">CommonGraphOptions.h:160</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">arm_compute::DataLayout::NCHW</a></div><div class="ttdoc">Num samples, channels, height, width.</div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a96b4a087acee7543a7624102a67fc14d"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a96b4a087acee7543a7624102a67fc14d">arm_compute::utils::CommonGraphParams::image</a></div><div class="ttdeci">std::string image</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00102">CommonGraphOptions.h:102</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_ac85a46f3ebd3ab09f576a994ac2dce11"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#ac85a46f3ebd3ab09f576a994ac2dce11">arm_compute::graph::FastMathHint</a></div><div class="ttdeci">FastMathHint</div><div class="ttdoc">Enable or disable fast math for Convolution layer.</div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2graph_2_types_8h_source.xhtml#l00123">Types.h:123</a></div></div>
<div class="ttc" id="_common_graph_options_8h_xhtml"><div class="ttname"><a href="_common_graph_options_8h.xhtml">CommonGraphOptions.h</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_enum_option_xhtml_ab5d906b55180c260032ce43d6c5d4d06"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_enum_option.xhtml#ab5d906b55180c260032ce43d6c5d4d06">arm_compute::utils::EnumOption::value</a></div><div class="ttdeci">const T &amp; value() const</div><div class="ttdoc">Get the selected value.</div><div class="ttdef"><b>Definition:</b> <a href="_enum_option_8h_source.xhtml#l00130">EnumOption.h:130</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a4f987a98d3e1221916748962e45399fe"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a4f987a98d3e1221916748962e45399fe">arm_compute::utils::CommonGraphParams::threads</a></div><div class="ttdeci">int threads</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00093">CommonGraphOptions.h:93</a></div></div>
<div class="ttc" id="_type_loader_8h_xhtml"><div class="ttname"><a href="_type_loader_8h.xhtml">TypeLoader.h</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml">arm_compute::utils::CommonGraphParams</a></div><div class="ttdoc">Structure holding all the common graph parameters.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00090">CommonGraphOptions.h:90</a></div></div>
<div class="ttc" id="arm__compute_2graph_2_type_printer_8h_xhtml"><div class="ttname"><a href="arm__compute_2graph_2_type_printer_8h.xhtml">TypePrinter.h</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a9846145d91730995d71b3cc3a92d2a84"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a9846145d91730995d71b3cc3a92d2a84">arm_compute::utils::CommonGraphOptions::validation_path</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * validation_path</div><div class="ttdoc">Validation data path.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00161">CommonGraphOptions.h:161</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">arm_compute::DataLayout::NHWC</a></div><div class="ttdoc">Num samples, height, width, channels.</div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_enum_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_enum_option.xhtml">arm_compute::utils::EnumOption</a></div><div class="ttdoc">Implementation of a simple option that accepts a value from a fixed set.</div><div class="ttdef"><b>Definition:</b> <a href="_enum_option_8h_source.xhtml#l00040">EnumOption.h:40</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a553cdf5b02f190b9ed0f9b4ec711019c"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a553cdf5b02f190b9ed0f9b4ec711019c">arm_compute::utils::CommonGraphOptions::validation_range</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * validation_range</div><div class="ttdoc">Validation range.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00162">CommonGraphOptions.h:162</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a10f94123b5c23f4d0ee7362c2617d812"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a10f94123b5c23f4d0ee7362c2617d812">arm_compute::utils::CommonGraphOptions::data_path</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * data_path</div><div class="ttdoc">Trainable parameters path.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00157">CommonGraphOptions.h:157</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_ad2e53638e2c19bbbe968b95f60256cee"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ad2e53638e2c19bbbe968b95f60256cee">arm_compute::utils::CommonGraphParams::enable_tuner</a></div><div class="ttdeci">bool enable_tuner</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00097">CommonGraphOptions.h:97</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_a21ea35d20a82601710f523bc964c59a3"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#a21ea35d20a82601710f523bc964c59a3">arm_compute::utils::CommonGraphOptions::labels</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * labels</div><div class="ttdoc">Labels.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00159">CommonGraphOptions.h:159</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_option_xhtml_a8d75095e0ce4d0cc3ed6bc4733664a74"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_option.xhtml#a8d75095e0ce4d0cc3ed6bc4733664a74">arm_compute::utils::Option::is_set</a></div><div class="ttdeci">bool is_set() const</div><div class="ttdoc">Has a value been assigned to the option?</div><div class="ttdef"><b>Definition:</b> <a href="_option_8h_source.xhtml#l00135">Option.h:135</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a5f5b6c4337eac9e2e0046ca2304d80dc"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a5f5b6c4337eac9e2e0046ca2304d80dc">arm_compute::test::validation::data_type</a></div><div class="ttdeci">data_type</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_arithmetic_addition_8cpp_source.xhtml#l00135">ArithmeticAddition.cpp:135</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_ab4170b9a9eb611db146c5a776dc191ef"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ab4170b9a9eb611db146c5a776dc191ef">arm_compute::utils::CommonGraphParams::enable_cl_cache</a></div><div class="ttdeci">bool enable_cl_cache</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00098">CommonGraphOptions.h:98</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_ad6174941c7ae1c945e4f7fcb3261f87c"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#ad6174941c7ae1c945e4f7fcb3261f87c">arm_compute::utils::CommonGraphOptions::threads</a></div><div class="ttdeci">SimpleOption&lt; int &gt; * threads</div><div class="ttdoc">Number of threads option.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00149">CommonGraphOptions.h:149</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a30a81dbc66a8e9eeb693a75046b4655d"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a30a81dbc66a8e9eeb693a75046b4655d">arm_compute::utils::CommonGraphParams::data_path</a></div><div class="ttdeci">std::string data_path</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00101">CommonGraphOptions.h:101</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_a31488d29805a596498c0234ae392d35da5bc574a47246f122016869b32a6aa6f0"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#a31488d29805a596498c0234ae392d35da5bc574a47246f122016869b32a6aa6f0">arm_compute::graph::Target::CL</a></div><div class="ttdoc">OpenCL capable target device.</div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ae76ef5bd3ad69f7380ebb3ac6033ec5ca39e07a5dab0694c7ebb6a0578511ee15"><div class="ttname"><a href="namespacearm__compute.xhtml#ae76ef5bd3ad69f7380ebb3ac6033ec5ca39e07a5dab0694c7ebb6a0578511ee15">arm_compute::CLTunerMode::EXHAUSTIVE</a></div><div class="ttdoc">Searches all possible LWS configurations while tuning.</div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_a901f5f80dfec4ef700c14947ca8397c9"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#a901f5f80dfec4ef700c14947ca8397c9">arm_compute::utils::CommonGraphParams::data_type</a></div><div class="ttdeci">arm_compute::DataType data_type</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00095">CommonGraphOptions.h:95</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_acafd85ac6eb76b9037643104b48403e9"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#acafd85ac6eb76b9037643104b48403e9">arm_compute::utils::CommonGraphParams::fast_math_hint</a></div><div class="ttdeci">arm_compute::graph::FastMathHint fast_math_hint</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00100">CommonGraphOptions.h:100</a></div></div>
<div class="ttc" id="structarm__compute_1_1utils_1_1_common_graph_params_xhtml_ad48071cd70c8b31c4ebdd6445eddaa0c"><div class="ttname"><a href="structarm__compute_1_1utils_1_1_common_graph_params.xhtml#ad48071cd70c8b31c4ebdd6445eddaa0c">arm_compute::utils::CommonGraphParams::labels</a></div><div class="ttdeci">std::string labels</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00103">CommonGraphOptions.h:103</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_simple_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_simple_option.xhtml">arm_compute::utils::SimpleOption</a></div><div class="ttdoc">Implementation of an option that accepts a single value.</div><div class="ttdef"><b>Definition:</b> <a href="_simple_option_8h_source.xhtml#l00039">SimpleOption.h:39</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_option_xhtml_a48a2672f362eeed9a3e93403f4d3de37"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">arm_compute::utils::Option::set_help</a></div><div class="ttdeci">void set_help(std::string help)</div><div class="ttdoc">Set the help message for the option.</div><div class="ttdef"><b>Definition:</b> <a href="_option_8h_source.xhtml#l00125">Option.h:125</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1_common_graph_options_xhtml_ac6f31ad641b0389e976af0679af2cc02"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_common_graph_options.xhtml#ac6f31ad641b0389e976af0679af2cc02">arm_compute::utils::CommonGraphOptions::image</a></div><div class="ttdeci">SimpleOption&lt; std::string &gt; * image</div><div class="ttdoc">Image.</div><div class="ttdef"><b>Definition:</b> <a href="_common_graph_options_8h_source.xhtml#l00158">CommonGraphOptions.h:158</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_cbdb8362360e11eafe2fa3bc74cf0ffd.xhtml">utils</a></li><li class="navelem"><a class="el" href="_common_graph_options_8cpp.xhtml">CommonGraphOptions.cpp</a></li>
<li class="footer">Generated on Mon Sep 2 2019 11:47:28 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>