blob: 2cdbb0b6a9eb81d421ab427ef88754a9503b6c0a [file] [log] [blame]
<!-- 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: src/core/utils/quantization/AsymmHelpers.cpp File 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&amp;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">
&#160;<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&amp;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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_asymm_helpers_8cpp.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="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">AsymmHelpers.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<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 />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;limits&gt;</code><br />
<code>#include &lt;numeric&gt;</code><br />
</div>
<p><a href="_asymm_helpers_8cpp_source.xhtml">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<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>
<tr class="separator:ab153bd5bebd2a695c5d2c79801d0abec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<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>
<tr class="separator:a552dc3787d7ea1675f3e4e8993501d58"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a552dc3787d7ea1675f3e4e8993501d58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a552dc3787d7ea1675f3e4e8993501d58">&#9670;&nbsp;</a></span>epsilon</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">constexpr float epsilon = 0.00001f</td>
</tr>
</table>
</div><div class="memdoc">
<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>
<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>
</div>
</div>
<a id="ab153bd5bebd2a695c5d2c79801d0abec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab153bd5bebd2a695c5d2c79801d0abec">&#9670;&nbsp;</a></span>fixed_point_one_Q0</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">constexpr int64_t fixed_point_one_Q0 = (1LL &lt;&lt; 31)</td>
</tr>
</table>
</div><div class="memdoc">
<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>
<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>
</div>
</div>
</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="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>
<li class="footer">Generated on Mon Sep 2 2019 11:47:30 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>