blob: 2cdbb0b6a9eb81d421ab427ef88754a9503b6c0a [file] [log] [blame]
Jenkins514be652019-02-28 12:25:18 +00001<!-- HTML header for doxygen 1.8.15-->
2<!-- Remember to use version doxygen 1.8.15 +-->
Jenkinsb9abeae2018-11-22 11:58:08 +00003<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml">
5<head>
6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
Jenkins514be652019-02-28 12:25:18 +00008<meta name="generator" content="Doxygen 1.8.15"/>
Jenkinsb9abeae2018-11-22 11:58:08 +00009<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
10<title>Compute Library: src/core/utils/quantization/AsymmHelpers.cpp File Reference</title>
11<link href="tabs.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="jquery.js"></script>
13<script type="text/javascript" src="dynsections.js"></script>
14<link href="navtree.css" rel="stylesheet" type="text/css"/>
15<script type="text/javascript" src="resize.js"></script>
16<script type="text/javascript" src="navtreedata.js"></script>
17<script type="text/javascript" src="navtree.js"></script>
18<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000019/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Jenkinsb9abeae2018-11-22 11:58:08 +000020 $(document).ready(initResizable);
Jenkins514be652019-02-28 12:25:18 +000021/* @license-end */</script>
Jenkinsb9abeae2018-11-22 11:58:08 +000022<link href="search/search.css" rel="stylesheet" type="text/css"/>
23<script type="text/javascript" src="search/searchdata.js"></script>
24<script type="text/javascript" src="search/search.js"></script>
25<script type="text/x-mathjax-config">
26 MathJax.Hub.Config({
27 extensions: ["tex2jax.js"],
28 jax: ["input/TeX","output/HTML-CSS"],
29});
Jenkins514be652019-02-28 12:25:18 +000030</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
Jenkinsb9abeae2018-11-22 11:58:08 +000031<link href="doxygen.css" rel="stylesheet" type="text/css" />
Jenkins514be652019-02-28 12:25:18 +000032<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
Jenkinsb9abeae2018-11-22 11:58:08 +000033</head>
34<body>
35<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
36<div id="titlearea">
37<table cellspacing="0" cellpadding="0">
38 <tbody>
39 <tr style="height: 56px;">
Jenkins514be652019-02-28 12:25:18 +000040 <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"/>
Jenkinsb9abeae2018-11-22 11:58:08 +000041 <td style="padding-left: 0.5em;">
Jenkins514be652019-02-28 12:25:18 +000042 <div id="projectname">
Jenkins975dfe12019-09-02 11:47:54 +010043 &#160;<span id="projectnumber">19.08</span>
Jenkinsb9abeae2018-11-22 11:58:08 +000044 </div>
45 </td>
46 </tr>
47 </tbody>
48</table>
49</div>
50<!-- end header part -->
Jenkins514be652019-02-28 12:25:18 +000051<!-- Generated by Doxygen 1.8.15 -->
Jenkinsb9abeae2018-11-22 11:58:08 +000052<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000053/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Jenkinsb9abeae2018-11-22 11:58:08 +000054var searchBox = new SearchBox("searchBox", "search",false,'Search');
Jenkins514be652019-02-28 12:25:18 +000055/* @license-end */
Jenkinsb9abeae2018-11-22 11:58:08 +000056</script>
57<script type="text/javascript" src="menudata.js"></script>
58<script type="text/javascript" src="menu.js"></script>
59<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000060/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Jenkinsb9abeae2018-11-22 11:58:08 +000061$(function() {
62 initMenu('',true,false,'search.php','Search');
63 $(document).ready(function() { init_search(); });
64});
Jenkins514be652019-02-28 12:25:18 +000065/* @license-end */</script>
Jenkinsb9abeae2018-11-22 11:58:08 +000066<div id="main-nav"></div>
67</div><!-- top -->
68<div id="side-nav" class="ui-resizable side-nav-resizable">
69 <div id="nav-tree">
70 <div id="nav-tree-contents">
71 <div id="nav-sync" class="sync"></div>
72 </div>
73 </div>
74 <div id="splitbar" style="-moz-user-select:none;"
75 class="ui-resizable-handle">
76 </div>
77</div>
78<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000079/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Jenkinsb9abeae2018-11-22 11:58:08 +000080$(document).ready(function(){initNavTree('_asymm_helpers_8cpp.xhtml','');});
Jenkins514be652019-02-28 12:25:18 +000081/* @license-end */
Jenkinsb9abeae2018-11-22 11:58:08 +000082</script>
83<div id="doc-content">
84<!-- window showing the filter options -->
85<div id="MSearchSelectWindow"
86 onmouseover="return searchBox.OnSearchSelectShow()"
87 onmouseout="return searchBox.OnSearchSelectHide()"
88 onkeydown="return searchBox.OnSearchSelectKey(event)">
89</div>
90
91<!-- iframe showing the search results (closed by default) -->
92<div id="MSearchResultsWindow">
93<iframe src="javascript:void(0)" frameborder="0"
94 name="MSearchResults" id="MSearchResults">
95</iframe>
96</div>
97
98<div class="header">
99 <div class="summary">
100<a href="#var-members">Variables</a> </div>
101 <div class="headertitle">
102<div class="title">AsymmHelpers.cpp File Reference</div> </div>
103</div><!--header-->
104<div class="contents">
105<div class="textblock"><code>#include &quot;<a class="el" href="_asymm_helpers_8h_source.xhtml">arm_compute/core/utils/quantization/AsymmHelpers.h</a>&quot;</code><br />
106<code>#include &lt;cmath&gt;</code><br />
107<code>#include &lt;limits&gt;</code><br />
108<code>#include &lt;numeric&gt;</code><br />
109</div>
110<p><a href="_asymm_helpers_8cpp_source.xhtml">Go to the source code of this file.</a></p>
111<table class="memberdecls">
112<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
113Variables</h2></td></tr>
Jenkins4ba87db2019-05-23 17:11:51 +0100114<tr class="memitem:ab153bd5bebd2a695c5d2c79801d0abec"><td class="memItemLeft" align="right" valign="top">constexpr int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_asymm_helpers_8cpp.xhtml#ab153bd5bebd2a695c5d2c79801d0abec">fixed_point_one_Q0</a> = (1LL &lt;&lt; 31)</td></tr>
Jenkinsb9abeae2018-11-22 11:58:08 +0000115<tr class="separator:ab153bd5bebd2a695c5d2c79801d0abec"><td class="memSeparator" colspan="2">&#160;</td></tr>
116<tr class="memitem:a552dc3787d7ea1675f3e4e8993501d58"><td class="memItemLeft" align="right" valign="top">constexpr float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_asymm_helpers_8cpp.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a> = 0.00001f</td></tr>
117<tr class="separator:a552dc3787d7ea1675f3e4e8993501d58"><td class="memSeparator" colspan="2">&#160;</td></tr>
118</table>
119<h2 class="groupheader">Variable Documentation</h2>
120<a id="a552dc3787d7ea1675f3e4e8993501d58"></a>
121<h2 class="memtitle"><span class="permalink"><a href="#a552dc3787d7ea1675f3e4e8993501d58">&#9670;&nbsp;</a></span>epsilon</h2>
122
123<div class="memitem">
124<div class="memproto">
125 <table class="memname">
126 <tr>
127 <td class="memname">constexpr float epsilon = 0.00001f</td>
128 </tr>
129 </table>
130</div><div class="memdoc">
131
132<p class="definition">Definition at line <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00033">33</a> of file <a class="el" href="_asymm_helpers_8cpp_source.xhtml">AsymmHelpers.cpp</a>.</p>
133
Jenkins975dfe12019-09-02 11:47:54 +0100134<p class="reference">Referenced by <a class="el" href="_graph_builder_8cpp_source.xhtml#l00142">GraphBuilder::add_batch_normalization_node()</a>, <a class="el" href="validation_2reference_2_batch_normalization_layer_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::batch_normalization_layer()</a>, <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00035">arm_compute::quantization::calculate_quantized_multiplier_less_than_one()</a>, <a class="el" href="_c_l_mean_std_dev_normalization_layer_8cpp_source.xhtml#l00032">CLMeanStdDevNormalizationLayer::configure()</a>, <a class="el" href="_n_e_mean_std_dev_normalization_layer_8cpp_source.xhtml#l00031">NEMeanStdDevNormalizationLayer::configure()</a>, <a class="el" href="_n_e_l2_normalize_layer_8cpp_source.xhtml#l00041">NEL2NormalizeLayer::configure()</a>, <a class="el" href="_c_l_mean_std_dev_normalization_kernel_8cpp_source.xhtml#l00085">CLMeanStdDevNormalizationKernel::configure()</a>, <a class="el" href="_g_c_batch_normalization_layer_8cpp_source.xhtml#l00040">GCBatchNormalizationLayer::configure()</a>, <a class="el" href="_c_l_l2_normalize_layer_8cpp_source.xhtml#l00047">CLL2NormalizeLayer::configure()</a>, <a class="el" href="_c_l_l2_normalize_layer_kernel_8cpp_source.xhtml#l00098">CLL2NormalizeLayerKernel::configure()</a>, <a class="el" href="_c_l_batch_normalization_layer_8cpp_source.xhtml#l00040">CLBatchNormalizationLayer::configure()</a>, <a class="el" href="_n_e_batch_normalization_layer_8cpp_source.xhtml#l00040">NEBatchNormalizationLayer::configure()</a>, <a class="el" href="_g_c_batch_normalization_layer_kernel_8cpp_source.xhtml#l00139">GCBatchNormalizationLayerKernel::configure()</a>, <a class="el" href="_c_l_fuse_batch_normalization_kernel_8cpp_source.xhtml#l00107">CLFuseBatchNormalizationKernel::configure()</a>, <a class="el" href="_c_l_batch_normalization_layer_kernel_8cpp_source.xhtml#l00139">CLBatchNormalizationLayerKernel::configure()</a>, <a class="el" href="_n_e_mean_std_dev_normalization_kernel_8cpp_source.xhtml#l00154">NEMeanStdDevNormalizationKernel::configure()</a>, <a class="el" href="_c_l_fuse_batch_normalization_8cpp_source.xhtml#l00039">CLFuseBatchNormalization::configure()</a>, <a class="el" href="_n_e_fuse_batch_normalization_8cpp_source.xhtml#l00039">NEFuseBatchNormalization::configure()</a>, <a class="el" href="_n_e_batch_normalization_layer_kernel_8cpp_source.xhtml#l00411">NEBatchNormalizationLayerKernel::configure()</a>, <a class="el" href="_n_e_fuse_batch_normalization_kernel_8cpp_source.xhtml#l00422">NEFuseBatchNormalizationKernel::configure()</a>, <a class="el" href="_fused_depthwise_convolution_batch_normalization_function_8h_source.xhtml#l00070">FusedDepthwiseConvolutionBatchNormalizationFunction&lt; TargetInfo, FusedLayerTypes &gt;::configure()</a>, <a class="el" href="_fused_convolution_batch_normalization_function_8h_source.xhtml#l00072">FusedConvolutionBatchNormalizationFunction&lt; TargetInfo, FusedLayerTypes &gt;::configure()</a>, <a class="el" href="_n_e_optical_flow_8cpp_source.xhtml#l00055">NEOpticalFlow::configure()</a>, <a class="el" href="_c_l_optical_flow_8cpp_source.xhtml#l00060">CLOpticalFlow::configure()</a>, <a class="el" href="_c_l_l_k_tracker_kernel_8cpp_source.xhtml#l00213">CLLKTrackerStage1Kernel::configure()</a>, <a class="el" href="_function_helpers_8h_source.xhtml#l00136">arm_compute::graph::backends::detail::create_batch_normalization_layer()</a>, <a class="el" href="_function_helpers_8h_source.xhtml#l00180">arm_compute::graph::backends::detail::create_fused_convolution_batch_normalization_layer()</a>, <a class="el" href="_function_helpers_8h_source.xhtml#l00229">arm_compute::graph::backends::detail::create_fused_depthwise_convolution_batch_normalization_layer()</a>, <a class="el" href="_assets_library_8h_source.xhtml#l00488">AssetsLibrary::fill_boxes()</a>, <a class="el" href="reference_2_fuse_batch_normalization_8cpp_source.xhtml#l00067">arm_compute::test::validation::reference::fuse_batch_normalization_conv_layer()</a>, <a class="el" href="reference_2_fuse_batch_normalization_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::fuse_batch_normalization_dwc_layer()</a>, <a class="el" href="_node_fusion_mutator_8cpp_source.xhtml#l00043">arm_compute::graph::detail::fuse_convolution_with_batch_normalization()</a>, <a class="el" href="_node_fusion_mutator_8cpp_source.xhtml#l00127">arm_compute::graph::detail::fuse_depthwise_convolution_with_batch_normalization()</a>, <a class="el" href="float__ops_8h_source.xhtml#l00097">arm_compute::helpers::float_ops::is_one()</a>, <a class="el" href="float__ops_8h_source.xhtml#l00109">arm_compute::helpers::float_ops::is_zero()</a>, <a class="el" href="validation_2reference_2_l2_normalize_layer_8cpp_source.xhtml#l00051">arm_compute::test::validation::reference::l2_normalize()</a>, <a class="el" href="l2__normalize_8cl_source.xhtml#l00051">l2_normalize_x()</a>, <a class="el" href="l2__normalize_8cl_source.xhtml#l00094">l2_normalize_y()</a>, <a class="el" href="l2__normalize_8cl_source.xhtml#l00145">l2_normalize_z()</a>, <a class="el" href="optical__flow__pyramid__lk_8cl_source.xhtml#l00361">lktracker_stage1()</a>, <a class="el" href="_validation_8h_source.xhtml#l00335">compare&lt; RelativeTolerance&lt; U &gt; &gt;::operator bool()</a>, <a class="el" href="_random_8h_source.xhtml#l00059">RangedUniformDistribution&lt; T &gt;::RangedUniformDistribution()</a>, <a class="el" href="_n_e_mean_std_dev_normalization_layer_8cpp_source.xhtml#l00038">NEMeanStdDevNormalizationLayer::validate()</a>, <a class="el" href="_c_l_mean_std_dev_normalization_layer_8cpp_source.xhtml#l00039">CLMeanStdDevNormalizationLayer::validate()</a>, <a class="el" href="_c_l_mean_std_dev_normalization_kernel_8cpp_source.xhtml#l00123">CLMeanStdDevNormalizationKernel::validate()</a>, <a class="el" href="_n_e_l2_normalize_layer_8cpp_source.xhtml#l00055">NEL2NormalizeLayer::validate()</a>, <a class="el" href="_c_l_l2_normalize_layer_8cpp_source.xhtml#l00061">CLL2NormalizeLayer::validate()</a>, <a class="el" href="_c_l_l2_normalize_layer_kernel_8cpp_source.xhtml#l00153">CLL2NormalizeLayerKernel::validate()</a>, <a class="el" href="_n_e_mean_std_dev_normalization_kernel_8cpp_source.xhtml#l00187">NEMeanStdDevNormalizationKernel::validate()</a>, <a class="el" href="_c_l_batch_normalization_layer_8cpp_source.xhtml#l00046">CLBatchNormalizationLayer::validate()</a>, <a class="el" href="_n_e_batch_normalization_layer_8cpp_source.xhtml#l00047">NEBatchNormalizationLayer::validate()</a>, <a class="el" href="_g_c_batch_normalization_layer_kernel_8cpp_source.xhtml#l00191">GCBatchNormalizationLayerKernel::validate()</a>, <a class="el" href="_c_l_batch_normalization_layer_kernel_8cpp_source.xhtml#l00207">CLBatchNormalizationLayerKernel::validate()</a>, <a class="el" href="_c_l_fuse_batch_normalization_kernel_8cpp_source.xhtml#l00168">CLFuseBatchNormalizationKernel::validate()</a>, <a class="el" href="_n_e_batch_normalization_layer_kernel_8cpp_source.xhtml#l00456">NEBatchNormalizationLayerKernel::validate()</a>, <a class="el" href="_c_l_fuse_batch_normalization_8cpp_source.xhtml#l00047">CLFuseBatchNormalization::validate()</a>, <a class="el" href="_n_e_fuse_batch_normalization_8cpp_source.xhtml#l00047">NEFuseBatchNormalization::validate()</a>, and <a class="el" href="_n_e_fuse_batch_normalization_kernel_8cpp_source.xhtml#l00498">NEFuseBatchNormalizationKernel::validate()</a>.</p>
Jenkinsb9abeae2018-11-22 11:58:08 +0000135
136</div>
137</div>
138<a id="ab153bd5bebd2a695c5d2c79801d0abec"></a>
139<h2 class="memtitle"><span class="permalink"><a href="#ab153bd5bebd2a695c5d2c79801d0abec">&#9670;&nbsp;</a></span>fixed_point_one_Q0</h2>
140
141<div class="memitem">
142<div class="memproto">
143 <table class="memname">
144 <tr>
Jenkins4ba87db2019-05-23 17:11:51 +0100145 <td class="memname">constexpr int64_t fixed_point_one_Q0 = (1LL &lt;&lt; 31)</td>
Jenkinsb9abeae2018-11-22 11:58:08 +0000146 </tr>
147 </table>
148</div><div class="memdoc">
149
150<p class="definition">Definition at line <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00032">32</a> of file <a class="el" href="_asymm_helpers_8cpp_source.xhtml">AsymmHelpers.cpp</a>.</p>
151
152<p class="reference">Referenced by <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00073">arm_compute::quantization::calculate_quantized_multiplier_greater_than_one()</a>, and <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00035">arm_compute::quantization::calculate_quantized_multiplier_less_than_one()</a>.</p>
153
154</div>
155</div>
156</div><!-- contents -->
157</div><!-- doc-content -->
158<!-- start footer part -->
159<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
160 <ul>
161 <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_a8053b3d69cfefb2b2e6ec7bf9dd5c1a.xhtml">utils</a></li><li class="navelem"><a class="el" href="dir_dfd177d17fe198b2123c626051c4d924.xhtml">quantization</a></li><li class="navelem"><a class="el" href="_asymm_helpers_8cpp.xhtml">AsymmHelpers.cpp</a></li>
Jenkins975dfe12019-09-02 11:47:54 +0100162 <li class="footer">Generated on Mon Sep 2 2019 11:47:30 for Compute Library by
Jenkinsb9abeae2018-11-22 11:58:08 +0000163 <a href="http://www.doxygen.org/index.html">
Jenkins514be652019-02-28 12:25:18 +0000164 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
Jenkinsb9abeae2018-11-22 11:58:08 +0000165 </ul>
166</div>
167</body>
168</html>