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/ResizeTestImpl.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('_resize_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">ResizeTestImpl.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="_types_8hpp_source.xhtml">armnn/Types.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml">armnn/backends/IBackendInternal.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.xhtml">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 108 | </div> |
| 109 | <p><a href="_resize_test_impl_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 110 | <table class="memberdecls"> |
| 111 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 112 | Functions</h2></td></tr> |
| 113 | <tr class="memitem:aa064b0204bbf393de5712227c78dbadd"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 114 | <tr class="memitem:aa064b0204bbf393de5712227c78dbadd"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#aa064b0204bbf393de5712227c78dbadd">ResizeBilinearNopTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 115 | <tr class="separator:aa064b0204bbf393de5712227c78dbadd"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:ad8a2ca082563b114f8ad4c9cecf68185"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 117 | <tr class="memitem:ad8a2ca082563b114f8ad4c9cecf68185"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#ad8a2ca082563b114f8ad4c9cecf68185">SimpleResizeBilinearTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 118 | <tr class="separator:ad8a2ca082563b114f8ad4c9cecf68185"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a05a20c3e942d8088ddb3e572b601da33"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 120 | <tr class="memitem:a05a20c3e942d8088ddb3e572b601da33"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a05a20c3e942d8088ddb3e572b601da33">ResizeBilinearSqMinTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 121 | <tr class="separator:a05a20c3e942d8088ddb3e572b601da33"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a34a7419aea3fe50b6c046b1bd2467182"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 123 | <tr class="memitem:a34a7419aea3fe50b6c046b1bd2467182"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a34a7419aea3fe50b6c046b1bd2467182">ResizeBilinearMinTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 124 | <tr class="separator:a34a7419aea3fe50b6c046b1bd2467182"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a856cb9d46cf74b4f852c9133c002cd94"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 126 | <tr class="memitem:a856cb9d46cf74b4f852c9133c002cd94"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a856cb9d46cf74b4f852c9133c002cd94">ResizeBilinearMagTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 127 | <tr class="separator:a856cb9d46cf74b4f852c9133c002cd94"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a6d1df786604fb3121d7f255bc3bbe952"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 129 | <tr class="memitem:a6d1df786604fb3121d7f255bc3bbe952"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a6d1df786604fb3121d7f255bc3bbe952">ResizeNearestNeighborNopTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 130 | <tr class="separator:a6d1df786604fb3121d7f255bc3bbe952"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a49c8f922a49a5a66e2b12b928855a8c3"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 132 | <tr class="memitem:a49c8f922a49a5a66e2b12b928855a8c3"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a49c8f922a49a5a66e2b12b928855a8c3">SimpleResizeNearestNeighborTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 133 | <tr class="separator:a49c8f922a49a5a66e2b12b928855a8c3"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a7fa8169c343d8e7fb11eb7750b06bef5"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 135 | <tr class="memitem:a7fa8169c343d8e7fb11eb7750b06bef5"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a7fa8169c343d8e7fb11eb7750b06bef5">ResizeNearestNeighborSqMinTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 136 | <tr class="separator:a7fa8169c343d8e7fb11eb7750b06bef5"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:a5a75f31efb36868e8f2c7223426313db"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 138 | <tr class="memitem:a5a75f31efb36868e8f2c7223426313db"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#a5a75f31efb36868e8f2c7223426313db">ResizeNearestNeighborMinTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 139 | <tr class="separator:a5a75f31efb36868e8f2c7223426313db"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:aaf1a58bdaf53efb1093601746773df9a"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> </td></tr> |
| 141 | <tr class="memitem:aaf1a58bdaf53efb1093601746773df9a"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_resize_test_impl_8hpp.xhtml#aaf1a58bdaf53efb1093601746773df9a">ResizeNearestNeighborMagTest</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 <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout, float inQuantScale, int32_t inQuantOffset, float outQuantScale, int32_t outQuantOffset)</td></tr> |
| 142 | <tr class="separator:aaf1a58bdaf53efb1093601746773df9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table> |
| 144 | <h2 class="groupheader">Function Documentation</h2> |
| 145 | <a id="a856cb9d46cf74b4f852c9133c002cd94"></a> |
| 146 | <h2 class="memtitle"><span class="permalink"><a href="#a856cb9d46cf74b4f852c9133c002cd94">◆ </a></span>ResizeBilinearMagTest()</h2> |
| 147 | |
| 148 | <div class="memitem"> |
| 149 | <div class="memproto"> |
| 150 | <table class="memname"> |
| 151 | <tr> |
| 152 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeBilinearMagTest </td> |
| 153 | <td>(</td> |
| 154 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 155 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <td class="paramkey"></td> |
| 159 | <td></td> |
| 160 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 161 | <td class="paramname"><em>memoryManager</em>, </td> |
| 162 | </tr> |
| 163 | <tr> |
| 164 | <td class="paramkey"></td> |
| 165 | <td></td> |
| 166 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 167 | <td class="paramname"><em>dataLayout</em> </td> |
| 168 | </tr> |
| 169 | <tr> |
| 170 | <td></td> |
| 171 | <td>)</td> |
| 172 | <td></td><td></td> |
| 173 | </tr> |
| 174 | </table> |
| 175 | </div><div class="memdoc"> |
| 176 | |
| 177 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00293">293</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 178 | |
| 179 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>.</p> |
| 180 | <div class="fragment"><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> {</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  testParams.m_InputShape = { 1, 2, 3, 2 };</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  testParams.m_OutputShape = { 1, 2, 3, 5 };</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  testParams.m_InputData =</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  {</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  1.0f, 2.0f,</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  13.0f, 21.0f,</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  144.0f, 233.0f,</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>  233.0f, 144.0f,</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  21.0f, 13.0f,</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  2.0f, 1.0f</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> </div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  testParams.m_ExpectedOutputData =</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  {</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  1.0f, 1.4f, 1.8f, 2.0f, 2.0f,</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  13.0f, 16.2f, 19.4f, 21.0f, 21.0f,</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  144.0f, 179.6f, 215.2f, 233.0f, 233.0f,</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  233.0f, 197.4f, 161.8f, 144.0f, 144.0f,</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  21.0f, 17.8f, 14.6f, 13.0f, 13.0f,</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  2.0f, 1.6f, 1.2f, 1.0f, 1.0f</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  };</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  testParams.SetInQuantParams(1.0f, 0);</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 181 | </div><!-- fragment --> |
| 182 | </div> |
| 183 | </div> |
| 184 | <a id="a34a7419aea3fe50b6c046b1bd2467182"></a> |
| 185 | <h2 class="memtitle"><span class="permalink"><a href="#a34a7419aea3fe50b6c046b1bd2467182">◆ </a></span>ResizeBilinearMinTest()</h2> |
| 186 | |
| 187 | <div class="memitem"> |
| 188 | <div class="memproto"> |
| 189 | <table class="memname"> |
| 190 | <tr> |
| 191 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeBilinearMinTest </td> |
| 192 | <td>(</td> |
| 193 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 194 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 195 | </tr> |
| 196 | <tr> |
| 197 | <td class="paramkey"></td> |
| 198 | <td></td> |
| 199 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 200 | <td class="paramname"><em>memoryManager</em>, </td> |
| 201 | </tr> |
| 202 | <tr> |
| 203 | <td class="paramkey"></td> |
| 204 | <td></td> |
| 205 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 206 | <td class="paramname"><em>dataLayout</em> </td> |
| 207 | </tr> |
| 208 | <tr> |
| 209 | <td></td> |
| 210 | <td>)</td> |
| 211 | <td></td><td></td> |
| 212 | </tr> |
| 213 | </table> |
| 214 | </div><div class="memdoc"> |
| 215 | |
| 216 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00255">255</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 217 | |
| 218 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>.</p> |
| 219 | <div class="fragment"><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> {</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  testParams.m_InputShape = { 1, 2, 3, 5 };</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  testParams.m_OutputShape = { 1, 2, 2, 3 };</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  testParams.m_InputData =</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  {</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  1.5f, 3.0f, 4.5f, 6.0f, 7.5f,</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  9.0f, 10.5f, 12.0f, 13.5f, 15.0f,</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  16.5f, 18.0f, 19.5f, 21.0f, 22.5f,</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>  16.5f, 18.0f, 19.5f, 21.0f, 22.5f,</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  9.0f, 10.5f, 12.0f, 13.5f, 15.0f,</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  1.5f, 3.0f, 4.5f, 6.0f, 7.5f</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  };</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>  testParams.m_ExpectedOutputData =</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  {</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  1.50f, 4.00f, 6.50f,</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  12.75f, 15.25f, 17.75f,</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  16.50f, 19.00f, 21.50f,</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  5.25f, 7.75f, 10.25f</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  };</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>  testParams.SetInOutQuantParams(1.5f, -1);</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 220 | </div><!-- fragment --> |
| 221 | </div> |
| 222 | </div> |
| 223 | <a id="aa064b0204bbf393de5712227c78dbadd"></a> |
| 224 | <h2 class="memtitle"><span class="permalink"><a href="#aa064b0204bbf393de5712227c78dbadd">◆ </a></span>ResizeBilinearNopTest()</h2> |
| 225 | |
| 226 | <div class="memitem"> |
| 227 | <div class="memproto"> |
| 228 | <table class="memname"> |
| 229 | <tr> |
| 230 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeBilinearNopTest </td> |
| 231 | <td>(</td> |
| 232 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 233 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 234 | </tr> |
| 235 | <tr> |
| 236 | <td class="paramkey"></td> |
| 237 | <td></td> |
| 238 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 239 | <td class="paramname"><em>memoryManager</em>, </td> |
| 240 | </tr> |
| 241 | <tr> |
| 242 | <td class="paramkey"></td> |
| 243 | <td></td> |
| 244 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 245 | <td class="paramname"><em>dataLayout</em> </td> |
| 246 | </tr> |
| 247 | <tr> |
| 248 | <td></td> |
| 249 | <td>)</td> |
| 250 | <td></td><td></td> |
| 251 | </tr> |
| 252 | </table> |
| 253 | </div><div class="memdoc"> |
| 254 | |
| 255 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00143">143</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 256 | |
| 257 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>.</p> |
| 258 | <div class="fragment"><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  testParams.m_InputShape = { 1, 2, 4, 4 };</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  testParams.m_OutputShape = testParams.m_InputShape;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  testParams.m_InputData =</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  3.0f, 4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  4.0f, 5.0f, 6.0f, 7.0f,</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  3.0f, 4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  4.0f, 5.0f, 6.0f, 7.0f</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  };</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  testParams.m_ExpectedOutputData = testParams.m_InputData;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  testParams.SetInOutQuantParams(1.5f, 3);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 259 | </div><!-- fragment --> |
| 260 | </div> |
| 261 | </div> |
| 262 | <a id="a05a20c3e942d8088ddb3e572b601da33"></a> |
| 263 | <h2 class="memtitle"><span class="permalink"><a href="#a05a20c3e942d8088ddb3e572b601da33">◆ </a></span>ResizeBilinearSqMinTest()</h2> |
| 264 | |
| 265 | <div class="memitem"> |
| 266 | <div class="memproto"> |
| 267 | <table class="memname"> |
| 268 | <tr> |
| 269 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeBilinearSqMinTest </td> |
| 270 | <td>(</td> |
| 271 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 272 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 273 | </tr> |
| 274 | <tr> |
| 275 | <td class="paramkey"></td> |
| 276 | <td></td> |
| 277 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 278 | <td class="paramname"><em>memoryManager</em>, </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td class="paramkey"></td> |
| 282 | <td></td> |
| 283 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 284 | <td class="paramname"><em>dataLayout</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="_resize_test_impl_8cpp_source.xhtml#l00215">215</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 295 | |
| 296 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>.</p> |
| 297 | <div class="fragment"><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  testParams.m_InputShape = { 1, 2, 4, 4 };</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  testParams.m_OutputShape = { 1, 2, 2, 2 };</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  testParams.m_InputData =</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  {</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  3.0f, 4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  4.0f, 5.0f, 6.0f, 7.0f,</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  7.0f, 6.0f, 5.0f, 4.0f,</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  6.0f, 5.0f, 4.0f, 3.0f,</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  5.0f, 4.0f, 3.0f, 2.0f,</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  4.0f, 3.0f, 2.0f, 1.0f</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  };</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  testParams.m_ExpectedOutputData =</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>  1.0f, 3.0f,</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  3.0f, 5.0f,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  7.0f, 5.0f,</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  5.0f, 3.0f</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  };</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  testParams.SetInOutQuantParams(3.141592f, 3);</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> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 298 | </div><!-- fragment --> |
| 299 | </div> |
| 300 | </div> |
| 301 | <a id="aaf1a58bdaf53efb1093601746773df9a"></a> |
| 302 | <h2 class="memtitle"><span class="permalink"><a href="#aaf1a58bdaf53efb1093601746773df9a">◆ </a></span>ResizeNearestNeighborMagTest()</h2> |
| 303 | |
| 304 | <div class="memitem"> |
| 305 | <div class="memproto"> |
| 306 | <table class="memname"> |
| 307 | <tr> |
| 308 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeNearestNeighborMagTest </td> |
| 309 | <td>(</td> |
| 310 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 311 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 312 | </tr> |
| 313 | <tr> |
| 314 | <td class="paramkey"></td> |
| 315 | <td></td> |
| 316 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 317 | <td class="paramname"><em>memoryManager</em>, </td> |
| 318 | </tr> |
| 319 | <tr> |
| 320 | <td class="paramkey"></td> |
| 321 | <td></td> |
| 322 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 323 | <td class="paramname"><em>dataLayout</em>, </td> |
| 324 | </tr> |
| 325 | <tr> |
| 326 | <td class="paramkey"></td> |
| 327 | <td></td> |
| 328 | <td class="paramtype">float </td> |
| 329 | <td class="paramname"><em>inQuantScale</em>, </td> |
| 330 | </tr> |
| 331 | <tr> |
| 332 | <td class="paramkey"></td> |
| 333 | <td></td> |
| 334 | <td class="paramtype">int32_t </td> |
| 335 | <td class="paramname"><em>inQuantOffset</em>, </td> |
| 336 | </tr> |
| 337 | <tr> |
| 338 | <td class="paramkey"></td> |
| 339 | <td></td> |
| 340 | <td class="paramtype">float </td> |
| 341 | <td class="paramname"><em>outQuantScale</em>, </td> |
| 342 | </tr> |
| 343 | <tr> |
| 344 | <td class="paramkey"></td> |
| 345 | <td></td> |
| 346 | <td class="paramtype">int32_t </td> |
| 347 | <td class="paramname"><em>outQuantOffset</em> </td> |
| 348 | </tr> |
| 349 | <tr> |
| 350 | <td></td> |
| 351 | <td>)</td> |
| 352 | <td></td><td></td> |
| 353 | </tr> |
| 354 | </table> |
| 355 | </div><div class="memdoc"> |
| 356 | |
| 357 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00487">487</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 358 | |
| 359 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::NearestNeighbor</a>.</p> |
| 360 | <div class="fragment"><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> {</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  testParams.m_InputShape = { 1, 2, 3, 2 };</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  testParams.m_OutputShape = { 1, 2, 3, 5 };</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  testParams.m_InputData =</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  {</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  0.183005f, 2.379065f,</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  1.054970f, 1.302565f,</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  2.400595f, 0.688960f,</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span> </div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  2.400595f, 0.688960f,</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  1.054970f, 1.302565f,</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  0.183005f, 2.379065f,</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  };</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  testParams.m_ExpectedOutputData =</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  {</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  0.183005f, 0.183005f, 0.183005f, 2.379065f, 2.379065f,</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  1.054970f, 1.054970f, 1.054970f, 1.302565f, 1.302565f,</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  2.400595f, 2.400595f, 2.400595f, 0.688960f, 0.688960f,</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span> </div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  2.400595f, 2.400595f, 2.400595f, 0.688960f, 0.688960f,</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  1.054970f, 1.054970f, 1.054970f, 1.302565f, 1.302565f,</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  0.183005f, 0.183005f, 0.183005f, 2.379065f, 2.379065f</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  };</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span> </div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  testParams.SetInQuantParams(inQuantScale, inQuantOffset);</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  testParams.SetOutQuantParams(outQuantScale, outQuantOffset);</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span> </div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a></div></div> |
| 361 | </div><!-- fragment --> |
| 362 | </div> |
| 363 | </div> |
| 364 | <a id="a5a75f31efb36868e8f2c7223426313db"></a> |
| 365 | <h2 class="memtitle"><span class="permalink"><a href="#a5a75f31efb36868e8f2c7223426313db">◆ </a></span>ResizeNearestNeighborMinTest()</h2> |
| 366 | |
| 367 | <div class="memitem"> |
| 368 | <div class="memproto"> |
| 369 | <table class="memname"> |
| 370 | <tr> |
| 371 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeNearestNeighborMinTest </td> |
| 372 | <td>(</td> |
| 373 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 374 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 375 | </tr> |
| 376 | <tr> |
| 377 | <td class="paramkey"></td> |
| 378 | <td></td> |
| 379 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 380 | <td class="paramname"><em>memoryManager</em>, </td> |
| 381 | </tr> |
| 382 | <tr> |
| 383 | <td class="paramkey"></td> |
| 384 | <td></td> |
| 385 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 386 | <td class="paramname"><em>dataLayout</em> </td> |
| 387 | </tr> |
| 388 | <tr> |
| 389 | <td></td> |
| 390 | <td>)</td> |
| 391 | <td></td><td></td> |
| 392 | </tr> |
| 393 | </table> |
| 394 | </div><div class="memdoc"> |
| 395 | |
| 396 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00449">449</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 397 | |
| 398 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::NearestNeighbor</a>.</p> |
| 399 | <div class="fragment"><div class="line"><a name="l00453"></a><span class="lineno"> 453</span> {</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span> </div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  testParams.m_InputShape = { 1, 2, 3, 5 };</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  testParams.m_OutputShape = { 1, 2, 2, 3 };</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> </div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  testParams.m_InputData =</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  {</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  1.5f, 3.0f, 4.5f, 6.0f, 7.5f,</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  9.0f, 10.5f, 12.0f, 13.5f, 15.0f,</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  16.5f, 18.0f, 19.5f, 21.0f, 22.5f,</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  16.5f, 18.0f, 19.5f, 21.0f, 22.5f,</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  9.0f, 10.5f, 12.0f, 13.5f, 15.0f,</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  1.5f, 3.0f, 4.5f, 6.0f, 7.5f</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  };</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  testParams.m_ExpectedOutputData =</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  {</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  1.5f, 3.0f, 6.0f,</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  9.0f, 10.5f, 13.5f,</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  16.5f, 18.0f, 21.0f,</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  9.0f, 10.5f, 13.5f</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  };</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  testParams.SetInOutQuantParams(1.5f, -1);</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> </div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a></div></div> |
| 400 | </div><!-- fragment --> |
| 401 | </div> |
| 402 | </div> |
| 403 | <a id="a6d1df786604fb3121d7f255bc3bbe952"></a> |
| 404 | <h2 class="memtitle"><span class="permalink"><a href="#a6d1df786604fb3121d7f255bc3bbe952">◆ </a></span>ResizeNearestNeighborNopTest()</h2> |
| 405 | |
| 406 | <div class="memitem"> |
| 407 | <div class="memproto"> |
| 408 | <table class="memname"> |
| 409 | <tr> |
| 410 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeNearestNeighborNopTest </td> |
| 411 | <td>(</td> |
| 412 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 413 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 414 | </tr> |
| 415 | <tr> |
| 416 | <td class="paramkey"></td> |
| 417 | <td></td> |
| 418 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 419 | <td class="paramname"><em>memoryManager</em>, </td> |
| 420 | </tr> |
| 421 | <tr> |
| 422 | <td class="paramkey"></td> |
| 423 | <td></td> |
| 424 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 425 | <td class="paramname"><em>dataLayout</em> </td> |
| 426 | </tr> |
| 427 | <tr> |
| 428 | <td></td> |
| 429 | <td>)</td> |
| 430 | <td></td><td></td> |
| 431 | </tr> |
| 432 | </table> |
| 433 | </div><div class="memdoc"> |
| 434 | |
| 435 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00337">337</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 436 | |
| 437 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::NearestNeighbor</a>.</p> |
| 438 | <div class="fragment"><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>  ResizeTestParams testParams;</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  testParams.m_DataLayout = dataLayout;</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>  testParams.m_InputShape = { 1, 2, 4, 4 };</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  testParams.m_OutputShape = testParams.m_InputShape;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  testParams.m_InputData =</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>  1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  3.0f, 4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  4.0f, 5.0f, 6.0f, 7.0f,</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  3.0f, 4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  4.0f, 5.0f, 6.0f, 7.0f</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  };</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  testParams.m_ExpectedOutputData = testParams.m_InputData;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  testParams.SetInOutQuantParams(1.5f, 3);</div><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="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a></div></div> |
| 439 | </div><!-- fragment --> |
| 440 | </div> |
| 441 | </div> |
| 442 | <a id="a7fa8169c343d8e7fb11eb7750b06bef5"></a> |
| 443 | <h2 class="memtitle"><span class="permalink"><a href="#a7fa8169c343d8e7fb11eb7750b06bef5">◆ </a></span>ResizeNearestNeighborSqMinTest()</h2> |
| 444 | |
| 445 | <div class="memitem"> |
| 446 | <div class="memproto"> |
| 447 | <table class="memname"> |
| 448 | <tr> |
| 449 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> ResizeNearestNeighborSqMinTest </td> |
| 450 | <td>(</td> |
| 451 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 452 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 453 | </tr> |
| 454 | <tr> |
| 455 | <td class="paramkey"></td> |
| 456 | <td></td> |
| 457 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 458 | <td class="paramname"><em>memoryManager</em>, </td> |
| 459 | </tr> |
| 460 | <tr> |
| 461 | <td class="paramkey"></td> |
| 462 | <td></td> |
| 463 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 464 | <td class="paramname"><em>dataLayout</em> </td> |
| 465 | </tr> |
| 466 | <tr> |
| 467 | <td></td> |
| 468 | <td>)</td> |
| 469 | <td></td><td></td> |
| 470 | </tr> |
| 471 | </table> |
| 472 | </div><div class="memdoc"> |
| 473 | |
| 474 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00409">409</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 475 | |
| 476 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::NearestNeighbor</a>.</p> |
| 477 | <div class="fragment"><div class="line"><a name="l00413"></a><span class="lineno"> 413</span> {</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  testParams.m_DataLayout = dataLayout;</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span> </div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  testParams.m_InputShape = { 1, 2, 4, 4 };</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  testParams.m_OutputShape = { 1, 2, 2, 2 };</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span> </div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  testParams.m_InputData =</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  {</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  1.0f, 2.0f, 3.0f, 4.0f,</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  3.0f, 4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  4.0f, 5.0f, 6.0f, 7.0f,</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  7.0f, 6.0f, 5.0f, 4.0f,</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  6.0f, 5.0f, 4.0f, 3.0f,</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  5.0f, 4.0f, 3.0f, 2.0f,</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  4.0f, 3.0f, 2.0f, 1.0f</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  };</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> </div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  testParams.m_ExpectedOutputData =</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>  1.0f, 3.0f,</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  3.0f, 5.0f,</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>  7.0f, 5.0f,</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  5.0f, 3.0f</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  };</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  testParams.SetInOutQuantParams(3.141592f, 3);</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>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a></div></div> |
| 478 | </div><!-- fragment --> |
| 479 | </div> |
| 480 | </div> |
| 481 | <a id="ad8a2ca082563b114f8ad4c9cecf68185"></a> |
| 482 | <h2 class="memtitle"><span class="permalink"><a href="#ad8a2ca082563b114f8ad4c9cecf68185">◆ </a></span>SimpleResizeBilinearTest()</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><T, 4> SimpleResizeBilinearTest </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 class="paramkey"></td> |
| 501 | <td></td> |
| 502 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 503 | <td class="paramname"><em>dataLayout</em> </td> |
| 504 | </tr> |
| 505 | <tr> |
| 506 | <td></td> |
| 507 | <td>)</td> |
| 508 | <td></td><td></td> |
| 509 | </tr> |
| 510 | </table> |
| 511 | </div><div class="memdoc"> |
| 512 | |
| 513 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00176">176</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 514 | |
| 515 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>.</p> |
| 516 | <div class="fragment"><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  testParams.m_DataLayout = dataLayout;</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>  testParams.m_InputShape = { 1, 2, 2, 2 };</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  testParams.m_OutputShape = { 1, 2, 1, 1 };</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>  testParams.m_InputData =</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  1.0f, 255.0f,</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  200.0f, 250.0f,</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  250.0f, 200.0f,</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  250.0f, 1.0f</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  };</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// The 'resize' operation projects the top-left corner of output texels into the input image,</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="comment">// then figures out the interpolants and weights. Note this is different to projecting the centre of the</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="comment">// output texel. Thus, for a input matrix of 2x2, we'll expect the output 1x1 matrix to contain, as</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="comment">// its single element, the value that was at position (0,0) of the input matrix (rather than an average,</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="comment">// which we would expect if projecting the centre).</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  testParams.m_ExpectedOutputData =</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  {</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  1.0f,</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>  250.0f</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  };</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  testParams.SetInOutQuantParams(0.1567f, 1);</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>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 517 | </div><!-- fragment --> |
| 518 | </div> |
| 519 | </div> |
| 520 | <a id="a49c8f922a49a5a66e2b12b928855a8c3"></a> |
| 521 | <h2 class="memtitle"><span class="permalink"><a href="#a49c8f922a49a5a66e2b12b928855a8c3">◆ </a></span>SimpleResizeNearestNeighborTest()</h2> |
| 522 | |
| 523 | <div class="memitem"> |
| 524 | <div class="memproto"> |
| 525 | <table class="memname"> |
| 526 | <tr> |
| 527 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><T, 4> SimpleResizeNearestNeighborTest </td> |
| 528 | <td>(</td> |
| 529 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 530 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 531 | </tr> |
| 532 | <tr> |
| 533 | <td class="paramkey"></td> |
| 534 | <td></td> |
| 535 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 536 | <td class="paramname"><em>memoryManager</em>, </td> |
| 537 | </tr> |
| 538 | <tr> |
| 539 | <td class="paramkey"></td> |
| 540 | <td></td> |
| 541 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 542 | <td class="paramname"><em>dataLayout</em> </td> |
| 543 | </tr> |
| 544 | <tr> |
| 545 | <td></td> |
| 546 | <td>)</td> |
| 547 | <td></td><td></td> |
| 548 | </tr> |
| 549 | </table> |
| 550 | </div><div class="memdoc"> |
| 551 | |
| 552 | <p class="definition">Definition at line <a class="el" href="_resize_test_impl_8cpp_source.xhtml#l00370">370</a> of file <a class="el" href="_resize_test_impl_8cpp_source.xhtml">ResizeTestImpl.cpp</a>.</p> |
| 553 | |
| 554 | <p class="reference">References <a class="el" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::NearestNeighbor</a>.</p> |
| 555 | <div class="fragment"><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> {</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  ResizeTestParams testParams;</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  testParams.m_ResizeMethod = <a class="code" href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a>;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  testParams.m_DataLayout = dataLayout;</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>  testParams.m_InputShape = { 1, 2, 2, 2 };</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  testParams.m_OutputShape = { 1, 2, 1, 1 };</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>  testParams.m_InputData =</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  {</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  1.0f, 255.0f,</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  200.0f, 250.0f,</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  250.0f, 200.0f,</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  250.0f, 1.0f</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  };</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="comment">// The 'resize' operation projects the top-left corner of output texels into the input image,</span></div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="comment">// then figures out the interpolants and weights. Note this is different to projecting the centre of the</span></div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="comment">// output texel. Thus, for a input matrix of 2x2, we'll expect the output 1x1 matrix to contain, as</span></div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="comment">// its single element, the value that was at position (0,0) of the input matrix (rather than an average,</span></div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="comment">// which we would expect if projecting the centre).</span></div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  testParams.m_ExpectedOutputData =</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  {</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  1.0f,</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  250.0f</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  };</div><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>  testParams.SetInOutQuantParams(0.1567f, 1);</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span> </div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="keywordflow">return</span> ResizeTestImpl<4, ArmnnType>(workloadFactory, memoryManager, testParams);</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f"><div class="ttname"><a href="namespacearmnn.xhtml#a9a2af2f8c4af4f9efa8e79417d505ac4aaa020331bb30d2fa2ecf7c3a0777823f">armnn::ResizeMethod::NearestNeighbor</a></div></div> |
| 556 | </div><!-- fragment --> |
| 557 | </div> |
| 558 | </div> |
| 559 | </div><!-- contents --> |
| 560 | </div><!-- doc-content --> |
| 561 | <!-- start footer part --> |
| 562 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 563 | <ul> |
| 564 | <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="_resize_test_impl_8hpp.xhtml">ResizeTestImpl.hpp</a></li> |
| 565 | <li class="footer">Generated on Fri Mar 13 2020 16:09:15 for ArmNN by |
| 566 | <a href="http://www.doxygen.org/index.html"> |
| 567 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 568 | </ul> |
| 569 | </div> |
| 570 | </body> |
| 571 | </html> |