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/DivisionTestImpl.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('_division_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">DivisionTestImpl.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_division_test_impl_8hpp_source.xhtml">DivisionTestImpl.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="_division_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:afaae70402fa37637d28397769b9a8ff6"><td class="memTemplParams" colspan="2">template<> </td></tr> |
| 111 | <tr class="memitem:afaae70402fa37637d28397769b9a8ff6"><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="_division_test_impl_8cpp.xhtml#afaae70402fa37637d28397769b9a8ff6">CreateWorkload< armnn::DivisionQueueDescriptor ></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_division_queue_descriptor.xhtml">armnn::DivisionQueueDescriptor</a> &descriptor)</td></tr> |
| 112 | <tr class="separator:afaae70402fa37637d28397769b9a8ff6"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:afd429b00b6869309e768fc7ecdc1d3aa"><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="_division_test_impl_8cpp.xhtml#afd429b00b6869309e768fc7ecdc1d3aa">DivisionByZeroTest</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:afd429b00b6869309e768fc7ecdc1d3aa"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a0ffe3f6f1297b8dc4c3f49389933c7d8"><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="_division_test_impl_8cpp.xhtml#a0ffe3f6f1297b8dc4c3f49389933c7d8">DivisionTest</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:a0ffe3f6f1297b8dc4c3f49389933c7d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:ab4698982570cfa37dad688623fc7c1d8"><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="_division_test_impl_8cpp.xhtml#ab4698982570cfa37dad688623fc7c1d8">DivisionBroadcast1ElementTest</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:ab4698982570cfa37dad688623fc7c1d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a888a7d50e58a8fb5fee7ad1ae11df736"><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="_division_test_impl_8cpp.xhtml#a888a7d50e58a8fb5fee7ad1ae11df736">DivisionBroadcast1DVectorTest</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:a888a7d50e58a8fb5fee7ad1ae11df736"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:af05106a201d16d82f4336d4128dabc5a"><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="_division_test_impl_8cpp.xhtml#af05106a201d16d82f4336d4128dabc5a">DivisionFloat16Test</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:af05106a201d16d82f4336d4128dabc5a"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a31b65e3c39f135d3c866a2f8e5d1851c"><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="_division_test_impl_8cpp.xhtml#a31b65e3c39f135d3c866a2f8e5d1851c">DivisionBroadcast1ElementFloat16Test</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:a31b65e3c39f135d3c866a2f8e5d1851c"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a49be4bd470666e2191940689f15747b8"><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="_division_test_impl_8cpp.xhtml#a49be4bd470666e2191940689f15747b8">DivisionBroadcast1DVectorFloat16Test</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:a49be4bd470666e2191940689f15747b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:a0ca6d4aa8a25096570e7fb724e282483"><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="_division_test_impl_8cpp.xhtml#a0ca6d4aa8a25096570e7fb724e282483">DivisionUint8Test</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:a0ca6d4aa8a25096570e7fb724e282483"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a7905aab5acadb38374fa416e2a3f0ccf"><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="_division_test_impl_8cpp.xhtml#a7905aab5acadb38374fa416e2a3f0ccf">DivisionBroadcast1ElementUint8Test</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:a7905aab5acadb38374fa416e2a3f0ccf"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:afb7ebe6c4afbc0f9a6b39dff2b57a98a"><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="_division_test_impl_8cpp.xhtml#afb7ebe6c4afbc0f9a6b39dff2b57a98a">DivisionBroadcast1DVectorUint8Test</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:afb7ebe6c4afbc0f9a6b39dff2b57a98a"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:aaff7696d97c4e9e1ab541430b327d2c1"><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="_division_test_impl_8cpp.xhtml#aaff7696d97c4e9e1ab541430b327d2c1">DivisionInt16Test</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:aaff7696d97c4e9e1ab541430b327d2c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:aa1cc1413993d9ab16a948712e0cf8e31"><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="_division_test_impl_8cpp.xhtml#aa1cc1413993d9ab16a948712e0cf8e31">DivisionBroadcast1ElementInt16Test</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:aa1cc1413993d9ab16a948712e0cf8e31"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:a12c7eadab87314b7d4d02c7d0dd03542"><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="_division_test_impl_8cpp.xhtml#a12c7eadab87314b7d4d02c7d0dd03542">DivisionBroadcast1DVectorInt16Test</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> |
| 138 | <tr class="separator:a12c7eadab87314b7d4d02c7d0dd03542"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | </table> |
| 140 | <h2 class="groupheader">Function Documentation</h2> |
| 141 | <a id="afaae70402fa37637d28397769b9a8ff6"></a> |
| 142 | <h2 class="memtitle"><span class="permalink"><a href="#afaae70402fa37637d28397769b9a8ff6">◆ </a></span>CreateWorkload< armnn::DivisionQueueDescriptor >()</h2> |
| 143 | |
| 144 | <div class="memitem"> |
| 145 | <div class="memproto"> |
| 146 | <table class="memname"> |
| 147 | <tr> |
| 148 | <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_division_queue_descriptor.xhtml">armnn::DivisionQueueDescriptor</a> > </td> |
| 149 | <td>(</td> |
| 150 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 151 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 152 | </tr> |
| 153 | <tr> |
| 154 | <td class="paramkey"></td> |
| 155 | <td></td> |
| 156 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a> & </td> |
| 157 | <td class="paramname"><em>info</em>, </td> |
| 158 | </tr> |
| 159 | <tr> |
| 160 | <td class="paramkey"></td> |
| 161 | <td></td> |
| 162 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_division_queue_descriptor.xhtml">armnn::DivisionQueueDescriptor</a> & </td> |
| 163 | <td class="paramname"><em>descriptor</em> </td> |
| 164 | </tr> |
| 165 | <tr> |
| 166 | <td></td> |
| 167 | <td>)</td> |
| 168 | <td></td><td></td> |
| 169 | </tr> |
| 170 | </table> |
| 171 | </div><div class="memdoc"> |
| 172 | |
| 173 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00011">11</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 174 | <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#a20bb773c7fd6253418bdedac1312cd19">CreateDivision</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_a20bb773c7fd6253418bdedac1312cd19"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.xhtml#a20bb773c7fd6253418bdedac1312cd19">armnn::IWorkloadFactory::CreateDivision</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateDivision(const DivisionQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.xhtml#l01195">WorkloadFactory.cpp:1195</a></div></div> |
| 175 | </div><!-- fragment --> |
| 176 | </div> |
| 177 | </div> |
| 178 | <a id="a49be4bd470666e2191940689f15747b8"></a> |
| 179 | <h2 class="memtitle"><span class="permalink"><a href="#a49be4bd470666e2191940689f15747b8">◆ </a></span>DivisionBroadcast1DVectorFloat16Test()</h2> |
| 180 | |
| 181 | <div class="memitem"> |
| 182 | <div class="memproto"> |
| 183 | <table class="memname"> |
| 184 | <tr> |
| 185 | <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> DivisionBroadcast1DVectorFloat16Test </td> |
| 186 | <td>(</td> |
| 187 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 188 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 189 | </tr> |
| 190 | <tr> |
| 191 | <td class="paramkey"></td> |
| 192 | <td></td> |
| 193 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 194 | <td class="paramname"><em>memoryManager</em> </td> |
| 195 | </tr> |
| 196 | <tr> |
| 197 | <td></td> |
| 198 | <td>)</td> |
| 199 | <td></td><td></td> |
| 200 | </tr> |
| 201 | </table> |
| 202 | </div><div class="memdoc"> |
| 203 | |
| 204 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00226">226</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 205 | <div class="fragment"><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>  <span class="keyword">using namespace </span>half_float::literal;</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 3, 3, 2 };</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 2 };</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<armnn::Half> input0 =</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>  1._h, 4._h, 3._h, 8._h, 5._h, 12._h,</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  7._h, 16._h, 9._h, 20._h, 11._h, 24._h,</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  13._h, 28._h, 15._h, 32._h, 17._h, 36._h</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> </div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  std::vector<armnn::Half> input1 = { 1._h, 2._h };</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  std::vector<armnn::Half> output =</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  {</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  1._h, 2._h, 3._h, 4._h, 5._h, 6._h,</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  7._h, 8._h, 9._h, 10._h, 11._h, 12._h,</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  13._h, 14._h, 15._h, 16._h, 17._h, 18._h</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  };</div><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="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  workloadFactory,</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  memoryManager,</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  shape0,</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  input0,</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  shape1,</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  input1,</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  shape0,</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  output);</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> }</div></div><!-- fragment --> |
| 206 | </div> |
| 207 | </div> |
| 208 | <a id="a12c7eadab87314b7d4d02c7d0dd03542"></a> |
| 209 | <h2 class="memtitle"><span class="permalink"><a href="#a12c7eadab87314b7d4d02c7d0dd03542">◆ </a></span>DivisionBroadcast1DVectorInt16Test()</h2> |
| 210 | |
| 211 | <div class="memitem"> |
| 212 | <div class="memproto"> |
| 213 | <table class="memname"> |
| 214 | <tr> |
| 215 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> DivisionBroadcast1DVectorInt16Test </td> |
| 216 | <td>(</td> |
| 217 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 218 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 219 | </tr> |
| 220 | <tr> |
| 221 | <td class="paramkey"></td> |
| 222 | <td></td> |
| 223 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 224 | <td class="paramname"><em>memoryManager</em> </td> |
| 225 | </tr> |
| 226 | <tr> |
| 227 | <td></td> |
| 228 | <td>)</td> |
| 229 | <td></td><td></td> |
| 230 | </tr> |
| 231 | </table> |
| 232 | </div><div class="memdoc"> |
| 233 | |
| 234 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00423">423</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 235 | <div class="fragment"><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> {</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 3, 3, 2 };</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> </div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  std::vector<int16_t> input0 =</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  {</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  1, 4, 3, 8, 5, 12,</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  7, 16, 9, 20, 11, 24,</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  13, 28, 15, 32, 17, 36</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  };</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  std::vector<int16_t> input1 = { 1, 2 };</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  std::vector<int16_t> output =</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  {</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  1, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  7, 8, 9, 10, 11, 12,</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  13, 14, 15, 16, 17, 18</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  };</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  workloadFactory,</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  memoryManager,</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  shape0,</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  input0,</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  shape1,</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  input1,</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  shape0,</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  output);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> }</div></div><!-- fragment --> |
| 236 | </div> |
| 237 | </div> |
| 238 | <a id="a888a7d50e58a8fb5fee7ad1ae11df736"></a> |
| 239 | <h2 class="memtitle"><span class="permalink"><a href="#a888a7d50e58a8fb5fee7ad1ae11df736">◆ </a></span>DivisionBroadcast1DVectorTest()</h2> |
| 240 | |
| 241 | <div class="memitem"> |
| 242 | <div class="memproto"> |
| 243 | <table class="memname"> |
| 244 | <tr> |
| 245 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> DivisionBroadcast1DVectorTest </td> |
| 246 | <td>(</td> |
| 247 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 248 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 249 | </tr> |
| 250 | <tr> |
| 251 | <td class="paramkey"></td> |
| 252 | <td></td> |
| 253 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 254 | <td class="paramname"><em>memoryManager</em> </td> |
| 255 | </tr> |
| 256 | <tr> |
| 257 | <td></td> |
| 258 | <td>)</td> |
| 259 | <td></td><td></td> |
| 260 | </tr> |
| 261 | </table> |
| 262 | </div><div class="memdoc"> |
| 263 | |
| 264 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00124">124</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 265 | <div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 3, 3, 2 };</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  std::vector<float> input0 =</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>  1.f, 4.f, 3.f, 8.f, 5.f, 12.f,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  7.f, 16.f, 9.f, 20.f, 11.f, 24.f,</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  13.f, 28.f, 15.f, 32.f, 17.f, 36.f</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  };</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>  std::vector<float> input1 = { 1.f, 2.f };</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  std::vector<float> output =</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  1.f, 2.f, 3.f, 4.f, 5.f, 6.f,</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  7.f, 8.f, 9.f, 10.f, 11.f, 12.f,</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  13.f, 14.f, 15.f, 16.f, 17.f, 18.f</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  };</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  workloadFactory,</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  memoryManager,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  shape0,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  input0,</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  shape1,</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  input1,</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  shape0,</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  output);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> }</div></div><!-- fragment --> |
| 266 | </div> |
| 267 | </div> |
| 268 | <a id="afb7ebe6c4afbc0f9a6b39dff2b57a98a"></a> |
| 269 | <h2 class="memtitle"><span class="permalink"><a href="#afb7ebe6c4afbc0f9a6b39dff2b57a98a">◆ </a></span>DivisionBroadcast1DVectorUint8Test()</h2> |
| 270 | |
| 271 | <div class="memitem"> |
| 272 | <div class="memproto"> |
| 273 | <table class="memname"> |
| 274 | <tr> |
| 275 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> DivisionBroadcast1DVectorUint8Test </td> |
| 276 | <td>(</td> |
| 277 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 278 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td class="paramkey"></td> |
| 282 | <td></td> |
| 283 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 284 | <td class="paramname"><em>memoryManager</em> </td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td></td> |
| 288 | <td>)</td> |
| 289 | <td></td><td></td> |
| 290 | </tr> |
| 291 | </table> |
| 292 | </div><div class="memdoc"> |
| 293 | |
| 294 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00328">328</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 295 | <div class="fragment"><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> {</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 3, 3, 2 };</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  std::vector<uint8_t> input0 =</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  {</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  1, 4, 3, 8, 5, 12,</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  7, 16, 9, 20, 11, 24,</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  13, 28, 15, 32, 17, 36</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  };</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  std::vector<uint8_t> input1 = { 1, 2 };</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  std::vector<uint8_t> output =</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  {</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  1, 2, 3, 4, 5, 6,</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  7, 8, 9, 10, 11, 12,</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  13, 14, 15, 16, 17, 18</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> </div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  workloadFactory,</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  memoryManager,</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  shape0,</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  input0,</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  shape1,</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  input1,</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  shape0,</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  output);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span> }</div></div><!-- fragment --> |
| 296 | </div> |
| 297 | </div> |
| 298 | <a id="a31b65e3c39f135d3c866a2f8e5d1851c"></a> |
| 299 | <h2 class="memtitle"><span class="permalink"><a href="#a31b65e3c39f135d3c866a2f8e5d1851c">◆ </a></span>DivisionBroadcast1ElementFloat16Test()</h2> |
| 300 | |
| 301 | <div class="memitem"> |
| 302 | <div class="memproto"> |
| 303 | <table class="memname"> |
| 304 | <tr> |
| 305 | <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> DivisionBroadcast1ElementFloat16Test </td> |
| 306 | <td>(</td> |
| 307 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 308 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 309 | </tr> |
| 310 | <tr> |
| 311 | <td class="paramkey"></td> |
| 312 | <td></td> |
| 313 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 314 | <td class="paramname"><em>memoryManager</em> </td> |
| 315 | </tr> |
| 316 | <tr> |
| 317 | <td></td> |
| 318 | <td>)</td> |
| 319 | <td></td><td></td> |
| 320 | </tr> |
| 321 | </table> |
| 322 | </div><div class="memdoc"> |
| 323 | |
| 324 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00200">200</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 325 | <div class="fragment"><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>  <span class="keyword">using namespace </span>half_float::literal;</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 2 };</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  std::vector<armnn::Half> input0({ 2._h, 4._h, 6._h, 8._h, 10._h, 12._h, 14._h, 16._h});</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  std::vector<armnn::Half> input1({ 2._h });</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  std::vector<armnn::Half> output({ 1._h, 2._h, 3._h, 4._h, 5._h, 6._h, 7._h, 8._h});</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  workloadFactory,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  memoryManager,</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  shape0,</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  input0,</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  shape1,</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  input1,</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  shape0,</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  output);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> }</div></div><!-- fragment --> |
| 326 | </div> |
| 327 | </div> |
| 328 | <a id="aa1cc1413993d9ab16a948712e0cf8e31"></a> |
| 329 | <h2 class="memtitle"><span class="permalink"><a href="#aa1cc1413993d9ab16a948712e0cf8e31">◆ </a></span>DivisionBroadcast1ElementInt16Test()</h2> |
| 330 | |
| 331 | <div class="memitem"> |
| 332 | <div class="memproto"> |
| 333 | <table class="memname"> |
| 334 | <tr> |
| 335 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> DivisionBroadcast1ElementInt16Test </td> |
| 336 | <td>(</td> |
| 337 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 338 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 339 | </tr> |
| 340 | <tr> |
| 341 | <td class="paramkey"></td> |
| 342 | <td></td> |
| 343 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 344 | <td class="paramname"><em>memoryManager</em> </td> |
| 345 | </tr> |
| 346 | <tr> |
| 347 | <td></td> |
| 348 | <td>)</td> |
| 349 | <td></td><td></td> |
| 350 | </tr> |
| 351 | </table> |
| 352 | </div><div class="memdoc"> |
| 353 | |
| 354 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00399">399</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 355 | <div class="fragment"><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> {</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 2 };</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  std::vector<int16_t> input0 = { 2, 4, 6, 8, 10, 12, 14, 16};</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  std::vector<int16_t> input1 = { 2 };</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  std::vector<int16_t> output = { 1, 2, 3, 4, 5, 6, 7, 8};</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  workloadFactory,</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  memoryManager,</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  shape0,</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  input0,</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  shape1,</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  input1,</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  shape0,</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  output);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> }</div></div><!-- fragment --> |
| 356 | </div> |
| 357 | </div> |
| 358 | <a id="ab4698982570cfa37dad688623fc7c1d8"></a> |
| 359 | <h2 class="memtitle"><span class="permalink"><a href="#ab4698982570cfa37dad688623fc7c1d8">◆ </a></span>DivisionBroadcast1ElementTest()</h2> |
| 360 | |
| 361 | <div class="memitem"> |
| 362 | <div class="memproto"> |
| 363 | <table class="memname"> |
| 364 | <tr> |
| 365 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> DivisionBroadcast1ElementTest </td> |
| 366 | <td>(</td> |
| 367 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 368 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 369 | </tr> |
| 370 | <tr> |
| 371 | <td class="paramkey"></td> |
| 372 | <td></td> |
| 373 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 374 | <td class="paramname"><em>memoryManager</em> </td> |
| 375 | </tr> |
| 376 | <tr> |
| 377 | <td></td> |
| 378 | <td>)</td> |
| 379 | <td></td><td></td> |
| 380 | </tr> |
| 381 | </table> |
| 382 | </div><div class="memdoc"> |
| 383 | |
| 384 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00100">100</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 385 | <div class="fragment"><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="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 2 };</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 1 };</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  std::vector<float> input0({ 2, 4, 6, 8, 10, 12, 14, 16});</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  std::vector<float> input1({ 2 });</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  std::vector<float> output({ 1, 2, 3, 4, 5, 6, 7, 8});</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  workloadFactory,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  memoryManager,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  shape0,</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  input0,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  shape1,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  input1,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  shape0,</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  output);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div></div><!-- fragment --> |
| 386 | </div> |
| 387 | </div> |
| 388 | <a id="a7905aab5acadb38374fa416e2a3f0ccf"></a> |
| 389 | <h2 class="memtitle"><span class="permalink"><a href="#a7905aab5acadb38374fa416e2a3f0ccf">◆ </a></span>DivisionBroadcast1ElementUint8Test()</h2> |
| 390 | |
| 391 | <div class="memitem"> |
| 392 | <div class="memproto"> |
| 393 | <table class="memname"> |
| 394 | <tr> |
| 395 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> DivisionBroadcast1ElementUint8Test </td> |
| 396 | <td>(</td> |
| 397 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 398 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 399 | </tr> |
| 400 | <tr> |
| 401 | <td class="paramkey"></td> |
| 402 | <td></td> |
| 403 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 404 | <td class="paramname"><em>memoryManager</em> </td> |
| 405 | </tr> |
| 406 | <tr> |
| 407 | <td></td> |
| 408 | <td>)</td> |
| 409 | <td></td><td></td> |
| 410 | </tr> |
| 411 | </table> |
| 412 | </div><div class="memdoc"> |
| 413 | |
| 414 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00304">304</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 415 | <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="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape0[] = { 1, 2, 2, 2 };</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape1[] = { 1, 1, 1, 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<uint8_t> input0 = { 2, 4, 6, 8, 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<uint8_t> input1 = { 2 };</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<uint8_t> output = { 1, 2, 3, 4, 5, 6, 7, 8};</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::DivisionQueueDescriptor, armnn::DataType::QAsymmU8>(</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 --> |
| 416 | </div> |
| 417 | </div> |
| 418 | <a id="afd429b00b6869309e768fc7ecdc1d3aa"></a> |
| 419 | <h2 class="memtitle"><span class="permalink"><a href="#afd429b00b6869309e768fc7ecdc1d3aa">◆ </a></span>DivisionByZeroTest()</h2> |
| 420 | |
| 421 | <div class="memitem"> |
| 422 | <div class="memproto"> |
| 423 | <table class="memname"> |
| 424 | <tr> |
| 425 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> DivisionByZeroTest </td> |
| 426 | <td>(</td> |
| 427 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 428 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 429 | </tr> |
| 430 | <tr> |
| 431 | <td class="paramkey"></td> |
| 432 | <td></td> |
| 433 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 434 | <td class="paramname"><em>memoryManager</em> </td> |
| 435 | </tr> |
| 436 | <tr> |
| 437 | <td></td> |
| 438 | <td>)</td> |
| 439 | <td></td><td></td> |
| 440 | </tr> |
| 441 | </table> |
| 442 | </div><div class="memdoc"> |
| 443 | |
| 444 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00019">19</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 445 | |
| 446 | <p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p> |
| 447 | <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>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(memoryManager);</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> width = 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> height = 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> channelCount = 2u;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 2u;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { batchSize, channelCount, height, width };</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  std::vector<float> input0 =</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  1.f, 1.f, 1.f, 1.f, 0.f, 0.f, 0.f, 0.f,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  -1.f, -1.f, -1.f, -1.f, 5.f, 5.f, 5.f, 5.f</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> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  std::vector<float> input1 =</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  0.f, 0.f, -0.f, -0.f, 0.f, 0.f, -0.f, -0.f,</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  0.f, 0.f, -0.f, -0.f, 5.f, 5.f, 5.f, 5.f</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> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::vector<float> output =</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  INFINITY, INFINITY, -INFINITY, -INFINITY, NAN, NAN, -NAN, -NAN,</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  -INFINITY, -INFINITY, INFINITY, INFINITY, 1, 1, 1, 1</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> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  workloadFactory,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  memoryManager,</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  shape,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  input0,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  shape,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  input1,</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  shape,</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  output);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</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> |
| 448 | </div><!-- fragment --> |
| 449 | </div> |
| 450 | </div> |
| 451 | <a id="af05106a201d16d82f4336d4128dabc5a"></a> |
| 452 | <h2 class="memtitle"><span class="permalink"><a href="#af05106a201d16d82f4336d4128dabc5a">◆ </a></span>DivisionFloat16Test()</h2> |
| 453 | |
| 454 | <div class="memitem"> |
| 455 | <div class="memproto"> |
| 456 | <table class="memname"> |
| 457 | <tr> |
| 458 | <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> DivisionFloat16Test </td> |
| 459 | <td>(</td> |
| 460 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 461 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 462 | </tr> |
| 463 | <tr> |
| 464 | <td class="paramkey"></td> |
| 465 | <td></td> |
| 466 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 467 | <td class="paramname"><em>memoryManager</em> </td> |
| 468 | </tr> |
| 469 | <tr> |
| 470 | <td></td> |
| 471 | <td>)</td> |
| 472 | <td></td><td></td> |
| 473 | </tr> |
| 474 | </table> |
| 475 | </div><div class="memdoc"> |
| 476 | |
| 477 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00158">158</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 478 | <div class="fragment"><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="keyword">using namespace </span>half_float::literal;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width = 2u;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height = 2u;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channelCount = 2u;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 2u;</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { batchSize, channelCount, height, width };</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>  std::vector<armnn::Half> input0 =</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  {</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  2._h, 2._h, 2._h, 2._h, 3._h, 3._h, 3._h, 3._h,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  4._h, 4._h, 4._h, 4._h, 5._h, 5._h, 5._h, 5._h</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  };</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>  std::vector<armnn::Half> input1 =</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  1._h, 1._h, 1._h, 1._h, 2._h, 2._h, 2._h, 2._h,</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  4._h, 4._h, 4._h, 4._h, 4._h, 4._h, 4._h, 4._h</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  };</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  std::vector<armnn::Half> output =</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  {</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  2._h, 2._h, 2._h, 2._h, 1.50_h, 1.50_h, 1.50_h, 1.50_h,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  1._h, 1._h, 1._h, 1._h, 1.25_h, 1.25_h, 1.25_h, 1.25_h</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> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float16>(</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  workloadFactory,</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  memoryManager,</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  shape,</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  input0,</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  shape,</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  input1,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  shape,</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  output);</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> }</div></div><!-- fragment --> |
| 479 | </div> |
| 480 | </div> |
| 481 | <a id="aaff7696d97c4e9e1ab541430b327d2c1"></a> |
| 482 | <h2 class="memtitle"><span class="permalink"><a href="#aaff7696d97c4e9e1ab541430b327d2c1">◆ </a></span>DivisionInt16Test()</h2> |
| 483 | |
| 484 | <div class="memitem"> |
| 485 | <div class="memproto"> |
| 486 | <table class="memname"> |
| 487 | <tr> |
| 488 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t,4> DivisionInt16Test </td> |
| 489 | <td>(</td> |
| 490 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 491 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 492 | </tr> |
| 493 | <tr> |
| 494 | <td class="paramkey"></td> |
| 495 | <td></td> |
| 496 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 497 | <td class="paramname"><em>memoryManager</em> </td> |
| 498 | </tr> |
| 499 | <tr> |
| 500 | <td></td> |
| 501 | <td>)</td> |
| 502 | <td></td><td></td> |
| 503 | </tr> |
| 504 | </table> |
| 505 | </div><div class="memdoc"> |
| 506 | |
| 507 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00362">362</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 508 | <div class="fragment"><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> {</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { 2, 2, 2, 2 };</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  std::vector<int16_t> input0 =</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  {</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  2, 2, 2, 2, 3, 3, 3, 3,</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  4, 4, 4, 4, 5, 5, 5, 5</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  };</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  std::vector<int16_t> input1 =</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  {</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  1, 1, 1, 1, 2, 2, 2, 2,</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  4, 4, 4, 4, 4, 4, 4, 4</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  };</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> output =</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>  8, 8, 8, 8, 6, 6, 6, 6,</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  4, 4, 4, 4, 5, 5, 5, 5</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>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  workloadFactory,</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  memoryManager,</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  shape,</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  input0,</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  shape,</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  input1,</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  shape,</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  output,</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  0.25f,</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  0);</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span> }</div></div><!-- fragment --> |
| 509 | </div> |
| 510 | </div> |
| 511 | <a id="a0ffe3f6f1297b8dc4c3f49389933c7d8"></a> |
| 512 | <h2 class="memtitle"><span class="permalink"><a href="#a0ffe3f6f1297b8dc4c3f49389933c7d8">◆ </a></span>DivisionTest()</h2> |
| 513 | |
| 514 | <div class="memitem"> |
| 515 | <div class="memproto"> |
| 516 | <table class="memname"> |
| 517 | <tr> |
| 518 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> DivisionTest </td> |
| 519 | <td>(</td> |
| 520 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 521 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 522 | </tr> |
| 523 | <tr> |
| 524 | <td class="paramkey"></td> |
| 525 | <td></td> |
| 526 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 527 | <td class="paramname"><em>memoryManager</em> </td> |
| 528 | </tr> |
| 529 | <tr> |
| 530 | <td></td> |
| 531 | <td>)</td> |
| 532 | <td></td><td></td> |
| 533 | </tr> |
| 534 | </table> |
| 535 | </div><div class="memdoc"> |
| 536 | |
| 537 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00060">60</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 538 | <div class="fragment"><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width = 2u;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height = 2u;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channelCount = 2u;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 2u;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { batchSize, channelCount, height, width };</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  std::vector<float> input0 =</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  2.f, 2.f, 2.f, 2.f, 3.f, 3.f, 3.f, 3.f,</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  4.f, 4.f, 4.f, 4.f, 5.f, 5.f, 5.f, 5.f</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  };</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  std::vector<float> input1 =</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  1.f, 1.f, 1.f, 1.f, 2.f, 2.f, 2.f, 2.f,</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  4.f, 4.f, 4.f, 4.f, 4.f, 4.f, 4.f, 4.f</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  };</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  std::vector<float> output =</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  2.f, 2.f, 2.f, 2.f, 1.50f, 1.50f, 1.50f, 1.50f,</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  1.f, 1.f, 1.f, 1.f, 1.25f, 1.25f, 1.25f, 1.25f</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> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::Float32>(</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  workloadFactory,</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  memoryManager,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  shape,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  input0,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  shape,</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  input1,</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  shape,</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  output);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> }</div></div><!-- fragment --> |
| 539 | </div> |
| 540 | </div> |
| 541 | <a id="a0ca6d4aa8a25096570e7fb724e282483"></a> |
| 542 | <h2 class="memtitle"><span class="permalink"><a href="#a0ca6d4aa8a25096570e7fb724e282483">◆ </a></span>DivisionUint8Test()</h2> |
| 543 | |
| 544 | <div class="memitem"> |
| 545 | <div class="memproto"> |
| 546 | <table class="memname"> |
| 547 | <tr> |
| 548 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> DivisionUint8Test </td> |
| 549 | <td>(</td> |
| 550 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 551 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 552 | </tr> |
| 553 | <tr> |
| 554 | <td class="paramkey"></td> |
| 555 | <td></td> |
| 556 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 557 | <td class="paramname"><em>memoryManager</em> </td> |
| 558 | </tr> |
| 559 | <tr> |
| 560 | <td></td> |
| 561 | <td>)</td> |
| 562 | <td></td><td></td> |
| 563 | </tr> |
| 564 | </table> |
| 565 | </div><div class="memdoc"> |
| 566 | |
| 567 | <p class="definition">Definition at line <a class="el" href="_division_test_impl_8cpp_source.xhtml#l00262">262</a> of file <a class="el" href="_division_test_impl_8cpp_source.xhtml">DivisionTestImpl.cpp</a>.</p> |
| 568 | <div class="fragment"><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width = 2u;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height = 2u;</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channelCount = 2u;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 2u;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shape[] = { batchSize, channelCount, height, width };</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>  std::vector<uint8_t> input0 =</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  {</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  2, 2, 2, 2, 3, 3, 3, 3,</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  4, 4, 4, 4, 5, 5, 5, 5</div><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> </div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  std::vector<uint8_t> input1 =</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>  1, 1, 1, 1, 2, 2, 2, 2,</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  4, 4, 4, 4, 4, 4, 4, 4</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  };</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<uint8_t> output =</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>  8, 8, 8, 8, 6, 6, 6, 6,</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  4, 4, 4, 4, 5, 5, 5, 5</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  };</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>  <span class="keywordflow">return</span> ElementwiseTestHelper<4, armnn::DivisionQueueDescriptor, armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  workloadFactory,</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  memoryManager,</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  shape,</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  input0,</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  shape,</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  input1,</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  shape,</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>  0.25f,</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 --> |
| 569 | </div> |
| 570 | </div> |
| 571 | </div><!-- contents --> |
| 572 | </div><!-- doc-content --> |
| 573 | <!-- start footer part --> |
| 574 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 575 | <ul> |
| 576 | <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="_division_test_impl_8cpp.xhtml">DivisionTestImpl.cpp</a></li> |
| 577 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 578 | <a href="http://www.doxygen.org/index.html"> |
| 579 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 580 | </ul> |
| 581 | </div> |
| 582 | </body> |
| 583 | </html> |