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: FlattenLayerValidationFixture< TensorType, AccessorType, FunctionType, T > 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.02</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_1validation_1_1_flatten_layer_validation_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">FlattenLayerValidationFixture< TensorType, AccessorType, FunctionType, T > Class Template Reference</div> </div>
123 <div class="contents">
125 <p><code>#include <<a class="el" href="validation_2fixtures_2_flatten_layer_fixture_8h_source.xhtml">FlattenLayerFixture.h</a>></code></p>
126 <div class="dynheader">
127 Collaboration diagram for FlattenLayerValidationFixture< TensorType, AccessorType, FunctionType, T >:</div>
128 <div class="dyncontent">
129 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1test_1_1validation_1_1_flatten_layer_validation_fixture__coll__graph.svg" width="216" height="142"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
131 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
132 <table class="memberdecls">
133 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
134 Public Member Functions</h2></td></tr>
135 <tr class="memitem:a8e81f3e3a398b216ac76aaa32d884220"><td class="memTemplParams" colspan="2">template<typename... > </td></tr>
136 <tr class="memitem:a8e81f3e3a398b216ac76aaa32d884220"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1validation_1_1_flatten_layer_validation_fixture.xhtml#a8e81f3e3a398b216ac76aaa32d884220">setup</a> (<a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> <a class="el" href="namespacearm__compute_1_1test_1_1validation.xhtml#a45cde9abb508c62d67c3bb2b9bf566a5">shape</a>, <a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> <a class="el" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>)</td></tr>
137 <tr class="separator:a8e81f3e3a398b216ac76aaa32d884220"><td class="memSeparator" colspan="2"> </td></tr>
138 <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>
139 <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>
140 <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>
141 <tr class="separator:a4fc01d736fe50cf5b977f755b675f11d inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memSeparator" colspan="2"> </td></tr>
142 <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>
143 <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>
144 <tr class="separator:a4adab6322a0276f34a7d656d49fc865c inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_fixture"><td class="memSeparator" colspan="2"> </td></tr>
146 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
147 <div class="textblock"><h3>template<typename TensorType, typename AccessorType, typename FunctionType, typename T><br />
148 class arm_compute::test::validation::FlattenLayerValidationFixture< TensorType, AccessorType, FunctionType, T ></h3>
151 <p>Definition at line <a class="el" href="validation_2fixtures_2_flatten_layer_fixture_8h_source.xhtml#l00047">47</a> of file <a class="el" href="validation_2fixtures_2_flatten_layer_fixture_8h_source.xhtml">FlattenLayerFixture.h</a>.</p>
152 </div><h2 class="groupheader">Member Function Documentation</h2>
153 <a class="anchor" id="a8e81f3e3a398b216ac76aaa32d884220"></a>
154 <div class="memitem">
155 <div class="memproto">
156 <table class="mlabels">
158 <td class="mlabels-left">
159 <table class="memname">
161 <td class="memname">void setup </td>
163 <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> </td>
164 <td class="paramname"><em>shape</em>, </td>
167 <td class="paramkey"></td>
169 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> </td>
170 <td class="paramname"><em>data_type</em> </td>
179 <td class="mlabels-right">
180 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
183 </div><div class="memdoc">
185 <p>Definition at line <a class="el" href="validation_2fixtures_2_flatten_layer_fixture_8h_source.xhtml#l00051">51</a> of file <a class="el" href="validation_2fixtures_2_flatten_layer_fixture_8h_source.xhtml">FlattenLayerFixture.h</a>.</p>
187 <p>References <a class="el" href="_validate_8h_source.xhtml#l00269">ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS</a>, <a class="el" href="namespacearm__compute_1_1test_1_1validation.xhtml#af3c1de77fd86df539395c75c17ec230e">arm_compute::test::validation::ARM_COMPUTE_EXPECT()</a>, <a class="el" href="_tensor_shape_8h_source.xhtml#l00128">TensorShape::collapse()</a>, <a class="el" href="validation_2_c_l_2_g_e_m_m_8cpp_source.xhtml#l00114">arm_compute::test::validation::data_type</a>, <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00137">arm_compute::test::validation::dst</a>, <a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml#aca1fd1d8935433e6ba2e3918214e07f9a6f3a603fac4d817f1848c3173b243b57">arm_compute::test::framework::ERRORS</a>, <a class="el" href="validation_2reference_2_flatten_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::flatten_layer()</a>, <a class="el" href="arm__compute_2core_2_utils_8h_source.xhtml#l01010">arm_compute::is_data_type_fixed_point()</a>, <a class="el" href="main_8cpp_source.xhtml#l00059">arm_compute::test::library</a>, <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00133">arm_compute::test::validation::shape</a>, <a class="el" href="_c_l_2_convolution_8cpp_source.xhtml#l00147">arm_compute::test::validation::src</a>, and <a class="el" href="namespacearm__compute.xhtml#a1ce9b523fd4f3b5bbcadcd796183455aa4c614360da93c0a041b22e537de151eb">arm_compute::U</a>.</p>
188 <div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  _fractional_bits = <a class="code" href="namespacearm__compute.xhtml#ab6bb62694ae8369d18a9c9687040975e">is_data_type_fixed_point</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>) ? 4 : 0;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  _target = compute_target(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a45cde9abb508c62d67c3bb2b9bf566a5">shape</a>, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  _reference = compute_reference(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a45cde9abb508c62d67c3bb2b9bf566a5">shape</a>, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#ac2ad7f431e3446fddcd9b6b9f93c4c14">data_type</a>);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="_validate_8h.xhtml#ad9fd47433ba6091668c207e21dd6385f">ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS</a>(_target.info()->tensor_shape(), _reference.shape());</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div><div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a45cde9abb508c62d67c3bb2b9bf566a5"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a45cde9abb508c62d67c3bb2b9bf566a5">arm_compute::test::validation::shape</a></div><div class="ttdeci">shape</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_convolution_8cpp_source.xhtml#l00133">Convolution.cpp:133</a></div></div>
189 <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="validation_2_c_l_2_g_e_m_m_8cpp_source.xhtml#l00114">GEMM.cpp:114</a></div></div>
190 <div class="ttc" id="namespacearm__compute_xhtml_ab6bb62694ae8369d18a9c9687040975e"><div class="ttname"><a href="namespacearm__compute.xhtml#ab6bb62694ae8369d18a9c9687040975e">arm_compute::is_data_type_fixed_point</a></div><div class="ttdeci">bool is_data_type_fixed_point(DataType dt)</div><div class="ttdoc">Check if a given data type is of fixed point type. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_utils_8h_source.xhtml#l01010">Utils.h:1010</a></div></div>
191 <div class="ttc" id="_validate_8h_xhtml_ad9fd47433ba6091668c207e21dd6385f"><div class="ttname"><a href="_validate_8h.xhtml#ad9fd47433ba6091668c207e21dd6385f">ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS(...)</div><div class="ttdef"><b>Definition:</b> <a href="_validate_8h_source.xhtml#l00269">Validate.h:269</a></div></div>
192 </div><!-- fragment -->
195 <hr/>The documentation for this class was generated from the following file:<ul>
196 <li>tests/validation/fixtures/<a class="el" href="validation_2fixtures_2_flatten_layer_fixture_8h_source.xhtml">FlattenLayerFixture.h</a></li>
198 </div><!-- contents -->
199 </div><!-- doc-content -->
200 <!-- start footer part -->
201 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
203 <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="namespacearm__compute_1_1test_1_1validation.xhtml">validation</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1test_1_1validation_1_1_flatten_layer_validation_fixture.xhtml">FlattenLayerValidationFixture</a></li>
204 <li class="footer">Generated on Thu Feb 22 2018 15:45:27 for Compute Library by
205 <a href="http://www.doxygen.org/index.html">
206 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>