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/SubtractionTestImpl.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('_subtraction_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">SubtractionTestImpl.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_subtraction_test_impl_8hpp_source.xhtml">SubtractionTestImpl.hpp</a>"</code><br /> |
| 104 | <code>#include "<a class="el" href="_elementwise_test_impl_8hpp_source.xhtml">ElementwiseTestImpl.hpp</a>"</code><br /> |
| 105 | </div> |
| 106 | <p><a href="_subtraction_test_impl_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 107 | <table class="memberdecls"> |
| 108 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 109 | Functions</h2></td></tr> |
| 110 | <tr class="memitem:a0f20088e478c30fc8b85adc95ee3ebd9"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 111 | <tr class="memitem:a0f20088e478c30fc8b85adc95ee3ebd9"><td class="memTemplItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_workload.xhtml">armnn::IWorkload</a> > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_subtraction_test_impl_8cpp.xhtml#a0f20088e478c30fc8b85adc95ee3ebd9">CreateWorkload< armnn::SubtractionQueueDescriptor ></a> (const <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a> &info, const <a class="el" href="structarmnn_1_1_subtraction_queue_descriptor.xhtml">armnn::SubtractionQueueDescriptor</a> &descriptor)</td></tr> |
| 112 | <tr class="separator:a0f20088e478c30fc8b85adc95ee3ebd9"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:aedabb354e4e5af0759202e4dbbeb8441"><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="_subtraction_test_impl_8cpp.xhtml#aedabb354e4e5af0759202e4dbbeb8441">SubtractionUint8Test</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> |
| 114 | <tr class="separator:aedabb354e4e5af0759202e4dbbeb8441"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a098b3aa8ae40141e9c43fc11233bc9ca"><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="_subtraction_test_impl_8cpp.xhtml#a098b3aa8ae40141e9c43fc11233bc9ca">SubtractionBroadcast1ElementUint8Test</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> |
| 116 | <tr class="separator:a098b3aa8ae40141e9c43fc11233bc9ca"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a3a6e0120f7dce89c2ef03a579c6c581e"><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="_subtraction_test_impl_8cpp.xhtml#a3a6e0120f7dce89c2ef03a579c6c581e">SubtractionBroadcastUint8Test</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> |
| 118 | <tr class="separator:a3a6e0120f7dce89c2ef03a579c6c581e"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:af58d639c9d64bb08acb8b8e3ffaccbbb"><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="_subtraction_test_impl_8cpp.xhtml#af58d639c9d64bb08acb8b8e3ffaccbbb">SubtractionTest</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> |
| 120 | <tr class="separator:af58d639c9d64bb08acb8b8e3ffaccbbb"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:af9a0ddee6e06cef7c196cf9b4b363f77"><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="_subtraction_test_impl_8cpp.xhtml#af9a0ddee6e06cef7c196cf9b4b363f77">SubtractionBroadcast1ElementTest</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> |
| 122 | <tr class="separator:af9a0ddee6e06cef7c196cf9b4b363f77"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a230ab661651ba87930a5bc6a7604e6c8"><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="_subtraction_test_impl_8cpp.xhtml#a230ab661651ba87930a5bc6a7604e6c8">SubtractionBroadcastTest</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> |
| 124 | <tr class="separator:a230ab661651ba87930a5bc6a7604e6c8"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:abaaed9ad1a85f80958dcec993bba6f3a"><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="_subtraction_test_impl_8cpp.xhtml#abaaed9ad1a85f80958dcec993bba6f3a">SubtractionFloat16Test</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> |
| 126 | <tr class="separator:abaaed9ad1a85f80958dcec993bba6f3a"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:aef09cbd7cc6981573d1436888cf1a82a"><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="_subtraction_test_impl_8cpp.xhtml#aef09cbd7cc6981573d1436888cf1a82a">SubtractionBroadcast1ElementFloat16Test</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> |
| 128 | <tr class="separator:aef09cbd7cc6981573d1436888cf1a82a"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a28d606742965f098a62e8268dd03d1d6"><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="_subtraction_test_impl_8cpp.xhtml#a28d606742965f098a62e8268dd03d1d6">SubtractionBroadcastFloat16Test</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> |
| 130 | <tr class="separator:a28d606742965f098a62e8268dd03d1d6"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a7a25b712f181d499480edcf8ec5474cc"><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="_subtraction_test_impl_8cpp.xhtml#a7a25b712f181d499480edcf8ec5474cc">SubtractionInt16Test</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> |
| 132 | <tr class="separator:a7a25b712f181d499480edcf8ec5474cc"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a0a1eb21d1ee13e500e36635ebd4c2d2b"><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="_subtraction_test_impl_8cpp.xhtml#a0a1eb21d1ee13e500e36635ebd4c2d2b">SubtractionBroadcast1ElementInt16Test</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> |
| 134 | <tr class="separator:a0a1eb21d1ee13e500e36635ebd4c2d2b"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a47fe3e5a47fb2e37c3371ab264a07ffd"><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="_subtraction_test_impl_8cpp.xhtml#a47fe3e5a47fb2e37c3371ab264a07ffd">SubtractionBroadcastInt16Test</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> |
| 136 | <tr class="separator:a47fe3e5a47fb2e37c3371ab264a07ffd"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | </table> |
| 138 | <h2 class="groupheader">Function Documentation</h2> |
| 139 | <a id="a0f20088e478c30fc8b85adc95ee3ebd9"></a> |
| 140 | <h2 class="memtitle"><span class="permalink"><a href="#a0f20088e478c30fc8b85adc95ee3ebd9">◆ </a></span>CreateWorkload< armnn::SubtractionQueueDescriptor >()</h2> |
| 141 | |
| 142 | <div class="memitem"> |
| 143 | <div class="memproto"> |
| 144 | <table class="memname"> |
| 145 | <tr> |
| 146 | <td class="memname">std::unique_ptr<<a class="el" href="classarmnn_1_1_i_workload.xhtml">armnn::IWorkload</a>> <a class="el" href="_elementwise_unary_test_impl_8hpp.xhtml#aa50938ed8f91e09acd4af904dcf5543a">CreateWorkload</a>< <a class="el" href="structarmnn_1_1_subtraction_queue_descriptor.xhtml">armnn::SubtractionQueueDescriptor</a> > </td> |
| 147 | <td>(</td> |
| 148 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 149 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 150 | </tr> |
| 151 | <tr> |
| 152 | <td class="paramkey"></td> |
| 153 | <td></td> |
| 154 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a> & </td> |
| 155 | <td class="paramname"><em>info</em>, </td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <td class="paramkey"></td> |
| 159 | <td></td> |
| 160 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_subtraction_queue_descriptor.xhtml">armnn::SubtractionQueueDescriptor</a> & </td> |
| 161 | <td class="paramname"><em>descriptor</em> </td> |
| 162 | </tr> |
| 163 | <tr> |
| 164 | <td></td> |
| 165 | <td>)</td> |
| 166 | <td></td><td></td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </div><div class="memdoc"> |
| 170 | |
| 171 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00011">11</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 172 | <div class="fragment"><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordflow">return</span> workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a439305cf0a71fc85a0b93cc063100f91">CreateSubtraction</a>(descriptor, info);</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> }</div><div class="ttc" id="classarmnn_1_1_i_workload_factory_xhtml_a439305cf0a71fc85a0b93cc063100f91"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.xhtml#a439305cf0a71fc85a0b93cc063100f91">armnn::IWorkloadFactory::CreateSubtraction</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateSubtraction(const SubtractionQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.xhtml#l01436">WorkloadFactory.cpp:1436</a></div></div> |
| 173 | </div><!-- fragment --> |
| 174 | </div> |
| 175 | </div> |
| 176 | <a id="aef09cbd7cc6981573d1436888cf1a82a"></a> |
| 177 | <h2 class="memtitle"><span class="permalink"><a href="#aef09cbd7cc6981573d1436888cf1a82a">◆ </a></span>SubtractionBroadcast1ElementFloat16Test()</h2> |
| 178 | |
| 179 | <div class="memitem"> |
| 180 | <div class="memproto"> |
| 181 | <table class="memname"> |
| 182 | <tr> |
| 183 | <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> SubtractionBroadcast1ElementFloat16Test </td> |
| 184 | <td>(</td> |
| 185 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 186 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 187 | </tr> |
| 188 | <tr> |
| 189 | <td class="paramkey"></td> |
| 190 | <td></td> |
| 191 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 192 | <td class="paramname"><em>memoryManager</em> </td> |
| 193 | </tr> |
| 194 | <tr> |
| 195 | <td></td> |
| 196 | <td>)</td> |
| 197 | <td></td><td></td> |
| 198 | </tr> |
| 199 | </table> |
| 200 | </div><div class="memdoc"> |
| 201 | |
| 202 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00195">195</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 203 | <div class="fragment"><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>  <span class="keyword">using namespace </span>half_float::literal;</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>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</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="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  std::vector<armnn::Half> input0 = { 1._h, 2._h, 3._h, 4._h };</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  std::vector<armnn::Half> input1 = { 10._h };</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  std::vector<armnn::Half> output = { -9._h, -8._h, -7._h, -6._h };</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  workloadFactory,</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  memoryManager,</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  shape0,</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  input0,</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  shape1,</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  input1,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  shape0,</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  output);</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> }</div></div><!-- fragment --> |
| 204 | </div> |
| 205 | </div> |
| 206 | <a id="a0a1eb21d1ee13e500e36635ebd4c2d2b"></a> |
| 207 | <h2 class="memtitle"><span class="permalink"><a href="#a0a1eb21d1ee13e500e36635ebd4c2d2b">◆ </a></span>SubtractionBroadcast1ElementInt16Test()</h2> |
| 208 | |
| 209 | <div class="memitem"> |
| 210 | <div class="memproto"> |
| 211 | <table class="memname"> |
| 212 | <tr> |
| 213 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> SubtractionBroadcast1ElementInt16Test </td> |
| 214 | <td>(</td> |
| 215 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 216 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 217 | </tr> |
| 218 | <tr> |
| 219 | <td class="paramkey"></td> |
| 220 | <td></td> |
| 221 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 222 | <td class="paramname"><em>memoryManager</em> </td> |
| 223 | </tr> |
| 224 | <tr> |
| 225 | <td></td> |
| 226 | <td>)</td> |
| 227 | <td></td><td></td> |
| 228 | </tr> |
| 229 | </table> |
| 230 | </div><div class="memdoc"> |
| 231 | |
| 232 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00274">274</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 233 | <div class="fragment"><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> {</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</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="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  std::vector<int16_t> input0 = { 10, 12, 14, 16 };</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  std::vector<int16_t> input1 = { 2 };</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  std::vector<int16_t> output = { 3, 4, 5, 6 };</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  workloadFactory,</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  memoryManager,</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  shape0,</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  input0,</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  0.5f,</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  0,</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  shape1,</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  input1,</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  1.0f,</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  0,</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  shape0,</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  output,</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  1.0f,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  0);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> }</div></div><!-- fragment --> |
| 234 | </div> |
| 235 | </div> |
| 236 | <a id="af9a0ddee6e06cef7c196cf9b4b363f77"></a> |
| 237 | <h2 class="memtitle"><span class="permalink"><a href="#af9a0ddee6e06cef7c196cf9b4b363f77">◆ </a></span>SubtractionBroadcast1ElementTest()</h2> |
| 238 | |
| 239 | <div class="memitem"> |
| 240 | <div class="memproto"> |
| 241 | <table class="memname"> |
| 242 | <tr> |
| 243 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> SubtractionBroadcast1ElementTest </td> |
| 244 | <td>(</td> |
| 245 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 246 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 247 | </tr> |
| 248 | <tr> |
| 249 | <td class="paramkey"></td> |
| 250 | <td></td> |
| 251 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 252 | <td class="paramname"><em>memoryManager</em> </td> |
| 253 | </tr> |
| 254 | <tr> |
| 255 | <td></td> |
| 256 | <td>)</td> |
| 257 | <td></td><td></td> |
| 258 | </tr> |
| 259 | </table> |
| 260 | </div><div class="memdoc"> |
| 261 | |
| 262 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00123">123</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 263 | <div class="fragment"><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>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</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="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  std::vector<float> input0 = { 1, 2, 3, 4 };</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>  std::vector<float> input1 = { 10 };</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  std::vector<float> output = { -9, -8, -7, -6 };</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  workloadFactory,</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  memoryManager,</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  shape0,</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  input0,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  shape1,</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  input1,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  shape0,</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  output);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> }</div></div><!-- fragment --> |
| 264 | </div> |
| 265 | </div> |
| 266 | <a id="a098b3aa8ae40141e9c43fc11233bc9ca"></a> |
| 267 | <h2 class="memtitle"><span class="permalink"><a href="#a098b3aa8ae40141e9c43fc11233bc9ca">◆ </a></span>SubtractionBroadcast1ElementUint8Test()</h2> |
| 268 | |
| 269 | <div class="memitem"> |
| 270 | <div class="memproto"> |
| 271 | <table class="memname"> |
| 272 | <tr> |
| 273 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> SubtractionBroadcast1ElementUint8Test </td> |
| 274 | <td>(</td> |
| 275 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 276 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 277 | </tr> |
| 278 | <tr> |
| 279 | <td class="paramkey"></td> |
| 280 | <td></td> |
| 281 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 282 | <td class="paramname"><em>memoryManager</em> </td> |
| 283 | </tr> |
| 284 | <tr> |
| 285 | <td></td> |
| 286 | <td>)</td> |
| 287 | <td></td><td></td> |
| 288 | </tr> |
| 289 | </table> |
| 290 | </div><div class="memdoc"> |
| 291 | |
| 292 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00047">47</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 293 | <div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</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="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  std::vector<uint8_t> input0 = { 10, 12, 14, 16 };</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  std::vector<uint8_t> input1 = { 2 };</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  std::vector<uint8_t> output = { 5, 6, 7, 8 };</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  workloadFactory,</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  memoryManager,</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  shape0,</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  input0,</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  0.5f,</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  2,</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  shape1,</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  input1,</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  1.0f,</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  0,</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  shape0,</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  output,</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  1.0f,</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  3);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div></div><!-- fragment --> |
| 294 | </div> |
| 295 | </div> |
| 296 | <a id="a28d606742965f098a62e8268dd03d1d6"></a> |
| 297 | <h2 class="memtitle"><span class="permalink"><a href="#a28d606742965f098a62e8268dd03d1d6">◆ </a></span>SubtractionBroadcastFloat16Test()</h2> |
| 298 | |
| 299 | <div class="memitem"> |
| 300 | <div class="memproto"> |
| 301 | <table class="memname"> |
| 302 | <tr> |
| 303 | <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> SubtractionBroadcastFloat16Test </td> |
| 304 | <td>(</td> |
| 305 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 306 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 307 | </tr> |
| 308 | <tr> |
| 309 | <td class="paramkey"></td> |
| 310 | <td></td> |
| 311 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 312 | <td class="paramname"><em>memoryManager</em> </td> |
| 313 | </tr> |
| 314 | <tr> |
| 315 | <td></td> |
| 316 | <td>)</td> |
| 317 | <td></td><td></td> |
| 318 | </tr> |
| 319 | </table> |
| 320 | </div><div class="memdoc"> |
| 321 | |
| 322 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00221">221</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 323 | <div class="fragment"><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>  <span class="keyword">using namespace </span>half_float::literal;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  std::vector<armnn::Half> input0 = { 1._h, 2._h, 3._h, 4._h };</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  std::vector<armnn::Half> input1 = { 10._h, -5._h };</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>  std::vector<armnn::Half> output = { -9._h, 7._h, -7._h, 9._h };</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  workloadFactory,</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  memoryManager,</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  shape0,</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  input0,</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  shape1,</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  input1,</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  shape0,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  output);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> }</div></div><!-- fragment --> |
| 324 | </div> |
| 325 | </div> |
| 326 | <a id="a47fe3e5a47fb2e37c3371ab264a07ffd"></a> |
| 327 | <h2 class="memtitle"><span class="permalink"><a href="#a47fe3e5a47fb2e37c3371ab264a07ffd">◆ </a></span>SubtractionBroadcastInt16Test()</h2> |
| 328 | |
| 329 | <div class="memitem"> |
| 330 | <div class="memproto"> |
| 331 | <table class="memname"> |
| 332 | <tr> |
| 333 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> SubtractionBroadcastInt16Test </td> |
| 334 | <td>(</td> |
| 335 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 336 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 337 | </tr> |
| 338 | <tr> |
| 339 | <td class="paramkey"></td> |
| 340 | <td></td> |
| 341 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 342 | <td class="paramname"><em>memoryManager</em> </td> |
| 343 | </tr> |
| 344 | <tr> |
| 345 | <td></td> |
| 346 | <td>)</td> |
| 347 | <td></td><td></td> |
| 348 | </tr> |
| 349 | </table> |
| 350 | </div><div class="memdoc"> |
| 351 | |
| 352 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00304">304</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 353 | <div class="fragment"><div class="line"><a name="l00307"></a><span class="lineno"> 307</span> {</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 2, 1 };</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  std::vector<int16_t> input0 = { 10, 12, 14, 16 };</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  std::vector<int16_t> input1 = { 2, 1 };</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  std::vector<int16_t> output = { 8, 11, 12, 15 };</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  workloadFactory,</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  memoryManager,</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  shape0,</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  input0,</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  shape1,</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  input1,</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  shape0,</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  output);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> }</div></div><!-- fragment --> |
| 354 | </div> |
| 355 | </div> |
| 356 | <a id="a230ab661651ba87930a5bc6a7604e6c8"></a> |
| 357 | <h2 class="memtitle"><span class="permalink"><a href="#a230ab661651ba87930a5bc6a7604e6c8">◆ </a></span>SubtractionBroadcastTest()</h2> |
| 358 | |
| 359 | <div class="memitem"> |
| 360 | <div class="memproto"> |
| 361 | <table class="memname"> |
| 362 | <tr> |
| 363 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> SubtractionBroadcastTest </td> |
| 364 | <td>(</td> |
| 365 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 366 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 367 | </tr> |
| 368 | <tr> |
| 369 | <td class="paramkey"></td> |
| 370 | <td></td> |
| 371 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 372 | <td class="paramname"><em>memoryManager</em> </td> |
| 373 | </tr> |
| 374 | <tr> |
| 375 | <td></td> |
| 376 | <td>)</td> |
| 377 | <td></td><td></td> |
| 378 | </tr> |
| 379 | </table> |
| 380 | </div><div class="memdoc"> |
| 381 | |
| 382 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00147">147</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 383 | <div class="fragment"><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> {</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  std::vector<float> input0 = { 1, 2, 3, 4 };</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  std::vector<float> input1 = { 10, -5 };</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  std::vector<float> output = { -9, 7, -7, 9 };</div><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="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  workloadFactory,</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  memoryManager,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  shape0,</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  input0,</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  shape1,</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  input1,</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  shape0,</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  output);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> }</div></div><!-- fragment --> |
| 384 | </div> |
| 385 | </div> |
| 386 | <a id="a3a6e0120f7dce89c2ef03a579c6c581e"></a> |
| 387 | <h2 class="memtitle"><span class="permalink"><a href="#a3a6e0120f7dce89c2ef03a579c6c581e">◆ </a></span>SubtractionBroadcastUint8Test()</h2> |
| 388 | |
| 389 | <div class="memitem"> |
| 390 | <div class="memproto"> |
| 391 | <table class="memname"> |
| 392 | <tr> |
| 393 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> SubtractionBroadcastUint8Test </td> |
| 394 | <td>(</td> |
| 395 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 396 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 397 | </tr> |
| 398 | <tr> |
| 399 | <td class="paramkey"></td> |
| 400 | <td></td> |
| 401 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 402 | <td class="paramname"><em>memoryManager</em> </td> |
| 403 | </tr> |
| 404 | <tr> |
| 405 | <td></td> |
| 406 | <td>)</td> |
| 407 | <td></td><td></td> |
| 408 | </tr> |
| 409 | </table> |
| 410 | </div><div class="memdoc"> |
| 411 | |
| 412 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00077">77</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 413 | <div class="fragment"><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 2, 1 };</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  std::vector<uint8_t> input0 = { 10, 12, 14, 16 };</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  std::vector<uint8_t> input1 = { 2, 1 };</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  std::vector<uint8_t> output = { 8, 11, 12, 15 };</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>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  workloadFactory,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  memoryManager,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  shape0,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  input0,</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  shape1,</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  input1,</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  shape0,</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  output);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> }</div></div><!-- fragment --> |
| 414 | </div> |
| 415 | </div> |
| 416 | <a id="abaaed9ad1a85f80958dcec993bba6f3a"></a> |
| 417 | <h2 class="memtitle"><span class="permalink"><a href="#abaaed9ad1a85f80958dcec993bba6f3a">◆ </a></span>SubtractionFloat16Test()</h2> |
| 418 | |
| 419 | <div class="memitem"> |
| 420 | <div class="memproto"> |
| 421 | <table class="memname"> |
| 422 | <tr> |
| 423 | <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> SubtractionFloat16Test </td> |
| 424 | <td>(</td> |
| 425 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 426 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 427 | </tr> |
| 428 | <tr> |
| 429 | <td class="paramkey"></td> |
| 430 | <td></td> |
| 431 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 432 | <td class="paramname"><em>memoryManager</em> </td> |
| 433 | </tr> |
| 434 | <tr> |
| 435 | <td></td> |
| 436 | <td>)</td> |
| 437 | <td></td><td></td> |
| 438 | </tr> |
| 439 | </table> |
| 440 | </div><div class="memdoc"> |
| 441 | |
| 442 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00171">171</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 443 | <div class="fragment"><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> {</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keyword">using namespace </span>half_float::literal;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  std::vector<armnn::Half> input0 = { 1._h, 2._h, 3._h, 4._h };</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  std::vector<armnn::Half> input1 = { 1._h, -1._h, 0._h, 2._h };</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  std::vector<armnn::Half> output = { 0._h, 3._h, 3._h, 2._h };</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  workloadFactory,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  memoryManager,</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  shape0,</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  input0,</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  shape1,</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  input1,</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  shape0,</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  output);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> }</div></div><!-- fragment --> |
| 444 | </div> |
| 445 | </div> |
| 446 | <a id="a7a25b712f181d499480edcf8ec5474cc"></a> |
| 447 | <h2 class="memtitle"><span class="permalink"><a href="#a7a25b712f181d499480edcf8ec5474cc">◆ </a></span>SubtractionInt16Test()</h2> |
| 448 | |
| 449 | <div class="memitem"> |
| 450 | <div class="memproto"> |
| 451 | <table class="memname"> |
| 452 | <tr> |
| 453 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> SubtractionInt16Test </td> |
| 454 | <td>(</td> |
| 455 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 456 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 457 | </tr> |
| 458 | <tr> |
| 459 | <td class="paramkey"></td> |
| 460 | <td></td> |
| 461 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 462 | <td class="paramname"><em>memoryManager</em> </td> |
| 463 | </tr> |
| 464 | <tr> |
| 465 | <td></td> |
| 466 | <td>)</td> |
| 467 | <td></td><td></td> |
| 468 | </tr> |
| 469 | </table> |
| 470 | </div><div class="memdoc"> |
| 471 | |
| 472 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00247">247</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 473 | <div class="fragment"><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> {</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> </div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  std::vector<int16_t> input0 = { 10, 12, 14, 16 };</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  std::vector<int16_t> input1 = { 1, 2, 1, 2 };</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  std::vector<int16_t> output = { 3, 3, 5, 5 };</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  workloadFactory,</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  memoryManager,</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  shape,</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  input0,</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  0.5f,</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  0,</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  shape,</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  input1,</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  1.0f,</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  0,</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  shape,</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  output,</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  1.0f,</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  0);</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> }</div></div><!-- fragment --> |
| 474 | </div> |
| 475 | </div> |
| 476 | <a id="af58d639c9d64bb08acb8b8e3ffaccbbb"></a> |
| 477 | <h2 class="memtitle"><span class="permalink"><a href="#af58d639c9d64bb08acb8b8e3ffaccbbb">◆ </a></span>SubtractionTest()</h2> |
| 478 | |
| 479 | <div class="memitem"> |
| 480 | <div class="memproto"> |
| 481 | <table class="memname"> |
| 482 | <tr> |
| 483 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> SubtractionTest </td> |
| 484 | <td>(</td> |
| 485 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 486 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 487 | </tr> |
| 488 | <tr> |
| 489 | <td class="paramkey"></td> |
| 490 | <td></td> |
| 491 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 492 | <td class="paramname"><em>memoryManager</em> </td> |
| 493 | </tr> |
| 494 | <tr> |
| 495 | <td></td> |
| 496 | <td>)</td> |
| 497 | <td></td><td></td> |
| 498 | </tr> |
| 499 | </table> |
| 500 | </div><div class="memdoc"> |
| 501 | |
| 502 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00101">101</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 503 | <div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  std::vector<float> input0 = { 1, 2, 3, 4 };</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  std::vector<float> input1 = { 1, -1, 0, 2 };</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  std::vector<float> output = { 0, 3, 3, 2 };</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  workloadFactory,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  memoryManager,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  shape0,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  input0,</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  shape1,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  input1,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  shape0,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  output);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div></div><!-- fragment --> |
| 504 | </div> |
| 505 | </div> |
| 506 | <a id="aedabb354e4e5af0759202e4dbbeb8441"></a> |
| 507 | <h2 class="memtitle"><span class="permalink"><a href="#aedabb354e4e5af0759202e4dbbeb8441">◆ </a></span>SubtractionUint8Test()</h2> |
| 508 | |
| 509 | <div class="memitem"> |
| 510 | <div class="memproto"> |
| 511 | <table class="memname"> |
| 512 | <tr> |
| 513 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> SubtractionUint8Test </td> |
| 514 | <td>(</td> |
| 515 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 516 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 517 | </tr> |
| 518 | <tr> |
| 519 | <td class="paramkey"></td> |
| 520 | <td></td> |
| 521 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 522 | <td class="paramname"><em>memoryManager</em> </td> |
| 523 | </tr> |
| 524 | <tr> |
| 525 | <td></td> |
| 526 | <td>)</td> |
| 527 | <td></td><td></td> |
| 528 | </tr> |
| 529 | </table> |
| 530 | </div><div class="memdoc"> |
| 531 | |
| 532 | <p class="definition">Definition at line <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml#l00019">19</a> of file <a class="el" href="_subtraction_test_impl_8cpp_source.xhtml">SubtractionTestImpl.cpp</a>.</p> |
| 533 | <div class="fragment"><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</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> shape0[] = { 1, 1, 2, 2 };</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> shape1[] = { 1, 1, 2, 2 };</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  std::vector<uint8_t> input0 = { 10, 12, 14, 16 };</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  std::vector<uint8_t> input1 = { 1, 2, 1, 2 };</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  std::vector<uint8_t> output = { 3, 3, 5, 5 };</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>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::SubtractionQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  workloadFactory,</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  memoryManager,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  shape0,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  input0,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  0.5f,</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  2,</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  shape1,</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  input1,</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  1.0f,</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  0,</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  shape0,</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  output,</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  1.0f,</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  0);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div></div><!-- fragment --> |
| 534 | </div> |
| 535 | </div> |
| 536 | </div><!-- contents --> |
| 537 | </div><!-- doc-content --> |
| 538 | <!-- start footer part --> |
| 539 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 540 | <ul> |
| 541 | <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="_subtraction_test_impl_8cpp.xhtml">SubtractionTestImpl.cpp</a></li> |
| 542 | <li class="footer">Generated on Fri Mar 13 2020 16:09:15 for ArmNN by |
| 543 | <a href="http://www.doxygen.org/index.html"> |
| 544 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 545 | </ul> |
| 546 | </div> |
| 547 | </body> |
| 548 | </html> |