Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: src/backends/backendsCommon/test/layerTests/TransposeConvolution2dTestImpl.cpp File Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_transpose_convolution2d_test_impl_8cpp.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#func-members">Functions</a> </div> |
| 85 | <div class="headertitle"> |
| 86 | <div class="title">TransposeConvolution2dTestImpl.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include "<a class="el" href="_transpose_convolution2d_test_impl_8hpp_source.html">TransposeConvolution2dTestImpl.hpp</a>"</code><br /> |
| 90 | <code>#include <<a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>></code><br /> |
| 91 | <code>#include <<a class="el" href="_permute_8hpp_source.html">armnnUtils/Permute.hpp</a>></code><br /> |
| 92 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.html">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 93 | <code>#include <<a class="el" href="_data_layout_utils_8hpp_source.html">backendsCommon/test/DataLayoutUtils.hpp</a>></code><br /> |
| 94 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.html">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 95 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.html">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 96 | <code>#include <<a class="el" href="_ref_workload_factory_8hpp_source.html">reference/RefWorkloadFactory.hpp</a>></code><br /> |
| 97 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.html">test/TensorHelpers.hpp</a>></code><br /> |
| 98 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 99 | <code>#include <string></code><br /> |
| 100 | <code>#include <utility></code><br /> |
| 101 | <code>#include <vector></code><br /> |
| 102 | </div> |
| 103 | <p><a href="_transpose_convolution2d_test_impl_8cpp_source.html">Go to the source code of this file.</a></p> |
| 104 | <table class="memberdecls"> |
| 105 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 106 | Functions</h2></td></tr> |
| 107 | <tr class="memitem:aaab75bc035d8c526ed95a85893dfa8f4"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, armnn::DataType ArmnnBType, typename T > </td></tr> |
| 108 | <tr class="memitem:aaab75bc035d8c526ed95a85893dfa8f4"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#aaab75bc035d8c526ed95a85893dfa8f4">SimpleTransposeConvolution2dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 109 | <tr class="separator:aaab75bc035d8c526ed95a85893dfa8f4"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a1a0818bdef21773e58fc5d12e7aec147"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, armnn::DataType ArmnnBType, typename T > </td></tr> |
| 111 | <tr class="memitem:a1a0818bdef21773e58fc5d12e7aec147"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a1a0818bdef21773e58fc5d12e7aec147">PaddedTransposeConvolution2dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 112 | <tr class="separator:a1a0818bdef21773e58fc5d12e7aec147"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a64e49b8f5d6e3a5888444b6b83dd9f1f"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, armnn::DataType ArmnnBType, typename T > </td></tr> |
| 114 | <tr class="memitem:a64e49b8f5d6e3a5888444b6b83dd9f1f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a64e49b8f5d6e3a5888444b6b83dd9f1f">StridedTransposeConvolution2dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 115 | <tr class="separator:a64e49b8f5d6e3a5888444b6b83dd9f1f"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a4d0af564c539e193020d5375adfb1c03"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType, armnn::DataType ArmnnBType, typename T > </td></tr> |
| 117 | <tr class="memitem:a4d0af564c539e193020d5375adfb1c03"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a4d0af564c539e193020d5375adfb1c03">MultiChannelTransposeConvolution2dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 118 | <tr class="separator:a4d0af564c539e193020d5375adfb1c03"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:afe35eec6fc46b9526db341d374e93653"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#afe35eec6fc46b9526db341d374e93653">TransposeConvolution2dPerAxisQuantTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 120 | <tr class="separator:afe35eec6fc46b9526db341d374e93653"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a86b89c108f44764256502aefdd792e49"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a86b89c108f44764256502aefdd792e49">SimpleTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 122 | <tr class="separator:a86b89c108f44764256502aefdd792e49"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a43dfa85e881404d523b20b221c64aab7"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a43dfa85e881404d523b20b221c64aab7">SimpleTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 124 | <tr class="separator:a43dfa85e881404d523b20b221c64aab7"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a84a1d0bab12c7cff89e505fd79a2bf54"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a84a1d0bab12c7cff89e505fd79a2bf54">SimpleTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 126 | <tr class="separator:a84a1d0bab12c7cff89e505fd79a2bf54"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:addab2cbc120ecf2e20f7efddab3d06a2"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#addab2cbc120ecf2e20f7efddab3d06a2">PaddedTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 128 | <tr class="separator:addab2cbc120ecf2e20f7efddab3d06a2"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:aa4f9c7a8aaf0de9210bded585574e9e4"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#aa4f9c7a8aaf0de9210bded585574e9e4">PaddedTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 130 | <tr class="separator:aa4f9c7a8aaf0de9210bded585574e9e4"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:af847285b4dafe0d87f516e9dd45f00da"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#af847285b4dafe0d87f516e9dd45f00da">PaddedTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 132 | <tr class="separator:af847285b4dafe0d87f516e9dd45f00da"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a80e79c01eb4e678912a20ec8ff1e6402"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a80e79c01eb4e678912a20ec8ff1e6402">StridedTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 134 | <tr class="separator:a80e79c01eb4e678912a20ec8ff1e6402"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a6751360281786f1a53f63ed1b5702cbb"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a6751360281786f1a53f63ed1b5702cbb">StridedTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 136 | <tr class="separator:a6751360281786f1a53f63ed1b5702cbb"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:a40ce85d0660da4ed1b00a2fbdbf7698c"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a40ce85d0660da4ed1b00a2fbdbf7698c">StridedTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool biasEnabled, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 138 | <tr class="separator:a40ce85d0660da4ed1b00a2fbdbf7698c"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:a59e485959325ce82a6ba1e2b982caba4"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a59e485959325ce82a6ba1e2b982caba4">MultiChannelTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 140 | <tr class="separator:a59e485959325ce82a6ba1e2b982caba4"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:a0f6a6b4054bb31012f90d841210467bb"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#a0f6a6b4054bb31012f90d841210467bb">MultiChannelTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 142 | <tr class="separator:a0f6a6b4054bb31012f90d841210467bb"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:ab56ce0fce15415fa03e0a2b5aa81c902"><td class="memItemLeft" align="right" valign="top">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a> >, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html#ab56ce0fce15415fa03e0a2b5aa81c902">MultiChannelTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 144 | <tr class="separator:ab56ce0fce15415fa03e0a2b5aa81c902"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | </table> |
| 146 | <h2 class="groupheader">Function Documentation</h2> |
| 147 | <a id="a4d0af564c539e193020d5375adfb1c03"></a> |
| 148 | <h2 class="memtitle"><span class="permalink"><a href="#a4d0af564c539e193020d5375adfb1c03">◆ </a></span>MultiChannelTransposeConvolution2dTest()</h2> |
| 149 | |
| 150 | <div class="memitem"> |
| 151 | <div class="memproto"> |
| 152 | <table class="memname"> |
| 153 | <tr> |
| 154 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> MultiChannelTransposeConvolution2dTest </td> |
| 155 | <td>(</td> |
| 156 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 157 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 158 | </tr> |
| 159 | <tr> |
| 160 | <td class="paramkey"></td> |
| 161 | <td></td> |
| 162 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 163 | <td class="paramname"><em>memoryManager</em>, </td> |
| 164 | </tr> |
| 165 | <tr> |
| 166 | <td class="paramkey"></td> |
| 167 | <td></td> |
| 168 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 169 | <td class="paramname"><em>layout</em> </td> |
| 170 | </tr> |
| 171 | <tr> |
| 172 | <td></td> |
| 173 | <td>)</td> |
| 174 | <td></td><td></td> |
| 175 | </tr> |
| 176 | </table> |
| 177 | </div><div class="memdoc"> |
| 178 | |
| 179 | <p class="definition">Definition at line <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html#l00483">483</a> of file <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html">TransposeConvolution2dTestImpl.cpp</a>.</p> |
| 180 | |
| 181 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l01117">TransposeConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l01119">TransposeConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l01115">TransposeConvolution2dDescriptor::m_StrideY</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 182 | <div class="fragment"><div class="line"><a name="l00487"></a><span class="lineno"> 487</span> {</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span> </div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> inputShape = { 1, 1, 2, 2 };</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> outputShape = { 1, 2, 5, 5 };</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="comment">// OIHW for NCHW; OHWI for NHWC</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> weightsShape = { 2, 1, 3, 3 };</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> biasesShape = { 2 };</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> </div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputInfo(inputShape, ArmnnType);</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputInfo(outputShape, ArmnnType);</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> weightsInfo(weightsShape, ArmnnType);</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> biasesInfo(biasesShape, ArmnnBType);</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  std::vector<float> inputData =</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  {</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  1.f, 2.f,</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  3.f, 4.f,</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  };</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  std::vector<float> weightsData =</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  {</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  1.f, 3.f, 5.f,</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  7.f, 9.f, 11.f,</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  13.f, 15.f, 17.f,</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>  2.f, 4.f, 6.f,</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  8.f, 10.f, 12.f,</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  14.f, 16.f, 18.f</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  };</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span> </div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  std::vector<float> biasesData = { -1.5f, -2.0f };</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span> </div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  std::vector<float> expectedOutputData =</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  {</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  -0.5f, 1.5f, 5.5f, 4.5f, 8.5f,</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  5.5f, 7.5f, 23.5f, 16.5f, 20.5f,</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  14.5f, 22.5f, 60.5f, 40.5f, 52.5f,</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  19.5f, 25.5f, 59.5f, 34.5f, 42.5f,</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  37.5f, 43.5f, 101.5f, 58.5f, 66.5f,</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span> </div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  0.0f, 2.0f, 8.0f, 6.0f, 10.0f,</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  6.0f, 8.0f, 26.0f, 18.0f, 22.0f,</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  18.0f, 26.0f, 70.0f, 46.0f, 58.0f,</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  22.0f, 28.0f, 66.0f, 38.0f, 46.0f,</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  40.0f, 46.0f, 108.0f, 62.0f, 70.0f</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  };</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">TransposeConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 2;</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 2;</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = layout;</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span> </div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  <span class="comment">// swizzle data if needed</span></div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  <span class="keywordflow">if</span> (layout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>)</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  {</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  SwizzleData(inputInfo, inputData, outputInfo, expectedOutputData, weightsInfo, weightsData);</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  }</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordflow">return</span> TransposeConvolution2dTest<ArmnnType, ArmnnBType>(workloadFactory,</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  memoryManager,</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  descriptor,</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  inputInfo,</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  inputData,</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  outputInfo,</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  expectedOutputData,</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  weightsInfo,</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  weightsData,</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  biasesInfo,</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  biasesData);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 183 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::TransposeConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01119">Descriptors.hpp:1119</a></div></div> |
| 184 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a></div><div class="ttdoc">A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01079">Descriptors.hpp:1079</a></div></div> |
| 185 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::TransposeConvolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01115">Descriptors.hpp:1115</a></div></div> |
| 186 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 187 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::TransposeConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01113">Descriptors.hpp:1113</a></div></div> |
| 188 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 189 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::TransposeConvolution2dDescriptor::m_BiasEnabled</a></div><div class="ttdeci">bool m_BiasEnabled</div><div class="ttdoc">Enable/disable bias. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01117">Descriptors.hpp:1117</a></div></div> |
| 190 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 191 | </div><!-- fragment --> |
| 192 | </div> |
| 193 | </div> |
| 194 | <a id="a59e485959325ce82a6ba1e2b982caba4"></a> |
| 195 | <h2 class="memtitle"><span class="permalink"><a href="#a59e485959325ce82a6ba1e2b982caba4">◆ </a></span>MultiChannelTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 >()</h2> |
| 196 | |
| 197 | <div class="memitem"> |
| 198 | <div class="memproto"> |
| 199 | <table class="memname"> |
| 200 | <tr> |
| 201 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a4d0af564c539e193020d5375adfb1c03">MultiChannelTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> > </td> |
| 202 | <td>(</td> |
| 203 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 204 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 205 | </tr> |
| 206 | <tr> |
| 207 | <td class="paramkey"></td> |
| 208 | <td></td> |
| 209 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 210 | <td class="paramname"><em>memoryManager</em>, </td> |
| 211 | </tr> |
| 212 | <tr> |
| 213 | <td class="paramkey"></td> |
| 214 | <td></td> |
| 215 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 216 | <td class="paramname"><em>layout</em> </td> |
| 217 | </tr> |
| 218 | <tr> |
| 219 | <td></td> |
| 220 | <td>)</td> |
| 221 | <td></td><td></td> |
| 222 | </tr> |
| 223 | </table> |
| 224 | </div><div class="memdoc"> |
| 225 | |
| 226 | </div> |
| 227 | </div> |
| 228 | <a id="a0f6a6b4054bb31012f90d841210467bb"></a> |
| 229 | <h2 class="memtitle"><span class="permalink"><a href="#a0f6a6b4054bb31012f90d841210467bb">◆ </a></span>MultiChannelTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 >()</h2> |
| 230 | |
| 231 | <div class="memitem"> |
| 232 | <div class="memproto"> |
| 233 | <table class="memname"> |
| 234 | <tr> |
| 235 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a4d0af564c539e193020d5375adfb1c03">MultiChannelTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 236 | <td>(</td> |
| 237 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 238 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 239 | </tr> |
| 240 | <tr> |
| 241 | <td class="paramkey"></td> |
| 242 | <td></td> |
| 243 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 244 | <td class="paramname"><em>memoryManager</em>, </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td class="paramkey"></td> |
| 248 | <td></td> |
| 249 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 250 | <td class="paramname"><em>layout</em> </td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td></td> |
| 254 | <td>)</td> |
| 255 | <td></td><td></td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | </div> |
| 261 | </div> |
| 262 | <a id="ab56ce0fce15415fa03e0a2b5aa81c902"></a> |
| 263 | <h2 class="memtitle"><span class="permalink"><a href="#ab56ce0fce15415fa03e0a2b5aa81c902">◆ </a></span>MultiChannelTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 >()</h2> |
| 264 | |
| 265 | <div class="memitem"> |
| 266 | <div class="memproto"> |
| 267 | <table class="memname"> |
| 268 | <tr> |
| 269 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a4d0af564c539e193020d5375adfb1c03">MultiChannelTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 270 | <td>(</td> |
| 271 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">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.html#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.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 284 | <td class="paramname"><em>layout</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 | </div> |
| 295 | </div> |
| 296 | <a id="a1a0818bdef21773e58fc5d12e7aec147"></a> |
| 297 | <h2 class="memtitle"><span class="permalink"><a href="#a1a0818bdef21773e58fc5d12e7aec147">◆ </a></span>PaddedTransposeConvolution2dTest()</h2> |
| 298 | |
| 299 | <div class="memitem"> |
| 300 | <div class="memproto"> |
| 301 | <table class="memname"> |
| 302 | <tr> |
| 303 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> PaddedTransposeConvolution2dTest </td> |
| 304 | <td>(</td> |
| 305 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 306 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 307 | </tr> |
| 308 | <tr> |
| 309 | <td class="paramkey"></td> |
| 310 | <td></td> |
| 311 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 312 | <td class="paramname"><em>memoryManager</em>, </td> |
| 313 | </tr> |
| 314 | <tr> |
| 315 | <td class="paramkey"></td> |
| 316 | <td></td> |
| 317 | <td class="paramtype">bool </td> |
| 318 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 319 | </tr> |
| 320 | <tr> |
| 321 | <td class="paramkey"></td> |
| 322 | <td></td> |
| 323 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 324 | <td class="paramname"><em>layout</em> </td> |
| 325 | </tr> |
| 326 | <tr> |
| 327 | <td></td> |
| 328 | <td>)</td> |
| 329 | <td></td><td></td> |
| 330 | </tr> |
| 331 | </table> |
| 332 | </div><div class="memdoc"> |
| 333 | |
| 334 | <p class="definition">Definition at line <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html#l00305">305</a> of file <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html">TransposeConvolution2dTestImpl.cpp</a>.</p> |
| 335 | |
| 336 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l01105">TransposeConvolution2dDescriptor::m_PadLeft</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 337 | <div class="fragment"><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>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batches = 1u;</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channels = 1u;</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>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wInput = 4u;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hInput = wInput;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wOutput = 2u;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hOutput = wOutput;</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>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wWeights = 3u;</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hWeights = wWeights;</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> inputShape = { batches, channels, hInput, wInput };</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> outputShape = { batches, channels, hOutput, wOutput };</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> weightsShape = { batches, channels, hWeights, wWeights };</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputInfo(inputShape, ArmnnType);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputInfo(outputShape, ArmnnType);</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> weightsInfo(weightsShape, ArmnnType);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> biasesInfo({ channels }, ArmnnBType);</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  std::vector<float> inputData =</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  {</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  1.f, 3.f, 2.f, 1.f,</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  1.f, 3.f, 3.f, 1.f,</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  2.f, 1.f, 1.f, 3.f,</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  3.f, 2.f, 3.f, 3.f</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  };</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  std::vector<float> weightsData =</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  {</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  1.f, 2.f, 3.f,</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  0.f, 1.f, 0.f,</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  2.f, 1.f, 2.f</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  };</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  std::vector<float> biasesData = { 1.f };</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>  std::vector<float> expectedOutputData =</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  {</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  21.f, 21.f,</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  28.f, 27.f</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> </div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordflow">if</span> (biasEnabled)</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  {</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="comment">// apply bias to expected output data</span></div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  std::transform(expectedOutputData.begin(), expectedOutputData.end(), expectedOutputData.begin(),</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  [&](<span class="keywordtype">float</span> f) -> <span class="keywordtype">float</span> { <span class="keywordflow">return</span> f + biasesData[0]; });</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  }</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>  <a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">TransposeConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> = 2;</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  descriptor.m_PadRight = 2;</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  descriptor.m_PadTop = 2;</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  descriptor.m_PadBottom = 2;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  descriptor.m_StrideX = 1;</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  descriptor.m_StrideY = 1;</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  descriptor.m_BiasEnabled = biasEnabled;</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  descriptor.m_DataLayout = layout;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="comment">// swizzle data if needed</span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordflow">if</span> (layout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>)</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  {</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  SwizzleData(inputInfo, inputData, outputInfo, expectedOutputData, weightsInfo, weightsData);</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  }</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">return</span> TransposeConvolution2dTest<ArmnnType, ArmnnBType>(workloadFactory,</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  memoryManager,</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  descriptor,</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  inputInfo,</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  inputData,</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  outputInfo,</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  expectedOutputData,</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  weightsInfo,</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  weightsData,</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  biasesInfo,</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  biasesData);</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 338 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a></div><div class="ttdoc">A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01079">Descriptors.hpp:1079</a></div></div> |
| 339 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 340 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::TransposeConvolution2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01105">Descriptors.hpp:1105</a></div></div> |
| 341 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 342 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 343 | </div><!-- fragment --> |
| 344 | </div> |
| 345 | </div> |
| 346 | <a id="addab2cbc120ecf2e20f7efddab3d06a2"></a> |
| 347 | <h2 class="memtitle"><span class="permalink"><a href="#addab2cbc120ecf2e20f7efddab3d06a2">◆ </a></span>PaddedTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 >()</h2> |
| 348 | |
| 349 | <div class="memitem"> |
| 350 | <div class="memproto"> |
| 351 | <table class="memname"> |
| 352 | <tr> |
| 353 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a1a0818bdef21773e58fc5d12e7aec147">PaddedTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> > </td> |
| 354 | <td>(</td> |
| 355 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 356 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 357 | </tr> |
| 358 | <tr> |
| 359 | <td class="paramkey"></td> |
| 360 | <td></td> |
| 361 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 362 | <td class="paramname"><em>memoryManager</em>, </td> |
| 363 | </tr> |
| 364 | <tr> |
| 365 | <td class="paramkey"></td> |
| 366 | <td></td> |
| 367 | <td class="paramtype">bool </td> |
| 368 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 369 | </tr> |
| 370 | <tr> |
| 371 | <td class="paramkey"></td> |
| 372 | <td></td> |
| 373 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 374 | <td class="paramname"><em>layout</em> </td> |
| 375 | </tr> |
| 376 | <tr> |
| 377 | <td></td> |
| 378 | <td>)</td> |
| 379 | <td></td><td></td> |
| 380 | </tr> |
| 381 | </table> |
| 382 | </div><div class="memdoc"> |
| 383 | |
| 384 | </div> |
| 385 | </div> |
| 386 | <a id="aa4f9c7a8aaf0de9210bded585574e9e4"></a> |
| 387 | <h2 class="memtitle"><span class="permalink"><a href="#aa4f9c7a8aaf0de9210bded585574e9e4">◆ </a></span>PaddedTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 >()</h2> |
| 388 | |
| 389 | <div class="memitem"> |
| 390 | <div class="memproto"> |
| 391 | <table class="memname"> |
| 392 | <tr> |
| 393 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a1a0818bdef21773e58fc5d12e7aec147">PaddedTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 394 | <td>(</td> |
| 395 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 396 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 397 | </tr> |
| 398 | <tr> |
| 399 | <td class="paramkey"></td> |
| 400 | <td></td> |
| 401 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 402 | <td class="paramname"><em>memoryManager</em>, </td> |
| 403 | </tr> |
| 404 | <tr> |
| 405 | <td class="paramkey"></td> |
| 406 | <td></td> |
| 407 | <td class="paramtype">bool </td> |
| 408 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 409 | </tr> |
| 410 | <tr> |
| 411 | <td class="paramkey"></td> |
| 412 | <td></td> |
| 413 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 414 | <td class="paramname"><em>layout</em> </td> |
| 415 | </tr> |
| 416 | <tr> |
| 417 | <td></td> |
| 418 | <td>)</td> |
| 419 | <td></td><td></td> |
| 420 | </tr> |
| 421 | </table> |
| 422 | </div><div class="memdoc"> |
| 423 | |
| 424 | </div> |
| 425 | </div> |
| 426 | <a id="af847285b4dafe0d87f516e9dd45f00da"></a> |
| 427 | <h2 class="memtitle"><span class="permalink"><a href="#af847285b4dafe0d87f516e9dd45f00da">◆ </a></span>PaddedTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 >()</h2> |
| 428 | |
| 429 | <div class="memitem"> |
| 430 | <div class="memproto"> |
| 431 | <table class="memname"> |
| 432 | <tr> |
| 433 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a1a0818bdef21773e58fc5d12e7aec147">PaddedTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 434 | <td>(</td> |
| 435 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 436 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 437 | </tr> |
| 438 | <tr> |
| 439 | <td class="paramkey"></td> |
| 440 | <td></td> |
| 441 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 442 | <td class="paramname"><em>memoryManager</em>, </td> |
| 443 | </tr> |
| 444 | <tr> |
| 445 | <td class="paramkey"></td> |
| 446 | <td></td> |
| 447 | <td class="paramtype">bool </td> |
| 448 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 449 | </tr> |
| 450 | <tr> |
| 451 | <td class="paramkey"></td> |
| 452 | <td></td> |
| 453 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 454 | <td class="paramname"><em>layout</em> </td> |
| 455 | </tr> |
| 456 | <tr> |
| 457 | <td></td> |
| 458 | <td>)</td> |
| 459 | <td></td><td></td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </div><div class="memdoc"> |
| 463 | |
| 464 | </div> |
| 465 | </div> |
| 466 | <a id="aaab75bc035d8c526ed95a85893dfa8f4"></a> |
| 467 | <h2 class="memtitle"><span class="permalink"><a href="#aaab75bc035d8c526ed95a85893dfa8f4">◆ </a></span>SimpleTransposeConvolution2dTest()</h2> |
| 468 | |
| 469 | <div class="memitem"> |
| 470 | <div class="memproto"> |
| 471 | <table class="memname"> |
| 472 | <tr> |
| 473 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> SimpleTransposeConvolution2dTest </td> |
| 474 | <td>(</td> |
| 475 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 476 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 477 | </tr> |
| 478 | <tr> |
| 479 | <td class="paramkey"></td> |
| 480 | <td></td> |
| 481 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 482 | <td class="paramname"><em>memoryManager</em>, </td> |
| 483 | </tr> |
| 484 | <tr> |
| 485 | <td class="paramkey"></td> |
| 486 | <td></td> |
| 487 | <td class="paramtype">bool </td> |
| 488 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 489 | </tr> |
| 490 | <tr> |
| 491 | <td class="paramkey"></td> |
| 492 | <td></td> |
| 493 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 494 | <td class="paramname"><em>layout</em> </td> |
| 495 | </tr> |
| 496 | <tr> |
| 497 | <td></td> |
| 498 | <td>)</td> |
| 499 | <td></td><td></td> |
| 500 | </tr> |
| 501 | </table> |
| 502 | </div><div class="memdoc"> |
| 503 | |
| 504 | <p class="definition">Definition at line <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html#l00218">218</a> of file <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html">TransposeConvolution2dTestImpl.cpp</a>.</p> |
| 505 | |
| 506 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 507 | <div class="fragment"><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>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batches = 1u;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channels = 1u;</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>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wInput = 3u;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hInput = wInput;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wOutput = 5u;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hOutput = wOutput;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wWeights = 3u;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hWeights = wWeights;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> inputShape = { batches, channels, hInput, wInput };</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> outputShape = { batches, channels, hOutput, wOutput };</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> weightsShape = { batches, channels, hWeights, wWeights };</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputInfo(inputShape, ArmnnType);</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputInfo(outputShape, ArmnnType);</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> weightsInfo(weightsShape, ArmnnType);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> biasesInfo({ channels }, ArmnnBType);</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  std::vector<float> inputData =</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>  1.f, 1.f, 1.f,</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  1.f, 1.f, 1.f,</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  1.f, 1.f, 1.f</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  };</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  std::vector<float> weightsData =</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  {</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  1.f, 2.f, 3.f,</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  4.f, 5.f, 6.f,</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  7.f, 8.f, 9.f</div><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> </div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  std::vector<float> biasesData = { 1.f };</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  std::vector<float> expectedOutputData =</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  {</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  1.f, 3.f, 6.f, 5.f, 3.f,</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  5.f, 12.f, 21.f, 16.f, 9.f,</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  12.f, 27.f, 45.f, 33.f, 18.f,</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  11.f, 24.f, 39.f, 28.f, 15.f,</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  7.f, 15.f, 24.f, 17.f, 9.f</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  };</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">if</span> (biasEnabled)</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  {</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="comment">// apply bias to expected output data</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  std::transform(expectedOutputData.begin(), expectedOutputData.end(), expectedOutputData.begin(),</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  [&](<span class="keywordtype">float</span> f) -> <span class="keywordtype">float</span> { <span class="keywordflow">return</span> f + biasesData[0]; });</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  }</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">TransposeConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 1;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  descriptor.m_StrideY = 1;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  descriptor.m_BiasEnabled = biasEnabled;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  descriptor.m_DataLayout = layout;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="comment">// swizzle data if needed</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">if</span> (layout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>)</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  {</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  SwizzleData(inputInfo, inputData, outputInfo, expectedOutputData, weightsInfo, weightsData);</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  }</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">return</span> TransposeConvolution2dTest<ArmnnType, ArmnnBType>(workloadFactory,</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  memoryManager,</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  descriptor,</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  inputInfo,</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  inputData,</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  outputInfo,</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  expectedOutputData,</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  weightsInfo,</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  weightsData,</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  biasesInfo,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  biasesData);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 508 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a></div><div class="ttdoc">A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01079">Descriptors.hpp:1079</a></div></div> |
| 509 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 510 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::TransposeConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01113">Descriptors.hpp:1113</a></div></div> |
| 511 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 512 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 513 | </div><!-- fragment --> |
| 514 | </div> |
| 515 | </div> |
| 516 | <a id="a86b89c108f44764256502aefdd792e49"></a> |
| 517 | <h2 class="memtitle"><span class="permalink"><a href="#a86b89c108f44764256502aefdd792e49">◆ </a></span>SimpleTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 >()</h2> |
| 518 | |
| 519 | <div class="memitem"> |
| 520 | <div class="memproto"> |
| 521 | <table class="memname"> |
| 522 | <tr> |
| 523 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#aaab75bc035d8c526ed95a85893dfa8f4">SimpleTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> > </td> |
| 524 | <td>(</td> |
| 525 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 526 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 527 | </tr> |
| 528 | <tr> |
| 529 | <td class="paramkey"></td> |
| 530 | <td></td> |
| 531 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 532 | <td class="paramname"><em>memoryManager</em>, </td> |
| 533 | </tr> |
| 534 | <tr> |
| 535 | <td class="paramkey"></td> |
| 536 | <td></td> |
| 537 | <td class="paramtype">bool </td> |
| 538 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 539 | </tr> |
| 540 | <tr> |
| 541 | <td class="paramkey"></td> |
| 542 | <td></td> |
| 543 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 544 | <td class="paramname"><em>layout</em> </td> |
| 545 | </tr> |
| 546 | <tr> |
| 547 | <td></td> |
| 548 | <td>)</td> |
| 549 | <td></td><td></td> |
| 550 | </tr> |
| 551 | </table> |
| 552 | </div><div class="memdoc"> |
| 553 | |
| 554 | </div> |
| 555 | </div> |
| 556 | <a id="a43dfa85e881404d523b20b221c64aab7"></a> |
| 557 | <h2 class="memtitle"><span class="permalink"><a href="#a43dfa85e881404d523b20b221c64aab7">◆ </a></span>SimpleTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 >()</h2> |
| 558 | |
| 559 | <div class="memitem"> |
| 560 | <div class="memproto"> |
| 561 | <table class="memname"> |
| 562 | <tr> |
| 563 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#aaab75bc035d8c526ed95a85893dfa8f4">SimpleTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 564 | <td>(</td> |
| 565 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 566 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 567 | </tr> |
| 568 | <tr> |
| 569 | <td class="paramkey"></td> |
| 570 | <td></td> |
| 571 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 572 | <td class="paramname"><em>memoryManager</em>, </td> |
| 573 | </tr> |
| 574 | <tr> |
| 575 | <td class="paramkey"></td> |
| 576 | <td></td> |
| 577 | <td class="paramtype">bool </td> |
| 578 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 579 | </tr> |
| 580 | <tr> |
| 581 | <td class="paramkey"></td> |
| 582 | <td></td> |
| 583 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 584 | <td class="paramname"><em>layout</em> </td> |
| 585 | </tr> |
| 586 | <tr> |
| 587 | <td></td> |
| 588 | <td>)</td> |
| 589 | <td></td><td></td> |
| 590 | </tr> |
| 591 | </table> |
| 592 | </div><div class="memdoc"> |
| 593 | |
| 594 | </div> |
| 595 | </div> |
| 596 | <a id="a84a1d0bab12c7cff89e505fd79a2bf54"></a> |
| 597 | <h2 class="memtitle"><span class="permalink"><a href="#a84a1d0bab12c7cff89e505fd79a2bf54">◆ </a></span>SimpleTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 >()</h2> |
| 598 | |
| 599 | <div class="memitem"> |
| 600 | <div class="memproto"> |
| 601 | <table class="memname"> |
| 602 | <tr> |
| 603 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#aaab75bc035d8c526ed95a85893dfa8f4">SimpleTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 604 | <td>(</td> |
| 605 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 606 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 607 | </tr> |
| 608 | <tr> |
| 609 | <td class="paramkey"></td> |
| 610 | <td></td> |
| 611 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 612 | <td class="paramname"><em>memoryManager</em>, </td> |
| 613 | </tr> |
| 614 | <tr> |
| 615 | <td class="paramkey"></td> |
| 616 | <td></td> |
| 617 | <td class="paramtype">bool </td> |
| 618 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 619 | </tr> |
| 620 | <tr> |
| 621 | <td class="paramkey"></td> |
| 622 | <td></td> |
| 623 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 624 | <td class="paramname"><em>layout</em> </td> |
| 625 | </tr> |
| 626 | <tr> |
| 627 | <td></td> |
| 628 | <td>)</td> |
| 629 | <td></td><td></td> |
| 630 | </tr> |
| 631 | </table> |
| 632 | </div><div class="memdoc"> |
| 633 | |
| 634 | </div> |
| 635 | </div> |
| 636 | <a id="a64e49b8f5d6e3a5888444b6b83dd9f1f"></a> |
| 637 | <h2 class="memtitle"><span class="permalink"><a href="#a64e49b8f5d6e3a5888444b6b83dd9f1f">◆ </a></span>StridedTransposeConvolution2dTest()</h2> |
| 638 | |
| 639 | <div class="memitem"> |
| 640 | <div class="memproto"> |
| 641 | <table class="memname"> |
| 642 | <tr> |
| 643 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> StridedTransposeConvolution2dTest </td> |
| 644 | <td>(</td> |
| 645 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 646 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 647 | </tr> |
| 648 | <tr> |
| 649 | <td class="paramkey"></td> |
| 650 | <td></td> |
| 651 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 652 | <td class="paramname"><em>memoryManager</em>, </td> |
| 653 | </tr> |
| 654 | <tr> |
| 655 | <td class="paramkey"></td> |
| 656 | <td></td> |
| 657 | <td class="paramtype">bool </td> |
| 658 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 659 | </tr> |
| 660 | <tr> |
| 661 | <td class="paramkey"></td> |
| 662 | <td></td> |
| 663 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 664 | <td class="paramname"><em>layout</em> </td> |
| 665 | </tr> |
| 666 | <tr> |
| 667 | <td></td> |
| 668 | <td>)</td> |
| 669 | <td></td><td></td> |
| 670 | </tr> |
| 671 | </table> |
| 672 | </div><div class="memdoc"> |
| 673 | |
| 674 | <p class="definition">Definition at line <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html#l00394">394</a> of file <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html">TransposeConvolution2dTestImpl.cpp</a>.</p> |
| 675 | |
| 676 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 677 | <div class="fragment"><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>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</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>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batches = 1u;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> channels = 1u;</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>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wInput = 3u;</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hInput = wInput;</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wOutput = 7u;</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hOutput = wOutput;</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span> </div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wWeights = 3u;</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hWeights = wWeights;</div><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>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> inputShape = { batches, channels, hInput, wInput };</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> outputShape = { batches, channels, hOutput, wOutput };</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> weightsShape = { batches, channels, hWeights, wWeights };</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputInfo(inputShape, ArmnnType);</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputInfo(outputShape, ArmnnType);</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> weightsInfo(weightsShape, ArmnnType);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> biasesInfo({ channels }, ArmnnBType);</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>  std::vector<float> inputData =</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  {</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  1.f, 1.f, 1.f,</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  1.f, 1.f, 1.f,</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  1.f, 1.f, 1.f</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  };</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> </div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  std::vector<float> weightsData =</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  {</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  1.f, 2.f, 3.f,</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  4.f, 5.f, 6.f,</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  7.f, 8.f, 9.f</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  };</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  std::vector<float> biasesData = { 1.f };</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  std::vector<float> expectedOutputData =</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  {</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  1.f, 2.f, 4.f, 2.f, 4.f, 2.f, 3.f,</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  4.f, 5.f, 10.f, 5.f, 10.f, 5.f, 6.f,</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  8.f, 10.f, 20.f, 10.f, 20.f, 10.f, 12.f,</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  4.f, 5.f, 10.f, 5.f, 10.f, 5.f, 6.f,</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  8.f, 10.f, 20.f, 10.f, 20.f, 10.f, 12.f,</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  4.f, 5.f, 10.f, 5.f, 10.f, 5.f, 6.f,</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  7.f, 8.f, 16.f, 8.f, 16.f, 8.f, 9.f</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  };</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <span class="keywordflow">if</span> (biasEnabled)</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  {</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="comment">// apply bias to expected output data</span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  std::transform(expectedOutputData.begin(), expectedOutputData.end(), expectedOutputData.begin(),</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  [&](<span class="keywordtype">float</span> f) -> <span class="keywordtype">float</span> { <span class="keywordflow">return</span> f + biasesData[0]; });</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  }</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> </div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">TransposeConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 2;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  descriptor.m_StrideY = 2;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  descriptor.m_BiasEnabled = biasEnabled;</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  descriptor.m_DataLayout = layout;</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>  <span class="comment">// swizzle data if needed</span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">if</span> (layout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>)</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  {</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  SwizzleData(inputInfo, inputData, outputInfo, expectedOutputData, weightsInfo, weightsData);</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  }</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span> </div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keywordflow">return</span> TransposeConvolution2dTest<ArmnnType, ArmnnBType>(workloadFactory,</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  memoryManager,</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  descriptor,</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  inputInfo,</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  inputData,</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  outputInfo,</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  expectedOutputData,</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  weightsInfo,</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  weightsData,</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  biasesInfo,</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  biasesData);</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 678 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a></div><div class="ttdoc">A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01079">Descriptors.hpp:1079</a></div></div> |
| 679 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 680 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::TransposeConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01113">Descriptors.hpp:1113</a></div></div> |
| 681 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 682 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 683 | </div><!-- fragment --> |
| 684 | </div> |
| 685 | </div> |
| 686 | <a id="a80e79c01eb4e678912a20ec8ff1e6402"></a> |
| 687 | <h2 class="memtitle"><span class="permalink"><a href="#a80e79c01eb4e678912a20ec8ff1e6402">◆ </a></span>StridedTransposeConvolution2dTest< armnn::DataType::Float32, armnn::DataType::Float32 >()</h2> |
| 688 | |
| 689 | <div class="memitem"> |
| 690 | <div class="memproto"> |
| 691 | <table class="memname"> |
| 692 | <tr> |
| 693 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a64e49b8f5d6e3a5888444b6b83dd9f1f">StridedTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a> > </td> |
| 694 | <td>(</td> |
| 695 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 696 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 697 | </tr> |
| 698 | <tr> |
| 699 | <td class="paramkey"></td> |
| 700 | <td></td> |
| 701 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 702 | <td class="paramname"><em>memoryManager</em>, </td> |
| 703 | </tr> |
| 704 | <tr> |
| 705 | <td class="paramkey"></td> |
| 706 | <td></td> |
| 707 | <td class="paramtype">bool </td> |
| 708 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 709 | </tr> |
| 710 | <tr> |
| 711 | <td class="paramkey"></td> |
| 712 | <td></td> |
| 713 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 714 | <td class="paramname"><em>layout</em> </td> |
| 715 | </tr> |
| 716 | <tr> |
| 717 | <td></td> |
| 718 | <td>)</td> |
| 719 | <td></td><td></td> |
| 720 | </tr> |
| 721 | </table> |
| 722 | </div><div class="memdoc"> |
| 723 | |
| 724 | </div> |
| 725 | </div> |
| 726 | <a id="a6751360281786f1a53f63ed1b5702cbb"></a> |
| 727 | <h2 class="memtitle"><span class="permalink"><a href="#a6751360281786f1a53f63ed1b5702cbb">◆ </a></span>StridedTransposeConvolution2dTest< armnn::DataType::QAsymmU8, armnn::DataType::Signed32 >()</h2> |
| 728 | |
| 729 | <div class="memitem"> |
| 730 | <div class="memproto"> |
| 731 | <table class="memname"> |
| 732 | <tr> |
| 733 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a64e49b8f5d6e3a5888444b6b83dd9f1f">StridedTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 734 | <td>(</td> |
| 735 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 736 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 737 | </tr> |
| 738 | <tr> |
| 739 | <td class="paramkey"></td> |
| 740 | <td></td> |
| 741 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 742 | <td class="paramname"><em>memoryManager</em>, </td> |
| 743 | </tr> |
| 744 | <tr> |
| 745 | <td class="paramkey"></td> |
| 746 | <td></td> |
| 747 | <td class="paramtype">bool </td> |
| 748 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 749 | </tr> |
| 750 | <tr> |
| 751 | <td class="paramkey"></td> |
| 752 | <td></td> |
| 753 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 754 | <td class="paramname"><em>layout</em> </td> |
| 755 | </tr> |
| 756 | <tr> |
| 757 | <td></td> |
| 758 | <td>)</td> |
| 759 | <td></td><td></td> |
| 760 | </tr> |
| 761 | </table> |
| 762 | </div><div class="memdoc"> |
| 763 | |
| 764 | </div> |
| 765 | </div> |
| 766 | <a id="a40ce85d0660da4ed1b00a2fbdbf7698c"></a> |
| 767 | <h2 class="memtitle"><span class="permalink"><a href="#a40ce85d0660da4ed1b00a2fbdbf7698c">◆ </a></span>StridedTransposeConvolution2dTest< armnn::DataType::QSymmS16, armnn::DataType::Signed32 >()</h2> |
| 768 | |
| 769 | <div class="memitem"> |
| 770 | <div class="memproto"> |
| 771 | <table class="memname"> |
| 772 | <tr> |
| 773 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">armnn::ResolveType</a><<a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>>, 4> <a class="el" href="_transpose_convolution2d_test_impl_8hpp.html#a64e49b8f5d6e3a5888444b6b83dd9f1f">StridedTransposeConvolution2dTest</a>< <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::DataType::QSymmS16</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a> > </td> |
| 774 | <td>(</td> |
| 775 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 776 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 777 | </tr> |
| 778 | <tr> |
| 779 | <td class="paramkey"></td> |
| 780 | <td></td> |
| 781 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 782 | <td class="paramname"><em>memoryManager</em>, </td> |
| 783 | </tr> |
| 784 | <tr> |
| 785 | <td class="paramkey"></td> |
| 786 | <td></td> |
| 787 | <td class="paramtype">bool </td> |
| 788 | <td class="paramname"><em>biasEnabled</em>, </td> |
| 789 | </tr> |
| 790 | <tr> |
| 791 | <td class="paramkey"></td> |
| 792 | <td></td> |
| 793 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 794 | <td class="paramname"><em>layout</em> </td> |
| 795 | </tr> |
| 796 | <tr> |
| 797 | <td></td> |
| 798 | <td>)</td> |
| 799 | <td></td><td></td> |
| 800 | </tr> |
| 801 | </table> |
| 802 | </div><div class="memdoc"> |
| 803 | |
| 804 | </div> |
| 805 | </div> |
| 806 | <a id="afe35eec6fc46b9526db341d374e93653"></a> |
| 807 | <h2 class="memtitle"><span class="permalink"><a href="#afe35eec6fc46b9526db341d374e93653">◆ </a></span>TransposeConvolution2dPerAxisQuantTest()</h2> |
| 808 | |
| 809 | <div class="memitem"> |
| 810 | <div class="memproto"> |
| 811 | <table class="memname"> |
| 812 | <tr> |
| 813 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> TransposeConvolution2dPerAxisQuantTest </td> |
| 814 | <td>(</td> |
| 815 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> & </td> |
| 816 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 817 | </tr> |
| 818 | <tr> |
| 819 | <td class="paramkey"></td> |
| 820 | <td></td> |
| 821 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 822 | <td class="paramname"><em>memoryManager</em>, </td> |
| 823 | </tr> |
| 824 | <tr> |
| 825 | <td class="paramkey"></td> |
| 826 | <td></td> |
| 827 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 828 | <td class="paramname"><em>layout</em> </td> |
| 829 | </tr> |
| 830 | <tr> |
| 831 | <td></td> |
| 832 | <td>)</td> |
| 833 | <td></td><td></td> |
| 834 | </tr> |
| 835 | </table> |
| 836 | </div><div class="memdoc"> |
| 837 | |
| 838 | <p class="definition">Definition at line <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html#l00561">561</a> of file <a class="el" href="_transpose_convolution2d_test_impl_8cpp_source.html">TransposeConvolution2dTestImpl.cpp</a>.</p> |
| 839 | |
| 840 | <p class="reference">References <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00019">AllocateAndCopyDataToITensorHandle()</a>, <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00014">CopyDataFromITensorHandle()</a>, <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00009">CopyDataToITensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="_workload_factory_8cpp_source.html#l01431">IWorkloadFactory::CreateTransposeConvolution2d()</a>, <a class="el" href="_descriptors_8hpp_source.html#l01117">TransposeConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l01119">TransposeConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters</a>, <a class="el" href="_descriptors_8hpp_source.html#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l01115">TransposeConvolution2dDescriptor::m_StrideY</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>, <a class="el" href="_layer_test_result_8hpp_source.html#l00040">LayerTestResult< T, n >::output</a>, <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>, <a class="el" href="_data_layout_utils_8hpp_source.html#l00014">PermuteTensorNchwToNhwc()</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a9945327825b115e93a3b89f4302e76db">armnn::QSymmS8</a>, and <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::Signed32</a>.</p> |
| 841 | |
| 842 | <p class="reference">Referenced by <a class="el" href="_ref_layer_tests_8cpp_source.html#l01413">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 843 | <div class="fragment"><div class="line"><a name="l00565"></a><span class="lineno"> 565</span> {</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span> </div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> inputType = <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>;</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> kernelType = <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a9945327825b115e93a3b89f4302e76db">DataType::QSymmS8</a>;</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> biasType = <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">DataType::Signed32</a>;</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span> </div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputInfo ({ 1, 1, 2, 2 }, inputType, 0.50f, 10);</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputInfo({ 1, 2, 5, 5 }, inputType, 0.50f, 10);</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span> </div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keyword">const</span> std::vector<float> quantScales{ 0.25f, 0.5f };</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> quantDimension = 0;</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span> </div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> kernelInfo({ 2, 1, 3, 3 }, kernelType, quantScales, quantDimension);</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span> </div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="keyword">const</span> std::vector<float> biasQuantScales{ 0.125f, 0.25f };</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> biasInfo({ 2 }, biasType, biasQuantScales, quantDimension);</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span> </div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  std::vector<uint8_t> inputData =</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  {</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  12, 14,</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  16, 18</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  };</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span> </div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  std::vector<int8_t> kernelData =</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  {</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  4, 12, 20,</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  28, 36, 44,</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  52, 60, 68,</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span> </div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  4, 8, 12,</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  16, 20, 24,</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  28, 32, 36</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  };</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span> </div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  std::vector<int32_t> biasData = { -12, -8 };</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span> </div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  std::vector<uint8_t> expectedOutputData =</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  {</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  9, 13, 21, 19, 27,</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  21, 25, 57, 43, 51,</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  39, 55, 131, 91, 115,</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  49, 61, 129, 79, 95,</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  85, 97, 213, 127, 143,</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span> </div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  10, 14, 26, 22, 30,</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  22, 26, 62, 46, 54,</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  46, 62, 150, 102, 126,</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  54, 66, 142, 86, 102,</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  90, 102, 226, 134, 150</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  };</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> </div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="keywordflow">if</span> (layout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>)</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  {</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <a class="code" href="_data_layout_utils_8hpp.html#a2f264435e93ad5aab7ac9e1dec4a4e93">PermuteTensorNchwToNhwc</a>(inputInfo, inputData);</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <a class="code" href="_data_layout_utils_8hpp.html#a2f264435e93ad5aab7ac9e1dec4a4e93">PermuteTensorNchwToNhwc</a>(kernelInfo, kernelData);</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <a class="code" href="_data_layout_utils_8hpp.html#a2f264435e93ad5aab7ac9e1dec4a4e93">PermuteTensorNchwToNhwc</a>(outputInfo, expectedOutputData);</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  }</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span> </div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">TransposeConvolution2dDescriptor</a> descriptor;</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 2;</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 2;</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = layout;</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span> </div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  std::unique_ptr<ITensorHandle> inputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputInfo);</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputInfo);</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span> </div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> workloadInfo;</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  <a class="code" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a> weightTensor(kernelInfo);</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  <a class="code" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a> biasTensor(biasInfo);</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span> </div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#afaaca8c3f3a467d124bba44067d2afa8">AllocateAndCopyDataToITensorHandle</a>(&weightTensor, kernelData.data());</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#afaaca8c3f3a467d124bba44067d2afa8">AllocateAndCopyDataToITensorHandle</a>(&biasTensor, biasData.data());</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span> </div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  <a class="code" href="structarmnn_1_1_transpose_convolution2d_queue_descriptor.html">TransposeConvolution2dQueueDescriptor</a> queueDescriptor;</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  queueDescriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a> = descriptor;</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  queueDescriptor.m_Weight = &weightTensor;</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  queueDescriptor.m_Bias = &biasTensor;</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span> </div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  AddInputToWorkload(queueDescriptor, workloadInfo, inputInfo, inputHandle.get());</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  AddOutputToWorkload(queueDescriptor, workloadInfo, outputInfo, outputHandle.get());</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span> </div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a12cccba82124cc4993868a3173a65167">CreateTransposeConvolution2d</a>(queueDescriptor, workloadInfo);</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  inputHandle->Allocate();</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  outputHandle->Allocate();</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span> </div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle.get(), inputData.data());</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span> </div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  ExecuteWorkload(*workload, memoryManager);</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span> </div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<uint8_t, 4></a> ret(outputInfo);</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(ret.output.origin(), outputHandle.get());</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  ret.outputExpected = MakeTensor<uint8_t, 4>(outputInfo, expectedOutputData);</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span> </div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span> }</div><div class="ttc" id="_tensor_copy_utils_8cpp_html_afaaca8c3f3a467d124bba44067d2afa8"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#afaaca8c3f3a467d124bba44067d2afa8">AllocateAndCopyDataToITensorHandle</a></div><div class="ttdeci">void AllocateAndCopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.html#l00019">TensorCopyUtils.cpp:19</a></div></div> |
| 844 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a9945327825b115e93a3b89f4302e76db"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a9945327825b115e93a3b89f4302e76db">armnn::DataType::QSymmS8</a></div></div> |
| 845 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_queue_descriptor.html">armnn::TransposeConvolution2dQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00494">WorkloadData.hpp:494</a></div></div> |
| 846 | <div class="ttc" id="_tensor_copy_utils_8cpp_html_ae15f1a3c55d2db87683577de9fa4437c"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#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.html#l00009">TensorCopyUtils.cpp:9</a></div></div> |
| 847 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 848 | <div class="ttc" id="structarmnn_1_1_queue_descriptor_with_parameters_html_aad91b9bbf7aa365d304febe79a3d1333"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">armnn::QueueDescriptorWithParameters::m_Parameters</a></div><div class="ttdeci">LayerDescriptor m_Parameters</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00049">WorkloadData.hpp:49</a></div></div> |
| 849 | <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 850 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a15c140be4ddceffee16436f009d3ed94"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#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> |
| 851 | <div class="ttc" id="struct_layer_test_result_html"><div class="ttname"><a href="struct_layer_test_result.html">LayerTestResult</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00029">LayerTestResult.hpp:29</a></div></div> |
| 852 | <div class="ttc" id="_tensor_copy_utils_8cpp_html_a99b626c58a926dc7d6df78d22ec186c8"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#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.html#l00014">TensorCopyUtils.cpp:14</a></div></div> |
| 853 | <div class="ttc" id="structarmnn_1_1_workload_info_html"><div class="ttname"><a href="structarmnn_1_1_workload_info.html">armnn::WorkloadInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_workload_info_8hpp_source.html#l00016">WorkloadInfo.hpp:16</a></div></div> |
| 854 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::TransposeConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01119">Descriptors.hpp:1119</a></div></div> |
| 855 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a></div><div class="ttdoc">A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01079">Descriptors.hpp:1079</a></div></div> |
| 856 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::TransposeConvolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01115">Descriptors.hpp:1115</a></div></div> |
| 857 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 858 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a></div></div> |
| 859 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::TransposeConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01113">Descriptors.hpp:1113</a></div></div> |
| 860 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00032">Types.hpp:32</a></div></div> |
| 861 | <div class="ttc" id="_data_layout_utils_8hpp_html_a2f264435e93ad5aab7ac9e1dec4a4e93"><div class="ttname"><a href="_data_layout_utils_8hpp.html#a2f264435e93ad5aab7ac9e1dec4a4e93">PermuteTensorNchwToNhwc</a></div><div class="ttdeci">void PermuteTensorNchwToNhwc(armnn::TensorInfo &tensorInfo, std::vector< T > &tensorData)</div><div class="ttdef"><b>Definition:</b> <a href="_data_layout_utils_8hpp_source.html#l00014">DataLayoutUtils.hpp:14</a></div></div> |
| 862 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::TransposeConvolution2dDescriptor::m_BiasEnabled</a></div><div class="ttdeci">bool m_BiasEnabled</div><div class="ttdoc">Enable/disable bias. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01117">Descriptors.hpp:1117</a></div></div> |
| 863 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a12cccba82124cc4993868a3173a65167"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a12cccba82124cc4993868a3173a65167">armnn::IWorkloadFactory::CreateTransposeConvolution2d</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateTransposeConvolution2d(const TransposeConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01431">WorkloadFactory.cpp:1431</a></div></div> |
| 864 | <div class="ttc" id="classarmnn_1_1_scoped_cpu_tensor_handle_html"><div class="ttname"><a href="classarmnn_1_1_scoped_cpu_tensor_handle.html">armnn::ScopedCpuTensorHandle</a></div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8hpp_source.html#l00106">CpuTensorHandle.hpp:106</a></div></div> |
| 865 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 866 | </div><!-- fragment --> |
| 867 | </div> |
| 868 | </div> |
| 869 | </div><!-- contents --> |
| 870 | </div><!-- doc-content --> |
| 871 | <!-- start footer part --> |
| 872 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 873 | <ul> |
| 874 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.html">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.html">test</a></li><li class="navelem"><a class="el" href="dir_99a30439342d160875b21dac3498ad7f.html">layerTests</a></li><li class="navelem"><a class="el" href="_transpose_convolution2d_test_impl_8cpp.html">TransposeConvolution2dTestImpl.cpp</a></li> |
| 875 | <li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by |
| 876 | <a href="http://www.doxygen.org/index.html"> |
| 877 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 878 | </ul> |
| 879 | </div> |
| 880 | </body> |
| 881 | </html> |