| <!-- HTML header for doxygen 1.8.15--> |
| <!-- Remember to use version doxygen 1.8.15 +--> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.15"/> |
| <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
| <title>Compute Library: QuantizationInfo Class Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtreedata.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(document).ready(initResizable); |
| /* @license-end */</script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname"> |
|  <span id="projectnumber">19.08</span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.15 --> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| /* @license-end */ |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| /* @license-end */</script> |
| <div id="main-nav"></div> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(document).ready(function(){initNavTree('classarm__compute_1_1_quantization_info.xhtml','');}); |
| /* @license-end */ |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="summary"> |
| <a href="#pub-methods">Public Member Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">QuantizationInfo Class Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p>Quantization information. |
| <a href="classarm__compute_1_1_quantization_info.xhtml#details">More...</a></p> |
| |
| <p><code>#include <<a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>></code></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| Public Member Functions</h2></td></tr> |
| <tr class="memitem:a842ac5aa8863f371e40dbe93936c115c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a842ac5aa8863f371e40dbe93936c115c">QuantizationInfo</a> () noexcept</td></tr> |
| <tr class="memdesc:a842ac5aa8863f371e40dbe93936c115c"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a842ac5aa8863f371e40dbe93936c115c">More...</a><br /></td></tr> |
| <tr class="separator:a842ac5aa8863f371e40dbe93936c115c"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7e1a866e4e1a9493cb941593ce46635c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a7e1a866e4e1a9493cb941593ce46635c">QuantizationInfo</a> (float <a class="el" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a>)</td></tr> |
| <tr class="memdesc:a7e1a866e4e1a9493cb941593ce46635c"><td class="mdescLeft"> </td><td class="mdescRight">Construct quantization info. <a href="#a7e1a866e4e1a9493cb941593ce46635c">More...</a><br /></td></tr> |
| <tr class="separator:a7e1a866e4e1a9493cb941593ce46635c"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af565d3fc3f7d82e9ed5e36dda5377eab"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#af565d3fc3f7d82e9ed5e36dda5377eab">QuantizationInfo</a> (float <a class="el" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a>, int <a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a08ffa53eaabde3e18b003f8182ac09bf">offset</a>)</td></tr> |
| <tr class="memdesc:af565d3fc3f7d82e9ed5e36dda5377eab"><td class="mdescLeft"> </td><td class="mdescRight">Construct quantization info. <a href="#af565d3fc3f7d82e9ed5e36dda5377eab">More...</a><br /></td></tr> |
| <tr class="separator:af565d3fc3f7d82e9ed5e36dda5377eab"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a190ceb53481715aa54ff89b06140dc7d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a190ceb53481715aa54ff89b06140dc7d">QuantizationInfo</a> (std::vector< float > <a class="el" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a>)</td></tr> |
| <tr class="memdesc:a190ceb53481715aa54ff89b06140dc7d"><td class="mdescLeft"> </td><td class="mdescRight">Construct quantization info. <a href="#a190ceb53481715aa54ff89b06140dc7d">More...</a><br /></td></tr> |
| <tr class="separator:a190ceb53481715aa54ff89b06140dc7d"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af21c7fddee28e9aa0a37c633300db0e0"><td class="memItemLeft" align="right" valign="top">const std::vector< float > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a> () const</td></tr> |
| <tr class="memdesc:af21c7fddee28e9aa0a37c633300db0e0"><td class="mdescLeft"> </td><td class="mdescRight">Scale vector accessor. <a href="#af21c7fddee28e9aa0a37c633300db0e0">More...</a><br /></td></tr> |
| <tr class="separator:af21c7fddee28e9aa0a37c633300db0e0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a08ffa53eaabde3e18b003f8182ac09bf"><td class="memItemLeft" align="right" valign="top">const std::vector< int32_t > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a08ffa53eaabde3e18b003f8182ac09bf">offset</a> () const</td></tr> |
| <tr class="memdesc:a08ffa53eaabde3e18b003f8182ac09bf"><td class="mdescLeft"> </td><td class="mdescRight">Offset vector accessor. <a href="#a08ffa53eaabde3e18b003f8182ac09bf">More...</a><br /></td></tr> |
| <tr class="separator:a08ffa53eaabde3e18b003f8182ac09bf"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a644718bb2fb240de962dc3c9a1fdf0dc"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a644718bb2fb240de962dc3c9a1fdf0dc">empty</a> () const</td></tr> |
| <tr class="memdesc:a644718bb2fb240de962dc3c9a1fdf0dc"><td class="mdescLeft"> </td><td class="mdescRight">Indicates whether this <a class="el" href="classarm__compute_1_1_quantization_info.xhtml" title="Quantization information.">QuantizationInfo</a> has valid settings or not. <a href="#a644718bb2fb240de962dc3c9a1fdf0dc">More...</a><br /></td></tr> |
| <tr class="separator:a644718bb2fb240de962dc3c9a1fdf0dc"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a706fc156bcd4c45441bcaad05884b57d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarm__compute_1_1_uniform_quantization_info.xhtml">UniformQuantizationInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml#a706fc156bcd4c45441bcaad05884b57d">uniform</a> () const</td></tr> |
| <tr class="memdesc:a706fc156bcd4c45441bcaad05884b57d"><td class="mdescLeft"> </td><td class="mdescRight">Return per layer quantization info. <a href="#a706fc156bcd4c45441bcaad05884b57d">More...</a><br /></td></tr> |
| <tr class="separator:a706fc156bcd4c45441bcaad05884b57d"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"><p>Quantization information. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00066">66</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| <a id="a842ac5aa8863f371e40dbe93936c115c"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a842ac5aa8863f371e40dbe93936c115c">◆ </a></span>QuantizationInfo() <span class="overload">[1/4]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Default constructor. </p> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00070">70</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  : _scale(),</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  _offset()</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div></div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a7e1a866e4e1a9493cb941593ce46635c"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a7e1a866e4e1a9493cb941593ce46635c">◆ </a></span>QuantizationInfo() <span class="overload">[2/4]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> </td> |
| <td>(</td> |
| <td class="paramtype">float </td> |
| <td class="paramname"><em>scale</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Construct quantization info. </p> |
| <dl class="section note"><dt>Note</dt><dd>Used for symmetric quantization</dd></dl> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Scale. </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00081">81</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  : _scale(1, <a class="code" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a>), _offset()</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</div><div class="ttc" id="classarm__compute_1_1_quantization_info_xhtml_af21c7fddee28e9aa0a37c633300db0e0"><div class="ttname"><a href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">arm_compute::QuantizationInfo::scale</a></div><div class="ttdeci">const std::vector< float > & scale() const</div><div class="ttdoc">Scale vector accessor.</div><div class="ttdef"><b>Definition:</b> <a href="_quantization_info_8h_source.xhtml#l00110">QuantizationInfo.h:110</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="af565d3fc3f7d82e9ed5e36dda5377eab"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#af565d3fc3f7d82e9ed5e36dda5377eab">◆ </a></span>QuantizationInfo() <span class="overload">[3/4]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> </td> |
| <td>(</td> |
| <td class="paramtype">float </td> |
| <td class="paramname"><em>scale</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">int </td> |
| <td class="paramname"><em>offset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Construct quantization info. </p> |
| <dl class="section note"><dt>Note</dt><dd>Used for asymmetric quantization</dd></dl> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Scale. </td></tr> |
| <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>Offset. </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00092">92</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  : _scale(1, <a class="code" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a>), _offset(1, <a class="code" href="classarm__compute_1_1_quantization_info.xhtml#a08ffa53eaabde3e18b003f8182ac09bf">offset</a>)</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="ttc" id="classarm__compute_1_1_quantization_info_xhtml_a08ffa53eaabde3e18b003f8182ac09bf"><div class="ttname"><a href="classarm__compute_1_1_quantization_info.xhtml#a08ffa53eaabde3e18b003f8182ac09bf">arm_compute::QuantizationInfo::offset</a></div><div class="ttdeci">const std::vector< int32_t > & offset() const</div><div class="ttdoc">Offset vector accessor.</div><div class="ttdef"><b>Definition:</b> <a href="_quantization_info_8h_source.xhtml#l00118">QuantizationInfo.h:118</a></div></div> |
| <div class="ttc" id="classarm__compute_1_1_quantization_info_xhtml_af21c7fddee28e9aa0a37c633300db0e0"><div class="ttname"><a href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">arm_compute::QuantizationInfo::scale</a></div><div class="ttdeci">const std::vector< float > & scale() const</div><div class="ttdoc">Scale vector accessor.</div><div class="ttdef"><b>Definition:</b> <a href="_quantization_info_8h_source.xhtml#l00110">QuantizationInfo.h:110</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a190ceb53481715aa54ff89b06140dc7d"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a190ceb53481715aa54ff89b06140dc7d">◆ </a></span>QuantizationInfo() <span class="overload">[4/4]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="classarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::vector< float > </td> |
| <td class="paramname"><em>scale</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Construct quantization info. </p> |
| <dl class="section note"><dt>Note</dt><dd>Used for symmetric per channel quantization</dd></dl> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Scale. </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00102">102</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  : _scale(<a class="code" href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">scale</a>), _offset()</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="ttc" id="classarm__compute_1_1_quantization_info_xhtml_af21c7fddee28e9aa0a37c633300db0e0"><div class="ttname"><a href="classarm__compute_1_1_quantization_info.xhtml#af21c7fddee28e9aa0a37c633300db0e0">arm_compute::QuantizationInfo::scale</a></div><div class="ttdeci">const std::vector< float > & scale() const</div><div class="ttdoc">Scale vector accessor.</div><div class="ttdef"><b>Definition:</b> <a href="_quantization_info_8h_source.xhtml#l00110">QuantizationInfo.h:110</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <h2 class="groupheader">Member Function Documentation</h2> |
| <a id="a644718bb2fb240de962dc3c9a1fdf0dc"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a644718bb2fb240de962dc3c9a1fdf0dc">◆ </a></span>empty()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">bool empty </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Indicates whether this <a class="el" href="classarm__compute_1_1_quantization_info.xhtml" title="Quantization information.">QuantizationInfo</a> has valid settings or not. </p> |
| <dl class="section return"><dt>Returns</dt><dd>True if the this has invalid settings. </dd></dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00126">126</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> _scale.empty() && _offset.empty();</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div></div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00069">arm_compute::test::validation::reference::activation_layer< int16_t >()</a>, <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00058">arm_compute::test::validation::reference::activation_layer< uint8_t >()</a>, <a class="el" href="_graph_builder_8cpp_source.xhtml#l00213">GraphBuilder::add_convolution_node()</a>, <a class="el" href="_graph_builder_8cpp_source.xhtml#l00326">GraphBuilder::add_depthwise_convolution_node()</a>, <a class="el" href="_graph_builder_8cpp_source.xhtml#l00396">GraphBuilder::add_detection_post_process_node()</a>, <a class="el" href="src_2graph_2nodes_2_fully_connected_layer_8cpp_source.xhtml#l00076">FullyConnectedLayerNode::compute_output_descriptor()</a>, <a class="el" href="src_2graph_2nodes_2_fully_connected_layer_8cpp_source.xhtml#l00041">FullyConnectedLayerNode::compute_weights_descriptor()</a>, <a class="el" href="_activation_layer_node_8cpp_source.xhtml#l00057">ActivationLayerNode::configure_output()</a>, <a class="el" href="_concatenate_layer_node_8cpp_source.xhtml#l00098">ConcatenateLayerNode::configure_output()</a>, <a class="el" href="_depthwise_convolution_layer_node_8cpp_source.xhtml#l00110">DepthwiseConvolutionLayerNode::configure_output()</a>, <a class="el" href="_convolution_layer_node_8cpp_source.xhtml#l00121">ConvolutionLayerNode::configure_output()</a>, and <a class="el" href="tests_2validation_2_c_l_2_u_n_i_t_2_tensor_allocator_8cpp_source.xhtml#l00242">arm_compute::test::validation::TEST_CASE()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a08ffa53eaabde3e18b003f8182ac09bf"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a08ffa53eaabde3e18b003f8182ac09bf">◆ </a></span>offset()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const std::vector<int32_t>& offset </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Offset vector accessor. </p> |
| <dl class="section return"><dt>Returns</dt><dd>A reference to quantization offset metadata </dd></dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00118">118</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> _offset;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div></div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_c_l_scale_kernel_8cpp_source.xhtml#l00161">CLScaleKernel::configure()</a>, <a class="el" href="_c_l_dequantization_layer_kernel_8cpp_source.xhtml#l00077">CLDequantizationLayerKernel::configure()</a>, <a class="el" href="_c_l_quantization_layer_kernel_8cpp_source.xhtml#l00075">CLQuantizationLayerKernel::configure()</a>, <a class="el" href="_c_l_normalize_planar_y_u_v_layer_kernel_8cpp_source.xhtml#l00098">CLNormalizePlanarYUVLayerKernel::configure()</a>, <a class="el" href="_c_l_range_kernel_8cpp_source.xhtml#l00093">CLRangeKernel::configure()</a>, <a class="el" href="_c_l_depthwise_im2_col_kernel_8cpp_source.xhtml#l00066">CLDepthwiseIm2ColKernel::configure()</a>, <a class="el" href="_quantization_info_8h_source.xhtml#l00155">arm_compute::operator==()</a>, and <a class="el" href="tests_2validation_2_u_n_i_t_2_tensor_info_8cpp_source.xhtml#l00136">arm_compute::test::validation::TEST_CASE()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="af21c7fddee28e9aa0a37c633300db0e0"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#af21c7fddee28e9aa0a37c633300db0e0">◆ </a></span>scale()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">const std::vector<float>& scale </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Scale vector accessor. </p> |
| <dl class="section return"><dt>Returns</dt><dd>A reference to quantization scale metadata </dd></dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00110">110</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> _scale;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div></div><!-- fragment --> |
| <p class="reference">Referenced by <a class="el" href="_c_l_scale_kernel_8cpp_source.xhtml#l00161">CLScaleKernel::configure()</a>, <a class="el" href="_c_l_dequantization_layer_kernel_8cpp_source.xhtml#l00077">CLDequantizationLayerKernel::configure()</a>, <a class="el" href="_c_l_quantization_layer_kernel_8cpp_source.xhtml#l00075">CLQuantizationLayerKernel::configure()</a>, <a class="el" href="_c_l_normalize_planar_y_u_v_layer_kernel_8cpp_source.xhtml#l00098">CLNormalizePlanarYUVLayerKernel::configure()</a>, <a class="el" href="_c_l_range_kernel_8cpp_source.xhtml#l00093">CLRangeKernel::configure()</a>, <a class="el" href="_c_l_softmax_layer_kernel_8cpp_source.xhtml#l00220">CLLogits1DMaxShiftExpSumKernel::configure()</a>, <a class="el" href="_c_l_softmax_layer_kernel_8cpp_source.xhtml#l00337">CLLogits1DNormKernel::configure()</a>, <a class="el" href="_quantization_info_8h_source.xhtml#l00155">arm_compute::operator==()</a>, and <a class="el" href="tests_2validation_2_u_n_i_t_2_tensor_info_8cpp_source.xhtml#l00136">arm_compute::test::validation::TEST_CASE()</a>.</p> |
| |
| </div> |
| </div> |
| <a id="a706fc156bcd4c45441bcaad05884b57d"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a706fc156bcd4c45441bcaad05884b57d">◆ </a></span>uniform()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="structarm__compute_1_1_uniform_quantization_info.xhtml">UniformQuantizationInfo</a> uniform </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td> const</td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Return per layer quantization info. </p> |
| <dl class="section return"><dt>Returns</dt><dd>Uniform quantization information in case of empty information zero is returned in the respective fields </dd></dl> |
| |
| <p class="definition">Definition at line <a class="el" href="_quantization_info_8h_source.xhtml#l00134">134</a> of file <a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  UniformQuantizationInfo uqinfo;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  uqinfo.scale = _scale.empty() ? 0 : _scale[0];</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  uqinfo.offset = _offset.empty() ? 0 : _offset[0];</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">return</span> uqinfo;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  }</div></div><!-- fragment --> |
| <p class="reference">References <a class="el" href="_quantization_info_8h_source.xhtml#l00062">UniformQuantizationInfo::offset</a>, and <a class="el" href="_quantization_info_8h_source.xhtml#l00061">UniformQuantizationInfo::scale</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_c_l_scale_kernel_8cpp_source.xhtml#l00161">CLScaleKernel::configure()</a>, <a class="el" href="_c_l_pooling_layer_8cpp_source.xhtml#l00033">CLPoolingLayer::configure()</a>, <a class="el" href="_c_l_g_e_m_m_matrix_vector_multiply_kernel_8cpp_source.xhtml#l00083">CLGEMMMatrixVectorMultiplyKernel::configure()</a>, <a class="el" href="_c_l_dequantization_layer_kernel_8cpp_source.xhtml#l00077">CLDequantizationLayerKernel::configure()</a>, <a class="el" href="_n_e_pooling_layer_8cpp_source.xhtml#l00038">NEPoolingLayer::configure()</a>, <a class="el" href="_c_l_quantization_layer_kernel_8cpp_source.xhtml#l00075">CLQuantizationLayerKernel::configure()</a>, <a class="el" href="_c_l_comparison_kernel_8cpp_source.xhtml#l00113">CLComparisonKernel::configure()</a>, <a class="el" href="_c_l_activation_layer_kernel_8cpp_source.xhtml#l00119">CLActivationLayerKernel::configure()</a>, <a class="el" href="_c_l_direct_convolution_layer_8cpp_source.xhtml#l00040">CLDirectConvolutionLayer::configure()</a>, <a class="el" href="_c_l_width_concatenate2_tensors_kernel_8cpp_source.xhtml#l00098">CLWidthConcatenate2TensorsKernel::configure()</a>, <a class="el" href="_c_l_normalize_planar_y_u_v_layer_kernel_8cpp_source.xhtml#l00098">CLNormalizePlanarYUVLayerKernel::configure()</a>, <a class="el" href="_c_l_pixel_wise_multiplication_kernel_8cpp_source.xhtml#l00132">CLPixelWiseMultiplicationKernel::configure()</a>, <a class="el" href="_c_l_pooling_layer_kernel_8cpp_source.xhtml#l00184">CLPoolingLayerKernel::configure()</a>, <a class="el" href="_c_l_width_concatenate_layer_kernel_8cpp_source.xhtml#l00093">CLWidthConcatenateLayerKernel::configure()</a>, <a class="el" href="_c_l_height_concatenate_layer_kernel_8cpp_source.xhtml#l00092">CLHeightConcatenateLayerKernel::configure()</a>, <a class="el" href="_c_l_width_concatenate4_tensors_kernel_8cpp_source.xhtml#l00116">CLWidthConcatenate4TensorsKernel::configure()</a>, <a class="el" href="_c_l_range_kernel_8cpp_source.xhtml#l00093">CLRangeKernel::configure()</a>, <a class="el" href="_c_l_depth_concatenate_layer_kernel_8cpp_source.xhtml#l00085">CLDepthConcatenateLayerKernel::configure()</a>, <a class="el" href="_c_l_depthwise_im2_col_kernel_8cpp_source.xhtml#l00066">CLDepthwiseIm2ColKernel::configure()</a>, <a class="el" href="_c_l_batch_concatenate_layer_kernel_8cpp_source.xhtml#l00090">CLBatchConcatenateLayerKernel::configure()</a>, <a class="el" href="_c_l_direct_convolution_layer_kernel_8cpp_source.xhtml#l00389">CLDirectConvolutionLayerKernel::configure()</a>, <a class="el" href="_c_l_depthwise_convolution_layer_8cpp_source.xhtml#l00047">CLDepthwiseConvolutionLayer3x3::configure()</a>, <a class="el" href="_c_l_g_e_m_m_lowp_matrix_multiply_core_8cpp_source.xhtml#l00075">CLGEMMLowpMatrixMultiplyCore::configure()</a>, <a class="el" href="_n_e_g_e_m_m_lowp_matrix_multiply_core_8cpp_source.xhtml#l00050">NEGEMMLowpMatrixMultiplyCore::configure()</a>, <a class="el" href="_c_l_l_s_t_m_layer_quantized_8cpp_source.xhtml#l00058">CLLSTMLayerQuantized::configure()</a>, <a class="el" href="_n_e_l_s_t_m_layer_quantized_8cpp_source.xhtml#l00057">NELSTMLayerQuantized::configure()</a>, <a class="el" href="_c_l_g_e_m_m_deconvolution_layer_8cpp_source.xhtml#l00186">CLGEMMDeconvolutionLayer::configure()</a>, <a class="el" href="_n_e_fully_connected_layer_8cpp_source.xhtml#l00139">NEFullyConnectedLayer::configure()</a>, <a class="el" href="_c_l_fully_connected_layer_8cpp_source.xhtml#l00140">CLFullyConnectedLayer::configure()</a>, <a class="el" href="_c_l_softmax_layer_kernel_8cpp_source.xhtml#l00220">CLLogits1DMaxShiftExpSumKernel::configure()</a>, <a class="el" href="_c_l_g_e_m_m_convolution_layer_8cpp_source.xhtml#l00177">CLGEMMConvolutionLayer::configure()</a>, <a class="el" href="_c_l_depthwise_convolution_layer_8cpp_source.xhtml#l00256">CLDepthwiseConvolutionLayer::configure()</a>, <a class="el" href="_c_l_softmax_layer_kernel_8cpp_source.xhtml#l00337">CLLogits1DNormKernel::configure()</a>, <a class="el" href="_n_e_depthwise_convolution_layer_8cpp_source.xhtml#l00711">NEDepthwiseConvolutionLayer::configure()</a>, <a class="el" href="tests_2validation_2_helpers_8cpp_source.xhtml#l00123">arm_compute::test::validation::convert_to_asymmetric()</a>, <a class="el" href="tests_2validation_2_helpers_8cpp_source.xhtml#l00136">arm_compute::test::validation::convert_to_symmetric()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00128">arm_compute::test::validation::reference::depthwise_convolution()</a>, <a class="el" href="tests_2validation_2_helpers_8cpp_source.xhtml#l00294">arm_compute::test::validation::get_quantized_bounds()</a>, <a class="el" href="utils_2_type_printer_8h_source.xhtml#l00323">arm_compute::operator<<()</a>, <a class="el" href="validation_2reference_2_quantization_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::quantization_layer()</a>, <a class="el" href="_c_p_p_upsample_kernel_8cpp_source.xhtml#l00068">CPPUpsampleKernel::run()</a>, <a class="el" href="_n_e_width_concatenate_layer_kernel_8cpp_source.xhtml#l00108">NEWidthConcatenateLayerKernel::run()</a>, <a class="el" href="_n_e_height_concatenate_layer_kernel_8cpp_source.xhtml#l00108">NEHeightConcatenateLayerKernel::run()</a>, <a class="el" href="_n_e_pixel_wise_multiplication_kernel_8cpp_source.xhtml#l00694">NEPixelWiseMultiplicationKernel::run()</a>, <a class="el" href="_c_l_g_e_m_m_lowp_matrix_multiply_core_8cpp_source.xhtml#l00237">CLGEMMLowpMatrixMultiplyCore::validate()</a>, <a class="el" href="_n_e_depthwise_convolution_layer_8cpp_source.xhtml#l00230">NEDepthwiseConvolutionLayer3x3::validate()</a>, <a class="el" href="_c_l_depthwise_convolution_layer_8cpp_source.xhtml#l00139">CLDepthwiseConvolutionLayer3x3::validate()</a>, <a class="el" href="_n_e_g_e_m_m_lowp_matrix_multiply_core_8cpp_source.xhtml#l00224">NEGEMMLowpMatrixMultiplyCore::validate()</a>, <a class="el" href="_n_e_fully_connected_layer_8cpp_source.xhtml#l00245">NEFullyConnectedLayer::validate()</a>, <a class="el" href="_c_l_fully_connected_layer_8cpp_source.xhtml#l00249">CLFullyConnectedLayer::validate()</a>, <a class="el" href="_c_l_l_s_t_m_layer_quantized_8cpp_source.xhtml#l00257">CLLSTMLayerQuantized::validate()</a>, <a class="el" href="_n_e_l_s_t_m_layer_quantized_8cpp_source.xhtml#l00236">NELSTMLayerQuantized::validate()</a>, <a class="el" href="_c_l_g_e_m_m_convolution_layer_8cpp_source.xhtml#l00373">CLGEMMConvolutionLayer::validate()</a>, <a class="el" href="_c_l_depthwise_convolution_layer_8cpp_source.xhtml#l00380">CLDepthwiseConvolutionLayer::validate()</a>, <a class="el" href="_n_e_depthwise_convolution_layer_8cpp_source.xhtml#l00560">NEDepthwiseConvolutionLayerOptimized::validate()</a>, and <a class="el" href="_n_e_depthwise_convolution_layer_8cpp_source.xhtml#l00858">NEDepthwiseConvolutionLayer::validate()</a>.</p> |
| |
| </div> |
| </div> |
| <hr/>The documentation for this class was generated from the following file:<ul> |
| <li>arm_compute/core/<a class="el" href="_quantization_info_8h_source.xhtml">QuantizationInfo.h</a></li> |
| </ul> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <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_quantization_info.xhtml">QuantizationInfo</a></li> |
| <li class="footer">Generated on Mon Sep 2 2019 11:47:38 for Compute Library by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |