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">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>Compute Library: BatchNormalizationLayerFixture< TensorType, Function, Accessor > Class Template 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>
15 <script type="text/javascript" src="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18 $(document).ready(initResizable);
19 $(window).load(resizeHeight);
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25 $(document).ready(function() { init_search(); });
27 <script type="text/x-mathjax-config">
29 extensions: ["tex2jax.js"],
30 jax: ["input/TeX","output/HTML-CSS"],
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
38 <table cellspacing="0" cellpadding="0">
40 <tr style="height: 56px;">
41 <td style="padding-left: 0.5em;">
42 <div id="projectname">Compute Library
43  <span id="projectnumber">17.12</span>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
55 <div id="navrow1" class="tabs">
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 class="current"><a href="annotated.xhtml"><span>Data Structures</span></a></li>
61 <li><a href="files.xhtml"><span>Files</span></a></li>
63 <div id="MSearchBox" class="MSearchBoxInactive">
65 <img id="MSearchSelect" src="search/mag_sel.png"
66 onmouseover="return searchBox.OnSearchSelectShow()"
67 onmouseout="return searchBox.OnSearchSelectHide()"
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>
80 <div id="navrow2" class="tabs2">
82 <li><a href="annotated.xhtml"><span>Data Structures</span></a></li>
83 <li><a href="classes.xhtml"><span>Data Structure Index</span></a></li>
84 <li><a href="inherits.xhtml"><span>Class Hierarchy</span></a></li>
85 <li><a href="functions.xhtml"><span>Data Fields</span></a></li>
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
91 <div id="nav-tree-contents">
92 <div id="nav-sync" class="sync"></div>
95 <div id="splitbar" style="-moz-user-select:none;"
96 class="ui-resizable-handle">
99 <script type="text/javascript">
100 $(document).ready(function(){initNavTree('classarm__compute_1_1test_1_1_batch_normalization_layer_fixture.xhtml','');});
102 <div id="doc-content">
103 <!-- window showing the filter options -->
104 <div id="MSearchSelectWindow"
105 onmouseover="return searchBox.OnSearchSelectShow()"
106 onmouseout="return searchBox.OnSearchSelectHide()"
107 onkeydown="return searchBox.OnSearchSelectKey(event)">
110 <!-- iframe showing the search results (closed by default) -->
111 <div id="MSearchResultsWindow">
112 <iframe src="javascript:void(0)" frameborder="0"
113 name="MSearchResults" id="MSearchResults">
118 <div class="summary">
119 <a href="#pub-methods">Public Member Functions</a> </div>
120 <div class="headertitle">
121 <div class="title">BatchNormalizationLayerFixture< TensorType, Function, Accessor > Class Template Reference</div> </div>
123 <div class="contents">
125 <p>Fixture that can be used for NEON and CL.
126 <a href="classarm__compute_1_1test_1_1_batch_normalization_layer_fixture.xhtml#details">More...</a></p>
128 <p><code>#include <<a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml">BatchNormalizationLayerFixture.h</a>></code></p>
129 <div class="dynheader">
130 Collaboration diagram for BatchNormalizationLayerFixture< TensorType, Function, Accessor >:</div>
131 <div class="dyncontent">
132 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1test_1_1_batch_normalization_layer_fixture__coll__graph.svg" width="259" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
134 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
135 <table class="memberdecls">
136 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
137 Public Member Functions</h2></td></tr>
138 <tr class="memitem:acab980ecd77cd2a0fee5c0a8ce0455f1"><td class="memTemplParams" colspan="2">template<typename... > </td></tr>
139 <tr class="memitem:acab980ecd77cd2a0fee5c0a8ce0455f1"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_batch_normalization_layer_fixture.xhtml#acab980ecd77cd2a0fee5c0a8ce0455f1">setup</a> (<a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> tensor_shape, <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> param_shape, float epsilon, <a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> data_type, int batches)</td></tr>
140 <tr class="separator:acab980ecd77cd2a0fee5c0a8ce0455f1"><td class="memSeparator" colspan="2"> </td></tr>
141 <tr class="memitem:a13a43e6d814de94978c515cb084873b1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_batch_normalization_layer_fixture.xhtml#a13a43e6d814de94978c515cb084873b1">run</a> ()</td></tr>
142 <tr class="separator:a13a43e6d814de94978c515cb084873b1"><td class="memSeparator" colspan="2"> </td></tr>
143 <tr class="memitem:a4adab6322a0276f34a7d656d49fc865c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_batch_normalization_layer_fixture.xhtml#a4adab6322a0276f34a7d656d49fc865c">teardown</a> ()</td></tr>
144 <tr class="separator:a4adab6322a0276f34a7d656d49fc865c"><td class="memSeparator" colspan="2"> </td></tr>
145 <tr class="inherit_header pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_fixture.xhtml">Fixture</a></td></tr>
146 <tr class="memitem:a4fc01d736fe50cf5b977f755b675f11d inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_fixture.xhtml#a4fc01d736fe50cf5b977f755b675f11d">setup</a> ()</td></tr>
147 <tr class="memdesc:a4fc01d736fe50cf5b977f755b675f11d inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="mdescLeft"> </td><td class="mdescRight">Setup function. <a href="#a4fc01d736fe50cf5b977f755b675f11d">More...</a><br /></td></tr>
148 <tr class="separator:a4fc01d736fe50cf5b977f755b675f11d inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memSeparator" colspan="2"> </td></tr>
149 <tr class="memitem:a4adab6322a0276f34a7d656d49fc865c inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_fixture.xhtml#a4adab6322a0276f34a7d656d49fc865c">teardown</a> ()</td></tr>
150 <tr class="memdesc:a4adab6322a0276f34a7d656d49fc865c inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="mdescLeft"> </td><td class="mdescRight">Teardown function. <a href="#a4adab6322a0276f34a7d656d49fc865c">More...</a><br /></td></tr>
151 <tr class="separator:a4adab6322a0276f34a7d656d49fc865c inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memSeparator" colspan="2"> </td></tr>
153 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
154 <div class="textblock"><h3>template<typename TensorType, typename Function, typename Accessor><br />
155 class arm_compute::test::BatchNormalizationLayerFixture< TensorType, Function, Accessor ></h3>
157 <p>Fixture that can be used for NEON and CL. </p>
159 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml#l00045">45</a> of file <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml">BatchNormalizationLayerFixture.h</a>.</p>
160 </div><h2 class="groupheader">Member Function Documentation</h2>
161 <a class="anchor" id="a13a43e6d814de94978c515cb084873b1"></a>
162 <div class="memitem">
163 <div class="memproto">
164 <table class="mlabels">
166 <td class="mlabels-left">
167 <table class="memname">
169 <td class="memname">void run </td>
171 <td class="paramname"></td><td>)</td>
176 <td class="mlabels-right">
177 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
180 </div><div class="memdoc">
182 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml#l00082">82</a> of file <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml">BatchNormalizationLayerFixture.h</a>.</p>
184 <p>References <a class="el" href="validation_2_n_e_o_n_2_g_e_m_m_8cpp_source.xhtml#l00118">arm_compute::test::validation::dst</a>, <a class="el" href="_g_l_e_s___c_o_m_p_u_t_e_2_helper_8h_source.xhtml#l00104">arm_compute::test::gles_compute::force_sync_tensor()</a>, <a class="el" href="namespacearm__compute.xhtml#a19c7b9bc5f36935ba40314907ffe54ce">arm_compute::opengles31_is_available()</a>, <a class="el" href="caffe__data__extractor_8py_source.xhtml#l00019">caffe_data_extractor::type</a>, and <a class="el" href="hwc_8hpp_source.xhtml#l00269">value</a>.</p>
185 <div class="fragment"><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  batch_norm_layer.run();</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#ifdef ARM_COMPUTE_GC</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span>(<a class="code" href="namespacearm__compute.xhtml#a19c7b9bc5f36935ba40314907ffe54ce">opengles31_is_available</a>() && std::is_same<<span class="keyword">typename</span> <a class="code" href="namespacecaffe__data__extractor.xhtml#a7aead736a07eaf25623ad7bfa1f0ee2d">std::decay<TensorType>::type</a>, <a class="code" href="classarm__compute_1_1_g_c_tensor.xhtml">arm_compute::GCTensor</a>>::<a class="code" href="hwc_8hpp.xhtml#a0f61d63b009d0880a89c843bd50d8d76">value</a>)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="namespacearm__compute_1_1test_1_1gles__compute.xhtml#a93e2ed430a80df2cf6cbc4a3b03f392b">force_sync_tensor</a>(dst);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_GC */</span><span class="preprocessor"></span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="ttc" id="classarm__compute_1_1_g_c_tensor_xhtml"><div class="ttname"><a href="classarm__compute_1_1_g_c_tensor.xhtml">arm_compute::GCTensor</a></div><div class="ttdoc">Interface for OpenGL ES tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_g_c_tensor_8h_source.xhtml#l00037">GCTensor.h:37</a></div></div>
186 <div class="ttc" id="hwc_8hpp_xhtml_a0f61d63b009d0880a89c843bd50d8d76"><div class="ttname"><a href="hwc_8hpp.xhtml#a0f61d63b009d0880a89c843bd50d8d76">value</a></div><div class="ttdeci">void * value</div><div class="ttdef"><b>Definition:</b> <a href="hwc_8hpp_source.xhtml#l00269">hwc.hpp:269</a></div></div>
187 <div class="ttc" id="namespacecaffe__data__extractor_xhtml_a7aead736a07eaf25623ad7bfa1f0ee2d"><div class="ttname"><a href="namespacecaffe__data__extractor.xhtml#a7aead736a07eaf25623ad7bfa1f0ee2d">caffe_data_extractor.type</a></div><div class="ttdeci">type</div><div class="ttdef"><b>Definition:</b> <a href="caffe__data__extractor_8py_source.xhtml#l00019">caffe_data_extractor.py:19</a></div></div>
188 <div class="ttc" id="namespacearm__compute_1_1test_1_1gles__compute_xhtml_a93e2ed430a80df2cf6cbc4a3b03f392b"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1gles__compute.xhtml#a93e2ed430a80df2cf6cbc4a3b03f392b">arm_compute::test::gles_compute::force_sync_tensor</a></div><div class="ttdeci">void force_sync_tensor(ITensor &tensor)</div><div class="ttdoc">Helper to sync tensor, if tensor is not used, GPU have optimized the operation. </div><div class="ttdef"><b>Definition:</b> <a href="_g_l_e_s___c_o_m_p_u_t_e_2_helper_8h_source.xhtml#l00104">Helper.h:104</a></div></div>
189 <div class="ttc" id="namespacearm__compute_xhtml_a19c7b9bc5f36935ba40314907ffe54ce"><div class="ttname"><a href="namespacearm__compute.xhtml#a19c7b9bc5f36935ba40314907ffe54ce">arm_compute::opengles31_is_available</a></div><div class="ttdeci">bool opengles31_is_available()</div><div class="ttdoc">Check if the OpenGL ES 3.1 API is available at runtime. </div></div>
190 </div><!-- fragment -->
193 <a class="anchor" id="acab980ecd77cd2a0fee5c0a8ce0455f1"></a>
194 <div class="memitem">
195 <div class="memproto">
196 <table class="mlabels">
198 <td class="mlabels-left">
199 <table class="memname">
201 <td class="memname">void setup </td>
203 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
204 <td class="paramname"><em>tensor_shape</em>, </td>
207 <td class="paramkey"></td>
209 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
210 <td class="paramname"><em>param_shape</em>, </td>
213 <td class="paramkey"></td>
215 <td class="paramtype">float </td>
216 <td class="paramname"><em>epsilon</em>, </td>
219 <td class="paramkey"></td>
221 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> </td>
222 <td class="paramname"><em>data_type</em>, </td>
225 <td class="paramkey"></td>
227 <td class="paramtype">int </td>
228 <td class="paramname"><em>batches</em> </td>
237 <td class="mlabels-right">
238 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
241 </div><div class="memdoc">
243 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml#l00049">49</a> of file <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml">BatchNormalizationLayerFixture.h</a>.</p>
245 <p>References <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="_c_l_2_min_max_location_8cpp_source.xhtml#l00090">arm_compute::test::validation::data_type</a>, <a class="el" href="validation_2_n_e_o_n_2_g_e_m_m_8cpp_source.xhtml#l00118">arm_compute::test::validation::dst</a>, <a class="el" href="main_8cpp_source.xhtml#l00058">arm_compute::test::library</a>, <a class="el" href="_dimensions_8h_source.xhtml#l00122">Dimensions< T >::num_dimensions()</a>, and <a class="el" href="_tensor_shape_8h_source.xhtml#l00074">TensorShape::set()</a>.</p>
246 <div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// Set batched in source and destination shapes</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fixed_point_position = 4;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  tensor_shape.set(tensor_shape.num_dimensions(), batches);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// Create tensors</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  src = create_tensor<TensorType>(tensor_shape, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>, 1, fixed_point_position);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  dst = create_tensor<TensorType>(tensor_shape, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>, 1, fixed_point_position);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  mean = create_tensor<TensorType>(param_shape, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>, 1, fixed_point_position);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  variance = create_tensor<TensorType>(param_shape, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>, 1, fixed_point_position);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  beta = create_tensor<TensorType>(param_shape, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>, 1, fixed_point_position);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  gamma = create_tensor<TensorType>(param_shape, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>, 1, fixed_point_position);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="comment">// Create and configure function</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  batch_norm_layer.configure(&src, &dst, &mean, &variance, &beta, &gamma, epsilon);</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>  <span class="comment">// Allocate tensors</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  src.allocator()->allocate();</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  dst.allocator()->allocate();</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  mean.allocator()->allocate();</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  variance.allocator()->allocate();</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  beta.allocator()->allocate();</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  gamma.allocator()->allocate();</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// Fill tensors</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a>->fill_tensor_uniform(Accessor(src), 0);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a>->fill_tensor_uniform(Accessor(mean), 1);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a>->fill_tensor_uniform(Accessor(variance), 2);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a>->fill_tensor_uniform(Accessor(beta), 3);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a>->fill_tensor_uniform(Accessor(gamma), 4);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_ac2ad7f431e3446fddcd9b6b9f93c4c14"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">arm_compute::test::validation::data_type</a></div><div class="ttdeci">data_type</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_min_max_location_8cpp_source.xhtml#l00090">MinMaxLocation.cpp:90</a></div></div>
247 <div class="ttc" id="namespacearm__compute_1_1test_xhtml_a71326f0909d77386e29b511e1990a11f"><div class="ttname"><a href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">arm_compute::test::library</a></div><div class="ttdeci">std::unique_ptr< AssetsLibrary > library</div><div class="ttdef"><b>Definition:</b> <a href="main_8cpp_source.xhtml#l00058">main.cpp:58</a></div></div>
248 </div><!-- fragment -->
251 <a class="anchor" id="a4adab6322a0276f34a7d656d49fc865c"></a>
252 <div class="memitem">
253 <div class="memproto">
254 <table class="mlabels">
256 <td class="mlabels-left">
257 <table class="memname">
259 <td class="memname">void teardown </td>
261 <td class="paramname"></td><td>)</td>
266 <td class="mlabels-right">
267 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
270 </div><div class="memdoc">
272 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml#l00093">93</a> of file <a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml">BatchNormalizationLayerFixture.h</a>.</p>
274 <p>References <a class="el" href="classarm__compute_1_1_tensor.xhtml#a531ec877bfc923dea3ab6f1be5e6e1ac">Tensor::allocator()</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="validation_2_n_e_o_n_2_g_e_m_m_8cpp_source.xhtml#l00118">arm_compute::test::validation::dst</a>, and <a class="el" href="classarm__compute_1_1_tensor_allocator.xhtml#a1468b0adb6ec3f9d38aa7d60b8a91974">TensorAllocator::free()</a>.</p>
275 <div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  src.allocator()->free();</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  dst.allocator()->free();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  mean.allocator()->free();</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  variance.allocator()->free();</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  beta.allocator()->free();</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  gamma.allocator()->free();</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div></div><!-- fragment -->
278 <hr/>The documentation for this class was generated from the following file:<ul>
279 <li>tests/benchmark/fixtures/<a class="el" href="benchmark_2fixtures_2_batch_normalization_layer_fixture_8h_source.xhtml">BatchNormalizationLayerFixture.h</a></li>
281 </div><!-- contents -->
282 </div><!-- doc-content -->
283 <!-- start footer part -->
284 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
286 <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test.xhtml">test</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1test_1_1_batch_normalization_layer_fixture.xhtml">BatchNormalizationLayerFixture</a></li>
287 <li class="footer">Generated on Thu Dec 14 2017 23:48:37 for Compute Library by
288 <a href="http://www.doxygen.org/index.html">
289 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>