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/MaximumTestImpl.hpp 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('_maximum_test_impl_8hpp.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">MaximumTestImpl.hpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_layer_test_result_8hpp_source.xhtml">LayerTestResult.hpp</a>"</code><br /> |
| 104 | <code>#include <<a class="el" href="_half_8hpp_source.xhtml">Half.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml">armnn/backends/IBackendInternal.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.xhtml">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 107 | </div> |
| 108 | <p><a href="_maximum_test_impl_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 109 | <table class="memberdecls"> |
| 110 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 111 | Functions</h2></td></tr> |
| 112 | <tr class="memitem:a5284469ca9fb8e8945b995e0b96b904b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a5284469ca9fb8e8945b995e0b96b904b">MaximumSimpleTest</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> |
| 113 | <tr class="separator:a5284469ca9fb8e8945b995e0b96b904b"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:adc56c136b4282f6fa64014883a9776df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#adc56c136b4282f6fa64014883a9776df">MaximumBroadcast1ElementTest</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> |
| 115 | <tr class="separator:adc56c136b4282f6fa64014883a9776df"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:aebfc4dddd6d3c2f9f3631383875180ab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#aebfc4dddd6d3c2f9f3631383875180ab">MaximumBroadcast1DVectorTest</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> |
| 117 | <tr class="separator:aebfc4dddd6d3c2f9f3631383875180ab"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:adef53798850f9839d144f153df79b5db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< <a class="el" href="namespacearmnn.xhtml#a0f38fa92b2468d5378258a2b074c1a31">armnn::Half</a>, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#adef53798850f9839d144f153df79b5db">MaximumFloat16Test</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:adef53798850f9839d144f153df79b5db"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a1d697781a0990b2fc155483e66a5048b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< <a class="el" href="namespacearmnn.xhtml#a0f38fa92b2468d5378258a2b074c1a31">armnn::Half</a>, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a1d697781a0990b2fc155483e66a5048b">MaximumBroadcast1ElementFloat16Test</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:a1d697781a0990b2fc155483e66a5048b"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:ae5a7c4e1d15da878cc6097dc4f61cb8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< <a class="el" href="namespacearmnn.xhtml#a0f38fa92b2468d5378258a2b074c1a31">armnn::Half</a>, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#ae5a7c4e1d15da878cc6097dc4f61cb8f">MaximumBroadcast1DVectorFloat16Test</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:ae5a7c4e1d15da878cc6097dc4f61cb8f"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a0a7d1c396def8ee8f0080f3bead3f1da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a0a7d1c396def8ee8f0080f3bead3f1da">MaximumUint8Test</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:a0a7d1c396def8ee8f0080f3bead3f1da"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a67926759ded30561aa1a34209d3bcaf0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a67926759ded30561aa1a34209d3bcaf0">MaximumBroadcast1ElementUint8Test</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:a67926759ded30561aa1a34209d3bcaf0"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a671ba569bce68f75bdfe3a24158f9a29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a671ba569bce68f75bdfe3a24158f9a29">MaximumBroadcast1DVectorUint8Test</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:a671ba569bce68f75bdfe3a24158f9a29"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:a1c630a6f84c2c6281b6cfa5f8c910ac8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a1c630a6f84c2c6281b6cfa5f8c910ac8">MaximumInt16Test</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:a1c630a6f84c2c6281b6cfa5f8c910ac8"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a40d2a2c9115603722c860332510e49f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#a40d2a2c9115603722c860332510e49f0">MaximumBroadcast1ElementInt16Test</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:a40d2a2c9115603722c860332510e49f0"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:aacf76b8c5359c0221179bdb6f12985bf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_maximum_test_impl_8hpp.xhtml#aacf76b8c5359c0221179bdb6f12985bf">MaximumBroadcast1DVectorInt16Test</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:aacf76b8c5359c0221179bdb6f12985bf"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | </table> |
| 137 | <h2 class="groupheader">Function Documentation</h2> |
| 138 | <a id="ae5a7c4e1d15da878cc6097dc4f61cb8f"></a> |
| 139 | <h2 class="memtitle"><span class="permalink"><a href="#ae5a7c4e1d15da878cc6097dc4f61cb8f">◆ </a></span>MaximumBroadcast1DVectorFloat16Test()</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><<a class="el" href="namespacearmnn.xhtml#a0f38fa92b2468d5378258a2b074c1a31">armnn::Half</a>, 4> MaximumBroadcast1DVectorFloat16Test </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="_maximum_test_impl_8cpp_source.xhtml#l00182">182</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 165 | <div class="fragment"><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">using namespace </span>half_float::literal;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 3 };</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  std::vector<armnn::Half> input0 =</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  {</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  1._h, 2._h, 3._h, 4._h, 5._h, 6._h,</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  7._h, 8._h, 9._h, 10._h, 11._h, 12._h</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  };</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  std::vector<armnn::Half> input1 = { 1._h, 2._h, 3._h };</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  std::vector<armnn::Half> output =</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  {</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  1._h, 2._h, 3._h, 4._h, 5._h, 6._h,</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  7._h, 8._h, 9._h, 10._h, 11._h, 12._h</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  };</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  workloadFactory,</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  memoryManager,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  shape0,</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  input0,</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  shape1,</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  input1,</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  shape0,</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  output);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> }</div></div><!-- fragment --> |
| 166 | </div> |
| 167 | </div> |
| 168 | <a id="aacf76b8c5359c0221179bdb6f12985bf"></a> |
| 169 | <h2 class="memtitle"><span class="permalink"><a href="#aacf76b8c5359c0221179bdb6f12985bf">◆ </a></span>MaximumBroadcast1DVectorInt16Test()</h2> |
| 170 | |
| 171 | <div class="memitem"> |
| 172 | <div class="memproto"> |
| 173 | <table class="memname"> |
| 174 | <tr> |
| 175 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> MaximumBroadcast1DVectorInt16Test </td> |
| 176 | <td>(</td> |
| 177 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 178 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 179 | </tr> |
| 180 | <tr> |
| 181 | <td class="paramkey"></td> |
| 182 | <td></td> |
| 183 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 184 | <td class="paramname"><em>memoryManager</em> </td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td></td> |
| 188 | <td>)</td> |
| 189 | <td></td><td></td> |
| 190 | </tr> |
| 191 | </table> |
| 192 | </div><div class="memdoc"> |
| 193 | |
| 194 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00373">373</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 195 | <div class="fragment"><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> {</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 3 };</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  std::vector<int16_t> input0 =</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  {</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  1, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  7, 8, 9, 10, 11, 12</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  };</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span> </div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  std::vector<int16_t> input1 = { 1, 10, 3 };</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> </div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  std::vector<int16_t> output =</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  {</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  1, 10, 3, 4, 10, 6,</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  7, 10, 9, 10, 11, 12</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  };</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  workloadFactory,</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  memoryManager,</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  shape0,</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  input0,</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  shape1,</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  input1,</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  shape0,</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  output);</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> }</div></div><!-- fragment --> |
| 196 | </div> |
| 197 | </div> |
| 198 | <a id="aebfc4dddd6d3c2f9f3631383875180ab"></a> |
| 199 | <h2 class="memtitle"><span class="permalink"><a href="#aebfc4dddd6d3c2f9f3631383875180ab">◆ </a></span>MaximumBroadcast1DVectorTest()</h2> |
| 200 | |
| 201 | <div class="memitem"> |
| 202 | <div class="memproto"> |
| 203 | <table class="memname"> |
| 204 | <tr> |
| 205 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> MaximumBroadcast1DVectorTest </td> |
| 206 | <td>(</td> |
| 207 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 208 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 209 | </tr> |
| 210 | <tr> |
| 211 | <td class="paramkey"></td> |
| 212 | <td></td> |
| 213 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 214 | <td class="paramname"><em>memoryManager</em> </td> |
| 215 | </tr> |
| 216 | <tr> |
| 217 | <td></td> |
| 218 | <td>)</td> |
| 219 | <td></td><td></td> |
| 220 | </tr> |
| 221 | </table> |
| 222 | </div><div class="memdoc"> |
| 223 | |
| 224 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00083">83</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 225 | <div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 3 };</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  std::vector<float> input0 =</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  1.f, 2.f, 3.f, 4.f, 5.f, 6.f,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  7.f, 8.f, 9.f, 10.f, 11.f, 12.f</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  };</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  std::vector<float> input1 = { 1.f, 2.f, 3.f };</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  std::vector<float> output =</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  1.f, 2.f, 3.f, 4.f, 5.f, 6.f,</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  7.f, 8.f, 9.f, 10.f, 11.f, 12.f</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  };</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  workloadFactory,</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  memoryManager,</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  shape0,</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  input0,</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  shape1,</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  input1,</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  shape0,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  output);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div></div><!-- fragment --> |
| 226 | </div> |
| 227 | </div> |
| 228 | <a id="a671ba569bce68f75bdfe3a24158f9a29"></a> |
| 229 | <h2 class="memtitle"><span class="permalink"><a href="#a671ba569bce68f75bdfe3a24158f9a29">◆ </a></span>MaximumBroadcast1DVectorUint8Test()</h2> |
| 230 | |
| 231 | <div class="memitem"> |
| 232 | <div class="memproto"> |
| 233 | <table class="memname"> |
| 234 | <tr> |
| 235 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> MaximumBroadcast1DVectorUint8Test </td> |
| 236 | <td>(</td> |
| 237 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 238 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 239 | </tr> |
| 240 | <tr> |
| 241 | <td class="paramkey"></td> |
| 242 | <td></td> |
| 243 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 244 | <td class="paramname"><em>memoryManager</em> </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td></td> |
| 248 | <td>)</td> |
| 249 | <td></td><td></td> |
| 250 | </tr> |
| 251 | </table> |
| 252 | </div><div class="memdoc"> |
| 253 | |
| 254 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00284">284</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 255 | <div class="fragment"><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> {</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 3 };</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  std::vector<uint8_t> input0 =</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  {</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  1, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  7, 8, 9, 10, 11, 12</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  };</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  std::vector<uint8_t> input1 = { 1, 10, 3 };</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  std::vector<uint8_t> output = {</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  1, 10, 3, 4, 10, 6,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  7, 10, 9, 10, 11, 12</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  };</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  workloadFactory,</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  memoryManager,</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  shape0,</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  input0,</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  shape1,</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  input1,</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  shape0,</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  output);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> }</div></div><!-- fragment --> |
| 256 | </div> |
| 257 | </div> |
| 258 | <a id="a1d697781a0990b2fc155483e66a5048b"></a> |
| 259 | <h2 class="memtitle"><span class="permalink"><a href="#a1d697781a0990b2fc155483e66a5048b">◆ </a></span>MaximumBroadcast1ElementFloat16Test()</h2> |
| 260 | |
| 261 | <div class="memitem"> |
| 262 | <div class="memproto"> |
| 263 | <table class="memname"> |
| 264 | <tr> |
| 265 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><<a class="el" href="namespacearmnn.xhtml#a0f38fa92b2468d5378258a2b074c1a31">armnn::Half</a>, 4> MaximumBroadcast1ElementFloat16Test </td> |
| 266 | <td>(</td> |
| 267 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 268 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 269 | </tr> |
| 270 | <tr> |
| 271 | <td class="paramkey"></td> |
| 272 | <td></td> |
| 273 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 274 | <td class="paramname"><em>memoryManager</em> </td> |
| 275 | </tr> |
| 276 | <tr> |
| 277 | <td></td> |
| 278 | <td>)</td> |
| 279 | <td></td><td></td> |
| 280 | </tr> |
| 281 | </table> |
| 282 | </div><div class="memdoc"> |
| 283 | |
| 284 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00156">156</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 285 | <div class="fragment"><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> {</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">using namespace </span>half_float::literal;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 2 };</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  std::vector<armnn::Half> input0 = { 1._h, 2._h, 3._h, 4._h, 5._h, 6._h, 7._h, 8._h };</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  std::vector<armnn::Half> input1 = { 2._h };</div><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>  std::vector<armnn::Half> output = { 2._h, 2._h, 3._h, 4._h, 5._h, 6._h, 7._h, 8._h };</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  workloadFactory,</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  memoryManager,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  shape0,</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  input0,</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  shape1,</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  input1,</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  shape0,</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  output);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div></div><!-- fragment --> |
| 286 | </div> |
| 287 | </div> |
| 288 | <a id="a40d2a2c9115603722c860332510e49f0"></a> |
| 289 | <h2 class="memtitle"><span class="permalink"><a href="#a40d2a2c9115603722c860332510e49f0">◆ </a></span>MaximumBroadcast1ElementInt16Test()</h2> |
| 290 | |
| 291 | <div class="memitem"> |
| 292 | <div class="memproto"> |
| 293 | <table class="memname"> |
| 294 | <tr> |
| 295 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> MaximumBroadcast1ElementInt16Test </td> |
| 296 | <td>(</td> |
| 297 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 298 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 299 | </tr> |
| 300 | <tr> |
| 301 | <td class="paramkey"></td> |
| 302 | <td></td> |
| 303 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 304 | <td class="paramname"><em>memoryManager</em> </td> |
| 305 | </tr> |
| 306 | <tr> |
| 307 | <td></td> |
| 308 | <td>)</td> |
| 309 | <td></td><td></td> |
| 310 | </tr> |
| 311 | </table> |
| 312 | </div><div class="memdoc"> |
| 313 | |
| 314 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00341">341</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 315 | <div class="fragment"><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> {</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  std::vector<int16_t> input0 =</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  {</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  1, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  7, 8, 9, 10, 11, 12</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  };</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  std::vector<int16_t> input1 = { 2 };</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  std::vector<int16_t> output =</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  {</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  2, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  7, 8, 9, 10, 11, 12</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  };</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  workloadFactory,</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  memoryManager,</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  shape0,</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  input0,</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  shape1,</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  input1,</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  shape0,</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  output);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> }</div></div><!-- fragment --> |
| 316 | </div> |
| 317 | </div> |
| 318 | <a id="adc56c136b4282f6fa64014883a9776df"></a> |
| 319 | <h2 class="memtitle"><span class="permalink"><a href="#adc56c136b4282f6fa64014883a9776df">◆ </a></span>MaximumBroadcast1ElementTest()</h2> |
| 320 | |
| 321 | <div class="memitem"> |
| 322 | <div class="memproto"> |
| 323 | <table class="memname"> |
| 324 | <tr> |
| 325 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> MaximumBroadcast1ElementTest </td> |
| 326 | <td>(</td> |
| 327 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 328 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 329 | </tr> |
| 330 | <tr> |
| 331 | <td class="paramkey"></td> |
| 332 | <td></td> |
| 333 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 334 | <td class="paramname"><em>memoryManager</em> </td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td></td> |
| 338 | <td>)</td> |
| 339 | <td></td><td></td> |
| 340 | </tr> |
| 341 | </table> |
| 342 | </div><div class="memdoc"> |
| 343 | |
| 344 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00059">59</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 345 | <div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 2 };</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  std::vector<float> input0 = { 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f };</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  std::vector<float> input1 = { 2.f };</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  std::vector<float> output = { 2.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f };</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  workloadFactory,</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  memoryManager,</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  shape0,</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  input0,</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  shape1,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  input1,</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  shape0,</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  output);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div></div><!-- fragment --> |
| 346 | </div> |
| 347 | </div> |
| 348 | <a id="a67926759ded30561aa1a34209d3bcaf0"></a> |
| 349 | <h2 class="memtitle"><span class="permalink"><a href="#a67926759ded30561aa1a34209d3bcaf0">◆ </a></span>MaximumBroadcast1ElementUint8Test()</h2> |
| 350 | |
| 351 | <div class="memitem"> |
| 352 | <div class="memproto"> |
| 353 | <table class="memname"> |
| 354 | <tr> |
| 355 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> MaximumBroadcast1ElementUint8Test </td> |
| 356 | <td>(</td> |
| 357 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 358 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 359 | </tr> |
| 360 | <tr> |
| 361 | <td class="paramkey"></td> |
| 362 | <td></td> |
| 363 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 364 | <td class="paramname"><em>memoryManager</em> </td> |
| 365 | </tr> |
| 366 | <tr> |
| 367 | <td></td> |
| 368 | <td>)</td> |
| 369 | <td></td><td></td> |
| 370 | </tr> |
| 371 | </table> |
| 372 | </div><div class="memdoc"> |
| 373 | |
| 374 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00252">252</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 375 | <div class="fragment"><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> {</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  std::vector<uint8_t> input0 =</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  {</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  1, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  7, 8, 9, 10, 11, 12</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  };</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  std::vector<uint8_t> input1 = { 2 };</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  std::vector<uint8_t> output =</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  {</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  2, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  7, 8, 9, 10, 11, 12</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  };</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  workloadFactory,</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  memoryManager,</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  shape0,</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  input0,</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  shape1,</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  input1,</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  shape0,</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  output);</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> }</div></div><!-- fragment --> |
| 376 | </div> |
| 377 | </div> |
| 378 | <a id="adef53798850f9839d144f153df79b5db"></a> |
| 379 | <h2 class="memtitle"><span class="permalink"><a href="#adef53798850f9839d144f153df79b5db">◆ </a></span>MaximumFloat16Test()</h2> |
| 380 | |
| 381 | <div class="memitem"> |
| 382 | <div class="memproto"> |
| 383 | <table class="memname"> |
| 384 | <tr> |
| 385 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><<a class="el" href="namespacearmnn.xhtml#a0f38fa92b2468d5378258a2b074c1a31">armnn::Half</a>, 4> MaximumFloat16Test </td> |
| 386 | <td>(</td> |
| 387 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 388 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 389 | </tr> |
| 390 | <tr> |
| 391 | <td class="paramkey"></td> |
| 392 | <td></td> |
| 393 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 394 | <td class="paramname"><em>memoryManager</em> </td> |
| 395 | </tr> |
| 396 | <tr> |
| 397 | <td></td> |
| 398 | <td>)</td> |
| 399 | <td></td><td></td> |
| 400 | </tr> |
| 401 | </table> |
| 402 | </div><div class="memdoc"> |
| 403 | |
| 404 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00115">115</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 405 | <div class="fragment"><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">using namespace </span>half_float::literal;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width = 2u;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height = 2u;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channelCount = 2u;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 2u;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { batchSize, channelCount, height, width };</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  std::vector<armnn::Half> input0 =</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  1._h, 1._h, 1._h, 1._h, 5._h, 5._h, 5._h, 5._h,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  3._h, 3._h, 3._h, 3._h, 4._h, 4._h, 4._h, 4._h</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  };</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  std::vector<armnn::Half> input1 =</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  2._h, 2._h, 2._h, 2._h, 3._h, 3._h, 3._h, 3._h,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  4._h, 4._h, 4._h, 4._h, 5._h, 5._h, 5._h, 5._h</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  };</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  std::vector<armnn::Half> output =</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  2._h, 2._h, 2._h, 2._h, 5._h, 5._h, 5._h, 5._h,</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  4._h, 4._h, 4._h, 4._h, 5._h, 5._h, 5._h, 5._h</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  };</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  workloadFactory,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  memoryManager,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  shape,</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  input0,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  shape,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  input1,</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  shape,</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  output);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div></div><!-- fragment --> |
| 406 | </div> |
| 407 | </div> |
| 408 | <a id="a1c630a6f84c2c6281b6cfa5f8c910ac8"></a> |
| 409 | <h2 class="memtitle"><span class="permalink"><a href="#a1c630a6f84c2c6281b6cfa5f8c910ac8">◆ </a></span>MaximumInt16Test()</h2> |
| 410 | |
| 411 | <div class="memitem"> |
| 412 | <div class="memproto"> |
| 413 | <table class="memname"> |
| 414 | <tr> |
| 415 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> MaximumInt16Test </td> |
| 416 | <td>(</td> |
| 417 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 418 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 419 | </tr> |
| 420 | <tr> |
| 421 | <td class="paramkey"></td> |
| 422 | <td></td> |
| 423 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 424 | <td class="paramname"><em>memoryManager</em> </td> |
| 425 | </tr> |
| 426 | <tr> |
| 427 | <td></td> |
| 428 | <td>)</td> |
| 429 | <td></td><td></td> |
| 430 | </tr> |
| 431 | </table> |
| 432 | </div><div class="memdoc"> |
| 433 | |
| 434 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00315">315</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 435 | <div class="fragment"><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> {</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { 2, 2, 2, 2 };</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  std::vector<int16_t> input0({ 1, 1, 1, 1, 6, 6, 6, 6,</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  3, 3, 3, 3, 4, 4, 4, 4 });</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  std::vector<int16_t> input1({ 2, 2, 2, 2, 3, 3, 3, 3,</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  4, 4, 4, 4, 5, 5, 5, 5 });</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  std::vector<int16_t> output({ 2, 2, 2, 2, 6, 6, 6, 6,</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  4, 4, 4, 4, 5, 5, 5, 5 });</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  workloadFactory,</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  memoryManager,</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  shape,</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  input0,</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  shape,</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  input1,</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  shape,</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  output);</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span> }</div></div><!-- fragment --> |
| 436 | </div> |
| 437 | </div> |
| 438 | <a id="a5284469ca9fb8e8945b995e0b96b904b"></a> |
| 439 | <h2 class="memtitle"><span class="permalink"><a href="#a5284469ca9fb8e8945b995e0b96b904b">◆ </a></span>MaximumSimpleTest()</h2> |
| 440 | |
| 441 | <div class="memitem"> |
| 442 | <div class="memproto"> |
| 443 | <table class="memname"> |
| 444 | <tr> |
| 445 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> MaximumSimpleTest </td> |
| 446 | <td>(</td> |
| 447 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 448 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 449 | </tr> |
| 450 | <tr> |
| 451 | <td class="paramkey"></td> |
| 452 | <td></td> |
| 453 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 454 | <td class="paramname"><em>memoryManager</em> </td> |
| 455 | </tr> |
| 456 | <tr> |
| 457 | <td></td> |
| 458 | <td>)</td> |
| 459 | <td></td><td></td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </div><div class="memdoc"> |
| 463 | |
| 464 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00019">19</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 465 | |
| 466 | <p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p> |
| 467 | <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(memoryManager);</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width = 2u;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height = 2u;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channelCount = 2u;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 2u;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { batchSize, channelCount, height, width };</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  std::vector<float> input0 =</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  1.f, 1.f, 1.f, 1.f, 5.f, 5.f, 5.f, 5.f,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  3.f, 3.f, 3.f, 3.f, 4.f, 4.f, 4.f, 4.f</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  };</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  std::vector<float> input1 =</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  2.f, 2.f, 2.f, 2.f, 3.f, 3.f, 3.f, 3.f,</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  4.f, 4.f, 4.f, 4.f, 5.f, 5.f, 5.f, 5.f</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  };</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  std::vector<float> output =</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  2.f, 2.f, 2.f, 2.f, 5.f, 5.f, 5.f, 5.f,</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  4.f, 4.f, 4.f, 4.f, 5.f, 5.f, 5.f, 5.f</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  };</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  workloadFactory,</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  memoryManager,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  shape,</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  input0,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  shape,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  input1,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  shape,</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  output);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &&...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div> |
| 468 | </div><!-- fragment --> |
| 469 | </div> |
| 470 | </div> |
| 471 | <a id="a0a7d1c396def8ee8f0080f3bead3f1da"></a> |
| 472 | <h2 class="memtitle"><span class="permalink"><a href="#a0a7d1c396def8ee8f0080f3bead3f1da">◆ </a></span>MaximumUint8Test()</h2> |
| 473 | |
| 474 | <div class="memitem"> |
| 475 | <div class="memproto"> |
| 476 | <table class="memname"> |
| 477 | <tr> |
| 478 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> MaximumUint8Test </td> |
| 479 | <td>(</td> |
| 480 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 481 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 482 | </tr> |
| 483 | <tr> |
| 484 | <td class="paramkey"></td> |
| 485 | <td></td> |
| 486 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 487 | <td class="paramname"><em>memoryManager</em> </td> |
| 488 | </tr> |
| 489 | <tr> |
| 490 | <td></td> |
| 491 | <td>)</td> |
| 492 | <td></td><td></td> |
| 493 | </tr> |
| 494 | </table> |
| 495 | </div><div class="memdoc"> |
| 496 | |
| 497 | <p class="definition">Definition at line <a class="el" href="_maximum_test_impl_8cpp_source.xhtml#l00216">216</a> of file <a class="el" href="_maximum_test_impl_8cpp_source.xhtml">MaximumTestImpl.cpp</a>.</p> |
| 498 | <div class="fragment"><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { 2, 2, 2, 2 };</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">// See dequantized values to the right.</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  std::vector<uint8_t> input0 =</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  {</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  1, 1, 1, 1, 6, 6, 6, 6,</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  3, 3, 3, 3, 4, 4, 4, 4</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  };</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  std::vector<uint8_t> input1 =</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  {</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  2, 2, 2, 2, 3, 3, 3, 3,</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  4, 4, 4, 4, 5, 5, 5, 5</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  };</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  std::vector<uint8_t> output =</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  {</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  2, 2, 2, 2, 6, 6, 6, 6,</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  4, 4, 4, 4, 5, 5, 5, 5</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  };</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::MaximumQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  workloadFactory,</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  memoryManager,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  shape,</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  input0,</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  shape,</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  input1,</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  shape,</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  output);</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> }</div></div><!-- fragment --> |
| 499 | </div> |
| 500 | </div> |
| 501 | </div><!-- contents --> |
| 502 | </div><!-- doc-content --> |
| 503 | <!-- start footer part --> |
| 504 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 505 | <ul> |
| 506 | <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="_maximum_test_impl_8hpp.xhtml">MaximumTestImpl.hpp</a></li> |
| 507 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 508 | <a href="http://www.doxygen.org/index.html"> |
| 509 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 510 | </ul> |
| 511 | </div> |
| 512 | </body> |
| 513 | </html> |