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/ElementwiseTestImpl.hpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_elementwise_test_impl_8hpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">ElementwiseTestImpl.hpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_layer_test_result_8hpp_source.xhtml">LayerTestResult.hpp</a>"</code><br /> |
| 104 | <code>#include <<a class="el" href="_resolve_type_8hpp_source.xhtml">ResolveType.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml">armnn/backends/IBackendInternal.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_workload_8hpp_source.xhtml">backendsCommon/Workload.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_workload_data_8hpp_source.xhtml">backendsCommon/WorkloadData.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.xhtml">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 109 | <code>#include <<a class="el" href="_data_type_utils_8hpp_source.xhtml">backendsCommon/test/DataTypeUtils.hpp</a>></code><br /> |
| 110 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.xhtml">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 111 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.xhtml">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 112 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.xhtml">test/TensorHelpers.hpp</a>></code><br /> |
| 113 | <code>#include <memory></code><br /> |
| 114 | </div> |
| 115 | <p><a href="_elementwise_test_impl_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 116 | <table class="memberdecls"> |
| 117 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 118 | Functions</h2></td></tr> |
| 119 | <tr class="memitem:ab6921db5d86507f5b126af1cc516adb9"><td class="memTemplParams" colspan="2">template<typename DescriptorType > </td></tr> |
| 120 | <tr class="memitem:ab6921db5d86507f5b126af1cc516adb9"><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="_elementwise_test_impl_8hpp.xhtml#ab6921db5d86507f5b126af1cc516adb9">CreateWorkload</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 DescriptorType &descriptor)</td></tr> |
| 121 | <tr class="separator:ab6921db5d86507f5b126af1cc516adb9"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:af2a138d3236f0fa3382d2380203c7422"><td class="memTemplParams" colspan="2">template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnTypeInput, armnn::DataType ArmnnTypeOutput, typename TInput = armnn::ResolveType<ArmnnTypeInput>, typename TOutput = armnn::ResolveType<ArmnnTypeOutput>> </td></tr> |
| 123 | <tr class="memitem:af2a138d3236f0fa3382d2380203c7422"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< TOutput, NumDims > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_elementwise_test_impl_8hpp.xhtml#af2a138d3236f0fa3382d2380203c7422">ElementwiseTestHelper</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, const unsigned int shape0[NumDims], std::vector< TInput > values0, float quantScale0, int quantOffset0, const unsigned int shape1[NumDims], std::vector< TInput > values1, float quantScale1, int quantOffset1, const unsigned int outShape[NumDims], std::vector< TOutput > outValues, float outQuantScale, int outQuantOffset)</td></tr> |
| 124 | <tr class="separator:af2a138d3236f0fa3382d2380203c7422"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a65833679c4ddda377d1f2c95389808a4"><td class="memTemplParams" colspan="2">template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 126 | <tr class="memitem:a65833679c4ddda377d1f2c95389808a4"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, NumDims > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_elementwise_test_impl_8hpp.xhtml#a65833679c4ddda377d1f2c95389808a4">ElementwiseTestHelper</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, const unsigned int shape0[NumDims], std::vector< T > values0, float quantScale0, int quantOffset0, const unsigned int shape1[NumDims], std::vector< T > values1, float quantScale1, int quantOffset1, const unsigned int outShape[NumDims], std::vector< T > outValues, float outQuantScale, int outQuantOffset)</td></tr> |
| 127 | <tr class="separator:a65833679c4ddda377d1f2c95389808a4"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:acc683a96d637d00c3a28119fcc7ed3f0"><td class="memTemplParams" colspan="2">template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnTypeInput, armnn::DataType ArmnnTypeOutput, typename TInput = armnn::ResolveType<ArmnnTypeInput>, typename TOutput = armnn::ResolveType<ArmnnTypeOutput>> </td></tr> |
| 129 | <tr class="memitem:acc683a96d637d00c3a28119fcc7ed3f0"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< TOutput, NumDims > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_elementwise_test_impl_8hpp.xhtml#acc683a96d637d00c3a28119fcc7ed3f0">ElementwiseTestHelper</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, const unsigned int shape0[NumDims], std::vector< TInput > values0, const unsigned int shape1[NumDims], std::vector< TInput > values1, const unsigned int outShape[NumDims], std::vector< TOutput > outValues, float quantScale=1.0f, int quantOffset=0)</td></tr> |
| 130 | <tr class="separator:acc683a96d637d00c3a28119fcc7ed3f0"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:ae3e9f3ec2911d5199086c488b6627578"><td class="memTemplParams" colspan="2">template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 132 | <tr class="memitem:ae3e9f3ec2911d5199086c488b6627578"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, NumDims > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_elementwise_test_impl_8hpp.xhtml#ae3e9f3ec2911d5199086c488b6627578">ElementwiseTestHelper</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, const unsigned int shape0[NumDims], std::vector< T > values0, const unsigned int shape1[NumDims], std::vector< T > values1, const unsigned int outShape[NumDims], std::vector< T > outValues, float quantScale=1.0f, int quantOffset=0)</td></tr> |
| 133 | <tr class="separator:ae3e9f3ec2911d5199086c488b6627578"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | </table> |
| 135 | <h2 class="groupheader">Function Documentation</h2> |
| 136 | <a id="ab6921db5d86507f5b126af1cc516adb9"></a> |
| 137 | <h2 class="memtitle"><span class="permalink"><a href="#ab6921db5d86507f5b126af1cc516adb9">◆ </a></span>CreateWorkload()</h2> |
| 138 | |
| 139 | <div class="memitem"> |
| 140 | <div class="memproto"> |
| 141 | <table class="memname"> |
| 142 | <tr> |
| 143 | <td class="memname">std::unique_ptr<<a class="el" href="classarmnn_1_1_i_workload.xhtml">armnn::IWorkload</a>> CreateWorkload </td> |
| 144 | <td>(</td> |
| 145 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 146 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 147 | </tr> |
| 148 | <tr> |
| 149 | <td class="paramkey"></td> |
| 150 | <td></td> |
| 151 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a> & </td> |
| 152 | <td class="paramname"><em>info</em>, </td> |
| 153 | </tr> |
| 154 | <tr> |
| 155 | <td class="paramkey"></td> |
| 156 | <td></td> |
| 157 | <td class="paramtype">const DescriptorType & </td> |
| 158 | <td class="paramname"><em>descriptor</em> </td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td></td> |
| 162 | <td>)</td> |
| 163 | <td></td><td></td> |
| 164 | </tr> |
| 165 | </table> |
| 166 | </div><div class="memdoc"> |
| 167 | |
| 168 | <p class="definition">Definition at line <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml">ElementwiseTestImpl.hpp</a>.</p> |
| 169 | |
| 170 | <p class="reference">Referenced by <a class="el" href="_layer_8hpp_source.xhtml#l00264">Layer::SetBackendId()</a>.</p> |
| 171 | <div class="fragment"><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> <a class="code" href="_elementwise_test_impl_8hpp.xhtml#ab6921db5d86507f5b126af1cc516adb9">CreateWorkload</a>(workloadFactory, info, descriptor);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div><div class="ttc" id="_elementwise_test_impl_8hpp_xhtml_ab6921db5d86507f5b126af1cc516adb9"><div class="ttname"><a href="_elementwise_test_impl_8hpp.xhtml#ab6921db5d86507f5b126af1cc516adb9">CreateWorkload</a></div><div class="ttdeci">std::unique_ptr< armnn::IWorkload > CreateWorkload(const armnn::IWorkloadFactory &workloadFactory, const armnn::WorkloadInfo &info, const DescriptorType &descriptor)</div><div class="ttdef"><b>Definition:</b> <a href="_elementwise_test_impl_8hpp_source.xhtml#l00027">ElementwiseTestImpl.hpp:27</a></div></div> |
| 172 | </div><!-- fragment --> |
| 173 | </div> |
| 174 | </div> |
| 175 | <a id="af2a138d3236f0fa3382d2380203c7422"></a> |
| 176 | <h2 class="memtitle"><span class="permalink"><a href="#af2a138d3236f0fa3382d2380203c7422">◆ </a></span>ElementwiseTestHelper() <span class="overload">[1/4]</span></h2> |
| 177 | |
| 178 | <div class="memitem"> |
| 179 | <div class="memproto"> |
| 180 | <table class="memname"> |
| 181 | <tr> |
| 182 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><TOutput, NumDims> ElementwiseTestHelper </td> |
| 183 | <td>(</td> |
| 184 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 185 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 186 | </tr> |
| 187 | <tr> |
| 188 | <td class="paramkey"></td> |
| 189 | <td></td> |
| 190 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 191 | <td class="paramname"><em>memoryManager</em>, </td> |
| 192 | </tr> |
| 193 | <tr> |
| 194 | <td class="paramkey"></td> |
| 195 | <td></td> |
| 196 | <td class="paramtype">const unsigned int </td> |
| 197 | <td class="paramname"><em>shape0</em>[NumDims], </td> |
| 198 | </tr> |
| 199 | <tr> |
| 200 | <td class="paramkey"></td> |
| 201 | <td></td> |
| 202 | <td class="paramtype">std::vector< TInput > </td> |
| 203 | <td class="paramname"><em>values0</em>, </td> |
| 204 | </tr> |
| 205 | <tr> |
| 206 | <td class="paramkey"></td> |
| 207 | <td></td> |
| 208 | <td class="paramtype">float </td> |
| 209 | <td class="paramname"><em>quantScale0</em>, </td> |
| 210 | </tr> |
| 211 | <tr> |
| 212 | <td class="paramkey"></td> |
| 213 | <td></td> |
| 214 | <td class="paramtype">int </td> |
| 215 | <td class="paramname"><em>quantOffset0</em>, </td> |
| 216 | </tr> |
| 217 | <tr> |
| 218 | <td class="paramkey"></td> |
| 219 | <td></td> |
| 220 | <td class="paramtype">const unsigned int </td> |
| 221 | <td class="paramname"><em>shape1</em>[NumDims], </td> |
| 222 | </tr> |
| 223 | <tr> |
| 224 | <td class="paramkey"></td> |
| 225 | <td></td> |
| 226 | <td class="paramtype">std::vector< TInput > </td> |
| 227 | <td class="paramname"><em>values1</em>, </td> |
| 228 | </tr> |
| 229 | <tr> |
| 230 | <td class="paramkey"></td> |
| 231 | <td></td> |
| 232 | <td class="paramtype">float </td> |
| 233 | <td class="paramname"><em>quantScale1</em>, </td> |
| 234 | </tr> |
| 235 | <tr> |
| 236 | <td class="paramkey"></td> |
| 237 | <td></td> |
| 238 | <td class="paramtype">int </td> |
| 239 | <td class="paramname"><em>quantOffset1</em>, </td> |
| 240 | </tr> |
| 241 | <tr> |
| 242 | <td class="paramkey"></td> |
| 243 | <td></td> |
| 244 | <td class="paramtype">const unsigned int </td> |
| 245 | <td class="paramname"><em>outShape</em>[NumDims], </td> |
| 246 | </tr> |
| 247 | <tr> |
| 248 | <td class="paramkey"></td> |
| 249 | <td></td> |
| 250 | <td class="paramtype">std::vector< TOutput > </td> |
| 251 | <td class="paramname"><em>outValues</em>, </td> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td class="paramkey"></td> |
| 255 | <td></td> |
| 256 | <td class="paramtype">float </td> |
| 257 | <td class="paramname"><em>outQuantScale</em>, </td> |
| 258 | </tr> |
| 259 | <tr> |
| 260 | <td class="paramkey"></td> |
| 261 | <td></td> |
| 262 | <td class="paramtype">int </td> |
| 263 | <td class="paramname"><em>outQuantOffset</em> </td> |
| 264 | </tr> |
| 265 | <tr> |
| 266 | <td></td> |
| 267 | <td>)</td> |
| 268 | <td></td><td></td> |
| 269 | </tr> |
| 270 | </table> |
| 271 | </div><div class="memdoc"> |
| 272 | |
| 273 | <p class="definition">Definition at line <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml#l00041">41</a> of file <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml">ElementwiseTestImpl.hpp</a>.</p> |
| 274 | |
| 275 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::Boolean</a>, <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00043">LayerTestResult< T, n >::compareBoolean</a>, <a class="el" href="_tensor_copy_utils_8cpp_source.xhtml#l00014">CopyDataFromITensorHandle()</a>, <a class="el" href="_tensor_copy_utils_8cpp_source.xhtml#l00009">CopyDataToITensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00040">LayerTestResult< T, n >::output</a>, <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00041">LayerTestResult< T, n >::outputExpected</a>, and <a class="el" href="_tensor_8cpp_source.xhtml#l00259">TensorInfo::SetQuantizationScale()</a>.</p> |
| 276 | <div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputTensorInfo0{NumDims, shape0, ArmnnTypeInput};</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputTensorInfo1{NumDims, shape1, ArmnnTypeInput};</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputTensorInfo{NumDims, outShape, ArmnnTypeOutput};</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">auto</span> input0 = MakeTensor<TInput, NumDims>(inputTensorInfo0, values0);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">auto</span> input1 = MakeTensor<TInput, NumDims>(inputTensorInfo1, values1);</div><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>  inputTensorInfo0.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(quantScale0);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  inputTensorInfo0.SetQuantizationOffset(quantOffset0);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  inputTensorInfo1.SetQuantizationScale(quantScale1);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  inputTensorInfo1.SetQuantizationOffset(quantOffset1);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  outputTensorInfo.SetQuantizationScale(outQuantScale);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  outputTensorInfo.SetQuantizationOffset(outQuantOffset);</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>  <a class="code" href="struct_layer_test_result.xhtml">LayerTestResult<TOutput, NumDims></a> ret(outputTensorInfo);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span>(ArmnnTypeOutput == <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::DataType::Boolean</a>)</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>  ret.compareBoolean = <span class="keyword">true</span>;</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> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  std::unique_ptr<armnn::ITensorHandle> inputHandle0 = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo0);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::unique_ptr<armnn::ITensorHandle> inputHandle1 = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo1);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  std::unique_ptr<armnn::ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</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>  Descriptor data;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a> <a class="code" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  AddInputToWorkload(data, info, inputTensorInfo0, inputHandle0.get());</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  AddInputToWorkload(data, info, inputTensorInfo1, inputHandle1.get());</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">auto</span> workload = CreateWorkload<Descriptor>(workloadFactory, info, data);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  inputHandle0->Allocate();</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  inputHandle1->Allocate();</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  outputHandle->Allocate();</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="_tensor_copy_utils_8cpp.xhtml#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle0.get(), input0.origin());</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="_tensor_copy_utils_8cpp.xhtml#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle1.get(), input1.origin());</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  ExecuteWorkload(*workload, memoryManager);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="_tensor_copy_utils_8cpp.xhtml#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(ret.output.origin(), outputHandle.get());</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  ret.outputExpected = MakeTensor<TOutput, NumDims>(outputTensorInfo, outValues);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::DataType::Boolean</a></div></div> |
| 277 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 278 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_a685739c4eb65a580e075282cfe6787d6"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#a685739c4eb65a580e075282cfe6787d6">armnn::TensorInfo::SetQuantizationScale</a></div><div class="ttdeci">void SetQuantizationScale(float scale)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.xhtml#l00259">Tensor.cpp:259</a></div></div> |
| 279 | <div class="ttc" id="_tensor_copy_utils_8cpp_xhtml_a99b626c58a926dc7d6df78d22ec186c8"><div class="ttname"><a href="_tensor_copy_utils_8cpp.xhtml#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a></div><div class="ttdeci">void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.xhtml#l00014">TensorCopyUtils.cpp:14</a></div></div> |
| 280 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_xhtml_a15c140be4ddceffee16436f009d3ed94"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">armnn::IWorkloadFactory::CreateTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const =0</div></div> |
| 281 | <div class="ttc" id="namespacearmnn_xhtml_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 282 | <div class="ttc" id="structarmnn_1_1_workload_info_xhtml"><div class="ttname"><a href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a></div><div class="ttdoc">Contains information about inputs and outputs to a layer. </div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_workload_info_8hpp_source.xhtml#l00016">WorkloadInfo.hpp:16</a></div></div> |
| 283 | <div class="ttc" id="struct_layer_test_result_xhtml"><div class="ttname"><a href="struct_layer_test_result.xhtml">LayerTestResult</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.xhtml#l00029">LayerTestResult.hpp:29</a></div></div> |
| 284 | <div class="ttc" id="_tensor_copy_utils_8cpp_xhtml_ae15f1a3c55d2db87683577de9fa4437c"><div class="ttname"><a href="_tensor_copy_utils_8cpp.xhtml#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a></div><div class="ttdeci">void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.xhtml#l00009">TensorCopyUtils.cpp:9</a></div></div> |
| 285 | </div><!-- fragment --> |
| 286 | </div> |
| 287 | </div> |
| 288 | <a id="a65833679c4ddda377d1f2c95389808a4"></a> |
| 289 | <h2 class="memtitle"><span class="permalink"><a href="#a65833679c4ddda377d1f2c95389808a4">◆ </a></span>ElementwiseTestHelper() <span class="overload">[2/4]</span></h2> |
| 290 | |
| 291 | <div class="memitem"> |
| 292 | <div class="memproto"> |
| 293 | <table class="memname"> |
| 294 | <tr> |
| 295 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, NumDims> ElementwiseTestHelper </td> |
| 296 | <td>(</td> |
| 297 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 298 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 299 | </tr> |
| 300 | <tr> |
| 301 | <td class="paramkey"></td> |
| 302 | <td></td> |
| 303 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 304 | <td class="paramname"><em>memoryManager</em>, </td> |
| 305 | </tr> |
| 306 | <tr> |
| 307 | <td class="paramkey"></td> |
| 308 | <td></td> |
| 309 | <td class="paramtype">const unsigned int </td> |
| 310 | <td class="paramname"><em>shape0</em>[NumDims], </td> |
| 311 | </tr> |
| 312 | <tr> |
| 313 | <td class="paramkey"></td> |
| 314 | <td></td> |
| 315 | <td class="paramtype">std::vector< T > </td> |
| 316 | <td class="paramname"><em>values0</em>, </td> |
| 317 | </tr> |
| 318 | <tr> |
| 319 | <td class="paramkey"></td> |
| 320 | <td></td> |
| 321 | <td class="paramtype">float </td> |
| 322 | <td class="paramname"><em>quantScale0</em>, </td> |
| 323 | </tr> |
| 324 | <tr> |
| 325 | <td class="paramkey"></td> |
| 326 | <td></td> |
| 327 | <td class="paramtype">int </td> |
| 328 | <td class="paramname"><em>quantOffset0</em>, </td> |
| 329 | </tr> |
| 330 | <tr> |
| 331 | <td class="paramkey"></td> |
| 332 | <td></td> |
| 333 | <td class="paramtype">const unsigned int </td> |
| 334 | <td class="paramname"><em>shape1</em>[NumDims], </td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td class="paramkey"></td> |
| 338 | <td></td> |
| 339 | <td class="paramtype">std::vector< T > </td> |
| 340 | <td class="paramname"><em>values1</em>, </td> |
| 341 | </tr> |
| 342 | <tr> |
| 343 | <td class="paramkey"></td> |
| 344 | <td></td> |
| 345 | <td class="paramtype">float </td> |
| 346 | <td class="paramname"><em>quantScale1</em>, </td> |
| 347 | </tr> |
| 348 | <tr> |
| 349 | <td class="paramkey"></td> |
| 350 | <td></td> |
| 351 | <td class="paramtype">int </td> |
| 352 | <td class="paramname"><em>quantOffset1</em>, </td> |
| 353 | </tr> |
| 354 | <tr> |
| 355 | <td class="paramkey"></td> |
| 356 | <td></td> |
| 357 | <td class="paramtype">const unsigned int </td> |
| 358 | <td class="paramname"><em>outShape</em>[NumDims], </td> |
| 359 | </tr> |
| 360 | <tr> |
| 361 | <td class="paramkey"></td> |
| 362 | <td></td> |
| 363 | <td class="paramtype">std::vector< T > </td> |
| 364 | <td class="paramname"><em>outValues</em>, </td> |
| 365 | </tr> |
| 366 | <tr> |
| 367 | <td class="paramkey"></td> |
| 368 | <td></td> |
| 369 | <td class="paramtype">float </td> |
| 370 | <td class="paramname"><em>outQuantScale</em>, </td> |
| 371 | </tr> |
| 372 | <tr> |
| 373 | <td class="paramkey"></td> |
| 374 | <td></td> |
| 375 | <td class="paramtype">int </td> |
| 376 | <td class="paramname"><em>outQuantOffset</em> </td> |
| 377 | </tr> |
| 378 | <tr> |
| 379 | <td></td> |
| 380 | <td>)</td> |
| 381 | <td></td><td></td> |
| 382 | </tr> |
| 383 | </table> |
| 384 | </div><div class="memdoc"> |
| 385 | |
| 386 | <p class="definition">Definition at line <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml#l00111">111</a> of file <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml">ElementwiseTestImpl.hpp</a>.</p> |
| 387 | <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="keywordflow">return</span> ElementwiseTestHelper<NumDims, Descriptor, ArmnnType, ArmnnType>(</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  workloadFactory,</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  memoryManager,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  shape0,</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  values0,</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  quantScale0,</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  quantOffset0,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  shape1,</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  values1,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  quantScale1,</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  quantOffset1,</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  outShape,</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  outValues,</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  outQuantScale,</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  outQuantOffset);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> }</div></div><!-- fragment --> |
| 388 | </div> |
| 389 | </div> |
| 390 | <a id="acc683a96d637d00c3a28119fcc7ed3f0"></a> |
| 391 | <h2 class="memtitle"><span class="permalink"><a href="#acc683a96d637d00c3a28119fcc7ed3f0">◆ </a></span>ElementwiseTestHelper() <span class="overload">[3/4]</span></h2> |
| 392 | |
| 393 | <div class="memitem"> |
| 394 | <div class="memproto"> |
| 395 | <table class="memname"> |
| 396 | <tr> |
| 397 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><TOutput, NumDims> ElementwiseTestHelper </td> |
| 398 | <td>(</td> |
| 399 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 400 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 401 | </tr> |
| 402 | <tr> |
| 403 | <td class="paramkey"></td> |
| 404 | <td></td> |
| 405 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 406 | <td class="paramname"><em>memoryManager</em>, </td> |
| 407 | </tr> |
| 408 | <tr> |
| 409 | <td class="paramkey"></td> |
| 410 | <td></td> |
| 411 | <td class="paramtype">const unsigned int </td> |
| 412 | <td class="paramname"><em>shape0</em>[NumDims], </td> |
| 413 | </tr> |
| 414 | <tr> |
| 415 | <td class="paramkey"></td> |
| 416 | <td></td> |
| 417 | <td class="paramtype">std::vector< TInput > </td> |
| 418 | <td class="paramname"><em>values0</em>, </td> |
| 419 | </tr> |
| 420 | <tr> |
| 421 | <td class="paramkey"></td> |
| 422 | <td></td> |
| 423 | <td class="paramtype">const unsigned int </td> |
| 424 | <td class="paramname"><em>shape1</em>[NumDims], </td> |
| 425 | </tr> |
| 426 | <tr> |
| 427 | <td class="paramkey"></td> |
| 428 | <td></td> |
| 429 | <td class="paramtype">std::vector< TInput > </td> |
| 430 | <td class="paramname"><em>values1</em>, </td> |
| 431 | </tr> |
| 432 | <tr> |
| 433 | <td class="paramkey"></td> |
| 434 | <td></td> |
| 435 | <td class="paramtype">const unsigned int </td> |
| 436 | <td class="paramname"><em>outShape</em>[NumDims], </td> |
| 437 | </tr> |
| 438 | <tr> |
| 439 | <td class="paramkey"></td> |
| 440 | <td></td> |
| 441 | <td class="paramtype">std::vector< TOutput > </td> |
| 442 | <td class="paramname"><em>outValues</em>, </td> |
| 443 | </tr> |
| 444 | <tr> |
| 445 | <td class="paramkey"></td> |
| 446 | <td></td> |
| 447 | <td class="paramtype">float </td> |
| 448 | <td class="paramname"><em>quantScale</em> = <code>1.0f</code>, </td> |
| 449 | </tr> |
| 450 | <tr> |
| 451 | <td class="paramkey"></td> |
| 452 | <td></td> |
| 453 | <td class="paramtype">int </td> |
| 454 | <td class="paramname"><em>quantOffset</em> = <code>0</code> </td> |
| 455 | </tr> |
| 456 | <tr> |
| 457 | <td></td> |
| 458 | <td>)</td> |
| 459 | <td></td><td></td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </div><div class="memdoc"> |
| 463 | |
| 464 | <p class="definition">Definition at line <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml#l00150">150</a> of file <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml">ElementwiseTestImpl.hpp</a>.</p> |
| 465 | <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="keywordflow">return</span> ElementwiseTestHelper<NumDims, Descriptor, ArmnnTypeInput, ArmnnTypeOutput>(</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  workloadFactory,</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  memoryManager,</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  shape0,</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  values0,</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  quantScale,</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  quantOffset,</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  shape1,</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  values1,</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  quantScale,</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  quantOffset,</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  outShape,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  outValues,</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  quantScale,</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  quantOffset);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> }</div></div><!-- fragment --> |
| 466 | </div> |
| 467 | </div> |
| 468 | <a id="ae3e9f3ec2911d5199086c488b6627578"></a> |
| 469 | <h2 class="memtitle"><span class="permalink"><a href="#ae3e9f3ec2911d5199086c488b6627578">◆ </a></span>ElementwiseTestHelper() <span class="overload">[4/4]</span></h2> |
| 470 | |
| 471 | <div class="memitem"> |
| 472 | <div class="memproto"> |
| 473 | <table class="memname"> |
| 474 | <tr> |
| 475 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, NumDims> ElementwiseTestHelper </td> |
| 476 | <td>(</td> |
| 477 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 478 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 479 | </tr> |
| 480 | <tr> |
| 481 | <td class="paramkey"></td> |
| 482 | <td></td> |
| 483 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 484 | <td class="paramname"><em>memoryManager</em>, </td> |
| 485 | </tr> |
| 486 | <tr> |
| 487 | <td class="paramkey"></td> |
| 488 | <td></td> |
| 489 | <td class="paramtype">const unsigned int </td> |
| 490 | <td class="paramname"><em>shape0</em>[NumDims], </td> |
| 491 | </tr> |
| 492 | <tr> |
| 493 | <td class="paramkey"></td> |
| 494 | <td></td> |
| 495 | <td class="paramtype">std::vector< T > </td> |
| 496 | <td class="paramname"><em>values0</em>, </td> |
| 497 | </tr> |
| 498 | <tr> |
| 499 | <td class="paramkey"></td> |
| 500 | <td></td> |
| 501 | <td class="paramtype">const unsigned int </td> |
| 502 | <td class="paramname"><em>shape1</em>[NumDims], </td> |
| 503 | </tr> |
| 504 | <tr> |
| 505 | <td class="paramkey"></td> |
| 506 | <td></td> |
| 507 | <td class="paramtype">std::vector< T > </td> |
| 508 | <td class="paramname"><em>values1</em>, </td> |
| 509 | </tr> |
| 510 | <tr> |
| 511 | <td class="paramkey"></td> |
| 512 | <td></td> |
| 513 | <td class="paramtype">const unsigned int </td> |
| 514 | <td class="paramname"><em>outShape</em>[NumDims], </td> |
| 515 | </tr> |
| 516 | <tr> |
| 517 | <td class="paramkey"></td> |
| 518 | <td></td> |
| 519 | <td class="paramtype">std::vector< T > </td> |
| 520 | <td class="paramname"><em>outValues</em>, </td> |
| 521 | </tr> |
| 522 | <tr> |
| 523 | <td class="paramkey"></td> |
| 524 | <td></td> |
| 525 | <td class="paramtype">float </td> |
| 526 | <td class="paramname"><em>quantScale</em> = <code>1.0f</code>, </td> |
| 527 | </tr> |
| 528 | <tr> |
| 529 | <td class="paramkey"></td> |
| 530 | <td></td> |
| 531 | <td class="paramtype">int </td> |
| 532 | <td class="paramname"><em>quantOffset</em> = <code>0</code> </td> |
| 533 | </tr> |
| 534 | <tr> |
| 535 | <td></td> |
| 536 | <td>)</td> |
| 537 | <td></td><td></td> |
| 538 | </tr> |
| 539 | </table> |
| 540 | </div><div class="memdoc"> |
| 541 | |
| 542 | <p class="definition">Definition at line <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml#l00183">183</a> of file <a class="el" href="_elementwise_test_impl_8hpp_source.xhtml">ElementwiseTestImpl.hpp</a>.</p> |
| 543 | <div class="fragment"><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">return</span> ElementwiseTestHelper<NumDims, Descriptor, ArmnnType, ArmnnType>(</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  workloadFactory,</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  memoryManager,</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  shape0,</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  values0,</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  shape1,</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  values1,</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  outShape,</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  outValues,</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  quantScale,</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  quantOffset);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div></div><!-- fragment --> |
| 544 | </div> |
| 545 | </div> |
| 546 | </div><!-- contents --> |
| 547 | </div><!-- doc-content --> |
| 548 | <!-- start footer part --> |
| 549 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 550 | <ul> |
| 551 | <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="_elementwise_test_impl_8hpp.xhtml">ElementwiseTestImpl.hpp</a></li> |
| 552 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 553 | <a href="http://www.doxygen.org/index.html"> |
| 554 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 555 | </ul> |
| 556 | </div> |
| 557 | </body> |
| 558 | </html> |