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: src/backends/backendsCommon/test/layerTests/LstmTestImpl.cpp File 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('_lstm_test_impl_8cpp.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="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">LstmTestImpl.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_lstm_test_impl_8hpp_source.xhtml">LstmTestImpl.hpp</a>"</code><br /> |
| 104 | <code>#include <<a class="el" href="_quantize_helper_8hpp_source.xhtml">QuantizeHelper.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.xhtml">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.xhtml">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_decoders_8hpp_source.xhtml">reference/workloads/Decoders.hpp</a>></code><br /> |
| 109 | <code>#include <<a class="el" href="_encoders_8hpp_source.xhtml">reference/workloads/Encoders.hpp</a>></code><br /> |
| 110 | <code>#include <<a class="el" href="_lstm_utils_8hpp_source.xhtml">reference/workloads/LstmUtils.hpp</a>></code><br /> |
| 111 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.xhtml">test/TensorHelpers.hpp</a>></code><br /> |
| 112 | <code>#include <boost/multi_array.hpp></code><br /> |
| 113 | </div> |
| 114 | <p><a href="_lstm_test_impl_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 115 | <table class="memberdecls"> |
| 116 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 117 | Functions</h2></td></tr> |
| 118 | <tr class="memitem:ae5aae49a1e7c7ff2cb80cba1ae421ea6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#ae5aae49a1e7c7ff2cb80cba1ae421ea6">LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 119 | <tr class="separator:ae5aae49a1e7c7ff2cb80cba1ae421ea6"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:ac53b419b4aa942d611bcc973afdd7716"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#ac53b419b4aa942d611bcc973afdd7716">LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 121 | <tr class="separator:ac53b419b4aa942d611bcc973afdd7716"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:aec44c163ed62de4b5c9bd573cb7f7b3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#aec44c163ed62de4b5c9bd573cb7f7b3e">LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 123 | <tr class="separator:aec44c163ed62de4b5c9bd573cb7f7b3e"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a9901861134e17a59931e45a4137ddb39"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#a9901861134e17a59931e45a4137ddb39">LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 125 | <tr class="separator:a9901861134e17a59931e45a4137ddb39"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a52b75282b3f67fd2e1063eb93ad28441"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#a52b75282b3f67fd2e1063eb93ad28441">LstmLayerInt16NoCifgNoPeepholeNoProjectionTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 127 | <tr class="separator:a52b75282b3f67fd2e1063eb93ad28441"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a99aca3dec6d8a2eedfc40570fc34ecfb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#a99aca3dec6d8a2eedfc40570fc34ecfb">LstmLayerInt16WithCifgWithPeepholeNoProjectionTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 129 | <tr class="separator:a99aca3dec6d8a2eedfc40570fc34ecfb"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:acbc18f78670dccdd94e0cbb04627b9aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#acbc18f78670dccdd94e0cbb04627b9aa">LstmLayerInt16NoCifgWithPeepholeWithProjectionTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 131 | <tr class="separator:acbc18f78670dccdd94e0cbb04627b9aa"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a9c20ecb007b2beacc8c4fa05778eb450"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#a9c20ecb007b2beacc8c4fa05778eb450">LstmLayerInt16NoCifgNoPeepholeNoProjectionInt16ConstantTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 133 | <tr class="separator:a9c20ecb007b2beacc8c4fa05778eb450"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a03b7b4da7af98cb4fa9bbecb785ce5dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_lstm_test_impl_8cpp.xhtml#a03b7b4da7af98cb4fa9bbecb785ce5dd">QuantizedLstmTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 135 | <tr class="separator:a03b7b4da7af98cb4fa9bbecb785ce5dd"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | </table> |
| 137 | <h2 class="groupheader">Function Documentation</h2> |
| 138 | <a id="aec44c163ed62de4b5c9bd573cb7f7b3e"></a> |
| 139 | <h2 class="memtitle"><span class="permalink"><a href="#aec44c163ed62de4b5c9bd573cb7f7b3e">◆ </a></span>LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest()</h2> |
| 140 | |
| 141 | <div class="memitem"> |
| 142 | <div class="memproto"> |
| 143 | <table class="memname"> |
| 144 | <tr> |
| 145 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 2> LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest </td> |
| 146 | <td>(</td> |
| 147 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 148 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 149 | </tr> |
| 150 | <tr> |
| 151 | <td class="paramkey"></td> |
| 152 | <td></td> |
| 153 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 154 | <td class="paramname"><em>memoryManager</em> </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td></td> |
| 158 | <td>)</td> |
| 159 | <td></td><td></td> |
| 160 | </tr> |
| 161 | </table> |
| 162 | </div><div class="memdoc"> |
| 163 | |
| 164 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l01926">1926</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 165 | |
| 166 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p> |
| 167 | |
| 168 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 169 | <div class="fragment"><div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> {</div><div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({2, 2}, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>  boost::multi_array<float, 2> input = MakeTensor<float, 2>(inputDesc, std::vector<float>(</div><div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>  {2., 3., 3., 4.}));</div><div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> </div><div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({2, 4}, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>  boost::multi_array<float, 2> expectedOutput = MakeTensor<float, 2>(outputDesc, std::vector<float>(</div><div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>  {{-0.02973187f, 0.1229473f, 0.20885126f, -0.15358765f,</div><div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>  -0.0185422f, 0.11281417f, 0.24466537f, -0.1826292f}}));</div><div class="line"><a name="l01938"></a><span class="lineno"> 1938</span> </div><div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>  <span class="keywordflow">return</span> LstmNoCifgNoPeepholeNoProjectionTestImpl<armnn::DataType::Float32>(</div><div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>  workloadFactory, memoryManager, input, expectedOutput);</div><div class="line"><a name="l01941"></a><span class="lineno"> 1941</span> }</div><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> |
| 170 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 171 | </div><!-- fragment --> |
| 172 | </div> |
| 173 | </div> |
| 174 | <a id="ac53b419b4aa942d611bcc973afdd7716"></a> |
| 175 | <h2 class="memtitle"><span class="permalink"><a href="#ac53b419b4aa942d611bcc973afdd7716">◆ </a></span>LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest()</h2> |
| 176 | |
| 177 | <div class="memitem"> |
| 178 | <div class="memproto"> |
| 179 | <table class="memname"> |
| 180 | <tr> |
| 181 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 2> LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest </td> |
| 182 | <td>(</td> |
| 183 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 184 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td class="paramkey"></td> |
| 188 | <td></td> |
| 189 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 190 | <td class="paramname"><em>memoryManager</em> </td> |
| 191 | </tr> |
| 192 | <tr> |
| 193 | <td></td> |
| 194 | <td>)</td> |
| 195 | <td></td><td></td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </div><div class="memdoc"> |
| 199 | |
| 200 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l01904">1904</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 201 | |
| 202 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p> |
| 203 | |
| 204 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 205 | <div class="fragment"><div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> {</div><div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({ 2, 5 }, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>  boost::multi_array<float, 2> input = MakeTensor<float, 2>(inputDesc, std::vector<float>(</div><div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>  {0.787926f, 0.151646f, 0.071352f, 0.118426f, 0.458058f,</div><div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>  0.295743f, 0.544053f, 0.690064f, 0.858138f, 0.497181f}));</div><div class="line"><a name="l01912"></a><span class="lineno"> 1912</span> </div><div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({ 2, 16 }, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>  boost::multi_array<float, 2> expectedOutput = MakeTensor<float, 2>(outputDesc, std::vector<float>(</div><div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>  {-0.00396806f, 0.029352f, -0.00279226f, 0.0159977f, -0.00835576f,</div><div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>  -0.0211779f, 0.0283512f, -0.0114597f, 0.00907307f, -0.0244004f,</div><div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>  -0.0152191f, -0.0259063f, 0.00914318f, 0.00415118f, 0.017147f,</div><div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>  0.0134203f, -0.013869f, 0.0287268f, -0.00334693f, 0.00733398f, -0.0287926f,</div><div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>  -0.0186926f, 0.0193662f, -0.0115437f, 0.00422612f, -0.0345232f,</div><div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>  0.00223253f, -0.00957321f, 0.0210624f, 0.013331f, 0.0150954f,</div><div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>  0.02168f}));</div><div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>  <span class="keywordflow">return</span> LstmLayerNoCifgWithPeepholeWithProjectionTestImpl<armnn::DataType::Float32>(</div><div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>  workloadFactory, memoryManager, input, expectedOutput);</div><div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> }</div><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> |
| 206 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 207 | </div><!-- fragment --> |
| 208 | </div> |
| 209 | </div> |
| 210 | <a id="a9901861134e17a59931e45a4137ddb39"></a> |
| 211 | <h2 class="memtitle"><span class="permalink"><a href="#a9901861134e17a59931e45a4137ddb39">◆ </a></span>LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest()</h2> |
| 212 | |
| 213 | <div class="memitem"> |
| 214 | <div class="memproto"> |
| 215 | <table class="memname"> |
| 216 | <tr> |
| 217 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 2> LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest </td> |
| 218 | <td>(</td> |
| 219 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 220 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 221 | </tr> |
| 222 | <tr> |
| 223 | <td class="paramkey"></td> |
| 224 | <td></td> |
| 225 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 226 | <td class="paramname"><em>memoryManager</em> </td> |
| 227 | </tr> |
| 228 | <tr> |
| 229 | <td></td> |
| 230 | <td>)</td> |
| 231 | <td></td><td></td> |
| 232 | </tr> |
| 233 | </table> |
| 234 | </div><div class="memdoc"> |
| 235 | |
| 236 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l01943">1943</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 237 | |
| 238 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p> |
| 239 | |
| 240 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 241 | <div class="fragment"><div class="line"><a name="l01946"></a><span class="lineno"> 1946</span> {</div><div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({ 2, 5 }, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>  boost::multi_array<float, 2> input = MakeTensor<float, 2>(inputDesc, std::vector<float>(</div><div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>  {0.7f, 0.8f, 0.1f, 0.2f, 0.3f, <span class="comment">//batch 0</span></div><div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>  0.3f, 0.2f, 0.9f, 0.8f, 0.1f})); <span class="comment">//batch 1</span></div><div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> </div><div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({ 2, 3 }, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>  boost::multi_array<float, 2> expectedOutput = MakeTensor<float, 2>(outputDesc, std::vector<float>(</div><div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>  { 0.0244077f, 0.128027f, -0.00170918f, <span class="comment">//batch 0</span></div><div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>  -0.00692428f, 0.0848741f, 0.063445f})); <span class="comment">//batch 1</span></div><div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>  <span class="keywordflow">return</span> LstmLayerNoCifgWithPeepholeWithProjectionWithLayerNormTestImpl<armnn::DataType::Float32>(</div><div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>  workloadFactory, memoryManager, input, expectedOutput);</div><div class="line"><a name="l01958"></a><span class="lineno"> 1958</span> }</div><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> |
| 242 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 243 | </div><!-- fragment --> |
| 244 | </div> |
| 245 | </div> |
| 246 | <a id="ae5aae49a1e7c7ff2cb80cba1ae421ea6"></a> |
| 247 | <h2 class="memtitle"><span class="permalink"><a href="#ae5aae49a1e7c7ff2cb80cba1ae421ea6">◆ </a></span>LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest()</h2> |
| 248 | |
| 249 | <div class="memitem"> |
| 250 | <div class="memproto"> |
| 251 | <table class="memname"> |
| 252 | <tr> |
| 253 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 2> LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest </td> |
| 254 | <td>(</td> |
| 255 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 256 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 257 | </tr> |
| 258 | <tr> |
| 259 | <td class="paramkey"></td> |
| 260 | <td></td> |
| 261 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 262 | <td class="paramname"><em>memoryManager</em> </td> |
| 263 | </tr> |
| 264 | <tr> |
| 265 | <td></td> |
| 266 | <td>)</td> |
| 267 | <td></td><td></td> |
| 268 | </tr> |
| 269 | </table> |
| 270 | </div><div class="memdoc"> |
| 271 | |
| 272 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l01888">1888</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 273 | |
| 274 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p> |
| 275 | |
| 276 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 277 | <div class="fragment"><div class="line"><a name="l01891"></a><span class="lineno"> 1891</span> {</div><div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({ 2, 2 }, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>  boost::multi_array<float, 2> input = MakeTensor<float, 2>(inputDesc, std::vector<float>(</div><div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>  { 2., 3., 3., 4. }));</div><div class="line"><a name="l01895"></a><span class="lineno"> 1895</span> </div><div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({ 2, 4 }, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>  boost::multi_array<float, 2> expectedOutput = MakeTensor<float, 2>(outputDesc, std::vector<float>(</div><div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>  {-0.36444446f, -0.00352185f, 0.12886585f, -0.05163646f,</div><div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>  -0.42734814f, -0.00478661f, 0.13455015f, -0.03560682f}));</div><div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>  <span class="keywordflow">return</span> LstmLayerWithCifgWithPeepholeNoProjectionTestImpl<armnn::DataType::Float32>(</div><div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>  workloadFactory, memoryManager, input, expectedOutput);</div><div class="line"><a name="l01902"></a><span class="lineno"> 1902</span> }</div><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> |
| 278 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 279 | </div><!-- fragment --> |
| 280 | </div> |
| 281 | </div> |
| 282 | <a id="a9c20ecb007b2beacc8c4fa05778eb450"></a> |
| 283 | <h2 class="memtitle"><span class="permalink"><a href="#a9c20ecb007b2beacc8c4fa05778eb450">◆ </a></span>LstmLayerInt16NoCifgNoPeepholeNoProjectionInt16ConstantTest()</h2> |
| 284 | |
| 285 | <div class="memitem"> |
| 286 | <div class="memproto"> |
| 287 | <table class="memname"> |
| 288 | <tr> |
| 289 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 2> LstmLayerInt16NoCifgNoPeepholeNoProjectionInt16ConstantTest </td> |
| 290 | <td>(</td> |
| 291 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 292 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 293 | </tr> |
| 294 | <tr> |
| 295 | <td class="paramkey"></td> |
| 296 | <td></td> |
| 297 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 298 | <td class="paramname"><em>memoryManager</em> </td> |
| 299 | </tr> |
| 300 | <tr> |
| 301 | <td></td> |
| 302 | <td>)</td> |
| 303 | <td></td><td></td> |
| 304 | </tr> |
| 305 | </table> |
| 306 | </div><div class="memdoc"> |
| 307 | |
| 308 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l02063">2063</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 309 | |
| 310 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>.</p> |
| 311 | |
| 312 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 313 | <div class="fragment"><div class="line"><a name="l02066"></a><span class="lineno"> 2066</span> {</div><div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> qScale = 1.0f;</div><div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>  <span class="keyword">const</span> int32_t qOffset = 0;</div><div class="line"><a name="l02069"></a><span class="lineno"> 2069</span> </div><div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> datatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>; <span class="comment">// datatype & constants set to QSymm16</span></div><div class="line"><a name="l02071"></a><span class="lineno"> 2071</span> </div><div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({2, 2}, datatype);</div><div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>  boost::multi_array<int16_t , 2> input =</div><div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>  MakeTensor<int16_t , 2>(inputDesc,</div><div class="line"><a name="l02075"></a><span class="lineno"> 2075</span>  armnnUtils::QuantizedVector<int16_t>({ 2.f, 3.f, 3.f, 4.f }, qScale, qOffset));</div><div class="line"><a name="l02076"></a><span class="lineno"> 2076</span> </div><div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({2, 4}, datatype);</div><div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>  boost::multi_array<int16_t, 2> expectedOutput =</div><div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>  MakeTensor<int16_t, 2>(</div><div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>  outputDesc,</div><div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>  armnnUtils::QuantizedVector<int16_t>(</div><div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>  {</div><div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>  -0.02973187f, 0.12294730f, 0.20885126f, -0.15358765f,</div><div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>  -0.01854220f, 0.11281417f, 0.24466537f, -0.18262920f</div><div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>  },</div><div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>  qScale, qOffset));</div><div class="line"><a name="l02087"></a><span class="lineno"> 2087</span> </div><div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>  <span class="keywordflow">return</span> LstmNoCifgNoPeepholeNoProjectionTestImpl<datatype>(</div><div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>  workloadFactory, memoryManager, input, expectedOutput, qScale, qOffset, datatype);</div><div class="line"><a name="l02090"></a><span class="lineno"> 2090</span> }</div><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> |
| 314 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a></div></div> |
| 315 | <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> |
| 316 | </div><!-- fragment --> |
| 317 | </div> |
| 318 | </div> |
| 319 | <a id="a52b75282b3f67fd2e1063eb93ad28441"></a> |
| 320 | <h2 class="memtitle"><span class="permalink"><a href="#a52b75282b3f67fd2e1063eb93ad28441">◆ </a></span>LstmLayerInt16NoCifgNoPeepholeNoProjectionTest()</h2> |
| 321 | |
| 322 | <div class="memitem"> |
| 323 | <div class="memproto"> |
| 324 | <table class="memname"> |
| 325 | <tr> |
| 326 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 2> LstmLayerInt16NoCifgNoPeepholeNoProjectionTest </td> |
| 327 | <td>(</td> |
| 328 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 329 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 330 | </tr> |
| 331 | <tr> |
| 332 | <td class="paramkey"></td> |
| 333 | <td></td> |
| 334 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 335 | <td class="paramname"><em>memoryManager</em> </td> |
| 336 | </tr> |
| 337 | <tr> |
| 338 | <td></td> |
| 339 | <td>)</td> |
| 340 | <td></td><td></td> |
| 341 | </tr> |
| 342 | </table> |
| 343 | </div><div class="memdoc"> |
| 344 | |
| 345 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l01960">1960</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 346 | |
| 347 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>.</p> |
| 348 | |
| 349 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 350 | <div class="fragment"><div class="line"><a name="l01963"></a><span class="lineno"> 1963</span> {</div><div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> qScale = 1.0f;</div><div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>  <span class="keyword">const</span> int32_t qOffset = 0;</div><div class="line"><a name="l01966"></a><span class="lineno"> 1966</span> </div><div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> datatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>;</div><div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> constantDatatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>;</div><div class="line"><a name="l01969"></a><span class="lineno"> 1969</span> </div><div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({2, 2}, datatype);</div><div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>  boost::multi_array<int16_t , 2> input = MakeTensor<int16_t , 2>(</div><div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>  inputDesc,</div><div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>  armnnUtils::QuantizedVector<int16_t>({ 2.f, 3.f, 3.f, 4.f }, qScale, qOffset));</div><div class="line"><a name="l01974"></a><span class="lineno"> 1974</span> </div><div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({2, 4}, datatype);</div><div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>  boost::multi_array<int16_t, 2> expectedOutput = MakeTensor<int16_t, 2>(</div><div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>  outputDesc,</div><div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>  armnnUtils::QuantizedVector<int16_t>(</div><div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>  {</div><div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>  -0.02973187f, 0.12294730f, 0.20885126f, -0.15358765f,</div><div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>  -0.01854220f, 0.11281417f, 0.24466537f, -0.18262920f</div><div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>  },</div><div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>  qScale, qOffset));</div><div class="line"><a name="l01984"></a><span class="lineno"> 1984</span> </div><div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>  <span class="keywordflow">return</span> LstmNoCifgNoPeepholeNoProjectionTestImpl<datatype>(</div><div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>  workloadFactory, memoryManager, input, expectedOutput, qScale, qOffset, constantDatatype);</div><div class="line"><a name="l01987"></a><span class="lineno"> 1987</span> </div><div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> }</div><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> |
| 351 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a></div></div> |
| 352 | <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> |
| 353 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 354 | </div><!-- fragment --> |
| 355 | </div> |
| 356 | </div> |
| 357 | <a id="acbc18f78670dccdd94e0cbb04627b9aa"></a> |
| 358 | <h2 class="memtitle"><span class="permalink"><a href="#acbc18f78670dccdd94e0cbb04627b9aa">◆ </a></span>LstmLayerInt16NoCifgWithPeepholeWithProjectionTest()</h2> |
| 359 | |
| 360 | <div class="memitem"> |
| 361 | <div class="memproto"> |
| 362 | <table class="memname"> |
| 363 | <tr> |
| 364 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 2> LstmLayerInt16NoCifgWithPeepholeWithProjectionTest </td> |
| 365 | <td>(</td> |
| 366 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 367 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 368 | </tr> |
| 369 | <tr> |
| 370 | <td class="paramkey"></td> |
| 371 | <td></td> |
| 372 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 373 | <td class="paramname"><em>memoryManager</em> </td> |
| 374 | </tr> |
| 375 | <tr> |
| 376 | <td></td> |
| 377 | <td>)</td> |
| 378 | <td></td><td></td> |
| 379 | </tr> |
| 380 | </table> |
| 381 | </div><div class="memdoc"> |
| 382 | |
| 383 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l02021">2021</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 384 | |
| 385 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>.</p> |
| 386 | |
| 387 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 388 | <div class="fragment"><div class="line"><a name="l02024"></a><span class="lineno"> 2024</span> {</div><div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> qScale = 2.0f;</div><div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>  <span class="keyword">const</span> int32_t qOffset = 0;</div><div class="line"><a name="l02027"></a><span class="lineno"> 2027</span> </div><div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> datatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>;</div><div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> constantDatatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>;</div><div class="line"><a name="l02030"></a><span class="lineno"> 2030</span> </div><div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({ 2, 5 }, datatype);</div><div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>  boost::multi_array<int16_t, 2> input =</div><div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>  MakeTensor<int16_t, 2>(</div><div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>  inputDesc,</div><div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>  armnnUtils::QuantizedVector<int16_t>(</div><div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>  {</div><div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>  0.787926f, 0.151646f, 0.071352f, 0.118426f, 0.458058f,</div><div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>  0.295743f, 0.544053f, 0.690064f, 0.858138f, 0.497181f</div><div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>  },</div><div class="line"><a name="l02040"></a><span class="lineno"> 2040</span>  qScale, qOffset));</div><div class="line"><a name="l02041"></a><span class="lineno"> 2041</span> </div><div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({ 2, 16 }, datatype);</div><div class="line"><a name="l02043"></a><span class="lineno"> 2043</span>  boost::multi_array<int16_t, 2> expectedOutput =</div><div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>  MakeTensor<int16_t, 2>(</div><div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>  outputDesc,</div><div class="line"><a name="l02046"></a><span class="lineno"> 2046</span>  armnnUtils::QuantizedVector<int16_t>(</div><div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>  {</div><div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>  -0.00396806f, 0.02935200f, -0.00279226f, 0.01599770f,</div><div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>  -0.00835576f, -0.02117790f, 0.02835120f, -0.01145970f,</div><div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>  0.00907307f, -0.02440040f, -0.01521910f, -0.02590630f,</div><div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>  0.00914318f, 0.00415118f, 0.01714700f, 0.01342030f,</div><div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>  -0.01386900f, 0.02872680f, -0.00334693f, 0.00733398f,</div><div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>  -0.02879260f, -0.01869260f, 0.01936620f, -0.01154370f,</div><div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>  0.00422612f, -0.03452320f, 0.00223253f, -0.00957321f,</div><div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>  0.02106240f, 0.01333100f, 0.01509540f, 0.02168000f</div><div class="line"><a name="l02056"></a><span class="lineno"> 2056</span>  },</div><div class="line"><a name="l02057"></a><span class="lineno"> 2057</span>  qScale, qOffset));</div><div class="line"><a name="l02058"></a><span class="lineno"> 2058</span> </div><div class="line"><a name="l02059"></a><span class="lineno"> 2059</span>  <span class="keywordflow">return</span> LstmLayerNoCifgWithPeepholeWithProjectionTestImpl<datatype>(</div><div class="line"><a name="l02060"></a><span class="lineno"> 2060</span>  workloadFactory, memoryManager, input, expectedOutput, qScale, qOffset, constantDatatype);</div><div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> }</div><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> |
| 389 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a></div></div> |
| 390 | <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> |
| 391 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 392 | </div><!-- fragment --> |
| 393 | </div> |
| 394 | </div> |
| 395 | <a id="a99aca3dec6d8a2eedfc40570fc34ecfb"></a> |
| 396 | <h2 class="memtitle"><span class="permalink"><a href="#a99aca3dec6d8a2eedfc40570fc34ecfb">◆ </a></span>LstmLayerInt16WithCifgWithPeepholeNoProjectionTest()</h2> |
| 397 | |
| 398 | <div class="memitem"> |
| 399 | <div class="memproto"> |
| 400 | <table class="memname"> |
| 401 | <tr> |
| 402 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 2> LstmLayerInt16WithCifgWithPeepholeNoProjectionTest </td> |
| 403 | <td>(</td> |
| 404 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 405 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 406 | </tr> |
| 407 | <tr> |
| 408 | <td class="paramkey"></td> |
| 409 | <td></td> |
| 410 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 411 | <td class="paramname"><em>memoryManager</em> </td> |
| 412 | </tr> |
| 413 | <tr> |
| 414 | <td></td> |
| 415 | <td>)</td> |
| 416 | <td></td><td></td> |
| 417 | </tr> |
| 418 | </table> |
| 419 | </div><div class="memdoc"> |
| 420 | |
| 421 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l01990">1990</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 422 | |
| 423 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>.</p> |
| 424 | |
| 425 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.xhtml#l01123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 426 | <div class="fragment"><div class="line"><a name="l01993"></a><span class="lineno"> 1993</span> {</div><div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> qScale = 1.0f;</div><div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>  <span class="keyword">const</span> int32_t qOffset = 0;</div><div class="line"><a name="l01996"></a><span class="lineno"> 1996</span> </div><div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> datatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>;</div><div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> constantDatatype = <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>;</div><div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> </div><div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({ 2, 2 }, datatype);</div><div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>  boost::multi_array<int16_t, 2> input =</div><div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>  MakeTensor<int16_t, 2>(</div><div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>  inputDesc,</div><div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>  armnnUtils::QuantizedVector<int16_t>({ 2.f, 3.f, 3.f, 4.f }, qScale, qOffset));</div><div class="line"><a name="l02005"></a><span class="lineno"> 2005</span> </div><div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({ 2, 4 }, datatype);</div><div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>  boost::multi_array<int16_t, 2> expectedOutput =</div><div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>  MakeTensor<int16_t, 2>(</div><div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>  outputDesc,</div><div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>  armnnUtils::QuantizedVector<int16_t>(</div><div class="line"><a name="l02011"></a><span class="lineno"> 2011</span>  {</div><div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>  -0.36444446f, -0.00352185f, 0.12886585f, -0.05163646f,</div><div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>  -0.42734814f, -0.00478661f, 0.13455015f, -0.03560682f</div><div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>  },</div><div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>  qScale, qOffset));</div><div class="line"><a name="l02016"></a><span class="lineno"> 2016</span> </div><div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>  <span class="keywordflow">return</span> LstmLayerWithCifgWithPeepholeNoProjectionTestImpl<datatype>(</div><div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>  workloadFactory, memoryManager, input, expectedOutput, qScale, qOffset, constantDatatype);</div><div class="line"><a name="l02019"></a><span class="lineno"> 2019</span> }</div><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> |
| 427 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a></div></div> |
| 428 | <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> |
| 429 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 430 | </div><!-- fragment --> |
| 431 | </div> |
| 432 | </div> |
| 433 | <a id="a03b7b4da7af98cb4fa9bbecb785ce5dd"></a> |
| 434 | <h2 class="memtitle"><span class="permalink"><a href="#a03b7b4da7af98cb4fa9bbecb785ce5dd">◆ </a></span>QuantizedLstmTest()</h2> |
| 435 | |
| 436 | <div class="memitem"> |
| 437 | <div class="memproto"> |
| 438 | <table class="memname"> |
| 439 | <tr> |
| 440 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 2> QuantizedLstmTest </td> |
| 441 | <td>(</td> |
| 442 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 443 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 444 | </tr> |
| 445 | <tr> |
| 446 | <td class="paramkey"></td> |
| 447 | <td></td> |
| 448 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 449 | <td class="paramname"><em>memoryManager</em> </td> |
| 450 | </tr> |
| 451 | <tr> |
| 452 | <td></td> |
| 453 | <td>)</td> |
| 454 | <td></td><td></td> |
| 455 | </tr> |
| 456 | </table> |
| 457 | </div><div class="memdoc"> |
| 458 | |
| 459 | <p class="definition">Definition at line <a class="el" href="_lstm_test_impl_8cpp_source.xhtml#l02096">2096</a> of file <a class="el" href="_lstm_test_impl_8cpp_source.xhtml">LstmTestImpl.cpp</a>.</p> |
| 460 | |
| 461 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>.</p> |
| 462 | <div class="fragment"><div class="line"><a name="l02099"></a><span class="lineno"> 2099</span> {</div><div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputDesc({2, 2}, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>);</div><div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>  boost::multi_array<uint8_t, 2> input = MakeTensor<uint8_t, 2>(inputDesc, std::vector<uint8_t>(</div><div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>  {166, 179, 50, 150}));</div><div class="line"><a name="l02103"></a><span class="lineno"> 2103</span> </div><div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputDesc({2, 4}, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>);</div><div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>  boost::multi_array<uint8_t, 2> expectedOutput = MakeTensor<uint8_t, 2>(outputDesc, std::vector<uint8_t>(</div><div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>  {140, 151, 146, 112, 136, 156, 142, 112 }));</div><div class="line"><a name="l02107"></a><span class="lineno"> 2107</span> </div><div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>  <span class="keywordflow">return</span> QuantizedLstmTestImpl(workloadFactory, memoryManager, input, expectedOutput);</div><div class="line"><a name="l02109"></a><span class="lineno"> 2109</span> }</div><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> |
| 463 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 464 | </div><!-- fragment --> |
| 465 | </div> |
| 466 | </div> |
| 467 | </div><!-- contents --> |
| 468 | </div><!-- doc-content --> |
| 469 | <!-- start footer part --> |
| 470 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 471 | <ul> |
| 472 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.xhtml">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.xhtml">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.xhtml">test</a></li><li class="navelem"><a class="el" href="dir_99a30439342d160875b21dac3498ad7f.xhtml">layerTests</a></li><li class="navelem"><a class="el" href="_lstm_test_impl_8cpp.xhtml">LstmTestImpl.cpp</a></li> |
| 473 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 474 | <a href="http://www.doxygen.org/index.html"> |
| 475 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 476 | </ul> |
| 477 | </div> |
| 478 | </body> |
| 479 | </html> |