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: NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel 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.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_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.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">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel Class Reference</div> </div>
124 <div class="contents">
126 <p>NEON kernel used to quantize down the int32 accumulator values of GEMMLowp to QASYMM8.
127 <a href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#details">More...</a></p>
129 <p><code>#include <<a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel.h</a>></code></p>
130 <div class="dynheader">
131 Collaboration diagram for NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel:</div>
132 <div class="dyncontent">
133 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel__coll__graph.svg" width="247" height="202"><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:ab5656bb5b6334bdbe6e606c715872828"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#ab5656bb5b6334bdbe6e606c715872828">name</a> () const override</td></tr>
140 <tr class="memdesc:ab5656bb5b6334bdbe6e606c715872828"><td class="mdescLeft"> </td><td class="mdescRight">Name of the kernel. <a href="#ab5656bb5b6334bdbe6e606c715872828">More...</a><br /></td></tr>
141 <tr class="separator:ab5656bb5b6334bdbe6e606c715872828"><td class="memSeparator" colspan="2"> </td></tr>
142 <tr class="memitem:a3d0b72df579c39f4559d541ffce740bd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a3d0b72df579c39f4559d541ffce740bd">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> ()</td></tr>
143 <tr class="memdesc:a3d0b72df579c39f4559d541ffce740bd"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a3d0b72df579c39f4559d541ffce740bd">More...</a><br /></td></tr>
144 <tr class="separator:a3d0b72df579c39f4559d541ffce740bd"><td class="memSeparator" colspan="2"> </td></tr>
145 <tr class="memitem:a300f166c0a6aa15706272cc4464257f2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a300f166c0a6aa15706272cc4464257f2">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> (const <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> &)=delete</td></tr>
146 <tr class="memdesc:a300f166c0a6aa15706272cc4464257f2"><td class="mdescLeft"> </td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers) <a href="#a300f166c0a6aa15706272cc4464257f2">More...</a><br /></td></tr>
147 <tr class="separator:a300f166c0a6aa15706272cc4464257f2"><td class="memSeparator" colspan="2"> </td></tr>
148 <tr class="memitem:afd56f1f0c54f327fcfb4ca91d7d91566"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#afd56f1f0c54f327fcfb4ca91d7d91566">operator=</a> (const <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> &)=delete</td></tr>
149 <tr class="memdesc:afd56f1f0c54f327fcfb4ca91d7d91566"><td class="mdescLeft"> </td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers) <a href="#afd56f1f0c54f327fcfb4ca91d7d91566">More...</a><br /></td></tr>
150 <tr class="separator:afd56f1f0c54f327fcfb4ca91d7d91566"><td class="memSeparator" colspan="2"> </td></tr>
151 <tr class="memitem:a4bdd39adeb3e5633b9f6a75ede152dfe"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a4bdd39adeb3e5633b9f6a75ede152dfe">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> (<a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> &&)=default</td></tr>
152 <tr class="memdesc:a4bdd39adeb3e5633b9f6a75ede152dfe"><td class="mdescLeft"> </td><td class="mdescRight">Allow instances of this class to be moved. <a href="#a4bdd39adeb3e5633b9f6a75ede152dfe">More...</a><br /></td></tr>
153 <tr class="separator:a4bdd39adeb3e5633b9f6a75ede152dfe"><td class="memSeparator" colspan="2"> </td></tr>
154 <tr class="memitem:a2709f3f3c7480d4f0e5fb8de1dc4544b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a2709f3f3c7480d4f0e5fb8de1dc4544b">operator=</a> (<a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> &&)=default</td></tr>
155 <tr class="memdesc:a2709f3f3c7480d4f0e5fb8de1dc4544b"><td class="mdescLeft"> </td><td class="mdescRight">Allow instances of this class to be moved. <a href="#a2709f3f3c7480d4f0e5fb8de1dc4544b">More...</a><br /></td></tr>
156 <tr class="separator:a2709f3f3c7480d4f0e5fb8de1dc4544b"><td class="memSeparator" colspan="2"> </td></tr>
157 <tr class="memitem:a888c69fe3d880ac8001eb92ab74cffb7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a888c69fe3d880ac8001eb92ab74cffb7">configure</a> (const <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *input, const <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *bias, <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> *output, int result_fixedpoint_multiplier, int result_shift, int result_offset_after_shift, int min=0, int max=0)</td></tr>
158 <tr class="memdesc:a888c69fe3d880ac8001eb92ab74cffb7"><td class="mdescLeft"> </td><td class="mdescRight">Initialise the kernel's input and output. <a href="#a888c69fe3d880ac8001eb92ab74cffb7">More...</a><br /></td></tr>
159 <tr class="separator:a888c69fe3d880ac8001eb92ab74cffb7"><td class="memSeparator" colspan="2"> </td></tr>
160 <tr class="memitem:a112b35dd205c62ea6ed1447ef226da82"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a112b35dd205c62ea6ed1447ef226da82">run</a> (const <a class="el" href="classarm__compute_1_1_window.xhtml">Window</a> &<a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a3f5646133956f06348b310ccc3d36353">window</a>, const <a class="el" href="structarm__compute_1_1_thread_info.xhtml">ThreadInfo</a> &info) override</td></tr>
161 <tr class="memdesc:a112b35dd205c62ea6ed1447ef226da82"><td class="mdescLeft"> </td><td class="mdescRight">Execute the kernel on the passed window. <a href="#a112b35dd205c62ea6ed1447ef226da82">More...</a><br /></td></tr>
162 <tr class="separator:a112b35dd205c62ea6ed1447ef226da82"><td class="memSeparator" colspan="2"> </td></tr>
163 <tr class="inherit_header pub_methods_classarm__compute_1_1_i_c_p_p_kernel"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_c_p_p_kernel')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_c_p_p_kernel.xhtml">ICPPKernel</a></td></tr>
164 <tr class="memitem:a033d17a97e07cea7fe83eefcf23540f6 inherit pub_methods_classarm__compute_1_1_i_c_p_p_kernel"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_c_p_p_kernel.xhtml#a033d17a97e07cea7fe83eefcf23540f6">~ICPPKernel</a> ()=default</td></tr>
165 <tr class="memdesc:a033d17a97e07cea7fe83eefcf23540f6 inherit pub_methods_classarm__compute_1_1_i_c_p_p_kernel"><td class="mdescLeft"> </td><td class="mdescRight">Default destructor. <a href="#a033d17a97e07cea7fe83eefcf23540f6">More...</a><br /></td></tr>
166 <tr class="separator:a033d17a97e07cea7fe83eefcf23540f6 inherit pub_methods_classarm__compute_1_1_i_c_p_p_kernel"><td class="memSeparator" colspan="2"> </td></tr>
167 <tr class="inherit_header pub_methods_classarm__compute_1_1_i_kernel"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_kernel')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_kernel.xhtml">IKernel</a></td></tr>
168 <tr class="memitem:a7250cb8cbaa4104a93a2d77155085507 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a7250cb8cbaa4104a93a2d77155085507">IKernel</a> ()</td></tr>
169 <tr class="memdesc:a7250cb8cbaa4104a93a2d77155085507 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a7250cb8cbaa4104a93a2d77155085507">More...</a><br /></td></tr>
170 <tr class="separator:a7250cb8cbaa4104a93a2d77155085507 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memSeparator" colspan="2"> </td></tr>
171 <tr class="memitem:a341b60d15a5e12a5b8f3825194dd3b12 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a341b60d15a5e12a5b8f3825194dd3b12">~IKernel</a> ()=default</td></tr>
172 <tr class="memdesc:a341b60d15a5e12a5b8f3825194dd3b12 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a341b60d15a5e12a5b8f3825194dd3b12">More...</a><br /></td></tr>
173 <tr class="separator:a341b60d15a5e12a5b8f3825194dd3b12 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memSeparator" colspan="2"> </td></tr>
174 <tr class="memitem:abfab8f0d4928e1081d9f65b77933e24a inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_kernel.xhtml#abfab8f0d4928e1081d9f65b77933e24a">is_parallelisable</a> () const </td></tr>
175 <tr class="memdesc:abfab8f0d4928e1081d9f65b77933e24a inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="mdescLeft"> </td><td class="mdescRight">Indicates whether or not the kernel is parallelisable. <a href="#abfab8f0d4928e1081d9f65b77933e24a">More...</a><br /></td></tr>
176 <tr class="separator:abfab8f0d4928e1081d9f65b77933e24a inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memSeparator" colspan="2"> </td></tr>
177 <tr class="memitem:aa6daa9b04e2035bf007e5e5c3c4396a8 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structarm__compute_1_1_border_size.xhtml">BorderSize</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_kernel.xhtml#aa6daa9b04e2035bf007e5e5c3c4396a8">border_size</a> () const </td></tr>
178 <tr class="memdesc:aa6daa9b04e2035bf007e5e5c3c4396a8 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="mdescLeft"> </td><td class="mdescRight">The size of the border for that kernel. <a href="#aa6daa9b04e2035bf007e5e5c3c4396a8">More...</a><br /></td></tr>
179 <tr class="separator:aa6daa9b04e2035bf007e5e5c3c4396a8 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memSeparator" colspan="2"> </td></tr>
180 <tr class="memitem:a3f5646133956f06348b310ccc3d36353 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarm__compute_1_1_window.xhtml">Window</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a3f5646133956f06348b310ccc3d36353">window</a> () const </td></tr>
181 <tr class="memdesc:a3f5646133956f06348b310ccc3d36353 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="mdescLeft"> </td><td class="mdescRight">The maximum window the kernel can be executed on. <a href="#a3f5646133956f06348b310ccc3d36353">More...</a><br /></td></tr>
182 <tr class="separator:a3f5646133956f06348b310ccc3d36353 inherit pub_methods_classarm__compute_1_1_i_kernel"><td class="memSeparator" colspan="2"> </td></tr>
183 </table><table class="memberdecls">
184 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
185 Static Public Member Functions</h2></td></tr>
186 <tr class="memitem:ae91454a1d9774df968cdd3694b366ddf"><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_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#ae91454a1d9774df968cdd3694b366ddf">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> *bias, const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> *output, int min=0, int max=0)</td></tr>
187 <tr class="memdesc:ae91454a1d9774df968cdd3694b366ddf"><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_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a>. <a href="#ae91454a1d9774df968cdd3694b366ddf">More...</a><br /></td></tr>
188 <tr class="separator:ae91454a1d9774df968cdd3694b366ddf"><td class="memSeparator" colspan="2"> </td></tr>
190 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
191 <div class="textblock"><p>NEON kernel used to quantize down the int32 accumulator values of GEMMLowp to QASYMM8. </p>
192 <p>This kernel takes a final int32 accumulator value (the output of <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_matrix_multiply_kernel.xhtml">NEGEMMLowpMatrixMultiplyKernel</a>), and processes it to obtain the final QASYMM8 value. The following computations will be performed by the kernel:</p>
194 <li>Compute fixed point multiplication between each entry of input by result_fixedpoint_multiplier</li>
195 <li>Add bias to final result if bias tensor is not a nullptr</li>
196 <li>Round to nearest division by a power-of-two using result_shift</li>
197 <li>Add offset to each result</li>
198 <li>Clamp the value between the specified min and max bounds</li>
199 <li>Clamp the resulting int32 values to the [0..255] range and cast to QASYMM8. </li>
202 <p>Definition at line <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00046">46</a> of file <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel.h</a>.</p>
203 </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
204 <a class="anchor" id="a3d0b72df579c39f4559d541ffce740bd"></a>
205 <div class="memitem">
206 <div class="memproto">
207 <table class="memname">
209 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> </td>
211 <td class="paramname"></td><td>)</td>
215 </div><div class="memdoc">
219 <p>Referenced by <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00049">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::name()</a>.</p>
223 <a class="anchor" id="a300f166c0a6aa15706272cc4464257f2"></a>
224 <div class="memitem">
225 <div class="memproto">
226 <table class="mlabels">
228 <td class="mlabels-left">
229 <table class="memname">
231 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> </td>
233 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> & </td>
234 <td class="paramname"></td><td>)</td>
239 <td class="mlabels-right">
240 <span class="mlabels"><span class="mlabel">delete</span></span> </td>
243 </div><div class="memdoc">
245 <p>Prevent instances of this class from being copied (As this class contains pointers) </p>
249 <a class="anchor" id="a4bdd39adeb3e5633b9f6a75ede152dfe"></a>
250 <div class="memitem">
251 <div class="memproto">
252 <table class="mlabels">
254 <td class="mlabels-left">
255 <table class="memname">
257 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> </td>
259 <td class="paramtype"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> && </td>
260 <td class="paramname"></td><td>)</td>
265 <td class="mlabels-right">
266 <span class="mlabels"><span class="mlabel">default</span></span> </td>
269 </div><div class="memdoc">
271 <p>Allow instances of this class to be moved. </p>
275 <h2 class="groupheader">Member Function Documentation</h2>
276 <a class="anchor" id="a888c69fe3d880ac8001eb92ab74cffb7"></a>
277 <div class="memitem">
278 <div class="memproto">
279 <table class="memname">
281 <td class="memname">void configure </td>
283 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</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.xhtml">ITensor</a> * </td>
290 <td class="paramname"><em>bias</em>, </td>
293 <td class="paramkey"></td>
295 <td class="paramtype"><a class="el" href="classarm__compute_1_1_i_tensor.xhtml">ITensor</a> * </td>
296 <td class="paramname"><em>output</em>, </td>
299 <td class="paramkey"></td>
301 <td class="paramtype">int </td>
302 <td class="paramname"><em>result_fixedpoint_multiplier</em>, </td>
305 <td class="paramkey"></td>
307 <td class="paramtype">int </td>
308 <td class="paramname"><em>result_shift</em>, </td>
311 <td class="paramkey"></td>
313 <td class="paramtype">int </td>
314 <td class="paramname"><em>result_offset_after_shift</em>, </td>
317 <td class="paramkey"></td>
319 <td class="paramtype">int </td>
320 <td class="paramname"><em>min</em> = <code>0</code>, </td>
323 <td class="paramkey"></td>
325 <td class="paramtype">int </td>
326 <td class="paramname"><em>max</em> = <code>0</code> </td>
334 </div><div class="memdoc">
336 <p>Initialise the kernel's input and output. </p>
337 <dl class="params"><dt>Parameters</dt><dd>
338 <table class="params">
339 <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Input tensor. Data type supported: S32 </td></tr>
340 <tr><td class="paramdir">[in]</td><td class="paramname">bias</td><td>Biases tensor. Only shared biases supported and it can be a nullptr if the biases addition is not required. Biases are 1D tensor with dimensions [OFM]. Data type supported: Same as <code>input</code>. </td></tr>
341 <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>Output tensor. Data type supported: Data type supported: QASYMM8 </td></tr>
342 <tr><td class="paramdir">[in]</td><td class="paramname">result_fixedpoint_multiplier</td><td>Fixed point value to be multiplied to each element of the input matrix when once the result_offset has been add </td></tr>
343 <tr><td class="paramdir">[in]</td><td class="paramname">result_shift</td><td>Integer value used to round to nearest division by a power-of-two the result after the fixed point multiplication </td></tr>
344 <tr><td class="paramdir">[in]</td><td class="paramname">result_offset_after_shift</td><td>Offset to be applied to result before converting it back to QASYMM8 </td></tr>
345 <tr><td class="paramdir">[in]</td><td class="paramname">min</td><td>(Optional) Min value used to saturate down the output result before converting back to QASYMM8 </td></tr>
346 <tr><td class="paramdir">[in]</td><td class="paramname">max</td><td>(Optional) Max value used to saturate up the output result before converting back to QASYMM8, Along with <code>min</code>, this value can be used to implement "rectified linear unit" activation functions </td></tr>
351 <p>Referenced by <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00049">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::name()</a>.</p>
355 <a class="anchor" id="ab5656bb5b6334bdbe6e606c715872828"></a>
356 <div class="memitem">
357 <div class="memproto">
358 <table class="mlabels">
360 <td class="mlabels-left">
361 <table class="memname">
363 <td class="memname">const char* name </td>
365 <td class="paramname"></td><td>)</td>
370 <td class="mlabels-right">
371 <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
374 </div><div class="memdoc">
376 <p>Name of the kernel. </p>
377 <dl class="section return"><dt>Returns</dt><dd><a class="el" href="classarm__compute_1_1_kernel.xhtml" title="Kernel class. ">Kernel</a> name </dd></dl>
379 <p>Implements <a class="el" href="classarm__compute_1_1_i_c_p_p_kernel.xhtml#a1a30ad8f276a2310571c36239554831a">ICPPKernel</a>.</p>
381 <p>Definition at line <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00049">49</a> of file <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel.h</a>.</p>
383 <p>References <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a888c69fe3d880ac8001eb92ab74cffb7">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure()</a>, <a class="el" href="namespacearm__compute_1_1test_1_1validation.xhtml#a096668313a9a819d54a2e65ec21ff0cc">arm_compute::test::validation::info()</a>, <a class="el" href="tests_2validation_2_fixed_point_8h_source.xhtml#l00889">arm_compute::test::fixed_point_arithmetic::detail::max()</a>, <a class="el" href="tests_2validation_2_fixed_point_8h_source.xhtml#l00884">arm_compute::test::fixed_point_arithmetic::detail::min()</a>, <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a3d0b72df579c39f4559d541ffce740bd">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel()</a>, <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#afd56f1f0c54f327fcfb4ca91d7d91566">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::operator=()</a>, <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#a112b35dd205c62ea6ed1447ef226da82">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::run()</a>, <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml#ae91454a1d9774df968cdd3694b366ddf">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::validate()</a>, and <a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a3f5646133956f06348b310ccc3d36353">IKernel::window()</a>.</p>
384 <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="keywordflow">return</span> <span class="stringliteral">"NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel"</span>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div></div><!-- fragment -->
387 <a class="anchor" id="afd56f1f0c54f327fcfb4ca91d7d91566"></a>
388 <div class="memitem">
389 <div class="memproto">
390 <table class="mlabels">
392 <td class="mlabels-left">
393 <table class="memname">
395 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a>& operator= </td>
397 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> & </td>
398 <td class="paramname"></td><td>)</td>
403 <td class="mlabels-right">
404 <span class="mlabels"><span class="mlabel">delete</span></span> </td>
407 </div><div class="memdoc">
409 <p>Prevent instances of this class from being copied (As this class contains pointers) </p>
411 <p>Referenced by <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00049">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::name()</a>.</p>
415 <a class="anchor" id="a2709f3f3c7480d4f0e5fb8de1dc4544b"></a>
416 <div class="memitem">
417 <div class="memproto">
418 <table class="mlabels">
420 <td class="mlabels-left">
421 <table class="memname">
423 <td class="memname"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a>& operator= </td>
425 <td class="paramtype"><a class="el" href="classarm__compute_1_1_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a> && </td>
426 <td class="paramname"></td><td>)</td>
431 <td class="mlabels-right">
432 <span class="mlabels"><span class="mlabel">default</span></span> </td>
435 </div><div class="memdoc">
437 <p>Allow instances of this class to be moved. </p>
441 <a class="anchor" id="a112b35dd205c62ea6ed1447ef226da82"></a>
442 <div class="memitem">
443 <div class="memproto">
444 <table class="mlabels">
446 <td class="mlabels-left">
447 <table class="memname">
449 <td class="memname">void run </td>
451 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_window.xhtml">Window</a> & </td>
452 <td class="paramname"><em>window</em>, </td>
455 <td class="paramkey"></td>
457 <td class="paramtype">const <a class="el" href="structarm__compute_1_1_thread_info.xhtml">ThreadInfo</a> & </td>
458 <td class="paramname"><em>info</em> </td>
467 <td class="mlabels-right">
468 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
471 </div><div class="memdoc">
473 <p>Execute the kernel on the passed window. </p>
474 <dl class="section warning"><dt>Warning</dt><dd>If <a class="el" href="classarm__compute_1_1_i_kernel.xhtml#abfab8f0d4928e1081d9f65b77933e24a" title="Indicates whether or not the kernel is parallelisable. ">is_parallelisable()</a> returns false then the passed window must be equal to <a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a3f5646133956f06348b310ccc3d36353" title="The maximum window the kernel can be executed on. ">window()</a></dd></dl>
475 <dl class="section note"><dt>Note</dt><dd>The window has to be a region within the window returned by the <a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a3f5646133956f06348b310ccc3d36353" title="The maximum window the kernel can be executed on. ">window()</a> method</dd>
477 The width of the window has to be a multiple of num_elems_processed_per_iteration().</dd></dl>
478 <dl class="params"><dt>Parameters</dt><dd>
479 <table class="params">
480 <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>Region on which to execute the kernel. (Must be a region of the window returned by <a class="el" href="classarm__compute_1_1_i_kernel.xhtml#a3f5646133956f06348b310ccc3d36353" title="The maximum window the kernel can be executed on. ">window()</a>) </td></tr>
481 <tr><td class="paramdir">[in]</td><td class="paramname">info</td><td>Info about executing thread and CPU. </td></tr>
486 <p>Implements <a class="el" href="classarm__compute_1_1_i_c_p_p_kernel.xhtml#af814ff5e96f40f1cccf809b2b4ee19ef">ICPPKernel</a>.</p>
488 <p>Referenced by <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00049">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::name()</a>.</p>
492 <a class="anchor" id="ae91454a1d9774df968cdd3694b366ddf"></a>
493 <div class="memitem">
494 <div class="memproto">
495 <table class="mlabels">
497 <td class="mlabels-left">
498 <table class="memname">
500 <td class="memname">static <a class="el" href="classarm__compute_1_1_status.xhtml">Status</a> validate </td>
502 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> * </td>
503 <td class="paramname"><em>input</em>, </td>
506 <td class="paramkey"></td>
508 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> * </td>
509 <td class="paramname"><em>bias</em>, </td>
512 <td class="paramkey"></td>
514 <td class="paramtype">const <a class="el" href="classarm__compute_1_1_i_tensor_info.xhtml">ITensorInfo</a> * </td>
515 <td class="paramname"><em>output</em>, </td>
518 <td class="paramkey"></td>
520 <td class="paramtype">int </td>
521 <td class="paramname"><em>min</em> = <code>0</code>, </td>
524 <td class="paramkey"></td>
526 <td class="paramtype">int </td>
527 <td class="paramname"><em>max</em> = <code>0</code> </td>
536 <td class="mlabels-right">
537 <span class="mlabels"><span class="mlabel">static</span></span> </td>
540 </div><div class="memdoc">
542 <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_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a>. </p>
543 <dl class="params"><dt>Parameters</dt><dd>
544 <table class="params">
545 <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Input tensor. Data type supported: S32 </td></tr>
546 <tr><td class="paramdir">[in]</td><td class="paramname">bias</td><td>Biases tensor. Only shared biases supported and it can be a nullptr if the biases addition is not required. Biases are 1D tensor with dimensions [OFM]. Data type supported: Same as <code>input</code>. </td></tr>
547 <tr><td class="paramdir">[in]</td><td class="paramname">output</td><td>Output tensor. Data type supported: Data type supported: QASYMM8 </td></tr>
548 <tr><td class="paramdir">[in]</td><td class="paramname">min</td><td>(Optional) Min value used to saturate down the output result before converting back to QASYMM8 </td></tr>
549 <tr><td class="paramdir">[in]</td><td class="paramname">max</td><td>(Optional) Max value used to saturate up the output result before converting back to QASYMM8, Along with <code>min</code>, this value can be used to implement "rectified linear unit" activation functions</td></tr>
553 <dl class="section return"><dt>Returns</dt><dd>a status </dd></dl>
555 <p>Referenced by <a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml#l00049">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::name()</a>.</p>
559 <hr/>The documentation for this class was generated from the following file:<ul>
560 <li>arm_compute/core/NEON/kernels/<a class="el" href="_n_e_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel_8h_source.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel.h</a></li>
562 </div><!-- contents -->
563 </div><!-- doc-content -->
564 <!-- start footer part -->
565 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
567 <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_g_e_m_m_lowp_quantize_down_int32_to_uint8_scale_by_fixed_point_kernel.xhtml">NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel</a></li>
568 <li class="footer">Generated on Thu Feb 22 2018 15:45:25 for Compute Library by
569 <a href="http://www.doxygen.org/index.html">
570 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>