Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 1 | <!-- HTML header for doxygen 1.8.9.1--> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 7 | <meta name="generator" content="Doxygen 1.8.11"/> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 8 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
| 9 | <title>Compute Library: src/core/CL/cl_kernels/batchnormalization_layer.cl File Reference</title> |
| 10 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 11 | <script type="text/javascript" src="jquery.js"></script> |
| 12 | <script type="text/javascript" src="dynsections.js"></script> |
| 13 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 14 | <script type="text/javascript" src="resize.js"></script> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 15 | <script type="text/javascript" src="navtreedata.js"></script> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 16 | <script type="text/javascript" src="navtree.js"></script> |
| 17 | <script type="text/javascript"> |
| 18 | $(document).ready(initResizable); |
| 19 | $(window).load(resizeHeight); |
| 20 | </script> |
| 21 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 22 | <script type="text/javascript" src="search/searchdata.js"></script> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 23 | <script type="text/javascript" src="search/search.js"></script> |
| 24 | <script type="text/javascript"> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 25 | $(document).ready(function() { init_search(); }); |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 26 | </script> |
| 27 | <script type="text/x-mathjax-config"> |
| 28 | MathJax.Hub.Config({ |
| 29 | extensions: ["tex2jax.js"], |
| 30 | jax: ["input/TeX","output/HTML-CSS"], |
| 31 | }); |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 32 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 33 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 34 | </head> |
| 35 | <body> |
| 36 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 37 | <div id="titlearea"> |
| 38 | <table cellspacing="0" cellpadding="0"> |
| 39 | <tbody> |
| 40 | <tr style="height: 56px;"> |
| 41 | <td style="padding-left: 0.5em;"> |
| 42 | <div id="projectname">Compute Library |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 43 |  <span id="projectnumber">17.12</span> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | </tbody> |
| 48 | </table> |
| 49 | </div> |
| 50 | <!-- end header part --> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 51 | <!-- Generated by Doxygen 1.8.11 --> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 52 | <script type="text/javascript"> |
| 53 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 54 | </script> |
| 55 | <div id="navrow1" class="tabs"> |
| 56 | <ul class="tablist"> |
| 57 | <li><a href="index.xhtml"><span>Main Page</span></a></li> |
| 58 | <li><a href="pages.xhtml"><span>Related Pages</span></a></li> |
| 59 | <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li> |
| 60 | <li><a href="annotated.xhtml"><span>Data Structures</span></a></li> |
| 61 | <li class="current"><a href="files.xhtml"><span>Files</span></a></li> |
| 62 | <li> |
| 63 | <div id="MSearchBox" class="MSearchBoxInactive"> |
| 64 | <span class="left"> |
| 65 | <img id="MSearchSelect" src="search/mag_sel.png" |
| 66 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 67 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 68 | alt=""/> |
| 69 | <input type="text" id="MSearchField" value="Search" accesskey="S" |
| 70 | onfocus="searchBox.OnSearchFieldFocus(true)" |
| 71 | onblur="searchBox.OnSearchFieldFocus(false)" |
| 72 | onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| 73 | </span><span class="right"> |
| 74 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| 75 | </span> |
| 76 | </div> |
| 77 | </li> |
| 78 | </ul> |
| 79 | </div> |
| 80 | <div id="navrow2" class="tabs2"> |
| 81 | <ul class="tablist"> |
| 82 | <li><a href="files.xhtml"><span>File List</span></a></li> |
| 83 | <li><a href="globals.xhtml"><span>Globals</span></a></li> |
| 84 | </ul> |
| 85 | </div> |
| 86 | </div><!-- top --> |
| 87 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 88 | <div id="nav-tree"> |
| 89 | <div id="nav-tree-contents"> |
| 90 | <div id="nav-sync" class="sync"></div> |
| 91 | </div> |
| 92 | </div> |
| 93 | <div id="splitbar" style="-moz-user-select:none;" |
| 94 | class="ui-resizable-handle"> |
| 95 | </div> |
| 96 | </div> |
| 97 | <script type="text/javascript"> |
| 98 | $(document).ready(function(){initNavTree('batchnormalization__layer_8cl.xhtml','');}); |
| 99 | </script> |
| 100 | <div id="doc-content"> |
| 101 | <!-- window showing the filter options --> |
| 102 | <div id="MSearchSelectWindow" |
| 103 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 104 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 105 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 106 | </div> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 107 | |
| 108 | <!-- iframe showing the search results (closed by default) --> |
| 109 | <div id="MSearchResultsWindow"> |
| 110 | <iframe src="javascript:void(0)" frameborder="0" |
| 111 | name="MSearchResults" id="MSearchResults"> |
| 112 | </iframe> |
| 113 | </div> |
| 114 | |
| 115 | <div class="header"> |
| 116 | <div class="summary"> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 117 | <a href="#define-members">Macros</a> | |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 118 | <a href="#func-members">Functions</a> </div> |
| 119 | <div class="headertitle"> |
| 120 | <div class="title">batchnormalization_layer.cl File Reference</div> </div> |
| 121 | </div><!--header--> |
| 122 | <div class="contents"> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 123 | <div class="textblock"><code>#include "<a class="el" href="helpers_8h_source.xhtml">helpers.h</a>"</code><br /> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 124 | </div> |
| 125 | <p><a href="batchnormalization__layer_8cl_source.xhtml">Go to the source code of this file.</a></p> |
| 126 | <table class="memberdecls"> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 127 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| 128 | Macros</h2></td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 129 | <tr class="memitem:aebbeb1f22eca3a3f4c3e019e8f419f39"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="batchnormalization__layer_8cl.xhtml#aebbeb1f22eca3a3f4c3e019e8f419f39">ADD_OP</a>(a, b)   ((a) + (b))</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 130 | <tr class="separator:aebbeb1f22eca3a3f4c3e019e8f419f39"><td class="memSeparator" colspan="2"> </td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 131 | <tr class="memitem:ad778425e4131c4731f17d7e6e3499a07"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="batchnormalization__layer_8cl.xhtml#ad778425e4131c4731f17d7e6e3499a07">SUB_OP</a>(a, b)   ((a) - (b))</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 132 | <tr class="separator:ad778425e4131c4731f17d7e6e3499a07"><td class="memSeparator" colspan="2"> </td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 133 | <tr class="memitem:ad3cc858846806e6b1d3694b9d0a2e6da"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="batchnormalization__layer_8cl.xhtml#ad3cc858846806e6b1d3694b9d0a2e6da">MUL_OP</a>(a, b)   ((a) * (b))</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 134 | <tr class="separator:ad3cc858846806e6b1d3694b9d0a2e6da"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:acbe0869c7899bc8d9f0e91a6249fa970"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="batchnormalization__layer_8cl.xhtml#acbe0869c7899bc8d9f0e91a6249fa970">INVSQRT_OP</a>(a)   rsqrt((a))</td></tr> |
| 136 | <tr class="separator:acbe0869c7899bc8d9f0e91a6249fa970"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:a107d847044e677b01e9bd3d5251b39d9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="batchnormalization__layer_8cl.xhtml#a107d847044e677b01e9bd3d5251b39d9">SQCVT_SAT</a>(a)   (a)</td></tr> |
| 138 | <tr class="separator:a107d847044e677b01e9bd3d5251b39d9"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | </table><table class="memberdecls"> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 140 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 141 | Functions</h2></td></tr> |
| 142 | <tr class="memitem:a38320a1607c05acba75c51c0fb3aec38"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="batchnormalization__layer_8cl.xhtml#a38320a1607c05acba75c51c0fb3aec38">batchnormalization_layer</a> (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_stride_z, uint input_step_z, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_stride_z, uint output_step_z, uint output_offset_first_element_in_bytes, __global uchar *mean_ptr, uint mean_stride_x, uint mean_step_x, uint mean_offset_first_element_in_bytes, __global uchar *var_ptr, uint var_stride_x, uint var_step_x, uint var_offset_first_element_in_bytes, __global uchar *beta_ptr, uint beta_stride_x, uint beta_step_x, uint beta_offset_first_element_in_bytes, __global uchar *gamma_ptr, uint gamma_stride_x, uint gamma_step_x, uint gamma_offset_first_element_in_bytes, float epsilon)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 143 | <tr class="memdesc:a38320a1607c05acba75c51c0fb3aec38"><td class="mdescLeft"> </td><td class="mdescRight">Apply batch normalization. <a href="#a38320a1607c05acba75c51c0fb3aec38">More...</a><br /></td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 144 | <tr class="separator:a38320a1607c05acba75c51c0fb3aec38"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | </table> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 146 | <h2 class="groupheader">Macro Definition Documentation</h2> |
| 147 | <a class="anchor" id="aebbeb1f22eca3a3f4c3e019e8f419f39"></a> |
| 148 | <div class="memitem"> |
| 149 | <div class="memproto"> |
| 150 | <table class="memname"> |
| 151 | <tr> |
| 152 | <td class="memname">#define ADD_OP</td> |
| 153 | <td>(</td> |
| 154 | <td class="paramtype"> </td> |
| 155 | <td class="paramname">a, </td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <td class="paramkey"></td> |
| 159 | <td></td> |
| 160 | <td class="paramtype"> </td> |
| 161 | <td class="paramname">b </td> |
| 162 | </tr> |
| 163 | <tr> |
| 164 | <td></td> |
| 165 | <td>)</td> |
| 166 | <td></td><td>   ((a) + (b))</td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </div><div class="memdoc"> |
| 170 | |
| 171 | <p>Definition at line <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00037">37</a> of file <a class="el" href="batchnormalization__layer_8cl_source.xhtml">batchnormalization_layer.cl</a>.</p> |
| 172 | |
| 173 | <p>Referenced by <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00081">batchnormalization_layer()</a>.</p> |
| 174 | |
| 175 | </div> |
| 176 | </div> |
| 177 | <a class="anchor" id="acbe0869c7899bc8d9f0e91a6249fa970"></a> |
| 178 | <div class="memitem"> |
| 179 | <div class="memproto"> |
| 180 | <table class="memname"> |
| 181 | <tr> |
| 182 | <td class="memname">#define INVSQRT_OP</td> |
| 183 | <td>(</td> |
| 184 | <td class="paramtype"> </td> |
| 185 | <td class="paramname">a</td><td>)</td> |
| 186 | <td>   rsqrt((a))</td> |
| 187 | </tr> |
| 188 | </table> |
| 189 | </div><div class="memdoc"> |
| 190 | |
| 191 | <p>Definition at line <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00040">40</a> of file <a class="el" href="batchnormalization__layer_8cl_source.xhtml">batchnormalization_layer.cl</a>.</p> |
| 192 | |
| 193 | <p>Referenced by <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00081">batchnormalization_layer()</a>.</p> |
| 194 | |
| 195 | </div> |
| 196 | </div> |
| 197 | <a class="anchor" id="ad3cc858846806e6b1d3694b9d0a2e6da"></a> |
| 198 | <div class="memitem"> |
| 199 | <div class="memproto"> |
| 200 | <table class="memname"> |
| 201 | <tr> |
| 202 | <td class="memname">#define MUL_OP</td> |
| 203 | <td>(</td> |
| 204 | <td class="paramtype"> </td> |
| 205 | <td class="paramname">a, </td> |
| 206 | </tr> |
| 207 | <tr> |
| 208 | <td class="paramkey"></td> |
| 209 | <td></td> |
| 210 | <td class="paramtype"> </td> |
| 211 | <td class="paramname">b </td> |
| 212 | </tr> |
| 213 | <tr> |
| 214 | <td></td> |
| 215 | <td>)</td> |
| 216 | <td></td><td>   ((a) * (b))</td> |
| 217 | </tr> |
| 218 | </table> |
| 219 | </div><div class="memdoc"> |
| 220 | |
| 221 | <p>Definition at line <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00039">39</a> of file <a class="el" href="batchnormalization__layer_8cl_source.xhtml">batchnormalization_layer.cl</a>.</p> |
| 222 | |
| 223 | <p>Referenced by <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00081">batchnormalization_layer()</a>.</p> |
| 224 | |
| 225 | </div> |
| 226 | </div> |
| 227 | <a class="anchor" id="a107d847044e677b01e9bd3d5251b39d9"></a> |
| 228 | <div class="memitem"> |
| 229 | <div class="memproto"> |
| 230 | <table class="memname"> |
| 231 | <tr> |
| 232 | <td class="memname">#define SQCVT_SAT</td> |
| 233 | <td>(</td> |
| 234 | <td class="paramtype"> </td> |
| 235 | <td class="paramname">a</td><td>)</td> |
| 236 | <td>   (a)</td> |
| 237 | </tr> |
| 238 | </table> |
| 239 | </div><div class="memdoc"> |
| 240 | |
| 241 | <p>Definition at line <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00041">41</a> of file <a class="el" href="batchnormalization__layer_8cl_source.xhtml">batchnormalization_layer.cl</a>.</p> |
| 242 | |
| 243 | <p>Referenced by <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00081">batchnormalization_layer()</a>.</p> |
| 244 | |
| 245 | </div> |
| 246 | </div> |
| 247 | <a class="anchor" id="ad778425e4131c4731f17d7e6e3499a07"></a> |
| 248 | <div class="memitem"> |
| 249 | <div class="memproto"> |
| 250 | <table class="memname"> |
| 251 | <tr> |
| 252 | <td class="memname">#define SUB_OP</td> |
| 253 | <td>(</td> |
| 254 | <td class="paramtype"> </td> |
| 255 | <td class="paramname">a, </td> |
| 256 | </tr> |
| 257 | <tr> |
| 258 | <td class="paramkey"></td> |
| 259 | <td></td> |
| 260 | <td class="paramtype"> </td> |
| 261 | <td class="paramname">b </td> |
| 262 | </tr> |
| 263 | <tr> |
| 264 | <td></td> |
| 265 | <td>)</td> |
| 266 | <td></td><td>   ((a) - (b))</td> |
| 267 | </tr> |
| 268 | </table> |
| 269 | </div><div class="memdoc"> |
| 270 | |
| 271 | <p>Definition at line <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00038">38</a> of file <a class="el" href="batchnormalization__layer_8cl_source.xhtml">batchnormalization_layer.cl</a>.</p> |
| 272 | |
| 273 | <p>Referenced by <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00081">batchnormalization_layer()</a>.</p> |
| 274 | |
| 275 | </div> |
| 276 | </div> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 277 | <h2 class="groupheader">Function Documentation</h2> |
| 278 | <a class="anchor" id="a38320a1607c05acba75c51c0fb3aec38"></a> |
| 279 | <div class="memitem"> |
| 280 | <div class="memproto"> |
| 281 | <table class="memname"> |
| 282 | <tr> |
| 283 | <td class="memname">__kernel void batchnormalization_layer </td> |
| 284 | <td>(</td> |
| 285 | <td class="paramtype">__global uchar * </td> |
| 286 | <td class="paramname"><em>input_ptr</em>, </td> |
| 287 | </tr> |
| 288 | <tr> |
| 289 | <td class="paramkey"></td> |
| 290 | <td></td> |
| 291 | <td class="paramtype">uint </td> |
| 292 | <td class="paramname"><em>input_stride_x</em>, </td> |
| 293 | </tr> |
| 294 | <tr> |
| 295 | <td class="paramkey"></td> |
| 296 | <td></td> |
| 297 | <td class="paramtype">uint </td> |
| 298 | <td class="paramname"><em>input_step_x</em>, </td> |
| 299 | </tr> |
| 300 | <tr> |
| 301 | <td class="paramkey"></td> |
| 302 | <td></td> |
| 303 | <td class="paramtype">uint </td> |
| 304 | <td class="paramname"><em>input_stride_y</em>, </td> |
| 305 | </tr> |
| 306 | <tr> |
| 307 | <td class="paramkey"></td> |
| 308 | <td></td> |
| 309 | <td class="paramtype">uint </td> |
| 310 | <td class="paramname"><em>input_step_y</em>, </td> |
| 311 | </tr> |
| 312 | <tr> |
| 313 | <td class="paramkey"></td> |
| 314 | <td></td> |
| 315 | <td class="paramtype">uint </td> |
| 316 | <td class="paramname"><em>input_stride_z</em>, </td> |
| 317 | </tr> |
| 318 | <tr> |
| 319 | <td class="paramkey"></td> |
| 320 | <td></td> |
| 321 | <td class="paramtype">uint </td> |
| 322 | <td class="paramname"><em>input_step_z</em>, </td> |
| 323 | </tr> |
| 324 | <tr> |
| 325 | <td class="paramkey"></td> |
| 326 | <td></td> |
| 327 | <td class="paramtype">uint </td> |
| 328 | <td class="paramname"><em>input_offset_first_element_in_bytes</em>, </td> |
| 329 | </tr> |
| 330 | <tr> |
| 331 | <td class="paramkey"></td> |
| 332 | <td></td> |
| 333 | <td class="paramtype">__global uchar * </td> |
| 334 | <td class="paramname"><em>output_ptr</em>, </td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td class="paramkey"></td> |
| 338 | <td></td> |
| 339 | <td class="paramtype">uint </td> |
| 340 | <td class="paramname"><em>output_stride_x</em>, </td> |
| 341 | </tr> |
| 342 | <tr> |
| 343 | <td class="paramkey"></td> |
| 344 | <td></td> |
| 345 | <td class="paramtype">uint </td> |
| 346 | <td class="paramname"><em>output_step_x</em>, </td> |
| 347 | </tr> |
| 348 | <tr> |
| 349 | <td class="paramkey"></td> |
| 350 | <td></td> |
| 351 | <td class="paramtype">uint </td> |
| 352 | <td class="paramname"><em>output_stride_y</em>, </td> |
| 353 | </tr> |
| 354 | <tr> |
| 355 | <td class="paramkey"></td> |
| 356 | <td></td> |
| 357 | <td class="paramtype">uint </td> |
| 358 | <td class="paramname"><em>output_step_y</em>, </td> |
| 359 | </tr> |
| 360 | <tr> |
| 361 | <td class="paramkey"></td> |
| 362 | <td></td> |
| 363 | <td class="paramtype">uint </td> |
| 364 | <td class="paramname"><em>output_stride_z</em>, </td> |
| 365 | </tr> |
| 366 | <tr> |
| 367 | <td class="paramkey"></td> |
| 368 | <td></td> |
| 369 | <td class="paramtype">uint </td> |
| 370 | <td class="paramname"><em>output_step_z</em>, </td> |
| 371 | </tr> |
| 372 | <tr> |
| 373 | <td class="paramkey"></td> |
| 374 | <td></td> |
| 375 | <td class="paramtype">uint </td> |
| 376 | <td class="paramname"><em>output_offset_first_element_in_bytes</em>, </td> |
| 377 | </tr> |
| 378 | <tr> |
| 379 | <td class="paramkey"></td> |
| 380 | <td></td> |
| 381 | <td class="paramtype">__global uchar * </td> |
| 382 | <td class="paramname"><em>mean_ptr</em>, </td> |
| 383 | </tr> |
| 384 | <tr> |
| 385 | <td class="paramkey"></td> |
| 386 | <td></td> |
| 387 | <td class="paramtype">uint </td> |
| 388 | <td class="paramname"><em>mean_stride_x</em>, </td> |
| 389 | </tr> |
| 390 | <tr> |
| 391 | <td class="paramkey"></td> |
| 392 | <td></td> |
| 393 | <td class="paramtype">uint </td> |
| 394 | <td class="paramname"><em>mean_step_x</em>, </td> |
| 395 | </tr> |
| 396 | <tr> |
| 397 | <td class="paramkey"></td> |
| 398 | <td></td> |
| 399 | <td class="paramtype">uint </td> |
| 400 | <td class="paramname"><em>mean_offset_first_element_in_bytes</em>, </td> |
| 401 | </tr> |
| 402 | <tr> |
| 403 | <td class="paramkey"></td> |
| 404 | <td></td> |
| 405 | <td class="paramtype">__global uchar * </td> |
| 406 | <td class="paramname"><em>var_ptr</em>, </td> |
| 407 | </tr> |
| 408 | <tr> |
| 409 | <td class="paramkey"></td> |
| 410 | <td></td> |
| 411 | <td class="paramtype">uint </td> |
| 412 | <td class="paramname"><em>var_stride_x</em>, </td> |
| 413 | </tr> |
| 414 | <tr> |
| 415 | <td class="paramkey"></td> |
| 416 | <td></td> |
| 417 | <td class="paramtype">uint </td> |
| 418 | <td class="paramname"><em>var_step_x</em>, </td> |
| 419 | </tr> |
| 420 | <tr> |
| 421 | <td class="paramkey"></td> |
| 422 | <td></td> |
| 423 | <td class="paramtype">uint </td> |
| 424 | <td class="paramname"><em>var_offset_first_element_in_bytes</em>, </td> |
| 425 | </tr> |
| 426 | <tr> |
| 427 | <td class="paramkey"></td> |
| 428 | <td></td> |
| 429 | <td class="paramtype">__global uchar * </td> |
| 430 | <td class="paramname"><em>beta_ptr</em>, </td> |
| 431 | </tr> |
| 432 | <tr> |
| 433 | <td class="paramkey"></td> |
| 434 | <td></td> |
| 435 | <td class="paramtype">uint </td> |
| 436 | <td class="paramname"><em>beta_stride_x</em>, </td> |
| 437 | </tr> |
| 438 | <tr> |
| 439 | <td class="paramkey"></td> |
| 440 | <td></td> |
| 441 | <td class="paramtype">uint </td> |
| 442 | <td class="paramname"><em>beta_step_x</em>, </td> |
| 443 | </tr> |
| 444 | <tr> |
| 445 | <td class="paramkey"></td> |
| 446 | <td></td> |
| 447 | <td class="paramtype">uint </td> |
| 448 | <td class="paramname"><em>beta_offset_first_element_in_bytes</em>, </td> |
| 449 | </tr> |
| 450 | <tr> |
| 451 | <td class="paramkey"></td> |
| 452 | <td></td> |
| 453 | <td class="paramtype">__global uchar * </td> |
| 454 | <td class="paramname"><em>gamma_ptr</em>, </td> |
| 455 | </tr> |
| 456 | <tr> |
| 457 | <td class="paramkey"></td> |
| 458 | <td></td> |
| 459 | <td class="paramtype">uint </td> |
| 460 | <td class="paramname"><em>gamma_stride_x</em>, </td> |
| 461 | </tr> |
| 462 | <tr> |
| 463 | <td class="paramkey"></td> |
| 464 | <td></td> |
| 465 | <td class="paramtype">uint </td> |
| 466 | <td class="paramname"><em>gamma_step_x</em>, </td> |
| 467 | </tr> |
| 468 | <tr> |
| 469 | <td class="paramkey"></td> |
| 470 | <td></td> |
| 471 | <td class="paramtype">uint </td> |
| 472 | <td class="paramname"><em>gamma_offset_first_element_in_bytes</em>, </td> |
| 473 | </tr> |
| 474 | <tr> |
| 475 | <td class="paramkey"></td> |
| 476 | <td></td> |
| 477 | <td class="paramtype">float </td> |
| 478 | <td class="paramname"><em>epsilon</em> </td> |
| 479 | </tr> |
| 480 | <tr> |
| 481 | <td></td> |
| 482 | <td>)</td> |
| 483 | <td></td><td></td> |
| 484 | </tr> |
| 485 | </table> |
| 486 | </div><div class="memdoc"> |
| 487 | |
| 488 | <p>Apply batch normalization. </p> |
| 489 | <dl class="params"><dt>Parameters</dt><dd> |
| 490 | <table class="params"> |
Kaizen | bf8b01d | 2017-10-12 14:26:51 +0100 | [diff] [blame] | 491 | <tr><td class="paramdir">[in]</td><td class="paramname">input_ptr</td><td>Pointer to the first source tensor. Supported data types: QS8/QS16/F16/F32 </td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 492 | <tr><td class="paramdir">[in]</td><td class="paramname">input_stride_x</td><td>Stride of the first source tensor in X dimension (in bytes) </td></tr> |
| 493 | <tr><td class="paramdir">[in]</td><td class="paramname">input_step_x</td><td>input_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 494 | <tr><td class="paramdir">[in]</td><td class="paramname">input_stride_y</td><td>Stride of the first source tensor in Y dimension (in bytes) </td></tr> |
| 495 | <tr><td class="paramdir">[in]</td><td class="paramname">input_step_y</td><td>input_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 496 | <tr><td class="paramdir">[in]</td><td class="paramname">input_stride_z</td><td>Stride of the first source tensor in Z dimension (in bytes) </td></tr> |
| 497 | <tr><td class="paramdir">[in]</td><td class="paramname">input_step_z</td><td>input_stride_z * number of elements along Z processed per workitem(in bytes) </td></tr> |
| 498 | <tr><td class="paramdir">[in]</td><td class="paramname">input_offset_first_element_in_bytes</td><td>The offset of the first element in the first source tensor </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 499 | <tr><td class="paramdir">[out]</td><td class="paramname">output_ptr</td><td>Pointer to the destination tensor. Supported data types: same as <code>input_ptr</code> </td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 500 | <tr><td class="paramdir">[in]</td><td class="paramname">output_stride_x</td><td>Stride of the destination tensor in X dimension (in bytes) </td></tr> |
| 501 | <tr><td class="paramdir">[in]</td><td class="paramname">output_step_x</td><td>output_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 502 | <tr><td class="paramdir">[in]</td><td class="paramname">output_stride_y</td><td>Stride of the destination tensor in Y dimension (in bytes) </td></tr> |
| 503 | <tr><td class="paramdir">[in]</td><td class="paramname">output_step_y</td><td>output_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 504 | <tr><td class="paramdir">[in]</td><td class="paramname">output_stride_z</td><td>Stride of the destination tensor in Z dimension (in bytes) </td></tr> |
| 505 | <tr><td class="paramdir">[in]</td><td class="paramname">output_step_z</td><td>output_stride_z * number of elements along Z processed per workitem(in bytes) </td></tr> |
| 506 | <tr><td class="paramdir">[in]</td><td class="paramname">output_offset_first_element_in_bytes</td><td>The offset of the first element in the destination tensor </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 507 | <tr><td class="paramdir">[in]</td><td class="paramname">mean_ptr</td><td>Pointer to the mean source tensor. Supported data types: same as <code>input_ptr</code> </td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 508 | <tr><td class="paramdir">[in]</td><td class="paramname">mean_stride_x</td><td>Stride of the mean source tensor in X dimension (in bytes) </td></tr> |
| 509 | <tr><td class="paramdir">[in]</td><td class="paramname">mean_step_x</td><td>mean_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 510 | <tr><td class="paramdir">[in]</td><td class="paramname">mean_offset_first_element_in_bytes</td><td>The offset of the first element in the mean source tensor </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 511 | <tr><td class="paramdir">[in]</td><td class="paramname">var_ptr</td><td>Pointer to the var tensor. Supported data types: same as <code>input_ptr</code> </td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 512 | <tr><td class="paramdir">[in]</td><td class="paramname">var_stride_x</td><td>Stride of the var tensor in X dimension (in bytes) </td></tr> |
| 513 | <tr><td class="paramdir">[in]</td><td class="paramname">var_step_x</td><td>var_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 514 | <tr><td class="paramdir">[in]</td><td class="paramname">var_offset_first_element_in_bytes</td><td>The offset of the first element in the var source tensor </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 515 | <tr><td class="paramdir">[in]</td><td class="paramname">beta_ptr</td><td>Pointer to the beta source tensor. Supported data types: same as <code>input_ptr</code> </td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 516 | <tr><td class="paramdir">[in]</td><td class="paramname">beta_stride_x</td><td>Stride of the beta source tensor in X dimension (in bytes) </td></tr> |
| 517 | <tr><td class="paramdir">[in]</td><td class="paramname">beta_step_x</td><td>beta_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 518 | <tr><td class="paramdir">[in]</td><td class="paramname">beta_offset_first_element_in_bytes</td><td>The offset of the first element in the beta source tensor </td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 519 | <tr><td class="paramdir">[in]</td><td class="paramname">gamma_ptr</td><td>Pointer to the gamma source tensor. Supported data types: same as <code>input_ptr</code> </td></tr> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 520 | <tr><td class="paramdir">[in]</td><td class="paramname">gamma_stride_x</td><td>Stride of the gamma source tensor in X dimension (in bytes) </td></tr> |
| 521 | <tr><td class="paramdir">[in]</td><td class="paramname">gamma_step_x</td><td>gamma_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 522 | <tr><td class="paramdir">[in]</td><td class="paramname">gamma_offset_first_element_in_bytes</td><td>The offset of the first element in the gamma source tensor </td></tr> |
| 523 | <tr><td class="paramdir">[in]</td><td class="paramname">epsilon</td><td>Epsilon parameter in the batch normalization equation </td></tr> |
| 524 | </table> |
| 525 | </dd> |
| 526 | </dl> |
| 527 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 528 | <p>Definition at line <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00081">81</a> of file <a class="el" href="batchnormalization__layer_8cl_source.xhtml">batchnormalization_layer.cl</a>.</p> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 529 | |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 530 | <p>References <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00037">ADD_OP</a>, <a class="el" href="validation_2_n_e_o_n_2_g_e_m_m_8cpp_source.xhtml#l00109">arm_compute::test::validation::beta</a>, <a class="el" href="helpers_8h_source.xhtml#l00117">CONVERT_TO_TENSOR3D_STRUCT</a>, <a class="el" href="helpers_8h_source.xhtml#l00096">CONVERT_TO_VECTOR_STRUCT</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00040">INVSQRT_OP</a>, <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00039">MUL_OP</a>, <a class="el" href="helpers_8h_source.xhtml#l00134">Vector::ptr</a>, <a class="el" href="helpers_8h_source.xhtml#l00151">Tensor3D::ptr</a>, <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00041">SQCVT_SAT</a>, <a class="el" href="helpers_8h_source.xhtml#l00136">Vector::stride_x</a>, <a class="el" href="batchnormalization__layer_8cl_source.xhtml#l00038">SUB_OP</a>, <a class="el" href="fixed__point_8h_source.xhtml#l00093">VEC_DATA_TYPE</a>, <a class="el" href="helpers_8h_source.xhtml#l00040">VLOAD</a>, and <a class="el" href="helpers_8h_source.xhtml#l00043">VSTORE</a>.</p> |
| 531 | <div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="struct_tensor3_d.xhtml">Tensor3D</a> in = <a class="code" href="helpers_8h.xhtml#a31c8c760f08fb1a331b16b7c204321dc">CONVERT_TO_TENSOR3D_STRUCT</a>(input);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor">#ifdef IN_PLACE</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="struct_tensor3_d.xhtml">Tensor3D</a> out = in;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">#else </span><span class="comment">/* IN_PLACE */</span><span class="preprocessor"></span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="struct_tensor3_d.xhtml">Tensor3D</a> out = <a class="code" href="helpers_8h.xhtml#a31c8c760f08fb1a331b16b7c204321dc">CONVERT_TO_TENSOR3D_STRUCT</a>(output);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="preprocessor">#endif </span><span class="comment">/* IN_PLACE */</span><span class="preprocessor"></span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="struct_vector.xhtml">Vector</a> mean = <a class="code" href="helpers_8h.xhtml#a527bfdf5eeb306f1cf01c4a8e29f38e0">CONVERT_TO_VECTOR_STRUCT</a>(mean);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="struct_vector.xhtml">Vector</a> var = <a class="code" href="helpers_8h.xhtml#a527bfdf5eeb306f1cf01c4a8e29f38e0">CONVERT_TO_VECTOR_STRUCT</a>(var);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="struct_vector.xhtml">Vector</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ab146b9cbab6e73e7588b240dc709fe01">beta</a> = <a class="code" href="helpers_8h.xhtml#a527bfdf5eeb306f1cf01c4a8e29f38e0">CONVERT_TO_VECTOR_STRUCT</a>(beta);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="struct_vector.xhtml">Vector</a> gamma = <a class="code" href="helpers_8h.xhtml#a527bfdf5eeb306f1cf01c4a8e29f38e0">CONVERT_TO_VECTOR_STRUCT</a>(gamma);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, VEC_SIZE)</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  data = 0;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, VEC_SIZE)</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  denominator = 0;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE, VEC_SIZE)</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  numerator = 0;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE, VEC_SIZE)</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  x_bar = 0;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE, VEC_SIZE)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  gamma_vec = 0;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE, VEC_SIZE)</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  beta_vec = 0;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  const <span class="keywordtype">int</span> current_slice = get_global_id(2);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  data = <a class="code" href="helpers_8h.xhtml#a287e2fc366c312b468382c95bb90f91f">VLOAD</a>(VEC_SIZE)(0, (__global DATA_TYPE *)in.ptr);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  denominator = *((__global DATA_TYPE *)(var.ptr + current_slice * var.stride_x));</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  denominator = <a class="code" href="batchnormalization__layer_8cl.xhtml#acbe0869c7899bc8d9f0e91a6249fa970">INVSQRT_OP</a>(<a class="code" href="batchnormalization__layer_8cl.xhtml#aebbeb1f22eca3a3f4c3e019e8f419f39">ADD_OP</a>(denominator, ((<a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(DATA_TYPE, VEC_SIZE))<a class="code" href="batchnormalization__layer_8cl.xhtml#a107d847044e677b01e9bd3d5251b39d9">SQCVT_SAT</a>(epsilon))));</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>  <span class="comment">// Calculate x bar and store results</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  numerator = *((__global DATA_TYPE *)(mean.ptr + current_slice * mean.stride_x));</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  numerator = <a class="code" href="batchnormalization__layer_8cl.xhtml#ad778425e4131c4731f17d7e6e3499a07">SUB_OP</a>(data, numerator);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  x_bar = <a class="code" href="batchnormalization__layer_8cl.xhtml#ad3cc858846806e6b1d3694b9d0a2e6da">MUL_OP</a>(numerator, denominator);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  gamma_vec = *((__global DATA_TYPE *)(gamma.ptr + current_slice * beta.stride_x));</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  beta_vec = *((__global DATA_TYPE *)(beta.ptr + current_slice * beta.stride_x));</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="helpers_8h.xhtml#acb282042d1edeeaa3cc979a206f78b54">VSTORE</a>(VEC_SIZE)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  (<a class="code" href="batchnormalization__layer_8cl.xhtml#aebbeb1f22eca3a3f4c3e019e8f419f39">ADD_OP</a>(<a class="code" href="batchnormalization__layer_8cl.xhtml#ad3cc858846806e6b1d3694b9d0a2e6da">MUL_OP</a>(gamma_vec, x_bar), beta_vec), 0, (__global DATA_TYPE *)out.ptr);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> }</div><div class="ttc" id="struct_vector_xhtml"><div class="ttname"><a href="struct_vector.xhtml">Vector</a></div><div class="ttdoc">Structure to hold Vector information. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00132">helpers.h:132</a></div></div> |
| 532 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_ab146b9cbab6e73e7588b240dc709fe01"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#ab146b9cbab6e73e7588b240dc709fe01">arm_compute::test::validation::beta</a></div><div class="ttdeci">beta</div><div class="ttdef"><b>Definition:</b> <a href="validation_2_n_e_o_n_2_g_e_m_m_8cpp_source.xhtml#l00109">GEMM.cpp:109</a></div></div> |
| 533 | <div class="ttc" id="helpers_8h_xhtml_a287e2fc366c312b468382c95bb90f91f"><div class="ttname"><a href="helpers_8h.xhtml#a287e2fc366c312b468382c95bb90f91f">VLOAD</a></div><div class="ttdeci">#define VLOAD(size)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00040">helpers.h:40</a></div></div> |
| 534 | <div class="ttc" id="helpers_8h_xhtml_a31c8c760f08fb1a331b16b7c204321dc"><div class="ttname"><a href="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="helpers_8h_source.xhtml#l00117">helpers.h:117</a></div></div> |
| 535 | <div class="ttc" id="helpers_8h_xhtml_a527bfdf5eeb306f1cf01c4a8e29f38e0"><div class="ttname"><a href="helpers_8h.xhtml#a527bfdf5eeb306f1cf01c4a8e29f38e0">CONVERT_TO_VECTOR_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_VECTOR_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00096">helpers.h:96</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 536 | <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> |
| 537 | <div class="ttc" id="batchnormalization__layer_8cl_xhtml_ad778425e4131c4731f17d7e6e3499a07"><div class="ttname"><a href="batchnormalization__layer_8cl.xhtml#ad778425e4131c4731f17d7e6e3499a07">SUB_OP</a></div><div class="ttdeci">#define SUB_OP(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="batchnormalization__layer_8cl_source.xhtml#l00038">batchnormalization_layer.cl:38</a></div></div> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 538 | <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="helpers_8h_source.xhtml#l00149">helpers.h:149</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 539 | <div class="ttc" id="batchnormalization__layer_8cl_xhtml_acbe0869c7899bc8d9f0e91a6249fa970"><div class="ttname"><a href="batchnormalization__layer_8cl.xhtml#acbe0869c7899bc8d9f0e91a6249fa970">INVSQRT_OP</a></div><div class="ttdeci">#define INVSQRT_OP(a)</div><div class="ttdef"><b>Definition:</b> <a href="batchnormalization__layer_8cl_source.xhtml#l00040">batchnormalization_layer.cl:40</a></div></div> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 540 | <div class="ttc" id="helpers_8h_xhtml_acb282042d1edeeaa3cc979a206f78b54"><div class="ttname"><a href="helpers_8h.xhtml#acb282042d1edeeaa3cc979a206f78b54">VSTORE</a></div><div class="ttdeci">#define VSTORE(size)</div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00043">helpers.h:43</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 541 | <div class="ttc" id="batchnormalization__layer_8cl_xhtml_ad3cc858846806e6b1d3694b9d0a2e6da"><div class="ttname"><a href="batchnormalization__layer_8cl.xhtml#ad3cc858846806e6b1d3694b9d0a2e6da">MUL_OP</a></div><div class="ttdeci">#define MUL_OP(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="batchnormalization__layer_8cl_source.xhtml#l00039">batchnormalization_layer.cl:39</a></div></div> |
| 542 | <div class="ttc" id="batchnormalization__layer_8cl_xhtml_aebbeb1f22eca3a3f4c3e019e8f419f39"><div class="ttname"><a href="batchnormalization__layer_8cl.xhtml#aebbeb1f22eca3a3f4c3e019e8f419f39">ADD_OP</a></div><div class="ttdeci">#define ADD_OP(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="batchnormalization__layer_8cl_source.xhtml#l00037">batchnormalization_layer.cl:37</a></div></div> |
| 543 | <div class="ttc" id="fixed__point_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="fixed__point_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="fixed__point_8h_source.xhtml#l00093">fixed_point.h:93</a></div></div> |
| 544 | <div class="ttc" id="batchnormalization__layer_8cl_xhtml_a107d847044e677b01e9bd3d5251b39d9"><div class="ttname"><a href="batchnormalization__layer_8cl.xhtml#a107d847044e677b01e9bd3d5251b39d9">SQCVT_SAT</a></div><div class="ttdeci">#define SQCVT_SAT(a)</div><div class="ttdef"><b>Definition:</b> <a href="batchnormalization__layer_8cl_source.xhtml#l00041">batchnormalization_layer.cl:41</a></div></div> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 545 | </div><!-- fragment --> |
| 546 | </div> |
| 547 | </div> |
| 548 | </div><!-- contents --> |
| 549 | </div><!-- doc-content --> |
| 550 | <!-- start footer part --> |
| 551 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 552 | <ul> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 553 | <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="batchnormalization__layer_8cl.xhtml">batchnormalization_layer.cl</a></li> |
| 554 | <li class="footer">Generated on Thu Dec 14 2017 23:48:33 for Compute Library by |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 555 | <a href="http://www.doxygen.org/index.html"> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame^] | 556 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 557 | </ul> |
| 558 | </div> |
| 559 | </body> |
| 560 | </html> |