Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1 | <!-- HTML header for doxygen 1.8.15--> |
| 2 | <!-- Remember to use version doxygen 1.8.15 +--> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 7 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 8 | <meta name="generator" content="Doxygen 1.8.15"/> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 9 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
| 10 | <title>Compute Library: src/core/CL/cl_kernels/l2_normalize.cl File Reference</title> |
| 11 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 12 | <script type="text/javascript" src="jquery.js"></script> |
| 13 | <script type="text/javascript" src="dynsections.js"></script> |
| 14 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 15 | <script type="text/javascript" src="resize.js"></script> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 16 | <script type="text/javascript" src="navtreedata.js"></script> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 17 | <script type="text/javascript" src="navtree.js"></script> |
| 18 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 19 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 20 | $(document).ready(initResizable); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 21 | /* @license-end */</script> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 22 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 23 | <script type="text/javascript" src="search/searchdata.js"></script> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 24 | <script type="text/javascript" src="search/search.js"></script> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 25 | <script type="text/x-mathjax-config"> |
| 26 | MathJax.Hub.Config({ |
| 27 | extensions: ["tex2jax.js"], |
| 28 | jax: ["input/TeX","output/HTML-CSS"], |
| 29 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 30 | </script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 31 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 32 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 33 | </head> |
| 34 | <body> |
| 35 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 36 | <div id="titlearea"> |
| 37 | <table cellspacing="0" cellpadding="0"> |
| 38 | <tbody> |
| 39 | <tr style="height: 56px;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 40 | <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"/> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 41 | <td style="padding-left: 0.5em;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 42 | <div id="projectname"> |
Jenkins | 7f09cf7 | 2020-01-22 18:08:16 +0000 | [diff] [blame^] | 43 |  <span id="projectnumber">19.11.1</span> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | </tbody> |
| 48 | </table> |
| 49 | </div> |
| 50 | <!-- end header part --> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 51 | <!-- Generated by Doxygen 1.8.15 --> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 52 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 53 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 54 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 55 | /* @license-end */ |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 56 | </script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 57 | <script type="text/javascript" src="menudata.js"></script> |
| 58 | <script type="text/javascript" src="menu.js"></script> |
| 59 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 60 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 65 | /* @license-end */</script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 66 | <div id="main-nav"></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 79 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 80 | $(document).ready(function(){initNavTree('l2__normalize_8cl.xhtml','');}); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 81 | /* @license-end */ |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 82 | </script> |
| 83 | <div id="doc-content"> |
| 84 | <!-- window showing the filter options --> |
| 85 | <div id="MSearchSelectWindow" |
| 86 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 87 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 88 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 89 | </div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 90 | |
| 91 | <!-- iframe showing the search results (closed by default) --> |
| 92 | <div id="MSearchResultsWindow"> |
| 93 | <iframe src="javascript:void(0)" frameborder="0" |
| 94 | name="MSearchResults" id="MSearchResults"> |
| 95 | </iframe> |
| 96 | </div> |
| 97 | |
| 98 | <div class="header"> |
| 99 | <div class="summary"> |
| 100 | <a href="#func-members">Functions</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">l2_normalize.cl File Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 105 | <div class="textblock"><code>#include "<a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml">helpers.h</a>"</code><br /> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 106 | </div> |
| 107 | <p><a href="l2__normalize_8cl_source.xhtml">Go to the source code of this file.</a></p> |
| 108 | <table class="memberdecls"> |
| 109 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 110 | Functions</h2></td></tr> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 111 | <tr class="memitem:a34788ebb6384e159452babb5f7e591ed"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="l2__normalize_8cl.xhtml#a34788ebb6384e159452babb5f7e591ed">l2_normalize_x</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *sum_ptr, uint sum_stride_x, uint sum_step_x, uint sum_stride_y, uint sum_step_y, uint sum_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes, <a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> epsilon)</td></tr> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 112 | <tr class="memdesc:a34788ebb6384e159452babb5f7e591ed"><td class="mdescLeft"> </td><td class="mdescRight">This kernel performs l2 normalization on x-axis. <a href="#a34788ebb6384e159452babb5f7e591ed">More...</a><br /></td></tr> |
| 113 | <tr class="separator:a34788ebb6384e159452babb5f7e591ed"><td class="memSeparator" colspan="2"> </td></tr> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 114 | <tr class="memitem:aa860f55bdbc8de4e8e5850a05147b2be"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="l2__normalize_8cl.xhtml#aa860f55bdbc8de4e8e5850a05147b2be">l2_normalize_y</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *sum_ptr, uint sum_stride_x, uint sum_step_x, uint sum_stride_y, uint sum_step_y, uint sum_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes, <a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> epsilon)</td></tr> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 115 | <tr class="memdesc:aa860f55bdbc8de4e8e5850a05147b2be"><td class="mdescLeft"> </td><td class="mdescRight">This kernel performs l2 normalization on y-axis. <a href="#aa860f55bdbc8de4e8e5850a05147b2be">More...</a><br /></td></tr> |
| 116 | <tr class="separator:aa860f55bdbc8de4e8e5850a05147b2be"><td class="memSeparator" colspan="2"> </td></tr> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 117 | <tr class="memitem:a809db37fce4c2e573b09b0af0d3b95ee"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="l2__normalize_8cl.xhtml#a809db37fce4c2e573b09b0af0d3b95ee">l2_normalize_z</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_stride_z, uint src_step_z, uint src_offset_first_element_in_bytes, __global uchar *sum_ptr, uint sum_stride_x, uint sum_step_x, uint sum_stride_y, uint sum_step_y, uint sum_stride_z, uint sum_step_z, uint sum_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_stride_z, uint dst_step_z, uint dst_offset_first_element_in_bytes, <a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> epsilon)</td></tr> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 118 | <tr class="memdesc:a809db37fce4c2e573b09b0af0d3b95ee"><td class="mdescLeft"> </td><td class="mdescRight">This kernel performs l2 normalization on z-axis. <a href="#a809db37fce4c2e573b09b0af0d3b95ee">More...</a><br /></td></tr> |
| 119 | <tr class="separator:a809db37fce4c2e573b09b0af0d3b95ee"><td class="memSeparator" colspan="2"> </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 120 | </table> |
| 121 | <h2 class="groupheader">Function Documentation</h2> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 122 | <a id="a34788ebb6384e159452babb5f7e591ed"></a> |
| 123 | <h2 class="memtitle"><span class="permalink"><a href="#a34788ebb6384e159452babb5f7e591ed">◆ </a></span>l2_normalize_x()</h2> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 124 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 125 | <div class="memitem"> |
| 126 | <div class="memproto"> |
| 127 | <table class="memname"> |
| 128 | <tr> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 129 | <td class="memname">__kernel void l2_normalize_x </td> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 130 | <td>(</td> |
| 131 | <td class="paramtype">__global uchar * </td> |
| 132 | <td class="paramname"><em>src_ptr</em>, </td> |
| 133 | </tr> |
| 134 | <tr> |
| 135 | <td class="paramkey"></td> |
| 136 | <td></td> |
| 137 | <td class="paramtype">uint </td> |
| 138 | <td class="paramname"><em>src_stride_x</em>, </td> |
| 139 | </tr> |
| 140 | <tr> |
| 141 | <td class="paramkey"></td> |
| 142 | <td></td> |
| 143 | <td class="paramtype">uint </td> |
| 144 | <td class="paramname"><em>src_step_x</em>, </td> |
| 145 | </tr> |
| 146 | <tr> |
| 147 | <td class="paramkey"></td> |
| 148 | <td></td> |
| 149 | <td class="paramtype">uint </td> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 150 | <td class="paramname"><em>src_stride_y</em>, </td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td class="paramkey"></td> |
| 154 | <td></td> |
| 155 | <td class="paramtype">uint </td> |
| 156 | <td class="paramname"><em>src_step_y</em>, </td> |
| 157 | </tr> |
| 158 | <tr> |
| 159 | <td class="paramkey"></td> |
| 160 | <td></td> |
| 161 | <td class="paramtype">uint </td> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 162 | <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td> |
| 163 | </tr> |
| 164 | <tr> |
| 165 | <td class="paramkey"></td> |
| 166 | <td></td> |
| 167 | <td class="paramtype">__global uchar * </td> |
| 168 | <td class="paramname"><em>sum_ptr</em>, </td> |
| 169 | </tr> |
| 170 | <tr> |
| 171 | <td class="paramkey"></td> |
| 172 | <td></td> |
| 173 | <td class="paramtype">uint </td> |
| 174 | <td class="paramname"><em>sum_stride_x</em>, </td> |
| 175 | </tr> |
| 176 | <tr> |
| 177 | <td class="paramkey"></td> |
| 178 | <td></td> |
| 179 | <td class="paramtype">uint </td> |
| 180 | <td class="paramname"><em>sum_step_x</em>, </td> |
| 181 | </tr> |
| 182 | <tr> |
| 183 | <td class="paramkey"></td> |
| 184 | <td></td> |
| 185 | <td class="paramtype">uint </td> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 186 | <td class="paramname"><em>sum_stride_y</em>, </td> |
| 187 | </tr> |
| 188 | <tr> |
| 189 | <td class="paramkey"></td> |
| 190 | <td></td> |
| 191 | <td class="paramtype">uint </td> |
| 192 | <td class="paramname"><em>sum_step_y</em>, </td> |
| 193 | </tr> |
| 194 | <tr> |
| 195 | <td class="paramkey"></td> |
| 196 | <td></td> |
| 197 | <td class="paramtype">uint </td> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 198 | <td class="paramname"><em>sum_offset_first_element_in_bytes</em>, </td> |
| 199 | </tr> |
| 200 | <tr> |
| 201 | <td class="paramkey"></td> |
| 202 | <td></td> |
| 203 | <td class="paramtype">__global uchar * </td> |
| 204 | <td class="paramname"><em>dst_ptr</em>, </td> |
| 205 | </tr> |
| 206 | <tr> |
| 207 | <td class="paramkey"></td> |
| 208 | <td></td> |
| 209 | <td class="paramtype">uint </td> |
| 210 | <td class="paramname"><em>dst_stride_x</em>, </td> |
| 211 | </tr> |
| 212 | <tr> |
| 213 | <td class="paramkey"></td> |
| 214 | <td></td> |
| 215 | <td class="paramtype">uint </td> |
| 216 | <td class="paramname"><em>dst_step_x</em>, </td> |
| 217 | </tr> |
| 218 | <tr> |
| 219 | <td class="paramkey"></td> |
| 220 | <td></td> |
| 221 | <td class="paramtype">uint </td> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 222 | <td class="paramname"><em>dst_stride_y</em>, </td> |
| 223 | </tr> |
| 224 | <tr> |
| 225 | <td class="paramkey"></td> |
| 226 | <td></td> |
| 227 | <td class="paramtype">uint </td> |
| 228 | <td class="paramname"><em>dst_step_y</em>, </td> |
| 229 | </tr> |
| 230 | <tr> |
| 231 | <td class="paramkey"></td> |
| 232 | <td></td> |
| 233 | <td class="paramtype">uint </td> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 234 | <td class="paramname"><em>dst_offset_first_element_in_bytes</em>, </td> |
| 235 | </tr> |
| 236 | <tr> |
| 237 | <td class="paramkey"></td> |
| 238 | <td></td> |
| 239 | <td class="paramtype"><a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> </td> |
| 240 | <td class="paramname"><em>epsilon</em> </td> |
| 241 | </tr> |
| 242 | <tr> |
| 243 | <td></td> |
| 244 | <td>)</td> |
| 245 | <td></td><td></td> |
| 246 | </tr> |
| 247 | </table> |
| 248 | </div><div class="memdoc"> |
| 249 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 250 | <p>This kernel performs l2 normalization on x-axis. </p> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 251 | <dl class="section note"><dt>Note</dt><dd>The data type must be passed at compile time using -DDATA_TYPE: e.g. -DDATA_TYPE=float </dd> |
| 252 | <dd> |
| 253 | The data size must be passed at compile time using -DDATA_SIZE e.g. -DDATA_SIZE=32</dd></dl> |
| 254 | <dl class="params"><dt>Parameters</dt><dd> |
| 255 | <table class="params"> |
Jenkins | 52ba29e | 2018-08-29 15:32:11 +0000 | [diff] [blame] | 256 | <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source tensor. Supported data types: F16/F32 </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 257 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source tensor in X dimension (in bytes) </td></tr> |
| 258 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 259 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source tensor in Y dimension (in bytes) </td></tr> |
| 260 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along X processed per workitem(in bytes) </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 261 | <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source tensor </td></tr> |
Jenkins | 52ba29e | 2018-08-29 15:32:11 +0000 | [diff] [blame] | 262 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_ptr</td><td>Pointer to the source tensor. Supported data types: F16/F32 </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 263 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_x</td><td>Stride of the source tensor in X dimension (in bytes) </td></tr> |
| 264 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_x</td><td>sum_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 265 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_y</td><td>Stride of the source tensor in Y dimension (in bytes) </td></tr> |
| 266 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_y</td><td>sum_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 267 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_offset_first_element_in_bytes</td><td>The offset of the first element in the source tensor </td></tr> |
| 268 | <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination tensor. Supported data types: same as <code>src_ptr</code> </td></tr> |
| 269 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination tensor in X dimension (in bytes) </td></tr> |
| 270 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 271 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination tensor in Y dimension (in bytes) </td></tr> |
| 272 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 273 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination tensor </td></tr> |
| 274 | <tr><td class="paramdir">[in]</td><td class="paramname">epsilon</td><td>Epsilon value </td></tr> |
| 275 | </table> |
| 276 | </dd> |
| 277 | </dl> |
| 278 | |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 279 | <p class="definition">Definition at line <a class="el" href="l2__normalize_8cl_source.xhtml#l00051">51</a> of file <a class="el" href="l2__normalize_8cl_source.xhtml">l2_normalize.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 280 | <div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a>);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  in = vload16(0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>.ptr);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  normalize_value = (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16))rsqrt(fmax(((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a>.ptr)[0], <a class="code" href="namespacearm__compute_1_1quantization.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a>));</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  vstore16(in * normalize_value, 0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">helpers.h:311</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 281 | <div class="ttc" id="convolution3x3_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution3x3_8cl_source.xhtml#l00027">convolution3x3.cl:27</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 282 | <div class="ttc" id="reduction__operation_8cl_xhtml_ab0df00f5333da51860deb93deb44a782"><div class="ttname"><a href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a></div><div class="ttdeci">DATA_TYPE sum(__global const DATA_TYPE *input)</div><div class="ttdoc">Calculate sum of a vector.</div><div class="ttdef"><b>Definition:</b> <a href="reduction__operation_8cl_source.xhtml#l00065">reduction_operation.cl:65</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 283 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 284 | <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00349">helpers.h:349</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 285 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 286 | <div class="ttc" id="namespacearm__compute_1_1quantization_xhtml_a552dc3787d7ea1675f3e4e8993501d58"><div class="ttname"><a href="namespacearm__compute_1_1quantization.xhtml#a552dc3787d7ea1675f3e4e8993501d58">arm_compute::quantization::epsilon</a></div><div class="ttdeci">constexpr float epsilon</div><div class="ttdef"><b>Definition:</b> <a href="_asymm_helpers_8cpp_source.xhtml#l00036">AsymmHelpers.cpp:36</a></div></div> |
| 287 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 288 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 289 | <p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00036">arm_compute::quantization::epsilon</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, <a class="el" href="reduction__operation_8cl_source.xhtml#l00065">sum()</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 290 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 291 | </div> |
| 292 | </div> |
| 293 | <a id="aa860f55bdbc8de4e8e5850a05147b2be"></a> |
| 294 | <h2 class="memtitle"><span class="permalink"><a href="#aa860f55bdbc8de4e8e5850a05147b2be">◆ </a></span>l2_normalize_y()</h2> |
| 295 | |
| 296 | <div class="memitem"> |
| 297 | <div class="memproto"> |
| 298 | <table class="memname"> |
| 299 | <tr> |
| 300 | <td class="memname">__kernel void l2_normalize_y </td> |
| 301 | <td>(</td> |
| 302 | <td class="paramtype">__global uchar * </td> |
| 303 | <td class="paramname"><em>src_ptr</em>, </td> |
| 304 | </tr> |
| 305 | <tr> |
| 306 | <td class="paramkey"></td> |
| 307 | <td></td> |
| 308 | <td class="paramtype">uint </td> |
| 309 | <td class="paramname"><em>src_stride_x</em>, </td> |
| 310 | </tr> |
| 311 | <tr> |
| 312 | <td class="paramkey"></td> |
| 313 | <td></td> |
| 314 | <td class="paramtype">uint </td> |
| 315 | <td class="paramname"><em>src_step_x</em>, </td> |
| 316 | </tr> |
| 317 | <tr> |
| 318 | <td class="paramkey"></td> |
| 319 | <td></td> |
| 320 | <td class="paramtype">uint </td> |
| 321 | <td class="paramname"><em>src_stride_y</em>, </td> |
| 322 | </tr> |
| 323 | <tr> |
| 324 | <td class="paramkey"></td> |
| 325 | <td></td> |
| 326 | <td class="paramtype">uint </td> |
| 327 | <td class="paramname"><em>src_step_y</em>, </td> |
| 328 | </tr> |
| 329 | <tr> |
| 330 | <td class="paramkey"></td> |
| 331 | <td></td> |
| 332 | <td class="paramtype">uint </td> |
| 333 | <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td> |
| 334 | </tr> |
| 335 | <tr> |
| 336 | <td class="paramkey"></td> |
| 337 | <td></td> |
| 338 | <td class="paramtype">__global uchar * </td> |
| 339 | <td class="paramname"><em>sum_ptr</em>, </td> |
| 340 | </tr> |
| 341 | <tr> |
| 342 | <td class="paramkey"></td> |
| 343 | <td></td> |
| 344 | <td class="paramtype">uint </td> |
| 345 | <td class="paramname"><em>sum_stride_x</em>, </td> |
| 346 | </tr> |
| 347 | <tr> |
| 348 | <td class="paramkey"></td> |
| 349 | <td></td> |
| 350 | <td class="paramtype">uint </td> |
| 351 | <td class="paramname"><em>sum_step_x</em>, </td> |
| 352 | </tr> |
| 353 | <tr> |
| 354 | <td class="paramkey"></td> |
| 355 | <td></td> |
| 356 | <td class="paramtype">uint </td> |
| 357 | <td class="paramname"><em>sum_stride_y</em>, </td> |
| 358 | </tr> |
| 359 | <tr> |
| 360 | <td class="paramkey"></td> |
| 361 | <td></td> |
| 362 | <td class="paramtype">uint </td> |
| 363 | <td class="paramname"><em>sum_step_y</em>, </td> |
| 364 | </tr> |
| 365 | <tr> |
| 366 | <td class="paramkey"></td> |
| 367 | <td></td> |
| 368 | <td class="paramtype">uint </td> |
| 369 | <td class="paramname"><em>sum_offset_first_element_in_bytes</em>, </td> |
| 370 | </tr> |
| 371 | <tr> |
| 372 | <td class="paramkey"></td> |
| 373 | <td></td> |
| 374 | <td class="paramtype">__global uchar * </td> |
| 375 | <td class="paramname"><em>dst_ptr</em>, </td> |
| 376 | </tr> |
| 377 | <tr> |
| 378 | <td class="paramkey"></td> |
| 379 | <td></td> |
| 380 | <td class="paramtype">uint </td> |
| 381 | <td class="paramname"><em>dst_stride_x</em>, </td> |
| 382 | </tr> |
| 383 | <tr> |
| 384 | <td class="paramkey"></td> |
| 385 | <td></td> |
| 386 | <td class="paramtype">uint </td> |
| 387 | <td class="paramname"><em>dst_step_x</em>, </td> |
| 388 | </tr> |
| 389 | <tr> |
| 390 | <td class="paramkey"></td> |
| 391 | <td></td> |
| 392 | <td class="paramtype">uint </td> |
| 393 | <td class="paramname"><em>dst_stride_y</em>, </td> |
| 394 | </tr> |
| 395 | <tr> |
| 396 | <td class="paramkey"></td> |
| 397 | <td></td> |
| 398 | <td class="paramtype">uint </td> |
| 399 | <td class="paramname"><em>dst_step_y</em>, </td> |
| 400 | </tr> |
| 401 | <tr> |
| 402 | <td class="paramkey"></td> |
| 403 | <td></td> |
| 404 | <td class="paramtype">uint </td> |
| 405 | <td class="paramname"><em>dst_offset_first_element_in_bytes</em>, </td> |
| 406 | </tr> |
| 407 | <tr> |
| 408 | <td class="paramkey"></td> |
| 409 | <td></td> |
| 410 | <td class="paramtype"><a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> </td> |
| 411 | <td class="paramname"><em>epsilon</em> </td> |
| 412 | </tr> |
| 413 | <tr> |
| 414 | <td></td> |
| 415 | <td>)</td> |
| 416 | <td></td><td></td> |
| 417 | </tr> |
| 418 | </table> |
| 419 | </div><div class="memdoc"> |
| 420 | |
| 421 | <p>This kernel performs l2 normalization on y-axis. </p> |
| 422 | <dl class="section note"><dt>Note</dt><dd>The data type must be passed at compile time using -DDATA_TYPE: e.g. -DDATA_TYPE=float </dd> |
| 423 | <dd> |
| 424 | The data size must be passed at compile time using -DDATA_SIZE e.g. -DDATA_SIZE=32</dd></dl> |
| 425 | <dl class="params"><dt>Parameters</dt><dd> |
| 426 | <table class="params"> |
| 427 | <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source tensor. Supported data types: F16/F32 </td></tr> |
| 428 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source tensor in X dimension (in bytes) </td></tr> |
| 429 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 430 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source tensor in Y dimension (in bytes) </td></tr> |
| 431 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along X processed per workitem(in bytes) </td></tr> |
| 432 | <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source tensor </td></tr> |
| 433 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_ptr</td><td>Pointer to the source tensor. Supported data types: F16/F32 </td></tr> |
| 434 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_x</td><td>Stride of the source tensor in X dimension (in bytes) </td></tr> |
| 435 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_x</td><td>sum_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 436 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_y</td><td>Stride of the source tensor in Y dimension (in bytes) </td></tr> |
| 437 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_y</td><td>sum_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 438 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_offset_first_element_in_bytes</td><td>The offset of the first element in the source tensor </td></tr> |
| 439 | <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination tensor. Supported data types: same as <code>src_ptr</code> </td></tr> |
| 440 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination tensor in X dimension (in bytes) </td></tr> |
| 441 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 442 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination tensor in Y dimension (in bytes) </td></tr> |
| 443 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 444 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination tensor </td></tr> |
| 445 | <tr><td class="paramdir">[in]</td><td class="paramname">epsilon</td><td>Epsilon value </td></tr> |
| 446 | </table> |
| 447 | </dd> |
| 448 | </dl> |
| 449 | |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 450 | <p class="definition">Definition at line <a class="el" href="l2__normalize_8cl_source.xhtml#l00094">94</a> of file <a class="el" href="l2__normalize_8cl_source.xhtml">l2_normalize.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 451 | <div class="fragment"><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a>);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</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>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  in = vload16(0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>.ptr);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  sums = vload16(0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a>.ptr);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  normalize_value = (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16))rsqrt(fmax(sums, <a class="code" href="namespacearm__compute_1_1quantization.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a>));</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  vstore16(in * normalize_value, 0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">helpers.h:311</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 452 | <div class="ttc" id="convolution3x3_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution3x3_8cl_source.xhtml#l00027">convolution3x3.cl:27</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 453 | <div class="ttc" id="reduction__operation_8cl_xhtml_ab0df00f5333da51860deb93deb44a782"><div class="ttname"><a href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a></div><div class="ttdeci">DATA_TYPE sum(__global const DATA_TYPE *input)</div><div class="ttdoc">Calculate sum of a vector.</div><div class="ttdef"><b>Definition:</b> <a href="reduction__operation_8cl_source.xhtml#l00065">reduction_operation.cl:65</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 454 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 455 | <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00349">helpers.h:349</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 456 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 457 | <div class="ttc" id="namespacearm__compute_1_1quantization_xhtml_a552dc3787d7ea1675f3e4e8993501d58"><div class="ttname"><a href="namespacearm__compute_1_1quantization.xhtml#a552dc3787d7ea1675f3e4e8993501d58">arm_compute::quantization::epsilon</a></div><div class="ttdeci">constexpr float epsilon</div><div class="ttdef"><b>Definition:</b> <a href="_asymm_helpers_8cpp_source.xhtml#l00036">AsymmHelpers.cpp:36</a></div></div> |
| 458 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 459 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 460 | <p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00036">arm_compute::quantization::epsilon</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, <a class="el" href="reduction__operation_8cl_source.xhtml#l00065">sum()</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 461 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 462 | </div> |
| 463 | </div> |
| 464 | <a id="a809db37fce4c2e573b09b0af0d3b95ee"></a> |
| 465 | <h2 class="memtitle"><span class="permalink"><a href="#a809db37fce4c2e573b09b0af0d3b95ee">◆ </a></span>l2_normalize_z()</h2> |
| 466 | |
| 467 | <div class="memitem"> |
| 468 | <div class="memproto"> |
| 469 | <table class="memname"> |
| 470 | <tr> |
| 471 | <td class="memname">__kernel void l2_normalize_z </td> |
| 472 | <td>(</td> |
| 473 | <td class="paramtype">__global uchar * </td> |
| 474 | <td class="paramname"><em>src_ptr</em>, </td> |
| 475 | </tr> |
| 476 | <tr> |
| 477 | <td class="paramkey"></td> |
| 478 | <td></td> |
| 479 | <td class="paramtype">uint </td> |
| 480 | <td class="paramname"><em>src_stride_x</em>, </td> |
| 481 | </tr> |
| 482 | <tr> |
| 483 | <td class="paramkey"></td> |
| 484 | <td></td> |
| 485 | <td class="paramtype">uint </td> |
| 486 | <td class="paramname"><em>src_step_x</em>, </td> |
| 487 | </tr> |
| 488 | <tr> |
| 489 | <td class="paramkey"></td> |
| 490 | <td></td> |
| 491 | <td class="paramtype">uint </td> |
| 492 | <td class="paramname"><em>src_stride_y</em>, </td> |
| 493 | </tr> |
| 494 | <tr> |
| 495 | <td class="paramkey"></td> |
| 496 | <td></td> |
| 497 | <td class="paramtype">uint </td> |
| 498 | <td class="paramname"><em>src_step_y</em>, </td> |
| 499 | </tr> |
| 500 | <tr> |
| 501 | <td class="paramkey"></td> |
| 502 | <td></td> |
| 503 | <td class="paramtype">uint </td> |
| 504 | <td class="paramname"><em>src_stride_z</em>, </td> |
| 505 | </tr> |
| 506 | <tr> |
| 507 | <td class="paramkey"></td> |
| 508 | <td></td> |
| 509 | <td class="paramtype">uint </td> |
| 510 | <td class="paramname"><em>src_step_z</em>, </td> |
| 511 | </tr> |
| 512 | <tr> |
| 513 | <td class="paramkey"></td> |
| 514 | <td></td> |
| 515 | <td class="paramtype">uint </td> |
| 516 | <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td> |
| 517 | </tr> |
| 518 | <tr> |
| 519 | <td class="paramkey"></td> |
| 520 | <td></td> |
| 521 | <td class="paramtype">__global uchar * </td> |
| 522 | <td class="paramname"><em>sum_ptr</em>, </td> |
| 523 | </tr> |
| 524 | <tr> |
| 525 | <td class="paramkey"></td> |
| 526 | <td></td> |
| 527 | <td class="paramtype">uint </td> |
| 528 | <td class="paramname"><em>sum_stride_x</em>, </td> |
| 529 | </tr> |
| 530 | <tr> |
| 531 | <td class="paramkey"></td> |
| 532 | <td></td> |
| 533 | <td class="paramtype">uint </td> |
| 534 | <td class="paramname"><em>sum_step_x</em>, </td> |
| 535 | </tr> |
| 536 | <tr> |
| 537 | <td class="paramkey"></td> |
| 538 | <td></td> |
| 539 | <td class="paramtype">uint </td> |
| 540 | <td class="paramname"><em>sum_stride_y</em>, </td> |
| 541 | </tr> |
| 542 | <tr> |
| 543 | <td class="paramkey"></td> |
| 544 | <td></td> |
| 545 | <td class="paramtype">uint </td> |
| 546 | <td class="paramname"><em>sum_step_y</em>, </td> |
| 547 | </tr> |
| 548 | <tr> |
| 549 | <td class="paramkey"></td> |
| 550 | <td></td> |
| 551 | <td class="paramtype">uint </td> |
| 552 | <td class="paramname"><em>sum_stride_z</em>, </td> |
| 553 | </tr> |
| 554 | <tr> |
| 555 | <td class="paramkey"></td> |
| 556 | <td></td> |
| 557 | <td class="paramtype">uint </td> |
| 558 | <td class="paramname"><em>sum_step_z</em>, </td> |
| 559 | </tr> |
| 560 | <tr> |
| 561 | <td class="paramkey"></td> |
| 562 | <td></td> |
| 563 | <td class="paramtype">uint </td> |
| 564 | <td class="paramname"><em>sum_offset_first_element_in_bytes</em>, </td> |
| 565 | </tr> |
| 566 | <tr> |
| 567 | <td class="paramkey"></td> |
| 568 | <td></td> |
| 569 | <td class="paramtype">__global uchar * </td> |
| 570 | <td class="paramname"><em>dst_ptr</em>, </td> |
| 571 | </tr> |
| 572 | <tr> |
| 573 | <td class="paramkey"></td> |
| 574 | <td></td> |
| 575 | <td class="paramtype">uint </td> |
| 576 | <td class="paramname"><em>dst_stride_x</em>, </td> |
| 577 | </tr> |
| 578 | <tr> |
| 579 | <td class="paramkey"></td> |
| 580 | <td></td> |
| 581 | <td class="paramtype">uint </td> |
| 582 | <td class="paramname"><em>dst_step_x</em>, </td> |
| 583 | </tr> |
| 584 | <tr> |
| 585 | <td class="paramkey"></td> |
| 586 | <td></td> |
| 587 | <td class="paramtype">uint </td> |
| 588 | <td class="paramname"><em>dst_stride_y</em>, </td> |
| 589 | </tr> |
| 590 | <tr> |
| 591 | <td class="paramkey"></td> |
| 592 | <td></td> |
| 593 | <td class="paramtype">uint </td> |
| 594 | <td class="paramname"><em>dst_step_y</em>, </td> |
| 595 | </tr> |
| 596 | <tr> |
| 597 | <td class="paramkey"></td> |
| 598 | <td></td> |
| 599 | <td class="paramtype">uint </td> |
| 600 | <td class="paramname"><em>dst_stride_z</em>, </td> |
| 601 | </tr> |
| 602 | <tr> |
| 603 | <td class="paramkey"></td> |
| 604 | <td></td> |
| 605 | <td class="paramtype">uint </td> |
| 606 | <td class="paramname"><em>dst_step_z</em>, </td> |
| 607 | </tr> |
| 608 | <tr> |
| 609 | <td class="paramkey"></td> |
| 610 | <td></td> |
| 611 | <td class="paramtype">uint </td> |
| 612 | <td class="paramname"><em>dst_offset_first_element_in_bytes</em>, </td> |
| 613 | </tr> |
| 614 | <tr> |
| 615 | <td class="paramkey"></td> |
| 616 | <td></td> |
| 617 | <td class="paramtype"><a class="el" href="convolution9x9_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> </td> |
| 618 | <td class="paramname"><em>epsilon</em> </td> |
| 619 | </tr> |
| 620 | <tr> |
| 621 | <td></td> |
| 622 | <td>)</td> |
| 623 | <td></td><td></td> |
| 624 | </tr> |
| 625 | </table> |
| 626 | </div><div class="memdoc"> |
| 627 | |
| 628 | <p>This kernel performs l2 normalization on z-axis. </p> |
| 629 | <dl class="section note"><dt>Note</dt><dd>The data type must be passed at compile time using -DDATA_TYPE: e.g. -DDATA_TYPE=float </dd> |
| 630 | <dd> |
| 631 | The data size must be passed at compile time using -DDATA_SIZE e.g. -DDATA_SIZE=32</dd></dl> |
| 632 | <dl class="params"><dt>Parameters</dt><dd> |
| 633 | <table class="params"> |
| 634 | <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source tensor. Supported data types: F16/F32 </td></tr> |
| 635 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source tensor in X dimension (in bytes) </td></tr> |
| 636 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 637 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source tensor in Y dimension (in bytes) </td></tr> |
| 638 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along X processed per workitem(in bytes) </td></tr> |
| 639 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_z</td><td>Stride of the source tensor in Z dimension (in bytes) </td></tr> |
| 640 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_z</td><td>src_stride_z * number of elements along Z processed per workitem(in bytes) </td></tr> |
| 641 | <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source tensor </td></tr> |
| 642 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_ptr</td><td>Pointer to the source tensor. Supported data types: F16/F32 </td></tr> |
| 643 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_x</td><td>Stride of the source tensor in X dimension (in bytes) </td></tr> |
| 644 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_x</td><td>sum_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 645 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_y</td><td>Stride of the source tensor in Y dimension (in bytes) </td></tr> |
| 646 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_y</td><td>sum_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 647 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_stride_z</td><td>Stride of the source tensor in Z dimension (in bytes) </td></tr> |
| 648 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_step_z</td><td>sum_stride_z * number of elements along Z processed per workitem(in bytes) </td></tr> |
| 649 | <tr><td class="paramdir">[in]</td><td class="paramname">sum_offset_first_element_in_bytes</td><td>The offset of the first element in the source tensor </td></tr> |
| 650 | <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination tensor. Supported data types: same as <code>src_ptr</code> </td></tr> |
| 651 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination tensor in X dimension (in bytes) </td></tr> |
| 652 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 653 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination tensor in Y dimension (in bytes) </td></tr> |
| 654 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 655 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_z</td><td>Stride of the destination tensor in Z dimension (in bytes) </td></tr> |
| 656 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_z</td><td>dst_stride_z * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 657 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination tensor </td></tr> |
| 658 | <tr><td class="paramdir">[in]</td><td class="paramname">epsilon</td><td>Epsilon value </td></tr> |
| 659 | </table> |
| 660 | </dd> |
| 661 | </dl> |
| 662 | |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 663 | <p class="definition">Definition at line <a class="el" href="l2__normalize_8cl_source.xhtml#l00145">145</a> of file <a class="el" href="l2__normalize_8cl_source.xhtml">l2_normalize.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 664 | <div class="fragment"><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> {</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="struct_tensor3_d.xhtml">Tensor3D</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a31c8c760f08fb1a331b16b7c204321dc">CONVERT_TO_TENSOR3D_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="struct_tensor3_d.xhtml">Tensor3D</a> <a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a31c8c760f08fb1a331b16b7c204321dc">CONVERT_TO_TENSOR3D_STRUCT</a>(<a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a>);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="struct_tensor3_d.xhtml">Tensor3D</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a31c8c760f08fb1a331b16b7c204321dc">CONVERT_TO_TENSOR3D_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  in = vload16(0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>.ptr);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  sums = vload16(0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a>.ptr);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16)</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  normalize_value = (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 16))rsqrt(fmax(sums, <a class="code" href="namespacearm__compute_1_1quantization.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a>));</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  vstore16(in * normalize_value, 0, (__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> }</div><div class="ttc" id="convolution3x3_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution3x3_8cl_source.xhtml#l00027">convolution3x3.cl:27</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 665 | <div class="ttc" id="reduction__operation_8cl_xhtml_ab0df00f5333da51860deb93deb44a782"><div class="ttname"><a href="reduction__operation_8cl.xhtml#ab0df00f5333da51860deb93deb44a782">sum</a></div><div class="ttdeci">DATA_TYPE sum(__global const DATA_TYPE *input)</div><div class="ttdoc">Calculate sum of a vector.</div><div class="ttdef"><b>Definition:</b> <a href="reduction__operation_8cl_source.xhtml#l00065">reduction_operation.cl:65</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 666 | <div class="ttc" id="struct_tensor3_d_xhtml"><div class="ttname"><a href="struct_tensor3_d.xhtml">Tensor3D</a></div><div class="ttdoc">Structure to hold 3D tensor information.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00358">helpers.h:358</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 667 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 668 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a31c8c760f08fb1a331b16b7c204321dc"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a31c8c760f08fb1a331b16b7c204321dc">CONVERT_TO_TENSOR3D_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_TENSOR3D_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00326">helpers.h:326</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 669 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 670 | <div class="ttc" id="namespacearm__compute_1_1quantization_xhtml_a552dc3787d7ea1675f3e4e8993501d58"><div class="ttname"><a href="namespacearm__compute_1_1quantization.xhtml#a552dc3787d7ea1675f3e4e8993501d58">arm_compute::quantization::epsilon</a></div><div class="ttdeci">constexpr float epsilon</div><div class="ttdef"><b>Definition:</b> <a href="_asymm_helpers_8cpp_source.xhtml#l00036">AsymmHelpers.cpp:36</a></div></div> |
| 671 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 672 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 673 | <p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00326">CONVERT_TO_TENSOR3D_STRUCT</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00036">arm_compute::quantization::epsilon</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, <a class="el" href="reduction__operation_8cl_source.xhtml#l00065">sum()</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 674 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 675 | </div> |
| 676 | </div> |
| 677 | </div><!-- contents --> |
| 678 | </div><!-- doc-content --> |
| 679 | <!-- start footer part --> |
| 680 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 681 | <ul> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 682 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_8c278f79c760e5c5fbd911f9870614c1.xhtml">CL</a></li><li class="navelem"><a class="el" href="dir_25885286e9dad4fa105b7b25a8031bbf.xhtml">cl_kernels</a></li><li class="navelem"><a class="el" href="l2__normalize_8cl.xhtml">l2_normalize.cl</a></li> |
Jenkins | 7f09cf7 | 2020-01-22 18:08:16 +0000 | [diff] [blame^] | 683 | <li class="footer">Generated on Wed Jan 22 2020 18:07:48 for Compute Library by |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 684 | <a href="http://www.doxygen.org/index.html"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 685 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 686 | </ul> |
| 687 | </div> |
| 688 | </body> |
| 689 | </html> |