Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: QuantizationInput Class Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_quantizer_1_1_quantization_input.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="classarmnn_quantizer_1_1_quantization_input-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">QuantizationInput Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" 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. |
| 92 | <a href="classarmnn_quantizer_1_1_quantization_input.html#details">More...</a></p> |
| 93 | |
| 94 | <p><code>#include <<a class="el" href="_quantization_input_8hpp_source.html">QuantizationInput.hpp</a>></code></p> |
| 95 | <table class="memberdecls"> |
| 96 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 97 | Public Member Functions</h2></td></tr> |
| 98 | <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.html#a675c3bb445f0bff01e8f6c9a1426dff9">QuantizationInput</a> (const unsigned int passId, const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId, const std::string fileName)</td></tr> |
| 99 | <tr class="memdesc:a675c3bb445f0bff01e8f6c9a1426dff9"><td class="mdescLeft"> </td><td class="mdescRight">Constructor for <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" 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> |
| 100 | <tr class="separator:a675c3bb445f0bff01e8f6c9a1426dff9"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <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.html#ae117208189ca122d66e8ba660699ec17">QuantizationInput</a> (const <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html">QuantizationInput</a> &other)</td></tr> |
| 102 | <tr class="separator:ae117208189ca122d66e8ba660699ec17"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <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.html#a5aef942de2fba7f348b803bea7ae6386">AddEntry</a> (const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId, const std::string fileName)</td></tr> |
| 104 | <tr class="separator:a5aef942de2fba7f348b803bea7ae6386"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <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.html#a72a7550077aa69af30ec1f47b1722079">GetDataForEntry</a> (const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId) const</td></tr> |
| 106 | <tr class="separator:a72a7550077aa69af30ec1f47b1722079"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:a9de59439f4028bc1dc7564a453228de9"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.html#a9de59439f4028bc1dc7564a453228de9">GetLayerBindingIds</a> () const</td></tr> |
| 108 | <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.html" 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> |
| 109 | <tr class="separator:a9de59439f4028bc1dc7564a453228de9"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <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.html#a28c7b05540e1e68de490368b19a43655">GetNumberOfInputs</a> () const</td></tr> |
| 111 | <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.html" 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> |
| 112 | <tr class="separator:a28c7b05540e1e68de490368b19a43655"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <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.html#ac2427714ec0d689f7afa72aaa7c6f7c4">GetPassId</a> () const</td></tr> |
| 114 | <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.html" 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> |
| 115 | <tr class="separator:ac2427714ec0d689f7afa72aaa7c6f7c4"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <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.html#ac2cfc1ed70af1cbc07e22a93679b1e2f">GetFileName</a> (const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> bindingId) const</td></tr> |
| 117 | <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> |
| 118 | <tr class="separator:ac2cfc1ed70af1cbc07e22a93679b1e2f"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <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.html#a81cea4a121f841bb893442b3167a2cb7">~QuantizationInput</a> () noexcept</td></tr> |
| 120 | <tr class="memdesc:a81cea4a121f841bb893442b3167a2cb7"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a81cea4a121f841bb893442b3167a2cb7">More...</a><br /></td></tr> |
| 121 | <tr class="separator:a81cea4a121f841bb893442b3167a2cb7"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | </table> |
| 123 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 124 | <div class="textblock"><p><a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" 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> |
| 125 | |
| 126 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8hpp_source.html#l00016">16</a> of file <a class="el" href="_quantization_input_8hpp_source.html">QuantizationInput.hpp</a>.</p> |
| 127 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 128 | <a id="a675c3bb445f0bff01e8f6c9a1426dff9"></a> |
| 129 | <h2 class="memtitle"><span class="permalink"><a href="#a675c3bb445f0bff01e8f6c9a1426dff9">◆ </a></span>QuantizationInput() <span class="overload">[1/2]</span></h2> |
| 130 | |
| 131 | <div class="memitem"> |
| 132 | <div class="memproto"> |
| 133 | <table class="memname"> |
| 134 | <tr> |
| 135 | <td class="memname"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.html">QuantizationInput</a> </td> |
| 136 | <td>(</td> |
| 137 | <td class="paramtype">const unsigned int </td> |
| 138 | <td class="paramname"><em>passId</em>, </td> |
| 139 | </tr> |
| 140 | <tr> |
| 141 | <td class="paramkey"></td> |
| 142 | <td></td> |
| 143 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 144 | <td class="paramname"><em>bindingId</em>, </td> |
| 145 | </tr> |
| 146 | <tr> |
| 147 | <td class="paramkey"></td> |
| 148 | <td></td> |
| 149 | <td class="paramtype">const std::string </td> |
| 150 | <td class="paramname"><em>fileName</em> </td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td></td> |
| 154 | <td>)</td> |
| 155 | <td></td><td></td> |
| 156 | </tr> |
| 157 | </table> |
| 158 | </div><div class="memdoc"> |
| 159 | |
| 160 | <p>Constructor for <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 161 | |
| 162 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00016">16</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 163 | <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 --> |
| 164 | </div> |
| 165 | </div> |
| 166 | <a id="ae117208189ca122d66e8ba660699ec17"></a> |
| 167 | <h2 class="memtitle"><span class="permalink"><a href="#ae117208189ca122d66e8ba660699ec17">◆ </a></span>QuantizationInput() <span class="overload">[2/2]</span></h2> |
| 168 | |
| 169 | <div class="memitem"> |
| 170 | <div class="memproto"> |
| 171 | <table class="memname"> |
| 172 | <tr> |
| 173 | <td class="memname"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.html">QuantizationInput</a> </td> |
| 174 | <td>(</td> |
| 175 | <td class="paramtype">const <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html">QuantizationInput</a> & </td> |
| 176 | <td class="paramname"><em>other</em></td><td>)</td> |
| 177 | <td></td> |
| 178 | </tr> |
| 179 | </table> |
| 180 | </div><div class="memdoc"> |
| 181 | |
| 182 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00024">24</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 183 | |
| 184 | <p class="reference">References <a class="el" href="_quantization_input_8cpp_source.html#l00035">QuantizationInput::AddEntry()</a>, <a class="el" href="_quantization_input_8cpp_source.html#l00086">QuantizationInput::GetFileName()</a>, <a class="el" href="_quantization_input_8cpp_source.html#l00065">QuantizationInput::GetLayerBindingIds()</a>, and <a class="el" href="_quantization_input_8cpp_source.html#l00081">QuantizationInput::GetPassId()</a>.</p> |
| 185 | <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.html#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.html#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_html_a5aef942de2fba7f348b803bea7ae6386"><div class="ttname"><a href="classarmnn_quantizer_1_1_quantization_input.html#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.html#l00035">QuantizationInput.cpp:35</a></div></div> |
| 186 | <div class="ttc" id="namespacearmnn_html_ab8cf8f9fb6792e654c2d8d8382f6f01b"><div class="ttname"><a href="namespacearmnn.html#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.html#l00168">Types.hpp:168</a></div></div> |
| 187 | </div><!-- fragment --> |
| 188 | </div> |
| 189 | </div> |
| 190 | <a id="a81cea4a121f841bb893442b3167a2cb7"></a> |
| 191 | <h2 class="memtitle"><span class="permalink"><a href="#a81cea4a121f841bb893442b3167a2cb7">◆ </a></span>~QuantizationInput()</h2> |
| 192 | |
| 193 | <div class="memitem"> |
| 194 | <div class="memproto"> |
| 195 | <table class="mlabels"> |
| 196 | <tr> |
| 197 | <td class="mlabels-left"> |
| 198 | <table class="memname"> |
| 199 | <tr> |
| 200 | <td class="memname">~<a class="el" href="classarmnn_quantizer_1_1_quantization_input.html">QuantizationInput</a> </td> |
| 201 | <td>(</td> |
| 202 | <td class="paramname"></td><td>)</td> |
| 203 | <td></td> |
| 204 | </tr> |
| 205 | </table> |
| 206 | </td> |
| 207 | <td class="mlabels-right"> |
| 208 | <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> |
| 209 | </tr> |
| 210 | </table> |
| 211 | </div><div class="memdoc"> |
| 212 | |
| 213 | <p>Destructor. </p> |
| 214 | |
| 215 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00099">99</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 216 | <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 --> |
| 217 | </div> |
| 218 | </div> |
| 219 | <h2 class="groupheader">Member Function Documentation</h2> |
| 220 | <a id="a5aef942de2fba7f348b803bea7ae6386"></a> |
| 221 | <h2 class="memtitle"><span class="permalink"><a href="#a5aef942de2fba7f348b803bea7ae6386">◆ </a></span>AddEntry()</h2> |
| 222 | |
| 223 | <div class="memitem"> |
| 224 | <div class="memproto"> |
| 225 | <table class="memname"> |
| 226 | <tr> |
| 227 | <td class="memname">void AddEntry </td> |
| 228 | <td>(</td> |
| 229 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 230 | <td class="paramname"><em>bindingId</em>, </td> |
| 231 | </tr> |
| 232 | <tr> |
| 233 | <td class="paramkey"></td> |
| 234 | <td></td> |
| 235 | <td class="paramtype">const std::string </td> |
| 236 | <td class="paramname"><em>fileName</em> </td> |
| 237 | </tr> |
| 238 | <tr> |
| 239 | <td></td> |
| 240 | <td>)</td> |
| 241 | <td></td><td></td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | </div><div class="memdoc"> |
| 245 | |
| 246 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00035">35</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 247 | |
| 248 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.html#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 249 | <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 --> |
| 250 | </div> |
| 251 | </div> |
| 252 | <a id="a72a7550077aa69af30ec1f47b1722079"></a> |
| 253 | <h2 class="memtitle"><span class="permalink"><a href="#a72a7550077aa69af30ec1f47b1722079">◆ </a></span>GetDataForEntry()</h2> |
| 254 | |
| 255 | <div class="memitem"> |
| 256 | <div class="memproto"> |
| 257 | <table class="memname"> |
| 258 | <tr> |
| 259 | <td class="memname">std::vector< float > GetDataForEntry </td> |
| 260 | <td>(</td> |
| 261 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 262 | <td class="paramname"><em>bindingId</em></td><td>)</td> |
| 263 | <td> const</td> |
| 264 | </tr> |
| 265 | </table> |
| 266 | </div><div class="memdoc"> |
| 267 | |
| 268 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00040">40</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 269 | <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.html">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.html">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_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">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.html#l00046">Exceptions.hpp:46</a></div></div> |
| 270 | </div><!-- fragment --> |
| 271 | </div> |
| 272 | </div> |
| 273 | <a id="ac2cfc1ed70af1cbc07e22a93679b1e2f"></a> |
| 274 | <h2 class="memtitle"><span class="permalink"><a href="#ac2cfc1ed70af1cbc07e22a93679b1e2f">◆ </a></span>GetFileName()</h2> |
| 275 | |
| 276 | <div class="memitem"> |
| 277 | <div class="memproto"> |
| 278 | <table class="memname"> |
| 279 | <tr> |
| 280 | <td class="memname">std::string GetFileName </td> |
| 281 | <td>(</td> |
| 282 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 283 | <td class="paramname"><em>bindingId</em></td><td>)</td> |
| 284 | <td> const</td> |
| 285 | </tr> |
| 286 | </table> |
| 287 | </div><div class="memdoc"> |
| 288 | |
| 289 | <p>Retrieve filename path for specified Layer Binding ID. </p> |
| 290 | |
| 291 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00086">86</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 292 | |
| 293 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.html#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 294 | <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.html">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_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">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.html#l00046">Exceptions.hpp:46</a></div></div> |
| 295 | </div><!-- fragment --> |
| 296 | </div> |
| 297 | </div> |
| 298 | <a id="a9de59439f4028bc1dc7564a453228de9"></a> |
| 299 | <h2 class="memtitle"><span class="permalink"><a href="#a9de59439f4028bc1dc7564a453228de9">◆ </a></span>GetLayerBindingIds()</h2> |
| 300 | |
| 301 | <div class="memitem"> |
| 302 | <div class="memproto"> |
| 303 | <table class="memname"> |
| 304 | <tr> |
| 305 | <td class="memname">std::vector< <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> > GetLayerBindingIds </td> |
| 306 | <td>(</td> |
| 307 | <td class="paramname"></td><td>)</td> |
| 308 | <td> const</td> |
| 309 | </tr> |
| 310 | </table> |
| 311 | </div><div class="memdoc"> |
| 312 | |
| 313 | <p>Retrieve Layer Binding IDs for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 314 | |
| 315 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00065">65</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 316 | |
| 317 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.html#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 318 | <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 --> |
| 319 | </div> |
| 320 | </div> |
| 321 | <a id="a28c7b05540e1e68de490368b19a43655"></a> |
| 322 | <h2 class="memtitle"><span class="permalink"><a href="#a28c7b05540e1e68de490368b19a43655">◆ </a></span>GetNumberOfInputs()</h2> |
| 323 | |
| 324 | <div class="memitem"> |
| 325 | <div class="memproto"> |
| 326 | <table class="memname"> |
| 327 | <tr> |
| 328 | <td class="memname">unsigned long GetNumberOfInputs </td> |
| 329 | <td>(</td> |
| 330 | <td class="paramname"></td><td>)</td> |
| 331 | <td> const</td> |
| 332 | </tr> |
| 333 | </table> |
| 334 | </div><div class="memdoc"> |
| 335 | |
| 336 | <p>Get number of inputs for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 337 | |
| 338 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00076">76</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 339 | <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 --> |
| 340 | </div> |
| 341 | </div> |
| 342 | <a id="ac2427714ec0d689f7afa72aaa7c6f7c4"></a> |
| 343 | <h2 class="memtitle"><span class="permalink"><a href="#ac2427714ec0d689f7afa72aaa7c6f7c4">◆ </a></span>GetPassId()</h2> |
| 344 | |
| 345 | <div class="memitem"> |
| 346 | <div class="memproto"> |
| 347 | <table class="memname"> |
| 348 | <tr> |
| 349 | <td class="memname">unsigned int GetPassId </td> |
| 350 | <td>(</td> |
| 351 | <td class="paramname"></td><td>)</td> |
| 352 | <td> const</td> |
| 353 | </tr> |
| 354 | </table> |
| 355 | </div><div class="memdoc"> |
| 356 | |
| 357 | <p>Retrieve Pass ID for this <a class="el" href="classarmnn_quantizer_1_1_quantization_input.html" title="QuantizationInput for specific pass ID, can list a corresponding raw data file for each LayerBindingI...">QuantizationInput</a>. </p> |
| 358 | |
| 359 | <p class="definition">Definition at line <a class="el" href="_quantization_input_8cpp_source.html#l00081">81</a> of file <a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a>.</p> |
| 360 | |
| 361 | <p class="reference">Referenced by <a class="el" href="_quantization_input_8cpp_source.html#l00024">QuantizationInput::QuantizationInput()</a>.</p> |
| 362 | <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 --> |
| 363 | </div> |
| 364 | </div> |
| 365 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 366 | <li>src/armnnQuantizer/<a class="el" href="_quantization_input_8hpp_source.html">QuantizationInput.hpp</a></li> |
| 367 | <li>src/armnnQuantizer/<a class="el" href="_quantization_input_8cpp_source.html">QuantizationInput.cpp</a></li> |
| 368 | </ul> |
| 369 | </div><!-- contents --> |
| 370 | </div><!-- doc-content --> |
| 371 | <!-- start footer part --> |
| 372 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 373 | <ul> |
| 374 | <li class="navelem"><a class="el" href="namespacearmnn_quantizer.html">armnnQuantizer</a></li><li class="navelem"><a class="el" href="classarmnn_quantizer_1_1_quantization_input.html">QuantizationInput</a></li> |
| 375 | <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by |
| 376 | <a href="http://www.doxygen.org/index.html"> |
| 377 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 378 | </ul> |
| 379 | </div> |
| 380 | </body> |
| 381 | </html> |