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: NEConvertFullyConnectedWeights Class 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.05</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_1_n_e_convert_fully_connected_weights.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> |
120 <a href="#pub-static-methods">Static Public Member Functions</a> </div>
121 <div class="headertitle">
122 <div class="title">NEConvertFullyConnectedWeights Class Reference</div> </div>
124 <div class="contents">
126 <p>Basic function to run <a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights_kernel.xhtml">NEConvertFullyConnectedWeightsKernel</a>.
127 <a href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml#details">More...</a></p>
129 <p><code>#include <<a class="el" href="_n_e_convert_fully_connected_weights_8h_source.xhtml">NEConvertFullyConnectedWeights.h</a>></code></p>
130 <div class="dynheader">
131 Collaboration diagram for NEConvertFullyConnectedWeights:</div>
132 <div class="dyncontent">
133 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1_n_e_convert_fully_connected_weights__coll__graph.svg" width="246" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
135 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
136 <table class="memberdecls">
137 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
138 Public Member Functions</h2></td></tr>
139 <tr class="memitem:aecbf55e0f00cef5c1378eb47099f336d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml#aecbf55e0f00cef5c1378eb47099f336d">NEConvertFullyConnectedWeights</a> ()</td></tr>
140 <tr class="memdesc:aecbf55e0f00cef5c1378eb47099f336d"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#aecbf55e0f00cef5c1378eb47099f336d">More...</a><br /></td></tr>
141 <tr class="separator:aecbf55e0f00cef5c1378eb47099f336d"><td class="memSeparator" colspan="2"> </td></tr>
142 <tr class="memitem:ac0cfd5b64b24f3dfae04ee3d0f258624"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml#ac0cfd5b64b24f3dfae04ee3d0f258624">configure</a> (const <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *input, <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *output, const <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> &original_input_shape, <a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> data_layout)</td></tr>
143 <tr class="memdesc:ac0cfd5b64b24f3dfae04ee3d0f258624"><td class="mdescLeft"> </td><td class="mdescRight">Initialize the function. <a href="#ac0cfd5b64b24f3dfae04ee3d0f258624">More...</a><br /></td></tr>
144 <tr class="separator:ac0cfd5b64b24f3dfae04ee3d0f258624"><td class="memSeparator" colspan="2"> </td></tr>
145 <tr class="memitem:ad1717410afd0be936c6213a63c8005fb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml#ad1717410afd0be936c6213a63c8005fb">run</a> () override</td></tr>
146 <tr class="memdesc:ad1717410afd0be936c6213a63c8005fb"><td class="mdescLeft"> </td><td class="mdescRight">Run the kernels contained in the function. <a href="#ad1717410afd0be936c6213a63c8005fb">More...</a><br /></td></tr>
147 <tr class="separator:ad1717410afd0be936c6213a63c8005fb"><td class="memSeparator" colspan="2"> </td></tr>
148 <tr class="inherit_header pub_methods_classarm__compute_1_1_i_function"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_function')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_function.xhtml">IFunction</a></td></tr>
149 <tr class="memitem:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_function.xhtml#ab921ecc3f3f6ae2b4bd61f3e1998d8c4">~IFunction</a> ()=default</td></tr>
150 <tr class="memdesc:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab921ecc3f3f6ae2b4bd61f3e1998d8c4">More...</a><br /></td></tr>
151 <tr class="separator:ab921ecc3f3f6ae2b4bd61f3e1998d8c4 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memSeparator" colspan="2"> </td></tr>
152 <tr class="memitem:a820f7291c24155a2980512fae45aac26 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_function.xhtml#a820f7291c24155a2980512fae45aac26">prepare</a> ()</td></tr>
153 <tr class="memdesc:a820f7291c24155a2980512fae45aac26 inherit pub_methods_classarm__compute_1_1_i_function"><td class="mdescLeft"> </td><td class="mdescRight">Prepare the function for executing. <a href="#a820f7291c24155a2980512fae45aac26">More...</a><br /></td></tr>
154 <tr class="separator:a820f7291c24155a2980512fae45aac26 inherit pub_methods_classarm__compute_1_1_i_function"><td class="memSeparator" colspan="2"> </td></tr>
155 </table><table class="memberdecls">
156 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
157 Static Public Member Functions</h2></td></tr>
158 <tr class="memitem:a0ee2875b1f3cf5b6bc2361e85b7e53ef"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarm__compute_1_1_status.xhtml">Status</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml#a0ee2875b1f3cf5b6bc2361e85b7e53ef">validate</a> (const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *input, const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *output, const <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> &original_input_shape, <a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> data_layout)</td></tr>
159 <tr class="memdesc:a0ee2875b1f3cf5b6bc2361e85b7e53ef"><td class="mdescLeft"> </td><td class="mdescRight">Static function to check if given info will lead to a valid configuration of <a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml">NEConvertFullyConnectedWeights</a>. <a href="#a0ee2875b1f3cf5b6bc2361e85b7e53ef">More...</a><br /></td></tr>
160 <tr class="separator:a0ee2875b1f3cf5b6bc2361e85b7e53ef"><td class="memSeparator" colspan="2"> </td></tr>
162 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
163 <div class="textblock"><p>Basic function to run <a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights_kernel.xhtml">NEConvertFullyConnectedWeightsKernel</a>. </p>
165 <p>Definition at line <a class="el" href="_n_e_convert_fully_connected_weights_8h_source.xhtml#l00036">36</a> of file <a class="el" href="_n_e_convert_fully_connected_weights_8h_source.xhtml">NEConvertFullyConnectedWeights.h</a>.</p>
166 </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
167 <a class="anchor" id="aecbf55e0f00cef5c1378eb47099f336d"></a>
168 <div class="memitem">
169 <div class="memproto">
170 <table class="memname">
172 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml">NEConvertFullyConnectedWeights</a> </td>
174 <td class="paramname"></td><td>)</td>
178 </div><div class="memdoc">
180 <p>Default constructor. </p>
184 <h2 class="groupheader">Member Function Documentation</h2>
185 <a class="anchor" id="ac0cfd5b64b24f3dfae04ee3d0f258624"></a>
186 <div class="memitem">
187 <div class="memproto">
188 <table class="memname">
190 <td class="memname">void configure </td>
192 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> * </td>
193 <td class="paramname"><em>input</em>, </td>
196 <td class="paramkey"></td>
198 <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> * </td>
199 <td class="paramname"><em>output</em>, </td>
202 <td class="paramkey"></td>
204 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> & </td>
205 <td class="paramname"><em>original_input_shape</em>, </td>
208 <td class="paramkey"></td>
210 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> </td>
211 <td class="paramname"><em>data_layout</em> </td>
219 </div><div class="memdoc">
221 <p>Initialize the function. </p>
222 <dl class="params"><dt>Parameters</dt><dd>
223 <table class="params">
224 <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Source weights tensor to convert. Must be 2 dimensional. Data types supported: U8/S8/QS8/QASYMM8/U16/S16/QS16/U32/S32/QS32/F16/F32. </td></tr>
225 <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>The converted weights tensor. Shape and Data Type: Same as <code>input</code>. </td></tr>
226 <tr><td class="paramdir">[in]</td><td class="paramname">original_input_shape</td><td>Shape of the original input tensor (the one entering fully connected layer). Must be in NCHW format. </td></tr>
227 <tr><td class="paramdir">[in]</td><td class="paramname">data_layout</td><td>The data layout the weights have been trained in. </td></tr>
234 <a class="anchor" id="ad1717410afd0be936c6213a63c8005fb"></a>
235 <div class="memitem">
236 <div class="memproto">
237 <table class="mlabels">
239 <td class="mlabels-left">
240 <table class="memname">
242 <td class="memname">void run </td>
244 <td class="paramname"></td><td>)</td>
249 <td class="mlabels-right">
250 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
253 </div><div class="memdoc">
255 <p>Run the kernels contained in the function. </p>
256 <p>For NEON kernels:</p><ul>
257 <li>Multi-threading is used for the kernels which are parallelisable.</li>
258 <li>By default std::thread::hardware_concurrency() threads are used.</li>
260 <dl class="section note"><dt>Note</dt><dd><a class="el" href="classarm__compute_1_1_c_p_p_scheduler.xhtml#ae64eebaa07f4d2da6cc2ba538c3cb095">CPPScheduler::set_num_threads()</a> can be used to manually set the number of threads</dd></dl>
261 <p>For OpenCL kernels:</p><ul>
262 <li>All the kernels are enqueued on the queue associated with <a class="el" href="classarm__compute_1_1_c_l_scheduler.xhtml" title="Provides global access to a CL context and command queue. ">CLScheduler</a>.</li>
263 <li>The queue is then flushed.</li>
265 <dl class="section note"><dt>Note</dt><dd>The function will not block until the kernels are executed. It is the user's responsibility to wait. </dd>
267 Will call <a class="el" href="classarm__compute_1_1_i_function.xhtml#a820f7291c24155a2980512fae45aac26" title="Prepare the function for executing. ">prepare()</a> on first run if hasn't been done </dd></dl>
269 <p>Implements <a class="el" href="classarm__compute_1_1_i_function.xhtml#a18954417d3124a8095783ea13dc6d00b">IFunction</a>.</p>
273 <a class="anchor" id="a0ee2875b1f3cf5b6bc2361e85b7e53ef"></a>
274 <div class="memitem">
275 <div class="memproto">
276 <table class="mlabels">
278 <td class="mlabels-left">
279 <table class="memname">
281 <td class="memname">static <a class="el" href="classarm__compute_1_1_status.xhtml">Status</a> validate </td>
283 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> * </td>
284 <td class="paramname"><em>input</em>, </td>
287 <td class="paramkey"></td>
289 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> * </td>
290 <td class="paramname"><em>output</em>, </td>
293 <td class="paramkey"></td>
295 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> & </td>
296 <td class="paramname"><em>original_input_shape</em>, </td>
299 <td class="paramkey"></td>
301 <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> </td>
302 <td class="paramname"><em>data_layout</em> </td>
311 <td class="mlabels-right">
312 <span class="mlabels"><span class="mlabel">static</span></span> </td>
315 </div><div class="memdoc">
317 <p>Static function to check if given info will lead to a valid configuration of <a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml">NEConvertFullyConnectedWeights</a>. </p>
318 <dl class="params"><dt>Parameters</dt><dd>
319 <table class="params">
320 <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Source weights tensor info to convert. Must be 2 dimensional. Data types supported: U8/S8/QS8/QASYMM8/U16/S16/QS16/U32/S32/QS32/F16/F32. </td></tr>
321 <tr><td class="paramdir">[in]</td><td class="paramname">output</td><td>The converted weights tensor info. Shape and Data Type: Same as <code>input</code>. </td></tr>
322 <tr><td class="paramdir">[in]</td><td class="paramname">original_input_shape</td><td>Shape of the original input tensor (the one entering fully connected layer). Must be in NCHW format. </td></tr>
323 <tr><td class="paramdir">[in]</td><td class="paramname">data_layout</td><td>The data layout the weights have been trained in. </td></tr>
330 <hr/>The documentation for this class was generated from the following file:<ul>
331 <li>arm_compute/runtime/NEON/functions/<a class="el" href="_n_e_convert_fully_connected_weights_8h_source.xhtml">NEConvertFullyConnectedWeights.h</a></li>
333 </div><!-- contents -->
334 </div><!-- doc-content -->
335 <!-- start footer part -->
336 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
338 <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1_n_e_convert_fully_connected_weights.xhtml">NEConvertFullyConnectedWeights</a></li>
339 <li class="footer">Generated on Wed May 23 2018 11:36:42 for Compute Library by
340 <a href="http://www.doxygen.org/index.html">
341 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>