Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1 | <!-- HTML header for doxygen 1.8.15--> |
| 2 | <!-- Remember to use version doxygen 1.8.15 +--> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 3 | <!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"/> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 8 | <meta name="generator" content="Doxygen 1.8.15"/> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 9 | <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"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 19 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 20 | $(document).ready(initResizable); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 21 | /* @license-end */</script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 22 | <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 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 30 | </script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 31 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 32 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 33 | </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;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 40 | <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"/> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 41 | <td style="padding-left: 0.5em;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 42 | <div id="projectname"> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame^] | 43 |  <span id="projectnumber">19.08</span> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | </tbody> |
| 48 | </table> |
| 49 | </div> |
| 50 | <!-- end header part --> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 51 | <!-- Generated by Doxygen 1.8.15 --> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 52 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 53 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 54 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 55 | /* @license-end */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 56 | </script> |
| 57 | <script type="text/javascript" src="menudata.js"></script> |
| 58 | <script type="text/javascript" src="menu.js"></script> |
| 59 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 60 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 65 | /* @license-end */</script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 66 | <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"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 79 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 80 | $(document).ready(function(){initNavTree('_asymm_helpers_8cpp.xhtml','');}); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 81 | /* @license-end */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 82 | </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 "<a class="el" href="_asymm_helpers_8h_source.xhtml">arm_compute/core/utils/quantization/AsymmHelpers.h</a>"</code><br /> |
| 106 | <code>#include <cmath></code><br /> |
| 107 | <code>#include <limits></code><br /> |
| 108 | <code>#include <numeric></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> |
| 113 | Variables</h2></td></tr> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 114 | <tr class="memitem:ab153bd5bebd2a695c5d2c79801d0abec"><td class="memItemLeft" align="right" valign="top">constexpr int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="_asymm_helpers_8cpp.xhtml#ab153bd5bebd2a695c5d2c79801d0abec">fixed_point_one_Q0</a> = (1LL << 31)</td></tr> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 115 | <tr class="separator:ab153bd5bebd2a695c5d2c79801d0abec"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a552dc3787d7ea1675f3e4e8993501d58"><td class="memItemLeft" align="right" valign="top">constexpr float </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"> </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">◆ </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 | |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame^] | 134 | <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< TargetInfo, FusedLayerTypes >::configure()</a>, <a class="el" href="_fused_convolution_batch_normalization_function_8h_source.xhtml#l00072">FusedConvolutionBatchNormalizationFunction< TargetInfo, FusedLayerTypes >::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< RelativeTolerance< U > >::operator bool()</a>, <a class="el" href="_random_8h_source.xhtml#l00059">RangedUniformDistribution< T >::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> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 135 | |
| 136 | </div> |
| 137 | </div> |
| 138 | <a id="ab153bd5bebd2a695c5d2c79801d0abec"></a> |
| 139 | <h2 class="memtitle"><span class="permalink"><a href="#ab153bd5bebd2a695c5d2c79801d0abec">◆ </a></span>fixed_point_one_Q0</h2> |
| 140 | |
| 141 | <div class="memitem"> |
| 142 | <div class="memproto"> |
| 143 | <table class="memname"> |
| 144 | <tr> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame] | 145 | <td class="memname">constexpr int64_t fixed_point_one_Q0 = (1LL << 31)</td> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 146 | </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> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame^] | 162 | <li class="footer">Generated on Mon Sep 2 2019 11:47:30 for Compute Library by |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 163 | <a href="http://www.doxygen.org/index.html"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 164 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 165 | </ul> |
| 166 | </div> |
| 167 | </body> |
| 168 | </html> |