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: FullyConnectedLayerFixture< 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">18.01</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_fully_connected_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">FullyConnectedLayerFixture< 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_fully_connected_layer_fixture.xhtml#details">More...</a></p>
128 <p><code>#include <<a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a>></code></p>
129 <div class="dynheader">
130 Collaboration diagram for FullyConnectedLayerFixture< TensorType, Function, Accessor >:</div>
131 <div class="dyncontent">
132 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1test_1_1_fully_connected_layer_fixture__coll__graph.svg" width="206" height="142"><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:aa2d1f9c5f65c10bd64d74eac9051f29f"><td class="memTemplParams" colspan="2">template<typename... > </td></tr>
139 <tr class="memitem:aa2d1f9c5f65c10bd64d74eac9051f29f"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_fully_connected_layer_fixture.xhtml#aa2d1f9c5f65c10bd64d74eac9051f29f">setup</a> (<a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> src_shape, <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> weights_shape, <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> biases_shape, <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> dst_shape, <a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> data_type, int batches)</td></tr>
140 <tr class="separator:aa2d1f9c5f65c10bd64d74eac9051f29f"><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_fully_connected_layer_fixture.xhtml#a13a43e6d814de94978c515cb084873b1">run</a> ()</td></tr>
142 <tr class="separator:a13a43e6d814de94978c515cb084873b1"><td class="memSeparator" colspan="2"> </td></tr>
143 <tr class="memitem:ad55f80ed3cd8b6c4f247763b747016af"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_fully_connected_layer_fixture.xhtml#ad55f80ed3cd8b6c4f247763b747016af">sync</a> ()</td></tr>
144 <tr class="separator:ad55f80ed3cd8b6c4f247763b747016af"><td class="memSeparator" colspan="2"> </td></tr>
145 <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_fully_connected_layer_fixture.xhtml#a4adab6322a0276f34a7d656d49fc865c">teardown</a> ()</td></tr>
146 <tr class="separator:a4adab6322a0276f34a7d656d49fc865c"><td class="memSeparator" colspan="2"> </td></tr>
147 <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>
148 <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>
149 <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>
150 <tr class="separator:a4fc01d736fe50cf5b977f755b675f11d inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memSeparator" colspan="2"> </td></tr>
151 <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>
152 <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>
153 <tr class="separator:a4adab6322a0276f34a7d656d49fc865c inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memSeparator" colspan="2"> </td></tr>
155 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
156 <div class="textblock"><h3>template<typename TensorType, typename Function, typename Accessor><br />
157 class arm_compute::test::FullyConnectedLayerFixture< TensorType, Function, Accessor ></h3>
159 <p>Fixture that can be used for NEON and CL. </p>
161 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00039">39</a> of file <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a>.</p>
162 </div><h2 class="groupheader">Member Function Documentation</h2>
163 <a class="anchor" id="a13a43e6d814de94978c515cb084873b1"></a>
164 <div class="memitem">
165 <div class="memproto">
166 <table class="mlabels">
168 <td class="mlabels-left">
169 <table class="memname">
171 <td class="memname">void run </td>
173 <td class="paramname"></td><td>)</td>
178 <td class="mlabels-right">
179 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
182 </div><div class="memdoc">
184 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00066">66</a> of file <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a>.</p>
185 <div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  fc_layer.run();</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div></div><!-- fragment -->
188 <a class="anchor" id="aa2d1f9c5f65c10bd64d74eac9051f29f"></a>
189 <div class="memitem">
190 <div class="memproto">
191 <table class="mlabels">
193 <td class="mlabels-left">
194 <table class="memname">
196 <td class="memname">void setup </td>
198 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
199 <td class="paramname"><em>src_shape</em>, </td>
202 <td class="paramkey"></td>
204 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
205 <td class="paramname"><em>weights_shape</em>, </td>
208 <td class="paramkey"></td>
210 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
211 <td class="paramname"><em>biases_shape</em>, </td>
214 <td class="paramkey"></td>
216 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
217 <td class="paramname"><em>dst_shape</em>, </td>
220 <td class="paramkey"></td>
222 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> </td>
223 <td class="paramname"><em>data_type</em>, </td>
226 <td class="paramkey"></td>
228 <td class="paramtype">int </td>
229 <td class="paramname"><em>batches</em> </td>
238 <td class="mlabels-right">
239 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
242 </div><div class="memdoc">
244 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00043">43</a> of file <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a>.</p>
246 <p>References <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00119">arm_compute::test::validation::data_type</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>
247 <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// Set batched in source and destination shapes</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</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="l00047"></a><span class="lineno"> 47</span>  src_shape.set(src_shape.num_dimensions() <span class="comment">/* batch */</span>, batches);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  dst_shape.set(dst_shape.num_dimensions() <span class="comment">/* batch */</span>, batches);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="comment">// Create tensors</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  src = create_tensor<TensorType>(src_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="l00052"></a><span class="lineno"> 52</span>  weights = create_tensor<TensorType>(weights_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="l00053"></a><span class="lineno"> 53</span>  biases = create_tensor<TensorType>(biases_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="l00054"></a><span class="lineno"> 54</span>  dst = create_tensor<TensorType>(dst_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="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// Create and configure function</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  fc_layer.configure(&src, &weights, &biases, &dst);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// Allocate tensors</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  src.allocator()->allocate();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  weights.allocator()->allocate();</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  biases.allocator()->allocate();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  dst.allocator()->allocate();</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</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_convolution_8cpp_source.xhtml#l00119">Convolution.cpp:119</a></div></div>
248 </div><!-- fragment -->
251 <a class="anchor" id="ad55f80ed3cd8b6c4f247763b747016af"></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 sync </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_fully_connected_layer_fixture_8h_source.xhtml#l00071">71</a> of file <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a>.</p>
273 <div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  sync_if_necessary<TensorType>();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  sync_tensor_if_necessary<TensorType>(dst);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div></div><!-- fragment -->
276 <a class="anchor" id="a4adab6322a0276f34a7d656d49fc865c"></a>
277 <div class="memitem">
278 <div class="memproto">
279 <table class="mlabels">
281 <td class="mlabels-left">
282 <table class="memname">
284 <td class="memname">void teardown </td>
286 <td class="paramname"></td><td>)</td>
291 <td class="mlabels-right">
292 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
295 </div><div class="memdoc">
297 <p>Definition at line <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00077">77</a> of file <a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a>.</p>
298 <div class="fragment"><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  src.allocator()->free();</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  weights.allocator()->free();</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  biases.allocator()->free();</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  dst.allocator()->free();</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div></div><!-- fragment -->
301 <hr/>The documentation for this class was generated from the following file:<ul>
302 <li>tests/benchmark/fixtures/<a class="el" href="benchmark_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml">FullyConnectedLayerFixture.h</a></li>
304 </div><!-- contents -->
305 </div><!-- doc-content -->
306 <!-- start footer part -->
307 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
309 <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_fully_connected_layer_fixture.xhtml">FullyConnectedLayerFixture</a></li>
310 <li class="footer">Generated on Wed Jan 24 2018 14:30:46 for Compute Library by
311 <a href="http://www.doxygen.org/index.html">
312 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>