| <!-- 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: tests/CL/Helper.h 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&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"> |
|  <span id="projectnumber">20.02.1</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&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&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&dn=gpl-2.0.txt GPL-v2 */ |
| $(document).ready(function(){initNavTree('_c_l_2_helper_8h_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">Helper.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="_c_l_2_helper_8h.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017-2019 ARM Limited.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <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> <span class="comment"> * of this software and associated documentation files (the "Software"), to</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <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> <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> <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> <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> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <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> <span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <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> <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> <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> <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> <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> <span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef ARM_COMPUTE_TEST_CL_HELPER_H</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define ARM_COMPUTE_TEST_CL_HELPER_H</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="_i_c_l_kernel_8h.xhtml">arm_compute/core/CL/ICLKernel.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="_c_l_fill_border_kernel_8h.xhtml">arm_compute/core/CL/kernels/CLFillBorderKernel.h</a>"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="_c_l_memset_kernel_8h.xhtml">arm_compute/core/CL/kernels/CLMemsetKernel.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="_c_l_scheduler_8h.xhtml">arm_compute/runtime/CL/CLScheduler.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="_i_c_l_simple_function_8h.xhtml">arm_compute/runtime/CL/ICLSimpleFunction.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="_i_function_8h.xhtml">arm_compute/runtime/IFunction.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="_toolchain_support_8h.xhtml">support/ToolchainSupport.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">namespace </span><a class="code" href="namespacearm__compute.xhtml">arm_compute</a></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span>test</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {<span class="comment"></span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/** This template synthetizes an ICLSimpleFunction which runs the given kernel K */</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">template</span> <<span class="keyword">typename</span> K></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml"> 42</a></span> <span class="keyword">class </span><a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml">CLSynthetizeFunction</a> : <span class="keyword">public</span> <a class="code" href="classarm__compute_1_1_i_c_l_simple_function.xhtml">ICLSimpleFunction</a></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> /** Configure the kernel.</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> *</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> * @param[in] args Configuration arguments.</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> */</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">template</span> <<span class="keyword">typename</span>... Args></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#a1bb4c9ebe62c1b18326b3aed78b1e484"> 50</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#a1bb4c9ebe62c1b18326b3aed78b1e484">configure</a>(Args &&... <a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">auto</span> k = arm_compute::support::cpp14::make_unique<K>();</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  k->configure(std::forward<Args>(<a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)...);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  _kernel = std::move(k);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }<span class="comment"></span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> /** Configure the kernel setting the GPU target as well</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"> *</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> * @param[in] gpu_target GPUTarget to set</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> * @param[in] args Configuration arguments.</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> */</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">template</span> <<span class="keyword">typename</span>... Args></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#a05c0100e33f5dfe143c7a70d2644a93b"> 62</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#a05c0100e33f5dfe143c7a70d2644a93b">configure</a>(<a class="code" href="namespacearm__compute.xhtml#a735ac6c2a02e320969625308810444f3">GPUTarget</a> gpu_target, Args &&... <a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">auto</span> k = arm_compute::support::cpp14::make_unique<K>();</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  k->set_target(gpu_target);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  k->configure(std::forward<Args>(<a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)...);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  _kernel = std::move(k);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }<span class="comment"></span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> /** Validate input arguments</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> *</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> * @param[in] args Configuration arguments.</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> */</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">template</span> <<span class="keyword">typename</span>... Args></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#ab8b6b10969f8435d21a0fa6e46362d59"> 74</a></span>  <span class="keyword">static</span> <a class="code" href="classarm__compute_1_1_status.xhtml">Status</a> <a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#ab8b6b10969f8435d21a0fa6e46362d59">validate</a>(Args &&... <a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute.xhtml#a4feaaa70771629f4b5dcf3b219c8b647">K::validate</a>(std::forward<Args>(<a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)...);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> };</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"></span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment">/** As above but this also setups a Zero border on the input tensor of the specified bordersize */</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">template</span> <<span class="keyword">typename</span> K, <span class="keywordtype">int</span> bordersize></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border.xhtml"> 82</a></span> <span class="keyword">class </span><a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border.xhtml">CLSynthetizeFunctionWithZeroConstantBorder</a> : <span class="keyword">public</span> <a class="code" href="classarm__compute_1_1_i_c_l_simple_function.xhtml">ICLSimpleFunction</a></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> /** Configure the kernel.</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> *</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * @param[in] first First configuration argument.</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> * @param[in] args Rest of the configuration arguments.</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> */</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span>... Args></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border.xhtml#a3c585dd8a650e6194b40c7aac6701a6f"> 91</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border.xhtml#a3c585dd8a650e6194b40c7aac6701a6f">configure</a>(T first, Args &&... <a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">auto</span> k = arm_compute::support::cpp14::make_unique<K>();</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  k->configure(first, std::forward<Args>(<a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)...);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  _kernel = std::move(k);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  _border_handler.configure(first, <a class="code" href="structarm__compute_1_1_border_size.xhtml">BorderSize</a>(bordersize), <a class="code" href="namespacearm__compute.xhtml#a14d24d90ab4ba2956e92e27890ba4c91a8d6b5cada83510220f59e00ce86d4d92">BorderMode::CONSTANT</a>, <a class="code" href="classarm__compute_1_1_pixel_value.xhtml">PixelValue</a>());</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> };</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"></span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment">/** As above but this also initializes to zero the input tensor */</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">template</span> <<span class="keyword">typename</span> K, <span class="keywordtype">int</span> bordersize></div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml"> 102</a></span> <span class="keyword">class </span><a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml">CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder</a> : <span class="keyword">public</span> <a class="code" href="classarm__compute_1_1_i_function.xhtml">IFunction</a></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> /** Configure the kernel.</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> *</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> * @param[in] first First input argument.</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> * @param[in] second Second input argument.</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> * @param[in] args Rest of the configuration arguments.</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"> */</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span>... Args></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml#a9e209999d5fe228d1483ef56b704d427"> 112</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml#a9e209999d5fe228d1483ef56b704d427">configure</a>(T first, T second, Args &&... <a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">auto</span> k = arm_compute::support::cpp14::make_unique<K>();</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  k->set_target(<a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#a9b58d0eb9a2af8e6d7908695e1557d6c">CLScheduler::get</a>().target());</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  k->configure(first, second, std::forward<Args>(<a class="code" href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">args</a>)...);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  _kernel = std::move(k);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  _border_handler.<a class="code" href="classarm__compute_1_1_c_l_fill_border_kernel.xhtml#ae1b9fe62ed42f469f1de879c33d75c06">configure</a>(first, <a class="code" href="structarm__compute_1_1_border_size.xhtml">BorderSize</a>(bordersize), <a class="code" href="namespacearm__compute.xhtml#a14d24d90ab4ba2956e92e27890ba4c91a8d6b5cada83510220f59e00ce86d4d92">BorderMode::CONSTANT</a>, <a class="code" href="classarm__compute_1_1_pixel_value.xhtml">PixelValue</a>());</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  _memset_kernel.<a class="code" href="classarm__compute_1_1_c_l_memset_kernel.xhtml#a8842f3a8e50c91b74a0b0549ac8fa489">configure</a>(second, <a class="code" href="classarm__compute_1_1_pixel_value.xhtml">PixelValue</a>());</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// Inherited method overridden:</span></div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml#a92fe532c342ae2b07956a65520c05362"> 123</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml#a92fe532c342ae2b07956a65520c05362">run</a>() override final</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="_error_8h.xhtml#a0b0eb3235749a2909dc5a101afe59a1b">ARM_COMPUTE_ERROR_ON_MSG</a>(!_kernel, <span class="stringliteral">"The CL kernel or function isn't configured"</span>);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#a9b58d0eb9a2af8e6d7908695e1557d6c">CLScheduler::get</a>().<a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#ae1a643e517f50bf0392fb6516dd7cf67">enqueue</a>(_memset_kernel, <span class="keyword">false</span>);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#a9b58d0eb9a2af8e6d7908695e1557d6c">CLScheduler::get</a>().<a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#ae1a643e517f50bf0392fb6516dd7cf67">enqueue</a>(_border_handler, <span class="keyword">false</span>);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#a9b58d0eb9a2af8e6d7908695e1557d6c">CLScheduler::get</a>().<a class="code" href="classarm__compute_1_1_c_l_scheduler.xhtml#ae1a643e517f50bf0392fb6516dd7cf67">enqueue</a>(*_kernel);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="classarm__compute_1_1_c_l_memset_kernel.xhtml">CLMemsetKernel</a> _memset_kernel{}; <span class="comment">/**< Kernel to initialize the tensor */</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="classarm__compute_1_1_c_l_fill_border_kernel.xhtml">CLFillBorderKernel</a> _border_handler{}; <span class="comment">/**< Kernel to handle borders */</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  std::unique_ptr<ICLKernel> _kernel{}; <span class="comment">/**< Kernel to run */</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> };</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> } <span class="comment">// namespace test</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> } <span class="comment">// namespace arm_compute</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_TEST_CL_HELPER_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border_xhtml_a9e209999d5fe228d1483ef56b704d427"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml#a9e209999d5fe228d1483ef56b704d427">arm_compute::test::CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder::configure</a></div><div class="ttdeci">void configure(T first, T second, Args &&... args)</div><div class="ttdoc">Configure the kernel.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00112">Helper.h:112</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_pixel_value_xhtml"><div class="ttname"><a href="classarm__compute_1_1_pixel_value.xhtml">arm_compute::PixelValue</a></div><div class="ttdoc">Class describing the value of a pixel for any image format.</div><div class="ttdef"><b>Definition:</b> <a href="_pixel_value_8h_source.xhtml#l00034">PixelValue.h:34</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_xhtml_ab8b6b10969f8435d21a0fa6e46362d59"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#ab8b6b10969f8435d21a0fa6e46362d59">arm_compute::test::CLSynthetizeFunction::validate</a></div><div class="ttdeci">static Status validate(Args &&... args)</div><div class="ttdoc">Validate input arguments.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00074">Helper.h:74</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_1_i_function_xhtml"><div class="ttname"><a href="classarm__compute_1_1_i_function.xhtml">arm_compute::IFunction</a></div><div class="ttdoc">Base class for all functions.</div><div class="ttdef"><b>Definition:</b> <a href="_i_function_8h_source.xhtml#l00030">IFunction.h:30</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_xhtml_a1bb4c9ebe62c1b18326b3aed78b1e484"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#a1bb4c9ebe62c1b18326b3aed78b1e484">arm_compute::test::CLSynthetizeFunction::configure</a></div><div class="ttdeci">void configure(Args &&... args)</div><div class="ttdoc">Configure the kernel.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00050">Helper.h:50</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_c_l_memset_kernel_xhtml"><div class="ttname"><a href="classarm__compute_1_1_c_l_memset_kernel.xhtml">arm_compute::CLMemsetKernel</a></div><div class="ttdoc">Interface for filling the planes of a tensor.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_memset_kernel_8h_source.xhtml#l00036">CLMemsetKernel.h:36</a></div></div> |
| <div class="ttc" id="structarm__compute_1_1_border_size_xhtml"><div class="ttname"><a href="structarm__compute_1_1_border_size.xhtml">arm_compute::BorderSize</a></div><div class="ttdoc">Container for 2D border size.</div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_types_8h_source.xhtml#l00269">Types.h:269</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_c_l_scheduler_xhtml_a9b58d0eb9a2af8e6d7908695e1557d6c"><div class="ttname"><a href="classarm__compute_1_1_c_l_scheduler.xhtml#a9b58d0eb9a2af8e6d7908695e1557d6c">arm_compute::CLScheduler::get</a></div><div class="ttdeci">static CLScheduler & get()</div><div class="ttdoc">Access the scheduler singleton.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_scheduler_8cpp_source.xhtml#l00099">CLScheduler.cpp:99</a></div></div> |
| <div class="ttc" id="namespace_gemm_tuner_xhtml_a8187411843a6284ffb964ef3fb9fcab3"><div class="ttname"><a href="namespace_gemm_tuner.xhtml#a8187411843a6284ffb964ef3fb9fcab3">GemmTuner.args</a></div><div class="ttdeci">args</div><div class="ttdef"><b>Definition:</b> <a href="_gemm_tuner_8py_source.xhtml#l00555">GemmTuner.py:555</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml">arm_compute::test::CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder</a></div><div class="ttdoc">As above but this also initializes to zero the input tensor.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00102">Helper.h:102</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border.xhtml">arm_compute::test::CLSynthetizeFunctionWithZeroConstantBorder</a></div><div class="ttdoc">As above but this also setups a Zero border on the input tensor of the specified bordersize.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00082">Helper.h:82</a></div></div> |
| <div class="ttc" id="_i_c_l_simple_function_8h_xhtml"><div class="ttname"><a href="_i_c_l_simple_function_8h.xhtml">ICLSimpleFunction.h</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_status_xhtml"><div class="ttname"><a href="classarm__compute_1_1_status.xhtml">arm_compute::Status</a></div><div class="ttdoc">Status class.</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00052">Error.h:52</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_c_l_fill_border_kernel_xhtml_ae1b9fe62ed42f469f1de879c33d75c06"><div class="ttname"><a href="classarm__compute_1_1_c_l_fill_border_kernel.xhtml#ae1b9fe62ed42f469f1de879c33d75c06">arm_compute::CLFillBorderKernel::configure</a></div><div class="ttdeci">void configure(ICLTensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value=PixelValue())</div><div class="ttdoc">Initialise the kernel's input, output and border mode.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_fill_border_kernel_8cpp_source.xhtml#l00062">CLFillBorderKernel.cpp:62</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-2020 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="_c_l_scheduler_8h_xhtml"><div class="ttname"><a href="_c_l_scheduler_8h.xhtml">CLScheduler.h</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border_xhtml_a92fe532c342ae2b07956a65520c05362"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function_init_output_with_zero_and_with_zero_constant_border.xhtml#a92fe532c342ae2b07956a65520c05362">arm_compute::test::CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder::run</a></div><div class="ttdeci">void run() override final</div><div class="ttdoc">Run the kernels contained in the function.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00123">Helper.h:123</a></div></div> |
| <div class="ttc" id="_error_8h_xhtml_a0b0eb3235749a2909dc5a101afe59a1b"><div class="ttname"><a href="_error_8h.xhtml#a0b0eb3235749a2909dc5a101afe59a1b">ARM_COMPUTE_ERROR_ON_MSG</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00456">Error.h:456</a></div></div> |
| <div class="ttc" id="_c_l_memset_kernel_8h_xhtml"><div class="ttname"><a href="_c_l_memset_kernel_8h.xhtml">CLMemsetKernel.h</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_i_c_l_simple_function_xhtml"><div class="ttname"><a href="classarm__compute_1_1_i_c_l_simple_function.xhtml">arm_compute::ICLSimpleFunction</a></div><div class="ttdoc">Basic interface for functions which have a single OpenCL kernel.</div><div class="ttdef"><b>Definition:</b> <a href="_i_c_l_simple_function_8h_source.xhtml#l00039">ICLSimpleFunction.h:39</a></div></div> |
| <div class="ttc" id="_i_c_l_kernel_8h_xhtml"><div class="ttname"><a href="_i_c_l_kernel_8h.xhtml">ICLKernel.h</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border_xhtml_a3c585dd8a650e6194b40c7aac6701a6f"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function_with_zero_constant_border.xhtml#a3c585dd8a650e6194b40c7aac6701a6f">arm_compute::test::CLSynthetizeFunctionWithZeroConstantBorder::configure</a></div><div class="ttdeci">void configure(T first, Args &&... args)</div><div class="ttdoc">Configure the kernel.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00091">Helper.h:91</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_c_l_scheduler_xhtml_ae1a643e517f50bf0392fb6516dd7cf67"><div class="ttname"><a href="classarm__compute_1_1_c_l_scheduler.xhtml#ae1a643e517f50bf0392fb6516dd7cf67">arm_compute::CLScheduler::enqueue</a></div><div class="ttdeci">void enqueue(ICLKernel &kernel, bool flush=true)</div><div class="ttdoc">Schedule the execution of the passed kernel if possible.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_scheduler_8cpp_source.xhtml#l00154">CLScheduler.cpp:154</a></div></div> |
| <div class="ttc" id="_c_l_fill_border_kernel_8h_xhtml"><div class="ttname"><a href="_c_l_fill_border_kernel_8h.xhtml">CLFillBorderKernel.h</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_c_l_fill_border_kernel_xhtml"><div class="ttname"><a href="classarm__compute_1_1_c_l_fill_border_kernel.xhtml">arm_compute::CLFillBorderKernel</a></div><div class="ttdoc">Interface for filling the border of a kernel.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_fill_border_kernel_8h_source.xhtml#l00036">CLFillBorderKernel.h:36</a></div></div> |
| <div class="ttc" id="namespacearm__compute_xhtml_a14d24d90ab4ba2956e92e27890ba4c91a8d6b5cada83510220f59e00ce86d4d92"><div class="ttname"><a href="namespacearm__compute.xhtml#a14d24d90ab4ba2956e92e27890ba4c91a8d6b5cada83510220f59e00ce86d4d92">arm_compute::PaddingMode::CONSTANT</a></div></div> |
| <div class="ttc" id="namespacearm__compute_xhtml_a735ac6c2a02e320969625308810444f3"><div class="ttname"><a href="namespacearm__compute.xhtml#a735ac6c2a02e320969625308810444f3">arm_compute::GPUTarget</a></div><div class="ttdeci">GPUTarget</div><div class="ttdoc">Available GPU Targets.</div><div class="ttdef"><b>Definition:</b> <a href="_g_p_u_target_8h_source.xhtml#l00034">GPUTarget.h:34</a></div></div> |
| <div class="ttc" id="_i_function_8h_xhtml"><div class="ttname"><a href="_i_function_8h.xhtml">IFunction.h</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_xhtml_a05c0100e33f5dfe143c7a70d2644a93b"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml#a05c0100e33f5dfe143c7a70d2644a93b">arm_compute::test::CLSynthetizeFunction::configure</a></div><div class="ttdeci">void configure(GPUTarget gpu_target, Args &&... args)</div><div class="ttdoc">Configure the kernel setting the GPU target as well.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00062">Helper.h:62</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1test_1_1_c_l_synthetize_function_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1_c_l_synthetize_function.xhtml">arm_compute::test::CLSynthetizeFunction</a></div><div class="ttdoc">This template synthetizes an ICLSimpleFunction which runs the given kernel K.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_helper_8h_source.xhtml#l00042">Helper.h:42</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_c_l_memset_kernel_xhtml_a8842f3a8e50c91b74a0b0549ac8fa489"><div class="ttname"><a href="classarm__compute_1_1_c_l_memset_kernel.xhtml#a8842f3a8e50c91b74a0b0549ac8fa489">arm_compute::CLMemsetKernel::configure</a></div><div class="ttdeci">void configure(ICLTensor *tensor, const PixelValue &constant_value, Window *window=nullptr)</div><div class="ttdoc">Initialise the kernel's tensor and filling value.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_memset_kernel_8cpp_source.xhtml#l00042">CLMemsetKernel.cpp:42</a></div></div> |
| <div class="ttc" id="namespacearm__compute_xhtml_a4feaaa70771629f4b5dcf3b219c8b647"><div class="ttname"><a href="namespacearm__compute.xhtml#a4feaaa70771629f4b5dcf3b219c8b647">arm_compute::validate</a></div><div class="ttdeci">Status validate(const ITensorInfo *scores_in, const ITensorInfo *boxes_in, const ITensorInfo *batch_splits_in, const ITensorInfo *scores_out, const ITensorInfo *boxes_out, const ITensorInfo *classes, const ITensorInfo *batch_splits_out, const ITensorInfo *keeps, const ITensorInfo *keeps_size, const BoxNMSLimitInfo info)</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_box_with_non_maxima_suppression_limit_8cpp_source.xhtml#l00196">CPPBoxWithNonMaximaSuppressionLimit.cpp:196</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_59425e443f801f1f2fd8bbe4959a3ccf.xhtml">tests</a></li><li class="navelem"><a class="el" href="dir_896191444cf08ec8ade6f88256cb2bdd.xhtml">CL</a></li><li class="navelem"><a class="el" href="_c_l_2_helper_8h.xhtml">Helper.h</a></li> |
| <li class="footer">Generated on Thu Mar 5 2020 16:07:03 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> |