Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame^] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: QuantizationInput Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 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"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_quantizer_1_1_quantization_input.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="classarmnn_quantizer_1_1_quantization_input-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">QuantizationInput Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a> for specific pass ID, can list a corresponding raw data file for each LayerBindingId. |
| 106 | <a href="classarmnn_quantizer_1_1_quantization_input.xhtml#details">More...</a></p> |
| 107 | |
| 108 | <p><code>#include <<a class="el" href="_quantization_input_8hpp_source.xhtml">QuantizationInput.hpp</a>></code></p> |
| 109 | <table class="memberdecls"> |
| 110 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 111 | Public Member Functions</h2></td></tr> |
| 112 | <tr class="memitem:a675c3bb445f0bff01e8f6c9a1426dff9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a675c3bb445f0bff01e8f6c9a1426dff9">QuantizationInput</a> (const unsigned int passId, const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId, const std::string fileName)</td></tr> |
| 113 | <tr class="memdesc:a675c3bb445f0bff01e8f6c9a1426dff9"><td class="mdescLeft"> </td><td class="mdescRight">Constructor for <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. <a href="#a675c3bb445f0bff01e8f6c9a1426dff9">More...</a><br /></td></tr> |
| 114 | <tr class="separator:a675c3bb445f0bff01e8f6c9a1426dff9"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:ae117208189ca122d66e8ba660699ec17"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#ae117208189ca122d66e8ba660699ec17">QuantizationInput</a> (const <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml">QuantizationInput</a> &other)</td></tr> |
| 116 | <tr class="separator:ae117208189ca122d66e8ba660699ec17"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a5aef942de2fba7f348b803bea7ae6386"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a5aef942de2fba7f348b803bea7ae6386">AddEntry</a> (const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId, const std::string fileName)</td></tr> |
| 118 | <tr class="separator:a5aef942de2fba7f348b803bea7ae6386"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a72a7550077aa69af30ec1f47b1722079"><td class="memItemLeft" align="right" valign="top">std::vector< float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a72a7550077aa69af30ec1f47b1722079">GetDataForEntry</a> (const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId) const</td></tr> |
| 120 | <tr class="separator:a72a7550077aa69af30ec1f47b1722079"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a9de59439f4028bc1dc7564a453228de9"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a9de59439f4028bc1dc7564a453228de9">GetLayerBindingIds</a> () const</td></tr> |
| 122 | <tr class="memdesc:a9de59439f4028bc1dc7564a453228de9"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve Layer Binding IDs for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. <a href="#a9de59439f4028bc1dc7564a453228de9">More...</a><br /></td></tr> |
| 123 | <tr class="separator:a9de59439f4028bc1dc7564a453228de9"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a28c7b05540e1e68de490368b19a43655"><td class="memItemLeft" align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a28c7b05540e1e68de490368b19a43655">GetNumberOfInputs</a> () const</td></tr> |
| 125 | <tr class="memdesc:a28c7b05540e1e68de490368b19a43655"><td class="mdescLeft"> </td><td class="mdescRight">Get number of inputs for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. <a href="#a28c7b05540e1e68de490368b19a43655">More...</a><br /></td></tr> |
| 126 | <tr class="separator:a28c7b05540e1e68de490368b19a43655"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:ac2427714ec0d689f7afa72aaa7c6f7c4"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#ac2427714ec0d689f7afa72aaa7c6f7c4">GetPassId</a> () const</td></tr> |
| 128 | <tr class="memdesc:ac2427714ec0d689f7afa72aaa7c6f7c4"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve Pass ID for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. <a href="#ac2427714ec0d689f7afa72aaa7c6f7c4">More...</a><br /></td></tr> |
| 129 | <tr class="separator:ac2427714ec0d689f7afa72aaa7c6f7c4"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:ac2cfc1ed70af1cbc07e22a93679b1e2f"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#ac2cfc1ed70af1cbc07e22a93679b1e2f">GetFileName</a> (const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId) const</td></tr> |
| 131 | <tr class="memdesc:ac2cfc1ed70af1cbc07e22a93679b1e2f"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve filename path for specified Layer Binding ID. <a href="#ac2cfc1ed70af1cbc07e22a93679b1e2f">More...</a><br /></td></tr> |
| 132 | <tr class="separator:ac2cfc1ed70af1cbc07e22a93679b1e2f"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a81cea4a121f841bb893442b3167a2cb7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a81cea4a121f841bb893442b3167a2cb7">~QuantizationInput</a> () noexcept</td></tr> |
| 134 | <tr class="memdesc:a81cea4a121f841bb893442b3167a2cb7"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a81cea4a121f841bb893442b3167a2cb7">More...</a><br /></td></tr> |
| 135 | <tr class="separator:a81cea4a121f841bb893442b3167a2cb7"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | </table> |
| 137 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 138 | <div class="textblock"><p><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a> for specific pass ID, can list a corresponding raw data file for each LayerBindingId. </p> |
| 139 | |
| 140 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8hpp_source.xhtml#l00016">16</a> of file <a class="el" href="_quantization_input_8hpp_source.xhtml">QuantizationInput.hpp</a>.</p> |
| 141 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 142 | <a id="a675c3bb445f0bff01e8f6c9a1426dff9"></a> |
| 143 | <h2 class="memtitle"><span class="permalink"><a href="#a675c3bb445f0bff01e8f6c9a1426dff9">◆ </a></span>QuantizationInput() <span class="overload">[1/2]</span></h2> |
| 144 | |
| 145 | <div class="memitem"> |
| 146 | <div class="memproto"> |
| 147 | <table class="memname"> |
| 148 | <tr> |
| 149 | <td class="memname"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml">QuantizationInput</a> </td> |
| 150 | <td>(</td> |
| 151 | <td class="paramtype">const unsigned int </td> |
| 152 | <td class="paramname"><em>passId</em>, </td> |
| 153 | </tr> |
| 154 | <tr> |
| 155 | <td class="paramkey"></td> |
| 156 | <td></td> |
| 157 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 158 | <td class="paramname"><em>bindingId</em>, </td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td class="paramkey"></td> |
| 162 | <td></td> |
| 163 | <td class="paramtype">const std::string </td> |
| 164 | <td class="paramname"><em>fileName</em> </td> |
| 165 | </tr> |
| 166 | <tr> |
| 167 | <td></td> |
| 168 | <td>)</td> |
| 169 | <td></td><td></td> |
| 170 | </tr> |
| 171 | </table> |
| 172 | </div><div class="memdoc"> |
| 173 | |
| 174 | <p>Constructor for <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 175 | |
| 176 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00016">16</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 177 | <div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  :</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  m_PassId(passId)</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  m_LayerBindingIdToFileName.emplace(bindingId, fileName);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</div></div><!-- fragment --> |
| 178 | </div> |
| 179 | </div> |
| 180 | <a id="ae117208189ca122d66e8ba660699ec17"></a> |
| 181 | <h2 class="memtitle"><span class="permalink"><a href="#ae117208189ca122d66e8ba660699ec17">◆ </a></span>QuantizationInput() <span class="overload">[2/2]</span></h2> |
| 182 | |
| 183 | <div class="memitem"> |
| 184 | <div class="memproto"> |
| 185 | <table class="memname"> |
| 186 | <tr> |
| 187 | <td class="memname"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml">QuantizationInput</a> </td> |
| 188 | <td>(</td> |
| 189 | <td class="paramtype">const <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml">QuantizationInput</a> & </td> |
| 190 | <td class="paramname"><em>other</em></td><td>)</td> |
| 191 | <td></td> |
| 192 | </tr> |
| 193 | </table> |
| 194 | </div><div class="memdoc"> |
| 195 | |
| 196 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00024">24</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 197 | |
| 198 | <p class="reference">References <a class="el" href="_quantization_input_8cpp_source.xhtml#l00035">QuantizationInput::AddEntry()</a>, <a class="el" href="_quantization_input_8cpp_source.xhtml#l00086">QuantizationInput::GetFileName()</a>, <a class="el" href="_quantization_input_8cpp_source.xhtml#l00065">QuantizationInput::GetLayerBindingIds()</a>, and <a class="el" href="_quantization_input_8cpp_source.xhtml#l00081">QuantizationInput::GetPassId()</a>.</p> |
| 199 | <div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  m_PassId = other.GetPassId();</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  m_LayerBindingIdToFileName.clear();</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">for</span> (<a class="code" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId : other.GetLayerBindingIds())</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  std::string filename = other.GetFileName(bindingId);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="classarmnn_quantizer_1_1_quantization_input.xhtml#a5aef942de2fba7f348b803bea7ae6386">AddEntry</a>(bindingId, filename);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div><div class="ttc" id="classarmnn_quantizer_1_1_quantization_input_xhtml_a5aef942de2fba7f348b803bea7ae6386"><div class="ttname"><a href="classarmnn_quantizer_1_1_quantization_input.xhtml#a5aef942de2fba7f348b803bea7ae6386">armnnQuantizer::QuantizationInput::AddEntry</a></div><div class="ttdeci">void AddEntry(const armnn::LayerBindingId bindingId, const std::string fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_quantization_input_8cpp_source.xhtml#l00035">QuantizationInput.cpp:35</a></div></div> |
| 200 | <div class="ttc" id="namespacearmnn_xhtml_ab8cf8f9fb6792e654c2d8d8382f6f01b"><div class="ttname"><a href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a></div><div class="ttdeci">int LayerBindingId</div><div class="ttdoc">Type of identifiers for bindable layers (inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00171">Types.hpp:171</a></div></div> |
| 201 | </div><!-- fragment --> |
| 202 | </div> |
| 203 | </div> |
| 204 | <a id="a81cea4a121f841bb893442b3167a2cb7"></a> |
| 205 | <h2 class="memtitle"><span class="permalink"><a href="#a81cea4a121f841bb893442b3167a2cb7">◆ </a></span>~QuantizationInput()</h2> |
| 206 | |
| 207 | <div class="memitem"> |
| 208 | <div class="memproto"> |
| 209 | <table class="mlabels"> |
| 210 | <tr> |
| 211 | <td class="mlabels-left"> |
| 212 | <table class="memname"> |
| 213 | <tr> |
| 214 | <td class="memname">~<a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml">QuantizationInput</a> </td> |
| 215 | <td>(</td> |
| 216 | <td class="paramname"></td><td>)</td> |
| 217 | <td></td> |
| 218 | </tr> |
| 219 | </table> |
| 220 | </td> |
| 221 | <td class="mlabels-right"> |
| 222 | <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> |
| 223 | </tr> |
| 224 | </table> |
| 225 | </div><div class="memdoc"> |
| 226 | |
| 227 | <p>Destructor. </p> |
| 228 | |
| 229 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00099">99</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 230 | <div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div></div><!-- fragment --> |
| 231 | </div> |
| 232 | </div> |
| 233 | <h2 class="groupheader">Member Function Documentation</h2> |
| 234 | <a id="a5aef942de2fba7f348b803bea7ae6386"></a> |
| 235 | <h2 class="memtitle"><span class="permalink"><a href="#a5aef942de2fba7f348b803bea7ae6386">◆ </a></span>AddEntry()</h2> |
| 236 | |
| 237 | <div class="memitem"> |
| 238 | <div class="memproto"> |
| 239 | <table class="memname"> |
| 240 | <tr> |
| 241 | <td class="memname">void AddEntry </td> |
| 242 | <td>(</td> |
| 243 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 244 | <td class="paramname"><em>bindingId</em>, </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td class="paramkey"></td> |
| 248 | <td></td> |
| 249 | <td class="paramtype">const std::string </td> |
| 250 | <td class="paramname"><em>fileName</em> </td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td></td> |
| 254 | <td>)</td> |
| 255 | <td></td><td></td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00035">35</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 261 | |
| 262 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.xhtml#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 263 | <div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  m_LayerBindingIdToFileName.emplace(bindingId, fileName);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> }</div></div><!-- fragment --> |
| 264 | </div> |
| 265 | </div> |
| 266 | <a id="a72a7550077aa69af30ec1f47b1722079"></a> |
| 267 | <h2 class="memtitle"><span class="permalink"><a href="#a72a7550077aa69af30ec1f47b1722079">◆ </a></span>GetDataForEntry()</h2> |
| 268 | |
| 269 | <div class="memitem"> |
| 270 | <div class="memproto"> |
| 271 | <table class="memname"> |
| 272 | <tr> |
| 273 | <td class="memname">std::vector< float > GetDataForEntry </td> |
| 274 | <td>(</td> |
| 275 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 276 | <td class="paramname"><em>bindingId</em></td><td>)</td> |
| 277 | <td> const</td> |
| 278 | </tr> |
| 279 | </table> |
| 280 | </div><div class="memdoc"> |
| 281 | |
| 282 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00040">40</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 283 | <div class="fragment"><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">if</span> (m_LayerBindingIdToFileName.at(bindingId).empty())</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(<span class="stringliteral">"Layer binding ID not found"</span>);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  std::string fileName = m_LayerBindingIdToFileName.at(bindingId);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  std::ifstream in(fileName.c_str(), std::ifstream::binary);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> (!in.is_open())</div><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">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(<span class="stringliteral">"Failed to open input tensor file "</span> + fileName);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  std::string line;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::vector<float> values;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">char</span>* pEnd;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">while</span> (std::getline(in, line, <span class="charliteral">' '</span>))</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  values.emplace_back(std::strtof(line.c_str(), &pEnd));</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> values;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div><div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00046">Exceptions.hpp:46</a></div></div> |
| 284 | </div><!-- fragment --> |
| 285 | </div> |
| 286 | </div> |
| 287 | <a id="ac2cfc1ed70af1cbc07e22a93679b1e2f"></a> |
| 288 | <h2 class="memtitle"><span class="permalink"><a href="#ac2cfc1ed70af1cbc07e22a93679b1e2f">◆ </a></span>GetFileName()</h2> |
| 289 | |
| 290 | <div class="memitem"> |
| 291 | <div class="memproto"> |
| 292 | <table class="memname"> |
| 293 | <tr> |
| 294 | <td class="memname">std::string GetFileName </td> |
| 295 | <td>(</td> |
| 296 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 297 | <td class="paramname"><em>bindingId</em></td><td>)</td> |
| 298 | <td> const</td> |
| 299 | </tr> |
| 300 | </table> |
| 301 | </div><div class="memdoc"> |
| 302 | |
| 303 | <p>Retrieve filename path for specified Layer Binding ID. </p> |
| 304 | |
| 305 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00086">86</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 306 | |
| 307 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.xhtml#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 308 | <div class="fragment"><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">auto</span> iterator = m_LayerBindingIdToFileName.find(bindingId);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (iterator != m_LayerBindingIdToFileName.end())</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> m_LayerBindingIdToFileName.at(bindingId);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">else</span></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>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(<span class="stringliteral">"Could not retrieve filename for binding ID "</span> + std::to_string(bindingId));</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div><div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00046">Exceptions.hpp:46</a></div></div> |
| 309 | </div><!-- fragment --> |
| 310 | </div> |
| 311 | </div> |
| 312 | <a id="a9de59439f4028bc1dc7564a453228de9"></a> |
| 313 | <h2 class="memtitle"><span class="permalink"><a href="#a9de59439f4028bc1dc7564a453228de9">◆ </a></span>GetLayerBindingIds()</h2> |
| 314 | |
| 315 | <div class="memitem"> |
| 316 | <div class="memproto"> |
| 317 | <table class="memname"> |
| 318 | <tr> |
| 319 | <td class="memname">std::vector< <a class="el" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> > GetLayerBindingIds </td> |
| 320 | <td>(</td> |
| 321 | <td class="paramname"></td><td>)</td> |
| 322 | <td> const</td> |
| 323 | </tr> |
| 324 | </table> |
| 325 | </div><div class="memdoc"> |
| 326 | |
| 327 | <p>Retrieve Layer Binding IDs for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 328 | |
| 329 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00065">65</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 330 | |
| 331 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.xhtml#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 332 | <div class="fragment"><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  std::vector<armnn::LayerBindingId> layerBindingIDs;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> iterator = m_LayerBindingIdToFileName.begin(); iterator != m_LayerBindingIdToFileName.end(); ++iterator)</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  layerBindingIDs.emplace_back(iterator->first);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> layerBindingIDs;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> }</div></div><!-- fragment --> |
| 333 | </div> |
| 334 | </div> |
| 335 | <a id="a28c7b05540e1e68de490368b19a43655"></a> |
| 336 | <h2 class="memtitle"><span class="permalink"><a href="#a28c7b05540e1e68de490368b19a43655">◆ </a></span>GetNumberOfInputs()</h2> |
| 337 | |
| 338 | <div class="memitem"> |
| 339 | <div class="memproto"> |
| 340 | <table class="memname"> |
| 341 | <tr> |
| 342 | <td class="memname">unsigned long GetNumberOfInputs </td> |
| 343 | <td>(</td> |
| 344 | <td class="paramname"></td><td>)</td> |
| 345 | <td> const</td> |
| 346 | </tr> |
| 347 | </table> |
| 348 | </div><div class="memdoc"> |
| 349 | |
| 350 | <p>Get number of inputs for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 351 | |
| 352 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00076">76</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 353 | <div class="fragment"><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> m_LayerBindingIdToFileName.size();</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div></div><!-- fragment --> |
| 354 | </div> |
| 355 | </div> |
| 356 | <a id="ac2427714ec0d689f7afa72aaa7c6f7c4"></a> |
| 357 | <h2 class="memtitle"><span class="permalink"><a href="#ac2427714ec0d689f7afa72aaa7c6f7c4">◆ </a></span>GetPassId()</h2> |
| 358 | |
| 359 | <div class="memitem"> |
| 360 | <div class="memproto"> |
| 361 | <table class="memname"> |
| 362 | <tr> |
| 363 | <td class="memname">unsigned int GetPassId </td> |
| 364 | <td>(</td> |
| 365 | <td class="paramname"></td><td>)</td> |
| 366 | <td> const</td> |
| 367 | </tr> |
| 368 | </table> |
| 369 | </div><div class="memdoc"> |
| 370 | |
| 371 | <p>Retrieve Pass ID for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 372 | |
| 373 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.xhtml#l00081">81</a> of file <a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a>.</p> |
| 374 | |
| 375 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.xhtml#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 376 | <div class="fragment"><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> {</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> m_PassId;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div></div><!-- fragment --> |
| 377 | </div> |
| 378 | </div> |
| 379 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 380 | <li>src/armnnQuantizer/<a class="el" href="_quantization_input_8hpp_source.xhtml">QuantizationInput.hpp</a></li> |
| 381 | <li>src/armnnQuantizer/<a class="el" href="_quantization_input_8cpp_source.xhtml">QuantizationInput.cpp</a></li> |
| 382 | </ul> |
| 383 | </div><!-- contents --> |
| 384 | </div><!-- doc-content --> |
| 385 | <!-- start footer part --> |
| 386 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 387 | <ul> |
| 388 | <li class="navelem"><a class="el" href="namespacearmnn_quantizer.xhtml">armnnQuantizer</a></li><li class="navelem"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.xhtml">QuantizationInput</a></li> |
| 389 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 390 | <a href="http://www.doxygen.org/index.html"> |
| 391 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 392 | </ul> |
| 393 | </div> |
| 394 | </body> |
| 395 | </html> |