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: armnnDeserializer Namespace 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('namespacearmnn_deserializer.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="#nested-classes">Classes</a> | |
| 99 | <a href="#typedef-members">Typedefs</a> | |
| 100 | <a href="#func-members">Functions</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">armnnDeserializer Namespace Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | <table class="memberdecls"> |
| 106 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> |
| 107 | Classes</h2></td></tr> |
| 108 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_deserializer_1_1_binding_point_info.xhtml">BindingPointInfo</a></td></tr> |
| 109 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.xhtml">Deserializer</a></td></tr> |
| 111 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_i_deserializer.xhtml">IDeserializer</a></td></tr> |
| 113 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | </table><table class="memberdecls"> |
| 115 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> |
| 116 | Typedefs</h2></td></tr> |
| 117 | <tr class="memitem:ad33c6040680106b9af566d7269d8c949"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#ad33c6040680106b9af566d7269d8c949">IDeserializerPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.xhtml">IDeserializer</a>, void(*)(<a class="el" href="classarmnn_deserializer_1_1_i_deserializer.xhtml">IDeserializer</a> *parser)></td></tr> |
| 118 | <tr class="separator:ad33c6040680106b9af566d7269d8c949"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | </table><table class="memberdecls"> |
| 120 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 121 | Functions</h2></td></tr> |
| 122 | <tr class="memitem:a97b50f22cd99f0e09e6e48d20a35f6b2"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a97b50f22cd99f0e09e6e48d20a35f6b2">CheckShape</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &actual, const std::vector< uint32_t > &expected)</td></tr> |
| 123 | <tr class="separator:a97b50f22cd99f0e09e6e48d20a35f6b2"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:aede2265569640ae0af1c5520c8a66829"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#aede2265569640ae0af1c5520c8a66829">ToDataLayout</a> (armnnSerializer::DataLayout dataLayout)</td></tr> |
| 125 | <tr class="separator:aede2265569640ae0af1c5520c8a66829"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a2ee1264a9803ff8dc1323a26f1f4c986"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9ea">armnn::ActivationFunction</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a2ee1264a9803ff8dc1323a26f1f4c986">ToActivationFunction</a> (armnnSerializer::ActivationFunction function)</td></tr> |
| 127 | <tr class="separator:a2ee1264a9803ff8dc1323a26f1f4c986"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a8fb47fe218330370a5c9c066ac1571ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeae">armnn::ArgMinMaxFunction</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a8fb47fe218330370a5c9c066ac1571ea">ToArgMinMaxFunction</a> (armnnSerializer::ArgMinMaxFunction function)</td></tr> |
| 129 | <tr class="separator:a8fb47fe218330370a5c9c066ac1571ea"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:a28f896fb78cdf6607b61c196c98b2570"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58c">armnn::ComparisonOperation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a28f896fb78cdf6607b61c196c98b2570">ToComparisonOperation</a> (armnnSerializer::ComparisonOperation operation)</td></tr> |
| 131 | <tr class="separator:a28f896fb78cdf6607b61c196c98b2570"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a7c8f847778ed77469bd6ddbd5158ae4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8">armnn::UnaryOperation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a7c8f847778ed77469bd6ddbd5158ae4e">ToUnaryOperation</a> (armnnSerializer::UnaryOperation operation)</td></tr> |
| 133 | <tr class="separator:a7c8f847778ed77469bd6ddbd5158ae4e"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a8b51e137fab21d758b965c6c6e3b02f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4">armnn::ResizeMethod</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a8b51e137fab21d758b965c6c6e3b02f3">ToResizeMethod</a> (armnnSerializer::ResizeMethod method)</td></tr> |
| 135 | <tr class="separator:a8b51e137fab21d758b965c6c6e3b02f3"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:aa28868b7dc87dc4d957db6c775a591c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">ToTensorInfo</a> (<a class="el" href="classarmnn_deserializer_1_1_deserializer.xhtml#a80888061963ddd18e87105807a035d9a">Deserializer::TensorRawPtr</a> tensorPtr)</td></tr> |
| 137 | <tr class="separator:aa28868b7dc87dc4d957db6c775a591c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:a4acbc36201effcfd40e3a4d45d742b24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a4acbc36201effcfd40e3a4d45d742b24">ToConstTensor</a> (<a class="el" href="classarmnn_deserializer_1_1_deserializer.xhtml#a68b76ee033fdd629404369171c3d4f90">Deserializer::ConstTensorRawPtr</a> constTensorPtr)</td></tr> |
| 139 | <tr class="separator:a4acbc36201effcfd40e3a4d45d742b24"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:a63d3841a5ebb0a5ce572cfb4cb634376"><td class="memItemLeft" align="right" valign="top">const armnnSerializer::OriginsDescriptor * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_deserializer.xhtml#a63d3841a5ebb0a5ce572cfb4cb634376">GetOriginsDescriptor</a> (const armnnSerializer::SerializedGraph *graph, unsigned int layerIndex)</td></tr> |
| 141 | <tr class="separator:a63d3841a5ebb0a5ce572cfb4cb634376"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | </table> |
| 143 | <h2 class="groupheader">Typedef Documentation</h2> |
| 144 | <a id="ad33c6040680106b9af566d7269d8c949"></a> |
| 145 | <h2 class="memtitle"><span class="permalink"><a href="#ad33c6040680106b9af566d7269d8c949">◆ </a></span>IDeserializerPtr</h2> |
| 146 | |
| 147 | <div class="memitem"> |
| 148 | <div class="memproto"> |
| 149 | <table class="memname"> |
| 150 | <tr> |
| 151 | <td class="memname">using <a class="el" href="namespacearmnn_deserializer.xhtml#ad33c6040680106b9af566d7269d8c949">IDeserializerPtr</a> = std::unique_ptr<<a class="el" href="classarmnn_deserializer_1_1_i_deserializer.xhtml">IDeserializer</a>, void(*)(<a class="el" href="classarmnn_deserializer_1_1_i_deserializer.xhtml">IDeserializer</a>* parser)></td> |
| 152 | </tr> |
| 153 | </table> |
| 154 | </div><div class="memdoc"> |
| 155 | |
| 156 | <p class="definition">Definition at line <a class="el" href="_i_deserializer_8hpp_source.xhtml#l00025">25</a> of file <a class="el" href="_i_deserializer_8hpp_source.xhtml">IDeserializer.hpp</a>.</p> |
| 157 | |
| 158 | </div> |
| 159 | </div> |
| 160 | <h2 class="groupheader">Function Documentation</h2> |
| 161 | <a id="a97b50f22cd99f0e09e6e48d20a35f6b2"></a> |
| 162 | <h2 class="memtitle"><span class="permalink"><a href="#a97b50f22cd99f0e09e6e48d20a35f6b2">◆ </a></span>CheckShape()</h2> |
| 163 | |
| 164 | <div class="memitem"> |
| 165 | <div class="memproto"> |
| 166 | <table class="memname"> |
| 167 | <tr> |
| 168 | <td class="memname">bool armnnDeserializer::CheckShape </td> |
| 169 | <td>(</td> |
| 170 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> & </td> |
| 171 | <td class="paramname"><em>actual</em>, </td> |
| 172 | </tr> |
| 173 | <tr> |
| 174 | <td class="paramkey"></td> |
| 175 | <td></td> |
| 176 | <td class="paramtype">const std::vector< uint32_t > & </td> |
| 177 | <td class="paramname"><em>expected</em> </td> |
| 178 | </tr> |
| 179 | <tr> |
| 180 | <td></td> |
| 181 | <td>)</td> |
| 182 | <td></td><td></td> |
| 183 | </tr> |
| 184 | </table> |
| 185 | </div><div class="memdoc"> |
| 186 | |
| 187 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00167">167</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 188 | |
| 189 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.xhtml#l00043">TensorShape::GetNumDimensions()</a>.</p> |
| 190 | |
| 191 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l01938">Deserializer::OutputShapeOfReshape()</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>.</p> |
| 192 | <div class="fragment"><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> actualSize = actual.<a class="code" href="classarmnn_1_1_tensor_shape.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>();</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">if</span> (actualSize != expected.size())</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  {</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0u; i < actualSize; i++)</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span> (actual[i] != static_cast<unsigned int>(expected[i]))</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  }</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00043">Tensor.hpp:43</a></div></div> |
| 193 | </div><!-- fragment --> |
| 194 | </div> |
| 195 | </div> |
| 196 | <a id="a63d3841a5ebb0a5ce572cfb4cb634376"></a> |
| 197 | <h2 class="memtitle"><span class="permalink"><a href="#a63d3841a5ebb0a5ce572cfb4cb634376">◆ </a></span>GetOriginsDescriptor()</h2> |
| 198 | |
| 199 | <div class="memitem"> |
| 200 | <div class="memproto"> |
| 201 | <table class="memname"> |
| 202 | <tr> |
| 203 | <td class="memname">const armnnSerializer::OriginsDescriptor* armnnDeserializer::GetOriginsDescriptor </td> |
| 204 | <td>(</td> |
| 205 | <td class="paramtype">const armnnSerializer::SerializedGraph * </td> |
| 206 | <td class="paramname"><em>graph</em>, </td> |
| 207 | </tr> |
| 208 | <tr> |
| 209 | <td class="paramkey"></td> |
| 210 | <td></td> |
| 211 | <td class="paramtype">unsigned int </td> |
| 212 | <td class="paramname"><em>layerIndex</em> </td> |
| 213 | </tr> |
| 214 | <tr> |
| 215 | <td></td> |
| 216 | <td>)</td> |
| 217 | <td></td><td></td> |
| 218 | </tr> |
| 219 | </table> |
| 220 | </div><div class="memdoc"> |
| 221 | |
| 222 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l01554">1554</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 223 | |
| 224 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.xhtml#l00160">CHECK_LAYERS</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00601">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00372">Deserializer::GetLayerName()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00619">Deserializer::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00386">FullyConnectedDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00078">ComparisonDescriptor::m_Operation</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00098">ElementwiseUnaryDescriptor::m_Operation</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00388">FullyConnectedDescriptor::m_TransposeWeightMatrix</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00449">ToComparisonOperation()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00558">ToConstTensor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">ToTensorInfo()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00469">ToUnaryOperation()</a>.</p> |
| 225 | <div class="fragment"><div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> {</div><div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>  <span class="keyword">auto</span> layerType = graph->layers()->Get(layerIndex)->layer_type();</div><div class="line"><a name="l01558"></a><span class="lineno"> 1558</span> </div><div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>  <span class="keywordflow">switch</span> (layerType)</div><div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>  {</div><div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>  <span class="keywordflow">case</span> Layer::Layer_ConcatLayer:</div><div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>  <span class="keywordflow">return</span> graph->layers()->Get(layerIndex)->layer_as_ConcatLayer()->descriptor();</div><div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>  <span class="keywordflow">case</span> Layer::Layer_MergerLayer:</div><div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>  <span class="keywordflow">return</span> graph->layers()->Get(layerIndex)->layer_as_MergerLayer()->descriptor();</div><div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(<span class="stringliteral">"unknown layer type, should be concat or merger"</span>);</div><div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>  }</div><div class="line"><a name="l01568"></a><span class="lineno"> 1568</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> |
| 226 | </div><!-- fragment --> |
| 227 | </div> |
| 228 | </div> |
| 229 | <a id="a2ee1264a9803ff8dc1323a26f1f4c986"></a> |
| 230 | <h2 class="memtitle"><span class="permalink"><a href="#a2ee1264a9803ff8dc1323a26f1f4c986">◆ </a></span>ToActivationFunction()</h2> |
| 231 | |
| 232 | <div class="memitem"> |
| 233 | <div class="memproto"> |
| 234 | <table class="memname"> |
| 235 | <tr> |
| 236 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9ea">armnn::ActivationFunction</a> armnnDeserializer::ToActivationFunction </td> |
| 237 | <td>(</td> |
| 238 | <td class="paramtype">armnnSerializer::ActivationFunction </td> |
| 239 | <td class="paramname"><em>function</em></td><td>)</td> |
| 240 | <td></td> |
| 241 | </tr> |
| 242 | </table> |
| 243 | </div><div class="memdoc"> |
| 244 | |
| 245 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00406">406</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 246 | |
| 247 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::Abs</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d">armnn::BoundedReLu</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaed67cf7d54c570e4c4891800f085f41d">armnn::Elu</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa0877e5b3fbe9d7569df6399609ed0186">armnn::HardSwish</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaacb7667f5ec2f6e8a5943b781ba6c2735">armnn::LeakyReLu</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa32a843da6ea40ab3b17a3421ccdf671b">armnn::Linear</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa3d90c0a5ab3fcf8e6f6608cb3d3a1559">armnn::ReLu</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa21eebb164e4b8b9bcf64fdb4d8d5dff4">armnn::Sigmoid</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054">armnn::Sqrt</a>, <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaceb46ca115d05c51aa5a16a8867c3304">armnn::Square</a>, and <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa23b68da1de2b77d74da9da2635722a3e">armnn::TanH</a>.</p> |
| 248 | |
| 249 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l00764">Deserializer::GetNetworkOutputBindingInfo()</a>.</p> |
| 250 | <div class="fragment"><div class="line"><a name="l00407"></a><span class="lineno"> 407</span> {</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordflow">switch</span> (<span class="keyword">function</span>)</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  {</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_Sigmoid:</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa21eebb164e4b8b9bcf64fdb4d8d5dff4">armnn::ActivationFunction::Sigmoid</a>;</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_TanH:</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa23b68da1de2b77d74da9da2635722a3e">armnn::ActivationFunction::TanH</a>;</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_Linear:</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa32a843da6ea40ab3b17a3421ccdf671b">armnn::ActivationFunction::Linear</a>;</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_ReLu:</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa3d90c0a5ab3fcf8e6f6608cb3d3a1559">armnn::ActivationFunction::ReLu</a>;</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_BoundedReLu:</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d">armnn::ActivationFunction::BoundedReLu</a>;</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_LeakyReLu:</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaacb7667f5ec2f6e8a5943b781ba6c2735">armnn::ActivationFunction::LeakyReLu</a>;</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_Abs:</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::ActivationFunction::Abs</a>;</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_Sqrt:</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054">armnn::ActivationFunction::Sqrt</a>;</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_Square:</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaceb46ca115d05c51aa5a16a8867c3304">armnn::ActivationFunction::Square</a>;</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_Elu:</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaed67cf7d54c570e4c4891800f085f41d">armnn::ActivationFunction::Elu</a>;</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="keywordflow">case</span> armnnSerializer::ActivationFunction_HardSwish:</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa0877e5b3fbe9d7569df6399609ed0186">armnn::ActivationFunction::HardSwish</a>;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa21eebb164e4b8b9bcf64fdb4d8d5dff4">armnn::ActivationFunction::Sigmoid</a>;</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  }</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa3d90c0a5ab3fcf8e6f6608cb3d3a1559"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa3d90c0a5ab3fcf8e6f6608cb3d3a1559">armnn::ActivationFunction::ReLu</a></div></div> |
| 251 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054">armnn::ActivationFunction::Sqrt</a></div></div> |
| 252 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaacb7667f5ec2f6e8a5943b781ba6c2735"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaacb7667f5ec2f6e8a5943b781ba6c2735">armnn::ActivationFunction::LeakyReLu</a></div></div> |
| 253 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::ActivationFunction::Abs</a></div></div> |
| 254 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa21eebb164e4b8b9bcf64fdb4d8d5dff4"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa21eebb164e4b8b9bcf64fdb4d8d5dff4">armnn::ActivationFunction::Sigmoid</a></div></div> |
| 255 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaabc5a0f0d6e7cf7fca73299dcd46c0f0d">armnn::ActivationFunction::BoundedReLu</a></div><div class="ttdoc">min(a, max(b, input)) ReLu1 & ReLu6. </div></div> |
| 256 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaaed67cf7d54c570e4c4891800f085f41d"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaed67cf7d54c570e4c4891800f085f41d">armnn::ActivationFunction::Elu</a></div></div> |
| 257 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaaceb46ca115d05c51aa5a16a8867c3304"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaceb46ca115d05c51aa5a16a8867c3304">armnn::ActivationFunction::Square</a></div></div> |
| 258 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa32a843da6ea40ab3b17a3421ccdf671b"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa32a843da6ea40ab3b17a3421ccdf671b">armnn::ActivationFunction::Linear</a></div></div> |
| 259 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa0877e5b3fbe9d7569df6399609ed0186"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa0877e5b3fbe9d7569df6399609ed0186">armnn::ActivationFunction::HardSwish</a></div></div> |
| 260 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa23b68da1de2b77d74da9da2635722a3e"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa23b68da1de2b77d74da9da2635722a3e">armnn::ActivationFunction::TanH</a></div></div> |
| 261 | </div><!-- fragment --> |
| 262 | </div> |
| 263 | </div> |
| 264 | <a id="a8fb47fe218330370a5c9c066ac1571ea"></a> |
| 265 | <h2 class="memtitle"><span class="permalink"><a href="#a8fb47fe218330370a5c9c066ac1571ea">◆ </a></span>ToArgMinMaxFunction()</h2> |
| 266 | |
| 267 | <div class="memitem"> |
| 268 | <div class="memproto"> |
| 269 | <table class="memname"> |
| 270 | <tr> |
| 271 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeae">armnn::ArgMinMaxFunction</a> armnnDeserializer::ToArgMinMaxFunction </td> |
| 272 | <td>(</td> |
| 273 | <td class="paramtype">armnnSerializer::ArgMinMaxFunction </td> |
| 274 | <td class="paramname"><em>function</em></td><td>)</td> |
| 275 | <td></td> |
| 276 | </tr> |
| 277 | </table> |
| 278 | </div><div class="memdoc"> |
| 279 | |
| 280 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00437">437</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 281 | |
| 282 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233">armnn::Max</a>, and <a class="el" href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeaea78d811e98514cd165dda532286610fd2">armnn::Min</a>.</p> |
| 283 | |
| 284 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l00764">Deserializer::GetNetworkOutputBindingInfo()</a>.</p> |
| 285 | <div class="fragment"><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> {</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <span class="keywordflow">switch</span> (<span class="keyword">function</span>)</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  {</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keywordflow">case</span> armnnSerializer::ArgMinMaxFunction::ArgMinMaxFunction_Max:</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233">armnn::ArgMinMaxFunction::Max</a>;</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">case</span> armnnSerializer::ArgMinMaxFunction::ArgMinMaxFunction_Min:</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeaea78d811e98514cd165dda532286610fd2">armnn::ArgMinMaxFunction::Min</a>;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  }</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233"><div class="ttname"><a href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233">armnn::ArgMinMaxFunction::Max</a></div></div> |
| 286 | <div class="ttc" id="namespacearmnn_xhtml_ae7e8cbf71db6a490789ca6dcaa8deeaea78d811e98514cd165dda532286610fd2"><div class="ttname"><a href="namespacearmnn.xhtml#ae7e8cbf71db6a490789ca6dcaa8deeaea78d811e98514cd165dda532286610fd2">armnn::ArgMinMaxFunction::Min</a></div></div> |
| 287 | </div><!-- fragment --> |
| 288 | </div> |
| 289 | </div> |
| 290 | <a id="a28f896fb78cdf6607b61c196c98b2570"></a> |
| 291 | <h2 class="memtitle"><span class="permalink"><a href="#a28f896fb78cdf6607b61c196c98b2570">◆ </a></span>ToComparisonOperation()</h2> |
| 292 | |
| 293 | <div class="memitem"> |
| 294 | <div class="memproto"> |
| 295 | <table class="memname"> |
| 296 | <tr> |
| 297 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58c">armnn::ComparisonOperation</a> armnnDeserializer::ToComparisonOperation </td> |
| 298 | <td>(</td> |
| 299 | <td class="paramtype">armnnSerializer::ComparisonOperation </td> |
| 300 | <td class="paramname"><em>operation</em></td><td>)</td> |
| 301 | <td></td> |
| 302 | </tr> |
| 303 | </table> |
| 304 | </div><div class="memdoc"> |
| 305 | |
| 306 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00449">449</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 307 | |
| 308 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58caf5f286e73bda105e538310b3190f75c5">armnn::Equal</a>, <a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca8768a6821cd735aea4f5b0df88c1fc6a">armnn::Greater</a>, <a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca6f2f0aefb3d22da0f3839453add5f937">armnn::GreaterOrEqual</a>, <a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca1cfdf0e8d0c87a228c1f40d9bee7888b">armnn::Less</a>, <a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58caa4cbdbb6070a5abb35fc95ecf1e22c14">armnn::LessOrEqual</a>, and <a class="el" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca19bb0af2c3c530538cb41aff7f235b96">armnn::NotEqual</a>.</p> |
| 309 | |
| 310 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l01554">GetOriginsDescriptor()</a>.</p> |
| 311 | <div class="fragment"><div class="line"><a name="l00450"></a><span class="lineno"> 450</span> {</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="keywordflow">switch</span> (operation)</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  {</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="keywordflow">case</span> armnnSerializer::ComparisonOperation::ComparisonOperation_Equal:</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58caf5f286e73bda105e538310b3190f75c5">armnn::ComparisonOperation::Equal</a>;</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  <span class="keywordflow">case</span> armnnSerializer::ComparisonOperation::ComparisonOperation_Greater:</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca8768a6821cd735aea4f5b0df88c1fc6a">armnn::ComparisonOperation::Greater</a>;</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keywordflow">case</span> armnnSerializer::ComparisonOperation::ComparisonOperation_GreaterOrEqual:</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca6f2f0aefb3d22da0f3839453add5f937">armnn::ComparisonOperation::GreaterOrEqual</a>;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordflow">case</span> armnnSerializer::ComparisonOperation::ComparisonOperation_Less:</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca1cfdf0e8d0c87a228c1f40d9bee7888b">armnn::ComparisonOperation::Less</a>;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <span class="keywordflow">case</span> armnnSerializer::ComparisonOperation::ComparisonOperation_LessOrEqual:</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58caa4cbdbb6070a5abb35fc95ecf1e22c14">armnn::ComparisonOperation::LessOrEqual</a>;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <span class="keywordflow">case</span> armnnSerializer::ComparisonOperation::ComparisonOperation_NotEqual:</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca19bb0af2c3c530538cb41aff7f235b96">armnn::ComparisonOperation::NotEqual</a>;</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  }</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a2d299363c9fc33334c571fa29ca4f58ca8768a6821cd735aea4f5b0df88c1fc6a"><div class="ttname"><a href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca8768a6821cd735aea4f5b0df88c1fc6a">armnn::ComparisonOperation::Greater</a></div></div> |
| 312 | <div class="ttc" id="namespacearmnn_xhtml_a2d299363c9fc33334c571fa29ca4f58caf5f286e73bda105e538310b3190f75c5"><div class="ttname"><a href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58caf5f286e73bda105e538310b3190f75c5">armnn::ComparisonOperation::Equal</a></div></div> |
| 313 | <div class="ttc" id="namespacearmnn_xhtml_a2d299363c9fc33334c571fa29ca4f58ca1cfdf0e8d0c87a228c1f40d9bee7888b"><div class="ttname"><a href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca1cfdf0e8d0c87a228c1f40d9bee7888b">armnn::ComparisonOperation::Less</a></div></div> |
| 314 | <div class="ttc" id="namespacearmnn_xhtml_a2d299363c9fc33334c571fa29ca4f58ca19bb0af2c3c530538cb41aff7f235b96"><div class="ttname"><a href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca19bb0af2c3c530538cb41aff7f235b96">armnn::ComparisonOperation::NotEqual</a></div></div> |
| 315 | <div class="ttc" id="namespacearmnn_xhtml_a2d299363c9fc33334c571fa29ca4f58caa4cbdbb6070a5abb35fc95ecf1e22c14"><div class="ttname"><a href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58caa4cbdbb6070a5abb35fc95ecf1e22c14">armnn::ComparisonOperation::LessOrEqual</a></div></div> |
| 316 | <div class="ttc" id="namespacearmnn_xhtml_a2d299363c9fc33334c571fa29ca4f58ca6f2f0aefb3d22da0f3839453add5f937"><div class="ttname"><a href="namespacearmnn.xhtml#a2d299363c9fc33334c571fa29ca4f58ca6f2f0aefb3d22da0f3839453add5f937">armnn::ComparisonOperation::GreaterOrEqual</a></div></div> |
| 317 | </div><!-- fragment --> |
| 318 | </div> |
| 319 | </div> |
| 320 | <a id="a4acbc36201effcfd40e3a4d45d742b24"></a> |
| 321 | <h2 class="memtitle"><span class="permalink"><a href="#a4acbc36201effcfd40e3a4d45d742b24">◆ </a></span>ToConstTensor()</h2> |
| 322 | |
| 323 | <div class="memitem"> |
| 324 | <div class="memproto"> |
| 325 | <table class="memname"> |
| 326 | <tr> |
| 327 | <td class="memname"><a class="el" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a> armnnDeserializer::ToConstTensor </td> |
| 328 | <td>(</td> |
| 329 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.xhtml#a68b76ee033fdd629404369171c3d4f90">Deserializer::ConstTensorRawPtr</a> </td> |
| 330 | <td class="paramname"><em>constTensorPtr</em></td><td>)</td> |
| 331 | <td></td> |
| 332 | </tr> |
| 333 | </table> |
| 334 | </div><div class="memdoc"> |
| 335 | |
| 336 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00558">558</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 337 | |
| 338 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00029">CheckLocation::AsString()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00157">CHECK_CONST_TENSOR_PTR</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00154">CHECK_CONST_TENSOR_SIZE</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00093">TensorInfo::GetNumElements()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">ToTensorInfo()</a>.</p> |
| 339 | |
| 340 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l02465">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00764">Deserializer::GetNetworkOutputBindingInfo()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l01554">GetOriginsDescriptor()</a>.</p> |
| 341 | <div class="fragment"><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> {</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <a class="code" href="_deserializer_8cpp.xhtml#a637ba180b64a3cd1a4f83d048a030772">CHECK_CONST_TENSOR_PTR</a>(constTensorPtr);</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> tensorInfo = <a class="code" href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">ToTensorInfo</a>(constTensorPtr->info());</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span> </div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="keywordflow">switch</span> (constTensorPtr->data_type())</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  {</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="keywordflow">case</span> ConstTensorData_ByteData:</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  {</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <span class="keyword">auto</span> byteData = constTensorPtr->data_as_ByteData()->data();</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <a class="code" href="_deserializer_8cpp.xhtml#aa6fd9c6c98bdd08620d75cac3a2e17e6">CHECK_CONST_TENSOR_SIZE</a>(byteData->size(), tensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a>(tensorInfo, byteData->data());</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  }</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keywordflow">case</span> ConstTensorData_ShortData:</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  {</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <span class="keyword">auto</span> shortData = constTensorPtr->data_as_ShortData()->data();</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <a class="code" href="_deserializer_8cpp.xhtml#aa6fd9c6c98bdd08620d75cac3a2e17e6">CHECK_CONST_TENSOR_SIZE</a>(shortData->size(), tensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a>(tensorInfo, shortData->data());</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  }</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <span class="keywordflow">case</span> ConstTensorData_IntData:</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  {</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keyword">auto</span> intData = constTensorPtr->data_as_IntData()->data();</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <a class="code" href="_deserializer_8cpp.xhtml#aa6fd9c6c98bdd08620d75cac3a2e17e6">CHECK_CONST_TENSOR_SIZE</a>(intData->size(), tensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a>(tensorInfo, intData->data());</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  }</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="keywordflow">case</span> ConstTensorData_LongData:</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  {</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <span class="keyword">auto</span> longData = constTensorPtr->data_as_LongData()->data();</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <a class="code" href="_deserializer_8cpp.xhtml#aa6fd9c6c98bdd08620d75cac3a2e17e6">CHECK_CONST_TENSOR_SIZE</a>(longData->size(), tensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a>(tensorInfo, longData->data());</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  }</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  {</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <a class="code" href="structarmnn_1_1_check_location.xhtml">CheckLocation</a> location = <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>();</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  boost::str(boost::format(<span class="stringliteral">"Unsupported data type %1% = %2%. %3%"</span>) %</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  constTensorPtr->data_type() %</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  EnumNameConstTensorData(constTensorPtr->data_type()) %</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  location.<a class="code" href="structarmnn_1_1_check_location.xhtml#a5e3562cda960da001597e7dd5679b140">AsString</a>()));</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  }</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  }</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span> }</div><div class="ttc" id="structarmnn_1_1_check_location_xhtml_a5e3562cda960da001597e7dd5679b140"><div class="ttname"><a href="structarmnn_1_1_check_location.xhtml#a5e3562cda960da001597e7dd5679b140">armnn::CheckLocation::AsString</a></div><div class="ttdeci">std::string AsString() const</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00029">Exceptions.hpp:29</a></div></div> |
| 342 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 343 | <div class="ttc" id="_deserializer_8cpp_xhtml_aa6fd9c6c98bdd08620d75cac3a2e17e6"><div class="ttname"><a href="_deserializer_8cpp.xhtml#aa6fd9c6c98bdd08620d75cac3a2e17e6">CHECK_CONST_TENSOR_SIZE</a></div><div class="ttdeci">#define CHECK_CONST_TENSOR_SIZE(CONST_TENSOR_SIZE, TENSOR_SIZE)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.xhtml#l00154">Deserializer.cpp:154</a></div></div> |
| 344 | <div class="ttc" id="namespacearmnn_deserializer_xhtml_aa28868b7dc87dc4d957db6c775a591c1"><div class="ttname"><a href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">armnnDeserializer::ToTensorInfo</a></div><div class="ttdeci">armnn::TensorInfo ToTensorInfo(Deserializer::TensorRawPtr tensorPtr)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.xhtml#l00501">Deserializer.cpp:501</a></div></div> |
| 345 | <div class="ttc" id="classarmnn_1_1_const_tensor_xhtml"><div class="ttname"><a href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00199">Tensor.hpp:199</a></div></div> |
| 346 | <div class="ttc" id="structarmnn_1_1_check_location_xhtml"><div class="ttname"><a href="structarmnn_1_1_check_location.xhtml">armnn::CheckLocation</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00014">Exceptions.hpp:14</a></div></div> |
| 347 | <div class="ttc" id="_deserializer_8cpp_xhtml_a637ba180b64a3cd1a4f83d048a030772"><div class="ttname"><a href="_deserializer_8cpp.xhtml#a637ba180b64a3cd1a4f83d048a030772">CHECK_CONST_TENSOR_PTR</a></div><div class="ttdeci">#define CHECK_CONST_TENSOR_PTR(TENSOR_PTR)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.xhtml#l00157">Deserializer.cpp:157</a></div></div> |
| 348 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 349 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 350 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00093">Tensor.hpp:93</a></div></div> |
| 351 | </div><!-- fragment --> |
| 352 | </div> |
| 353 | </div> |
| 354 | <a id="aede2265569640ae0af1c5520c8a66829"></a> |
| 355 | <h2 class="memtitle"><span class="permalink"><a href="#aede2265569640ae0af1c5520c8a66829">◆ </a></span>ToDataLayout()</h2> |
| 356 | |
| 357 | <div class="memitem"> |
| 358 | <div class="memproto"> |
| 359 | <table class="memname"> |
| 360 | <tr> |
| 361 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> armnnDeserializer::ToDataLayout </td> |
| 362 | <td>(</td> |
| 363 | <td class="paramtype">armnnSerializer::DataLayout </td> |
| 364 | <td class="paramname"><em>dataLayout</em></td><td>)</td> |
| 365 | <td></td> |
| 366 | </tr> |
| 367 | </table> |
| 368 | </div><div class="memdoc"> |
| 369 | |
| 370 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00394">394</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 371 | |
| 372 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 373 | |
| 374 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l02465">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00764">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l02159">Deserializer::GetNormalizationDescriptor()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l01938">Deserializer::OutputShapeOfReshape()</a>.</p> |
| 375 | <div class="fragment"><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> {</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keywordflow">switch</span> (dataLayout)</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  {</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordflow">case</span> armnnSerializer::DataLayout::DataLayout_NHWC:</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">case</span> armnnSerializer::DataLayout::DataLayout_NCHW:</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a>;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  }</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> |
| 376 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 377 | </div><!-- fragment --> |
| 378 | </div> |
| 379 | </div> |
| 380 | <a id="a8b51e137fab21d758b965c6c6e3b02f3"></a> |
| 381 | <h2 class="memtitle"><span class="permalink"><a href="#a8b51e137fab21d758b965c6c6e3b02f3">◆ </a></span>ToResizeMethod()</h2> |
| 382 | |
| 383 | <div class="memitem"> |
| 384 | <div class="memproto"> |
| 385 | <table class="memname"> |
| 386 | <tr> |
| 387 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4">armnn::ResizeMethod</a> armnnDeserializer::ToResizeMethod </td> |
| 388 | <td>(</td> |
| 389 | <td class="paramtype">armnnSerializer::ResizeMethod </td> |
| 390 | <td class="paramname"><em>method</em></td><td>)</td> |
| 391 | <td></td> |
| 392 | </tr> |
| 393 | </table> |
| 394 | </div><div class="memdoc"> |
| 395 | |
| 396 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00488">488</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 397 | |
| 398 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>, and <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::NearestNeighbor</a>.</p> |
| 399 | |
| 400 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l01938">Deserializer::OutputShapeOfReshape()</a>.</p> |
| 401 | <div class="fragment"><div class="line"><a name="l00489"></a><span class="lineno"> 489</span> {</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <span class="keywordflow">switch</span> (method)</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  {</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keywordflow">case</span> armnnSerializer::ResizeMethod_NearestNeighbor:</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keywordflow">case</span> armnnSerializer::ResizeMethod_Bilinear:</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  }</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 402 | <div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a></div></div> |
| 403 | </div><!-- fragment --> |
| 404 | </div> |
| 405 | </div> |
| 406 | <a id="aa28868b7dc87dc4d957db6c775a591c1"></a> |
| 407 | <h2 class="memtitle"><span class="permalink"><a href="#aa28868b7dc87dc4d957db6c775a591c1">◆ </a></span>ToTensorInfo()</h2> |
| 408 | |
| 409 | <div class="memitem"> |
| 410 | <div class="memproto"> |
| 411 | <table class="memname"> |
| 412 | <tr> |
| 413 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> armnnDeserializer::ToTensorInfo </td> |
| 414 | <td>(</td> |
| 415 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.xhtml#a80888061963ddd18e87105807a035d9a">Deserializer::TensorRawPtr</a> </td> |
| 416 | <td class="paramname"><em>tensorPtr</em></td><td>)</td> |
| 417 | <td></td> |
| 418 | </tr> |
| 419 | </table> |
| 420 | </div><div class="memdoc"> |
| 421 | |
| 422 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">501</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 423 | |
| 424 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00029">CheckLocation::AsString()</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::Boolean</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00151">CHECK_TENSOR_PTR</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">armnn::Float16</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a9d02ea768c081d4bdb2b7cab0b3f510d">armnn::QAsymmS8</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::Signed32</a>.</p> |
| 425 | |
| 426 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_onnx_parser_8cpp_source.xhtml#l00584">OnnxParser::CreateNetworkFromString()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l02465">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_onnx_parser_8cpp_source.xhtml#l01680">OnnxParser::GetNetworkInputBindingInfo()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02955">TfLiteParser::GetNetworkInputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00764">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_onnx_parser_8cpp_source.xhtml#l01694">OnnxParser::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02985">TfLiteParser::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l02159">Deserializer::GetNormalizationDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l01554">GetOriginsDescriptor()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">TfLiteParser::GetOutputTensorIds()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l01808">Deserializer::GetPoolingDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l01938">Deserializer::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00488">TfLiteParser::TfLiteParser()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00558">ToConstTensor()</a>.</p> |
| 427 | <div class="fragment"><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> {</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> type;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <a class="code" href="_deserializer_8cpp.xhtml#ae38d96fe05581ea025713b3e781c5a43">CHECK_TENSOR_PTR</a>(tensorPtr);</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span> </div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordflow">switch</span> (tensorPtr->dataType())</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  {</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordflow">case</span> DataType_QAsymmS8:</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a9d02ea768c081d4bdb2b7cab0b3f510d">armnn::DataType::QAsymmS8</a>;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keywordflow">case</span> DataType_QuantisedAsymm8:</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keywordflow">case</span> DataType_QAsymmU8:</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>;</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  <span class="keywordflow">case</span> DataType_QSymmS16:</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <span class="keywordflow">case</span> DataType_QuantisedSymm16:</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>;</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="keywordflow">case</span> DataType_Signed32:</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a>;</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="keywordflow">case</span> DataType_Float32:</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keywordflow">case</span> DataType_Float16:</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">armnn::DataType::Float16</a>;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">case</span> DataType_Boolean:</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  type = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::DataType::Boolean</a>;</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  {</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <a class="code" href="structarmnn_1_1_check_location.xhtml">CheckLocation</a> location = <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>();</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  boost::str(</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  boost::format(<span class="stringliteral">"Unsupported data type %1% = %2%. %3%"</span>) %</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  tensorPtr->dataType() %</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  EnumNameDataType(tensorPtr->dataType()) %</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  location.<a class="code" href="structarmnn_1_1_check_location.xhtml#a5e3562cda960da001597e7dd5679b140">AsString</a>()));</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  }</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  }</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  <span class="keywordtype">float</span> quantizationScale = tensorPtr->quantizationScale();</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  int32_t quantizationOffset = tensorPtr->quantizationOffset();</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> </div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keyword">auto</span> dimensions = tensorPtr->dimensions();</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size = dimensions->size();</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  std::vector<unsigned int> outputDims(dimensions->begin(), dimensions->begin() + size);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="comment">// two statements (on purpose) for easier debugging:</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> result(size,</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  outputDims.data(),</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  type,</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  quantizationScale,</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  quantizationOffset);</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::DataType::Boolean</a></div></div> |
| 428 | <div class="ttc" id="structarmnn_1_1_check_location_xhtml_a5e3562cda960da001597e7dd5679b140"><div class="ttname"><a href="structarmnn_1_1_check_location.xhtml#a5e3562cda960da001597e7dd5679b140">armnn::CheckLocation::AsString</a></div><div class="ttdeci">std::string AsString() const</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00029">Exceptions.hpp:29</a></div></div> |
| 429 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 430 | <div class="ttc" id="_deserializer_8cpp_xhtml_ae38d96fe05581ea025713b3e781c5a43"><div class="ttname"><a href="_deserializer_8cpp.xhtml#ae38d96fe05581ea025713b3e781c5a43">CHECK_TENSOR_PTR</a></div><div class="ttdeci">#define CHECK_TENSOR_PTR(TENSOR_PTR)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.xhtml#l00151">Deserializer.cpp:151</a></div></div> |
| 431 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a></div></div> |
| 432 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a9d02ea768c081d4bdb2b7cab0b3f510d"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a9d02ea768c081d4bdb2b7cab0b3f510d">armnn::DataType::QAsymmS8</a></div></div> |
| 433 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a></div></div> |
| 434 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00032">Types.hpp:32</a></div></div> |
| 435 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 436 | <div class="ttc" id="structarmnn_1_1_check_location_xhtml"><div class="ttname"><a href="structarmnn_1_1_check_location.xhtml">armnn::CheckLocation</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00014">Exceptions.hpp:14</a></div></div> |
| 437 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">armnn::DataType::Float16</a></div></div> |
| 438 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 439 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 440 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 441 | </div><!-- fragment --> |
| 442 | </div> |
| 443 | </div> |
| 444 | <a id="a7c8f847778ed77469bd6ddbd5158ae4e"></a> |
| 445 | <h2 class="memtitle"><span class="permalink"><a href="#a7c8f847778ed77469bd6ddbd5158ae4e">◆ </a></span>ToUnaryOperation()</h2> |
| 446 | |
| 447 | <div class="memitem"> |
| 448 | <div class="memproto"> |
| 449 | <table class="memname"> |
| 450 | <tr> |
| 451 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8">armnn::UnaryOperation</a> armnnDeserializer::ToUnaryOperation </td> |
| 452 | <td>(</td> |
| 453 | <td class="paramtype">armnnSerializer::UnaryOperation </td> |
| 454 | <td class="paramname"><em>operation</em></td><td>)</td> |
| 455 | <td></td> |
| 456 | </tr> |
| 457 | </table> |
| 458 | </div><div class="memdoc"> |
| 459 | |
| 460 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.xhtml#l00469">469</a> of file <a class="el" href="_deserializer_8cpp_source.xhtml">Deserializer.cpp</a>.</p> |
| 461 | |
| 462 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::Abs</a>, <a class="el" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8acad39a154bffb61175f674d6eefaf6d0">armnn::Exp</a>, <a class="el" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8afb278fa5defd7e699fcbc930c3e76ccd">armnn::Neg</a>, <a class="el" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8a09bb7f6e2118c85a6a55bd4bf2beeca4">armnn::Rsqrt</a>, and <a class="el" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054">armnn::Sqrt</a>.</p> |
| 463 | |
| 464 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.xhtml#l01554">GetOriginsDescriptor()</a>.</p> |
| 465 | <div class="fragment"><div class="line"><a name="l00470"></a><span class="lineno"> 470</span> {</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordflow">switch</span> (operation)</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  {</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">case</span> armnnSerializer::UnaryOperation::UnaryOperation_Abs:</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::UnaryOperation::Abs</a>;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="keywordflow">case</span> armnnSerializer::UnaryOperation::UnaryOperation_Rsqrt:</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8a09bb7f6e2118c85a6a55bd4bf2beeca4">armnn::UnaryOperation::Rsqrt</a>;</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keywordflow">case</span> armnnSerializer::UnaryOperation::UnaryOperation_Sqrt:</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054">armnn::UnaryOperation::Sqrt</a>;</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordflow">case</span> armnnSerializer::UnaryOperation::UnaryOperation_Exp:</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8acad39a154bffb61175f674d6eefaf6d0">armnn::UnaryOperation::Exp</a>;</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keywordflow">case</span> armnnSerializer::UnaryOperation::UnaryOperation_Neg:</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8afb278fa5defd7e699fcbc930c3e76ccd">armnn::UnaryOperation::Neg</a>;</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a>(<span class="stringliteral">"Unary operation unknown"</span>);</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  }</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaaae77f3ad25595e35b327334d89410054">armnn::ActivationFunction::Sqrt</a></div></div> |
| 466 | <div class="ttc" id="namespacearmnn_xhtml_a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6"><div class="ttname"><a href="namespacearmnn.xhtml#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::ActivationFunction::Abs</a></div></div> |
| 467 | <div class="ttc" id="namespacearmnn_xhtml_a1cfaa710db2a54673b21d2ea2da757c8afb278fa5defd7e699fcbc930c3e76ccd"><div class="ttname"><a href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8afb278fa5defd7e699fcbc930c3e76ccd">armnn::UnaryOperation::Neg</a></div></div> |
| 468 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00080">Exceptions.hpp:80</a></div></div> |
| 469 | <div class="ttc" id="namespacearmnn_xhtml_a1cfaa710db2a54673b21d2ea2da757c8acad39a154bffb61175f674d6eefaf6d0"><div class="ttname"><a href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8acad39a154bffb61175f674d6eefaf6d0">armnn::UnaryOperation::Exp</a></div></div> |
| 470 | <div class="ttc" id="namespacearmnn_xhtml_a1cfaa710db2a54673b21d2ea2da757c8a09bb7f6e2118c85a6a55bd4bf2beeca4"><div class="ttname"><a href="namespacearmnn.xhtml#a1cfaa710db2a54673b21d2ea2da757c8a09bb7f6e2118c85a6a55bd4bf2beeca4">armnn::UnaryOperation::Rsqrt</a></div></div> |
| 471 | </div><!-- fragment --> |
| 472 | </div> |
| 473 | </div> |
| 474 | </div><!-- contents --> |
| 475 | </div><!-- doc-content --> |
| 476 | <!-- start footer part --> |
| 477 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 478 | <ul> |
| 479 | <li class="navelem"><a class="el" href="namespacearmnn_deserializer.xhtml">armnnDeserializer</a></li> |
| 480 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 481 | <a href="http://www.doxygen.org/index.html"> |
| 482 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 483 | </ul> |
| 484 | </div> |
| 485 | </body> |
| 486 | </html> |