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/ConcatTestImpl.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('_concat_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">ConcatTestImpl.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include "<a class="el" href="_concat_test_impl_8hpp_source.html">ConcatTestImpl.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="_resolve_type_8hpp_source.html">ResolveType.hpp</a>></code><br /> |
| 92 | <code>#include <<a class="el" href="_permute_8hpp_source.html">armnnUtils/Permute.hpp</a>></code><br /> |
| 93 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.html">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 94 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.html">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 95 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.html">test/TensorHelpers.hpp</a>></code><br /> |
| 96 | </div> |
| 97 | <p><a href="_concat_test_impl_8cpp_source.html">Go to the source code of this file.</a></p> |
| 98 | <table class="memberdecls"> |
| 99 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 100 | Functions</h2></td></tr> |
| 101 | <tr class="memitem:a908c80ff86d48fe1bc7cd4d4b1d00147"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_1_1_origins_descriptor.html">OriginsDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a908c80ff86d48fe1bc7cd4d4b1d00147">CreateDescriptorForConcat</a> (const std::vector< <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > &inputTensorInfos, unsigned int concatDim)</td></tr> |
| 102 | <tr class="separator:a908c80ff86d48fe1bc7cd4d4b1d00147"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <tr class="memitem:a905e011ae8536bbd643dd09495524596"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a905e011ae8536bbd643dd09495524596">NeedPermuteForConcat</a> (const std::vector< <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > &inputTensorInfos, unsigned int concatDim)</td></tr> |
| 104 | <tr class="separator:a905e011ae8536bbd643dd09495524596"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <tr class="memitem:a8fcf10f2804bcbbfef4fd86ef6a5ff2d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a8fcf10f2804bcbbfef4fd86ef6a5ff2d">ExpandTensorShapeTo3dForPermute</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> &inputShape)</td></tr> |
| 106 | <tr class="separator:a8fcf10f2804bcbbfef4fd86ef6a5ff2d"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:abd92409a35f1f4c41ee52c7471936fd8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#abd92409a35f1f4c41ee52c7471936fd8">Generate3dPermuteVectorForConcat</a> (unsigned int numDimensions, unsigned int &concatDim, std::pair< <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a>, <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> > &permutations)</td></tr> |
| 108 | <tr class="separator:abd92409a35f1f4c41ee52c7471936fd8"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a64d353b468c3a9ec4b783a06cf59cb42"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 110 | <tr class="memitem:a64d353b468c3a9ec4b783a06cf59cb42"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a64d353b468c3a9ec4b783a06cf59cb42">PermuteTensorData</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> &mappings, <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &inputTensorInfo, const T *inputData, std::vector< T > &outputData)</td></tr> |
| 111 | <tr class="separator:a64d353b468c3a9ec4b783a06cf59cb42"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a501616a77a3c7ca6d809c52e52da6ae3"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 113 | <tr class="memitem:a501616a77a3c7ca6d809c52e52da6ae3"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a501616a77a3c7ca6d809c52e52da6ae3">PermuteInputsForConcat</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, std::vector< <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > &inputTensorInfos, std::vector< T *> &inputData, std::vector< std::vector< T >> &inputDataStorage, <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> &permuteVector, unsigned int &concatDim, <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &outputTensorInfo)</td></tr> |
| 114 | <tr class="separator:a501616a77a3c7ca6d809c52e52da6ae3"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a46079932a4f92d02da9b0b538ddca52c"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 116 | <tr class="memitem:a46079932a4f92d02da9b0b538ddca52c"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a46079932a4f92d02da9b0b538ddca52c">PermuteOutputForConcat</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &tensorInfo, const <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> &permuteVector, std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a> > &&inputDataHandle, T *data)</td></tr> |
| 117 | <tr class="separator:a46079932a4f92d02da9b0b538ddca52c"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:a3a7534d69e8cc11c52b0a056ca82bcb8"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 119 | <tr class="memitem:a3a7534d69e8cc11c52b0a056ca82bcb8"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a3a7534d69e8cc11c52b0a056ca82bcb8">Concatenate</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, std::initializer_list< const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > inputTensorInfosOrig, std::initializer_list< T *> inputsOrig, const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &outputTensorInfoOrig, T *output, unsigned int concatDim, bool useSubtensor)</td></tr> |
| 120 | <tr class="separator:a3a7534d69e8cc11c52b0a056ca82bcb8"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a5bc6bee451406f7c6332ef1f6f88967c"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 122 | <tr class="memitem:a5bc6bee451406f7c6332ef1f6f88967c"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a5bc6bee451406f7c6332ef1f6f88967c">Concat1dTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 123 | <tr class="separator:a5bc6bee451406f7c6332ef1f6f88967c"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a73214e9f0561ba98a6ba4824c7e69dbc"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 125 | <tr class="memitem:a73214e9f0561ba98a6ba4824c7e69dbc"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 2 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a73214e9f0561ba98a6ba4824c7e69dbc">Concat2dTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &outputTensorInfo, unsigned int dimension, const float qScale, const int32_t qOffset)</td></tr> |
| 126 | <tr class="separator:a73214e9f0561ba98a6ba4824c7e69dbc"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:aed01fd1abcd334c4b36c8846f9c5cf83"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 128 | <tr class="memitem:aed01fd1abcd334c4b36c8846f9c5cf83"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 2 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aed01fd1abcd334c4b36c8846f9c5cf83">Concat2dDim0TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 129 | <tr class="separator:aed01fd1abcd334c4b36c8846f9c5cf83"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:a5f5b1d554f06515b564fb563c9b8c127"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 131 | <tr class="memitem:a5f5b1d554f06515b564fb563c9b8c127"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 2 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a5f5b1d554f06515b564fb563c9b8c127">Concat2dDim1TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 132 | <tr class="separator:a5f5b1d554f06515b564fb563c9b8c127"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a31b2beb6cd6e0fd9a68cb89b8b0378dc"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 134 | <tr class="memitem:a31b2beb6cd6e0fd9a68cb89b8b0378dc"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 2 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a31b2beb6cd6e0fd9a68cb89b8b0378dc">Concat2dDim0DiffInputDimsTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 135 | <tr class="separator:a31b2beb6cd6e0fd9a68cb89b8b0378dc"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a921e963873d927a5acf4807572c0d374"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 137 | <tr class="memitem:a921e963873d927a5acf4807572c0d374"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 2 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a921e963873d927a5acf4807572c0d374">Concat2dDim1DiffInputDimsTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 138 | <tr class="separator:a921e963873d927a5acf4807572c0d374"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:a7fbe775cdbc1967d651a97702a0eb08f"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 140 | <tr class="memitem:a7fbe775cdbc1967d651a97702a0eb08f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a7fbe775cdbc1967d651a97702a0eb08f">Concat3dTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &outputTensorInfo, unsigned int dimension, bool useSubtensor, float qScale, int32_t qOffset)</td></tr> |
| 141 | <tr class="separator:a7fbe775cdbc1967d651a97702a0eb08f"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:ab129fe939f6a83daeecd9802c2024799"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 143 | <tr class="memitem:ab129fe939f6a83daeecd9802c2024799"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ab129fe939f6a83daeecd9802c2024799">Concat3dDim0TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 144 | <tr class="separator:ab129fe939f6a83daeecd9802c2024799"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:a79b36066d3bbd4ce6a61c081ea863ad7"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 146 | <tr class="memitem:a79b36066d3bbd4ce6a61c081ea863ad7"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a79b36066d3bbd4ce6a61c081ea863ad7">Concat3dDim1TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 147 | <tr class="separator:a79b36066d3bbd4ce6a61c081ea863ad7"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:a89188ab52e61bc27b6e6bc4ccc81a413"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 149 | <tr class="memitem:a89188ab52e61bc27b6e6bc4ccc81a413"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a89188ab52e61bc27b6e6bc4ccc81a413">Concat3dDim2TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor, float qScale, int32_t qOffset)</td></tr> |
| 150 | <tr class="separator:a89188ab52e61bc27b6e6bc4ccc81a413"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <tr class="memitem:aed8a32c1d927c684bd76ce2e30a949fe"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 152 | <tr class="memitem:aed8a32c1d927c684bd76ce2e30a949fe"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aed8a32c1d927c684bd76ce2e30a949fe">Concat3dDim0DiffInputDimsTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 153 | <tr class="separator:aed8a32c1d927c684bd76ce2e30a949fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 154 | <tr class="memitem:a0c6ca29f4bf7c7fa4883fa73b5488b1a"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 155 | <tr class="memitem:a0c6ca29f4bf7c7fa4883fa73b5488b1a"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a0c6ca29f4bf7c7fa4883fa73b5488b1a">Concat3dDim1DiffInputDimsTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 156 | <tr class="separator:a0c6ca29f4bf7c7fa4883fa73b5488b1a"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:a8af1d375ac13d009cf818825b343ec1c"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 158 | <tr class="memitem:a8af1d375ac13d009cf818825b343ec1c"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a8af1d375ac13d009cf818825b343ec1c">Concat3dDim2DiffInputDimsTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor, float qScale, int32_t qOffset)</td></tr> |
| 159 | <tr class="separator:a8af1d375ac13d009cf818825b343ec1c"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <tr class="memitem:aeef13eb0a86ade1b1c92357c44ed8add"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 161 | <tr class="memitem:aeef13eb0a86ade1b1c92357c44ed8add"><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="_concat_test_impl_8cpp.html#aeef13eb0a86ade1b1c92357c44ed8add">Concat4dTestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &outputTensorInfo, unsigned int dimension, bool useSubtensor, float qScale, int32_t qOffset)</td></tr> |
| 162 | <tr class="separator:aeef13eb0a86ade1b1c92357c44ed8add"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 | <tr class="memitem:a59d4515193d877da62a352fc299d6d0f"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 164 | <tr class="memitem:a59d4515193d877da62a352fc299d6d0f"><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="_concat_test_impl_8cpp.html#a59d4515193d877da62a352fc299d6d0f">Concat4dDim0TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 165 | <tr class="separator:a59d4515193d877da62a352fc299d6d0f"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <tr class="memitem:ac0a20ee6a32563959bbbbd16358d2a07"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 167 | <tr class="memitem:ac0a20ee6a32563959bbbbd16358d2a07"><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="_concat_test_impl_8cpp.html#ac0a20ee6a32563959bbbbd16358d2a07">Concat4dDim1TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 168 | <tr class="separator:ac0a20ee6a32563959bbbbd16358d2a07"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | <tr class="memitem:ad14affe1f35650404637e949e6cda6d7"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 170 | <tr class="memitem:ad14affe1f35650404637e949e6cda6d7"><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="_concat_test_impl_8cpp.html#ad14affe1f35650404637e949e6cda6d7">Concat4dDim2TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 171 | <tr class="separator:ad14affe1f35650404637e949e6cda6d7"><td class="memSeparator" colspan="2"> </td></tr> |
| 172 | <tr class="memitem:a5d8473a59cf76ad1914b36fd8d45f00b"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 173 | <tr class="memitem:a5d8473a59cf76ad1914b36fd8d45f00b"><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="_concat_test_impl_8cpp.html#a5d8473a59cf76ad1914b36fd8d45f00b">Concat4dDim3TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset, bool useSubtensor)</td></tr> |
| 174 | <tr class="separator:a5d8473a59cf76ad1914b36fd8d45f00b"><td class="memSeparator" colspan="2"> </td></tr> |
| 175 | <tr class="memitem:a00d88e24db4f4af21b6ba36d206a296c"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 176 | <tr class="memitem:a00d88e24db4f4af21b6ba36d206a296c"><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="_concat_test_impl_8cpp.html#a00d88e24db4f4af21b6ba36d206a296c">Concat4dDiffShapeDim0TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 177 | <tr class="separator:a00d88e24db4f4af21b6ba36d206a296c"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:afca22d4151120b94ca2c68c662193cc1"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 179 | <tr class="memitem:afca22d4151120b94ca2c68c662193cc1"><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="_concat_test_impl_8cpp.html#afca22d4151120b94ca2c68c662193cc1">Concat4dDiffShapeDim1TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 180 | <tr class="separator:afca22d4151120b94ca2c68c662193cc1"><td class="memSeparator" colspan="2"> </td></tr> |
| 181 | <tr class="memitem:a75ce8fbfdee084faa855d8e61d09b56d"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 182 | <tr class="memitem:a75ce8fbfdee084faa855d8e61d09b56d"><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="_concat_test_impl_8cpp.html#a75ce8fbfdee084faa855d8e61d09b56d">Concat4dDiffShapeDim2TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset)</td></tr> |
| 183 | <tr class="separator:a75ce8fbfdee084faa855d8e61d09b56d"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:a6318384f0f00e73bd26e43b7c4ca7735"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T = ResolveType<ArmnnType>> </td></tr> |
| 185 | <tr class="memitem:a6318384f0f00e73bd26e43b7c4ca7735"><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="_concat_test_impl_8cpp.html#a6318384f0f00e73bd26e43b7c4ca7735">Concat4dDiffShapeDim3TestImpl</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, float qScale, int32_t qOffset, bool useSubtensor)</td></tr> |
| 186 | <tr class="separator:a6318384f0f00e73bd26e43b7c4ca7735"><td class="memSeparator" colspan="2"> </td></tr> |
| 187 | <tr class="memitem:a9d679b4a18c9cadc563bd77a726a3726"><td class="memTemplParams" colspan="2">template<DataType ArmnnType, typename T > </td></tr> |
| 188 | <tr class="memitem:a9d679b4a18c9cadc563bd77a726a3726"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< T, 3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a9d679b4a18c9cadc563bd77a726a3726">ConcatDifferentInputOutputQParamTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 189 | <tr class="separator:a9d679b4a18c9cadc563bd77a726a3726"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:ac4a1dff653419576cd96b81cf10b984e"><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">ResolveType</a>< DataType::QAsymmU8 >, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ac4a1dff653419576cd96b81cf10b984e">ConcatDifferentInputOutputQParamTest< DataType::QAsymmU8 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 191 | <tr class="separator:ac4a1dff653419576cd96b81cf10b984e"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:a878b6bd50169d509d8ee47d79e3c87d0"><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">ResolveType</a>< DataType::QSymmS16 >, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a878b6bd50169d509d8ee47d79e3c87d0">ConcatDifferentInputOutputQParamTest< DataType::QSymmS16 ></a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 193 | <tr class="separator:a878b6bd50169d509d8ee47d79e3c87d0"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:a4d293b286db068580f9d72048d4d7bfc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a4d293b286db068580f9d72048d4d7bfc">ConcatTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 195 | <tr class="separator:a4d293b286db068580f9d72048d4d7bfc"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="memitem:ad4e20b0bf58dfbdbfaa93f445c5a7fbb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 1 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ad4e20b0bf58dfbdbfaa93f445c5a7fbb">Concat1dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 197 | <tr class="separator:ad4e20b0bf58dfbdbfaa93f445c5a7fbb"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | <tr class="memitem:a916c9acb126444caa775d14c635acaf8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a916c9acb126444caa775d14c635acaf8">Concat2dDim0Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 199 | <tr class="separator:a916c9acb126444caa775d14c635acaf8"><td class="memSeparator" colspan="2"> </td></tr> |
| 200 | <tr class="memitem:aa786ba656ce7f53cc93692eec4645f6b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aa786ba656ce7f53cc93692eec4645f6b">Concat2dDim1Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 201 | <tr class="separator:aa786ba656ce7f53cc93692eec4645f6b"><td class="memSeparator" colspan="2"> </td></tr> |
| 202 | <tr class="memitem:ab5703ba71ea408eb6939a5be35b67a2f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ab5703ba71ea408eb6939a5be35b67a2f">Concat2dDim0DiffInputDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 203 | <tr class="separator:ab5703ba71ea408eb6939a5be35b67a2f"><td class="memSeparator" colspan="2"> </td></tr> |
| 204 | <tr class="memitem:a142df3b6c7d699e7623fb37ff95e8c5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a142df3b6c7d699e7623fb37ff95e8c5a">Concat2dDim1DiffInputDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 205 | <tr class="separator:a142df3b6c7d699e7623fb37ff95e8c5a"><td class="memSeparator" colspan="2"> </td></tr> |
| 206 | <tr class="memitem:ad9391e74e0fcf3a9f2c08d6a865d910a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ad9391e74e0fcf3a9f2c08d6a865d910a">Concat3dDim0Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 207 | <tr class="separator:ad9391e74e0fcf3a9f2c08d6a865d910a"><td class="memSeparator" colspan="2"> </td></tr> |
| 208 | <tr class="memitem:a462db75851b433b8739039a789e14c0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a462db75851b433b8739039a789e14c0f">Concat3dDim1Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 209 | <tr class="separator:a462db75851b433b8739039a789e14c0f"><td class="memSeparator" colspan="2"> </td></tr> |
| 210 | <tr class="memitem:ade318c9975477ee7bab3d230baf8d48a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ade318c9975477ee7bab3d230baf8d48a">Concat3dDim2Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 211 | <tr class="separator:ade318c9975477ee7bab3d230baf8d48a"><td class="memSeparator" colspan="2"> </td></tr> |
| 212 | <tr class="memitem:ad970167c99234cfcc22107efbe3503d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ad970167c99234cfcc22107efbe3503d3">Concat3dDim0DiffInputDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 213 | <tr class="separator:ad970167c99234cfcc22107efbe3503d3"><td class="memSeparator" colspan="2"> </td></tr> |
| 214 | <tr class="memitem:a693e34e3f519f0323cb165468560ee72"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a693e34e3f519f0323cb165468560ee72">Concat3dDim1DiffInputDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 215 | <tr class="separator:a693e34e3f519f0323cb165468560ee72"><td class="memSeparator" colspan="2"> </td></tr> |
| 216 | <tr class="memitem:aab6fb09abdae83f7944da4d9d8a894de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aab6fb09abdae83f7944da4d9d8a894de">Concat3dDim2DiffInputDimsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 217 | <tr class="separator:aab6fb09abdae83f7944da4d9d8a894de"><td class="memSeparator" colspan="2"> </td></tr> |
| 218 | <tr class="memitem:a7f29312851dee5f74ed0bffebd5448d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a7f29312851dee5f74ed0bffebd5448d2">Concat4dDim0Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 219 | <tr class="separator:a7f29312851dee5f74ed0bffebd5448d2"><td class="memSeparator" colspan="2"> </td></tr> |
| 220 | <tr class="memitem:a1a5bb4ab6841dd39e48089413cf8fe05"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a1a5bb4ab6841dd39e48089413cf8fe05">Concat4dDim1Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 221 | <tr class="separator:a1a5bb4ab6841dd39e48089413cf8fe05"><td class="memSeparator" colspan="2"> </td></tr> |
| 222 | <tr class="memitem:a1d148bdca4ed20301d41d73398dd90e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a1d148bdca4ed20301d41d73398dd90e5">Concat4dDim2Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 223 | <tr class="separator:a1d148bdca4ed20301d41d73398dd90e5"><td class="memSeparator" colspan="2"> </td></tr> |
| 224 | <tr class="memitem:a2081650a5142448a5db4065819da2089"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a2081650a5142448a5db4065819da2089">Concat4dDim3Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 225 | <tr class="separator:a2081650a5142448a5db4065819da2089"><td class="memSeparator" colspan="2"> </td></tr> |
| 226 | <tr class="memitem:a9199f32df2745143e544e703c2380dd4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a9199f32df2745143e544e703c2380dd4">Concat4dDiffShapeDim0Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 227 | <tr class="separator:a9199f32df2745143e544e703c2380dd4"><td class="memSeparator" colspan="2"> </td></tr> |
| 228 | <tr class="memitem:aa40068e0a65840e70b2da4902a0f47da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aa40068e0a65840e70b2da4902a0f47da">Concat4dDiffShapeDim1Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 229 | <tr class="separator:aa40068e0a65840e70b2da4902a0f47da"><td class="memSeparator" colspan="2"> </td></tr> |
| 230 | <tr class="memitem:ab7261b2e00a06881f0c8bf3e2ecbff19"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ab7261b2e00a06881f0c8bf3e2ecbff19">Concat4dDiffShapeDim2Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 231 | <tr class="separator:ab7261b2e00a06881f0c8bf3e2ecbff19"><td class="memSeparator" colspan="2"> </td></tr> |
| 232 | <tr class="memitem:a6323bb2aa7e5a8215d1c38e7e0159d29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a6323bb2aa7e5a8215d1c38e7e0159d29">Concat4dDiffShapeDim3Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 233 | <tr class="separator:a6323bb2aa7e5a8215d1c38e7e0159d29"><td class="memSeparator" colspan="2"> </td></tr> |
| 234 | <tr class="memitem:ac6e55fbcc8ae3dfa8c1762d343264006"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< <a class="el" href="namespacearmnn.html#a0f38fa92b2468d5378258a2b074c1a31">Half</a>, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ac6e55fbcc8ae3dfa8c1762d343264006">ConcatFloat16Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 235 | <tr class="separator:ac6e55fbcc8ae3dfa8c1762d343264006"><td class="memSeparator" colspan="2"> </td></tr> |
| 236 | <tr class="memitem:aa1491773368b57bfbe2a737a05c041fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aa1491773368b57bfbe2a737a05c041fa">ConcatUint8DifferentQParamsTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 237 | <tr class="separator:aa1491773368b57bfbe2a737a05c041fa"><td class="memSeparator" colspan="2"> </td></tr> |
| 238 | <tr class="memitem:ab0aa694e3cd5555731f28b2c61a01f7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#ab0aa694e3cd5555731f28b2c61a01f7e">ConcatUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 239 | <tr class="separator:ab0aa694e3cd5555731f28b2c61a01f7e"><td class="memSeparator" colspan="2"> </td></tr> |
| 240 | <tr class="memitem:a66df3b4ed5c8e464dcba94c2afc2b432"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint16_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a66df3b4ed5c8e464dcba94c2afc2b432">ConcatUint16Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 241 | <tr class="separator:a66df3b4ed5c8e464dcba94c2afc2b432"><td class="memSeparator" colspan="2"> </td></tr> |
| 242 | <tr class="memitem:aed0a697e15183bbac585fde3535bdbd8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 1 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#aed0a697e15183bbac585fde3535bdbd8">Concat1dUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 243 | <tr class="separator:aed0a697e15183bbac585fde3535bdbd8"><td class="memSeparator" colspan="2"> </td></tr> |
| 244 | <tr class="memitem:a549f1d04a9747d0c3046e0b708d67116"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a549f1d04a9747d0c3046e0b708d67116">Concat2dDim0Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 245 | <tr class="separator:a549f1d04a9747d0c3046e0b708d67116"><td class="memSeparator" colspan="2"> </td></tr> |
| 246 | <tr class="memitem:a71bbfb11850812db44a607d2f9c39681"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a71bbfb11850812db44a607d2f9c39681">Concat2dDim1Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 247 | <tr class="separator:a71bbfb11850812db44a607d2f9c39681"><td class="memSeparator" colspan="2"> </td></tr> |
| 248 | <tr class="memitem:a6990f89809b6699004e566a9d4f892f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a6990f89809b6699004e566a9d4f892f9">Concat2dDim0DiffInputDimsUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 249 | <tr class="separator:a6990f89809b6699004e566a9d4f892f9"><td class="memSeparator" colspan="2"> </td></tr> |
| 250 | <tr class="memitem:a398f4322d3f71cc0fe4a04831a556c91"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a398f4322d3f71cc0fe4a04831a556c91">Concat2dDim1DiffInputDimsUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 251 | <tr class="separator:a398f4322d3f71cc0fe4a04831a556c91"><td class="memSeparator" colspan="2"> </td></tr> |
| 252 | <tr class="memitem:a05e4c6d3c63851bebb99391e4af3ab6b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a05e4c6d3c63851bebb99391e4af3ab6b">Concat3dDim0Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 253 | <tr class="separator:a05e4c6d3c63851bebb99391e4af3ab6b"><td class="memSeparator" colspan="2"> </td></tr> |
| 254 | <tr class="memitem:a8e409cdc677af52ce07c5cdc8ec63678"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a8e409cdc677af52ce07c5cdc8ec63678">Concat3dDim1Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 255 | <tr class="separator:a8e409cdc677af52ce07c5cdc8ec63678"><td class="memSeparator" colspan="2"> </td></tr> |
| 256 | <tr class="memitem:a75091ca6eb52deea2ce14ad8f6261236"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a75091ca6eb52deea2ce14ad8f6261236">Concat3dDim2Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 257 | <tr class="separator:a75091ca6eb52deea2ce14ad8f6261236"><td class="memSeparator" colspan="2"> </td></tr> |
| 258 | <tr class="memitem:afa4c2db58080ed0749c5e7c64f23af04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#afa4c2db58080ed0749c5e7c64f23af04">Concat3dDim0DiffInputDimsUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 259 | <tr class="separator:afa4c2db58080ed0749c5e7c64f23af04"><td class="memSeparator" colspan="2"> </td></tr> |
| 260 | <tr class="memitem:a1f8ad3cf8df29398ea04eaa4c790a100"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a1f8ad3cf8df29398ea04eaa4c790a100">Concat3dDim1DiffInputDimsUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 261 | <tr class="separator:a1f8ad3cf8df29398ea04eaa4c790a100"><td class="memSeparator" colspan="2"> </td></tr> |
| 262 | <tr class="memitem:a6a0578f5cabc3b13c8800066d094f08b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>< uint8_t, 3 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_concat_test_impl_8cpp.html#a6a0578f5cabc3b13c8800066d094f08b">Concat3dDim2DiffInputDimsUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 263 | <tr class="separator:a6a0578f5cabc3b13c8800066d094f08b"><td class="memSeparator" colspan="2"> </td></tr> |
| 264 | <tr class="memitem:a7b3adb97b81ab7b464c566caa3a231ba"><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="_concat_test_impl_8cpp.html#a7b3adb97b81ab7b464c566caa3a231ba">Concat4dDim0Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 265 | <tr class="separator:a7b3adb97b81ab7b464c566caa3a231ba"><td class="memSeparator" colspan="2"> </td></tr> |
| 266 | <tr class="memitem:aa13bf446c9b813c55ce96b49e5a17154"><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="_concat_test_impl_8cpp.html#aa13bf446c9b813c55ce96b49e5a17154">Concat4dDim1Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 267 | <tr class="separator:aa13bf446c9b813c55ce96b49e5a17154"><td class="memSeparator" colspan="2"> </td></tr> |
| 268 | <tr class="memitem:a9a1400c7948e6536489676848c40630f"><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="_concat_test_impl_8cpp.html#a9a1400c7948e6536489676848c40630f">Concat4dDim2Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 269 | <tr class="separator:a9a1400c7948e6536489676848c40630f"><td class="memSeparator" colspan="2"> </td></tr> |
| 270 | <tr class="memitem:a3de096f0e07787adaf34b6d348ca9543"><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="_concat_test_impl_8cpp.html#a3de096f0e07787adaf34b6d348ca9543">Concat4dDim3Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 271 | <tr class="separator:a3de096f0e07787adaf34b6d348ca9543"><td class="memSeparator" colspan="2"> </td></tr> |
| 272 | <tr class="memitem:a39a5321f36681cf1b7bbea885a0ccce9"><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="_concat_test_impl_8cpp.html#a39a5321f36681cf1b7bbea885a0ccce9">Concat4dDiffShapeDim0Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 273 | <tr class="separator:a39a5321f36681cf1b7bbea885a0ccce9"><td class="memSeparator" colspan="2"> </td></tr> |
| 274 | <tr class="memitem:af5b51da08139262f68be752047e1b94c"><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="_concat_test_impl_8cpp.html#af5b51da08139262f68be752047e1b94c">Concat4dDiffShapeDim1Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 275 | <tr class="separator:af5b51da08139262f68be752047e1b94c"><td class="memSeparator" colspan="2"> </td></tr> |
| 276 | <tr class="memitem:a4ab1a7c2b554de49ef453e802eaf88a3"><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="_concat_test_impl_8cpp.html#a4ab1a7c2b554de49ef453e802eaf88a3">Concat4dDiffShapeDim2Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 277 | <tr class="separator:a4ab1a7c2b554de49ef453e802eaf88a3"><td class="memSeparator" colspan="2"> </td></tr> |
| 278 | <tr class="memitem:a6852f3bb0b5a59260e0f76031e64cb3e"><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="_concat_test_impl_8cpp.html#a6852f3bb0b5a59260e0f76031e64cb3e">Concat4dDiffShapeDim3Uint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, bool useSubtensor)</td></tr> |
| 279 | <tr class="separator:a6852f3bb0b5a59260e0f76031e64cb3e"><td class="memSeparator" colspan="2"> </td></tr> |
| 280 | </table> |
| 281 | <h2 class="groupheader">Function Documentation</h2> |
| 282 | <a id="ad4e20b0bf58dfbdbfaa93f445c5a7fbb"></a> |
| 283 | <h2 class="memtitle"><span class="permalink"><a href="#ad4e20b0bf58dfbdbfaa93f445c5a7fbb">◆ </a></span>Concat1dTest()</h2> |
| 284 | |
| 285 | <div class="memitem"> |
| 286 | <div class="memproto"> |
| 287 | <table class="memname"> |
| 288 | <tr> |
| 289 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 1> Concat1dTest </td> |
| 290 | <td>(</td> |
| 291 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 292 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 293 | </tr> |
| 294 | <tr> |
| 295 | <td class="paramkey"></td> |
| 296 | <td></td> |
| 297 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 298 | <td class="paramname"><em>memoryManager</em> </td> |
| 299 | </tr> |
| 300 | <tr> |
| 301 | <td></td> |
| 302 | <td>)</td> |
| 303 | <td></td><td></td> |
| 304 | </tr> |
| 305 | </table> |
| 306 | </div><div class="memdoc"> |
| 307 | |
| 308 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02197">2197</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 309 | <div class="fragment"><div class="line"><a name="l02200"></a><span class="lineno"> 2200</span> {</div><div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>  <span class="keywordflow">return</span> Concat1dTestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02202"></a><span class="lineno"> 2202</span> }</div></div><!-- fragment --> |
| 310 | </div> |
| 311 | </div> |
| 312 | <a id="a5bc6bee451406f7c6332ef1f6f88967c"></a> |
| 313 | <h2 class="memtitle"><span class="permalink"><a href="#a5bc6bee451406f7c6332ef1f6f88967c">◆ </a></span>Concat1dTestImpl()</h2> |
| 314 | |
| 315 | <div class="memitem"> |
| 316 | <div class="memproto"> |
| 317 | <table class="memname"> |
| 318 | <tr> |
| 319 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 1> Concat1dTestImpl </td> |
| 320 | <td>(</td> |
| 321 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 322 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 323 | </tr> |
| 324 | <tr> |
| 325 | <td class="paramkey"></td> |
| 326 | <td></td> |
| 327 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 328 | <td class="paramname"><em>memoryManager</em>, </td> |
| 329 | </tr> |
| 330 | <tr> |
| 331 | <td class="paramkey"></td> |
| 332 | <td></td> |
| 333 | <td class="paramtype">float </td> |
| 334 | <td class="paramname"><em>qScale</em>, </td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td class="paramkey"></td> |
| 338 | <td></td> |
| 339 | <td class="paramtype">int32_t </td> |
| 340 | <td class="paramname"><em>qOffset</em> </td> |
| 341 | </tr> |
| 342 | <tr> |
| 343 | <td></td> |
| 344 | <td>)</td> |
| 345 | <td></td><td></td> |
| 346 | </tr> |
| 347 | </table> |
| 348 | </div><div class="memdoc"> |
| 349 | |
| 350 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00413">413</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 351 | <div class="fragment"><div class="line"><a name="l00418"></a><span class="lineno"> 418</span> {</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> inputTensorInfo({ 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span> </div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 1>(inputTensorInfo, QuantizedVector<T>({ 1.0f, 2.0f, 3.0f }, qScale, qOffset));</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 1>(inputTensorInfo, QuantizedVector<T>({ 4.0f, 5.0f, 6.0f }, qScale, qOffset));</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 1>(inputTensorInfo, QuantizedVector<T>({ 7.0f, 8.0f, 9.0f }, qScale, qOffset));</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 9 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 1></a> result(outputTensorInfo);</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>  std::vector<T> output;</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  { inputTensorInfo, inputTensorInfo, inputTensorInfo },</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  outputTensorInfo,</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  output.data(),</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  0,</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keyword">true</span>);</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>  result.output = MakeTensor<T, 1>(outputTensorInfo, output);</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  result.outputExpected = MakeTensor<T, 1>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  {</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  },</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  qScale, qOffset));</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</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> |
| 352 | <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> |
| 353 | </div><!-- fragment --> |
| 354 | </div> |
| 355 | </div> |
| 356 | <a id="aed0a697e15183bbac585fde3535bdbd8"></a> |
| 357 | <h2 class="memtitle"><span class="permalink"><a href="#aed0a697e15183bbac585fde3535bdbd8">◆ </a></span>Concat1dUint8Test()</h2> |
| 358 | |
| 359 | <div class="memitem"> |
| 360 | <div class="memproto"> |
| 361 | <table class="memname"> |
| 362 | <tr> |
| 363 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 1> Concat1dUint8Test </td> |
| 364 | <td>(</td> |
| 365 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 366 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 367 | </tr> |
| 368 | <tr> |
| 369 | <td class="paramkey"></td> |
| 370 | <td></td> |
| 371 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 372 | <td class="paramname"><em>memoryManager</em> </td> |
| 373 | </tr> |
| 374 | <tr> |
| 375 | <td></td> |
| 376 | <td>)</td> |
| 377 | <td></td><td></td> |
| 378 | </tr> |
| 379 | </table> |
| 380 | </div><div class="memdoc"> |
| 381 | |
| 382 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02763">2763</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 383 | <div class="fragment"><div class="line"><a name="l02766"></a><span class="lineno"> 2766</span> {</div><div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>  <span class="keywordflow">return</span> Concat1dTestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02768"></a><span class="lineno"> 2768</span> }</div></div><!-- fragment --> |
| 384 | </div> |
| 385 | </div> |
| 386 | <a id="ab5703ba71ea408eb6939a5be35b67a2f"></a> |
| 387 | <h2 class="memtitle"><span class="permalink"><a href="#ab5703ba71ea408eb6939a5be35b67a2f">◆ </a></span>Concat2dDim0DiffInputDimsTest()</h2> |
| 388 | |
| 389 | <div class="memitem"> |
| 390 | <div class="memproto"> |
| 391 | <table class="memname"> |
| 392 | <tr> |
| 393 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 2> Concat2dDim0DiffInputDimsTest </td> |
| 394 | <td>(</td> |
| 395 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">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">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 402 | <td class="paramname"><em>memoryManager</em> </td> |
| 403 | </tr> |
| 404 | <tr> |
| 405 | <td></td> |
| 406 | <td>)</td> |
| 407 | <td></td><td></td> |
| 408 | </tr> |
| 409 | </table> |
| 410 | </div><div class="memdoc"> |
| 411 | |
| 412 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02218">2218</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 413 | <div class="fragment"><div class="line"><a name="l02221"></a><span class="lineno"> 2221</span> {</div><div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>  <span class="keywordflow">return</span> Concat2dDim0DiffInputDimsTestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02223"></a><span class="lineno"> 2223</span> }</div></div><!-- fragment --> |
| 414 | </div> |
| 415 | </div> |
| 416 | <a id="a31b2beb6cd6e0fd9a68cb89b8b0378dc"></a> |
| 417 | <h2 class="memtitle"><span class="permalink"><a href="#a31b2beb6cd6e0fd9a68cb89b8b0378dc">◆ </a></span>Concat2dDim0DiffInputDimsTestImpl()</h2> |
| 418 | |
| 419 | <div class="memitem"> |
| 420 | <div class="memproto"> |
| 421 | <table class="memname"> |
| 422 | <tr> |
| 423 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 2> Concat2dDim0DiffInputDimsTestImpl </td> |
| 424 | <td>(</td> |
| 425 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 426 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 427 | </tr> |
| 428 | <tr> |
| 429 | <td class="paramkey"></td> |
| 430 | <td></td> |
| 431 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 432 | <td class="paramname"><em>memoryManager</em>, </td> |
| 433 | </tr> |
| 434 | <tr> |
| 435 | <td class="paramkey"></td> |
| 436 | <td></td> |
| 437 | <td class="paramtype">float </td> |
| 438 | <td class="paramname"><em>qScale</em>, </td> |
| 439 | </tr> |
| 440 | <tr> |
| 441 | <td class="paramkey"></td> |
| 442 | <td></td> |
| 443 | <td class="paramtype">int32_t </td> |
| 444 | <td class="paramname"><em>qOffset</em> </td> |
| 445 | </tr> |
| 446 | <tr> |
| 447 | <td></td> |
| 448 | <td>)</td> |
| 449 | <td></td><td></td> |
| 450 | </tr> |
| 451 | </table> |
| 452 | </div><div class="memdoc"> |
| 453 | |
| 454 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00569">569</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 455 | <div class="fragment"><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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input0TensorInfo({ 2, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 2>(input0TensorInfo, QuantizedVector<T>(</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>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  1.0f, 2.0f, 3.0f,</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> </div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  10.0f, 11.0f, 12.0f,</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  },</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  qScale, qOffset));</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span> </div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input1TensorInfo({ 3, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 2>(input1TensorInfo, QuantizedVector<T>(</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>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span> </div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  13.0f, 14.0f, 15.0f,</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>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  },</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  qScale, qOffset));</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input2TensorInfo({ 1, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 2>(input2TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  {</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  16.0f, 17.0f, 18.0f,</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  },</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  qScale, qOffset));</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span> </div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 6, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> </div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  std::vector<T> output;</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  { input0TensorInfo, input1TensorInfo, input2TensorInfo },</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  outputTensorInfo,</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  output.data(),</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  0,</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span> </div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  result.output = MakeTensor<T, 2>(outputTensorInfo, output);</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  result.outputExpected = MakeTensor<T, 2>(outputTensorInfo, QuantizedVector<T>(</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>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  1.0f, 2.0f, 3.0f,</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span> </div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  10.0f, 11.0f, 12.0f,</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>  <span class="comment">// Batch 2</span></div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  4.0f, 5.0f, 6.0f,</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>  <span class="comment">// Batch 3</span></div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  13.0f, 14.0f, 15.0f,</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span> </div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  <span class="comment">// Batch 4</span></div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span> </div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  <span class="comment">// Batch 5</span></div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  16.0f, 17.0f, 18.0f,</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  },</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  qScale, qOffset));</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span> </div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</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> |
| 456 | <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> |
| 457 | </div><!-- fragment --> |
| 458 | </div> |
| 459 | </div> |
| 460 | <a id="a6990f89809b6699004e566a9d4f892f9"></a> |
| 461 | <h2 class="memtitle"><span class="permalink"><a href="#a6990f89809b6699004e566a9d4f892f9">◆ </a></span>Concat2dDim0DiffInputDimsUint8Test()</h2> |
| 462 | |
| 463 | <div class="memitem"> |
| 464 | <div class="memproto"> |
| 465 | <table class="memname"> |
| 466 | <tr> |
| 467 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 2> Concat2dDim0DiffInputDimsUint8Test </td> |
| 468 | <td>(</td> |
| 469 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 470 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 471 | </tr> |
| 472 | <tr> |
| 473 | <td class="paramkey"></td> |
| 474 | <td></td> |
| 475 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 476 | <td class="paramname"><em>memoryManager</em> </td> |
| 477 | </tr> |
| 478 | <tr> |
| 479 | <td></td> |
| 480 | <td>)</td> |
| 481 | <td></td><td></td> |
| 482 | </tr> |
| 483 | </table> |
| 484 | </div><div class="memdoc"> |
| 485 | |
| 486 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02784">2784</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 487 | <div class="fragment"><div class="line"><a name="l02787"></a><span class="lineno"> 2787</span> {</div><div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>  <span class="keywordflow">return</span> Concat2dDim0DiffInputDimsTestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>  workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02790"></a><span class="lineno"> 2790</span> }</div></div><!-- fragment --> |
| 488 | </div> |
| 489 | </div> |
| 490 | <a id="a916c9acb126444caa775d14c635acaf8"></a> |
| 491 | <h2 class="memtitle"><span class="permalink"><a href="#a916c9acb126444caa775d14c635acaf8">◆ </a></span>Concat2dDim0Test()</h2> |
| 492 | |
| 493 | <div class="memitem"> |
| 494 | <div class="memproto"> |
| 495 | <table class="memname"> |
| 496 | <tr> |
| 497 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 2> Concat2dDim0Test </td> |
| 498 | <td>(</td> |
| 499 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 500 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 501 | </tr> |
| 502 | <tr> |
| 503 | <td class="paramkey"></td> |
| 504 | <td></td> |
| 505 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 506 | <td class="paramname"><em>memoryManager</em> </td> |
| 507 | </tr> |
| 508 | <tr> |
| 509 | <td></td> |
| 510 | <td>)</td> |
| 511 | <td></td><td></td> |
| 512 | </tr> |
| 513 | </table> |
| 514 | </div><div class="memdoc"> |
| 515 | |
| 516 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02204">2204</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 517 | <div class="fragment"><div class="line"><a name="l02207"></a><span class="lineno"> 2207</span> {</div><div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>  <span class="keywordflow">return</span> Concat2dDim0TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02209"></a><span class="lineno"> 2209</span> }</div></div><!-- fragment --> |
| 518 | </div> |
| 519 | </div> |
| 520 | <a id="aed01fd1abcd334c4b36c8846f9c5cf83"></a> |
| 521 | <h2 class="memtitle"><span class="permalink"><a href="#aed01fd1abcd334c4b36c8846f9c5cf83">◆ </a></span>Concat2dDim0TestImpl()</h2> |
| 522 | |
| 523 | <div class="memitem"> |
| 524 | <div class="memproto"> |
| 525 | <table class="memname"> |
| 526 | <tr> |
| 527 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 2> Concat2dDim0TestImpl </td> |
| 528 | <td>(</td> |
| 529 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 530 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 531 | </tr> |
| 532 | <tr> |
| 533 | <td class="paramkey"></td> |
| 534 | <td></td> |
| 535 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 536 | <td class="paramname"><em>memoryManager</em>, </td> |
| 537 | </tr> |
| 538 | <tr> |
| 539 | <td class="paramkey"></td> |
| 540 | <td></td> |
| 541 | <td class="paramtype">float </td> |
| 542 | <td class="paramname"><em>qScale</em>, </td> |
| 543 | </tr> |
| 544 | <tr> |
| 545 | <td class="paramkey"></td> |
| 546 | <td></td> |
| 547 | <td class="paramtype">int32_t </td> |
| 548 | <td class="paramname"><em>qOffset</em> </td> |
| 549 | </tr> |
| 550 | <tr> |
| 551 | <td></td> |
| 552 | <td>)</td> |
| 553 | <td></td><td></td> |
| 554 | </tr> |
| 555 | </table> |
| 556 | </div><div class="memdoc"> |
| 557 | |
| 558 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00507">507</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 559 | |
| 560 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 561 | <div class="fragment"><div class="line"><a name="l00512"></a><span class="lineno"> 512</span> {</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 6, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span> </div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result = Concat2dTestImpl<ArmnnType>(</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  workloadFactory, memoryManager, outputTensorInfo, 0, qScale, qOffset);</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>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 2>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  {</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  1.0f, 2.0f, 3.0f,</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>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  10.0f, 11.0f, 12.0f,</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span> </div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="comment">// Batch 2</span></div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  4.0f, 5.0f, 6.0f,</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>  <span class="comment">// Batch 3</span></div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  13.0f, 14.0f, 15.0f,</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span> </div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="comment">// Batch 4</span></div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  7.0f, 8.0f, 9.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>  <span class="comment">// Batch 5</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  16.0f, 17.0f, 18.0f,</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  },</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  qScale, qOffset));</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span> </div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</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> |
| 562 | <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> |
| 563 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 564 | </div><!-- fragment --> |
| 565 | </div> |
| 566 | </div> |
| 567 | <a id="a549f1d04a9747d0c3046e0b708d67116"></a> |
| 568 | <h2 class="memtitle"><span class="permalink"><a href="#a549f1d04a9747d0c3046e0b708d67116">◆ </a></span>Concat2dDim0Uint8Test()</h2> |
| 569 | |
| 570 | <div class="memitem"> |
| 571 | <div class="memproto"> |
| 572 | <table class="memname"> |
| 573 | <tr> |
| 574 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 2> Concat2dDim0Uint8Test </td> |
| 575 | <td>(</td> |
| 576 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 577 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 578 | </tr> |
| 579 | <tr> |
| 580 | <td class="paramkey"></td> |
| 581 | <td></td> |
| 582 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 583 | <td class="paramname"><em>memoryManager</em> </td> |
| 584 | </tr> |
| 585 | <tr> |
| 586 | <td></td> |
| 587 | <td>)</td> |
| 588 | <td></td><td></td> |
| 589 | </tr> |
| 590 | </table> |
| 591 | </div><div class="memdoc"> |
| 592 | |
| 593 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02770">2770</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 594 | <div class="fragment"><div class="line"><a name="l02773"></a><span class="lineno"> 2773</span> {</div><div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>  <span class="keywordflow">return</span> Concat2dDim0TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02775"></a><span class="lineno"> 2775</span> }</div></div><!-- fragment --> |
| 595 | </div> |
| 596 | </div> |
| 597 | <a id="a142df3b6c7d699e7623fb37ff95e8c5a"></a> |
| 598 | <h2 class="memtitle"><span class="permalink"><a href="#a142df3b6c7d699e7623fb37ff95e8c5a">◆ </a></span>Concat2dDim1DiffInputDimsTest()</h2> |
| 599 | |
| 600 | <div class="memitem"> |
| 601 | <div class="memproto"> |
| 602 | <table class="memname"> |
| 603 | <tr> |
| 604 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 2> Concat2dDim1DiffInputDimsTest </td> |
| 605 | <td>(</td> |
| 606 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 607 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 608 | </tr> |
| 609 | <tr> |
| 610 | <td class="paramkey"></td> |
| 611 | <td></td> |
| 612 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 613 | <td class="paramname"><em>memoryManager</em> </td> |
| 614 | </tr> |
| 615 | <tr> |
| 616 | <td></td> |
| 617 | <td>)</td> |
| 618 | <td></td><td></td> |
| 619 | </tr> |
| 620 | </table> |
| 621 | </div><div class="memdoc"> |
| 622 | |
| 623 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02225">2225</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 624 | <div class="fragment"><div class="line"><a name="l02228"></a><span class="lineno"> 2228</span> {</div><div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>  <span class="keywordflow">return</span> Concat2dDim1DiffInputDimsTestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02230"></a><span class="lineno"> 2230</span> }</div></div><!-- fragment --> |
| 625 | </div> |
| 626 | </div> |
| 627 | <a id="a921e963873d927a5acf4807572c0d374"></a> |
| 628 | <h2 class="memtitle"><span class="permalink"><a href="#a921e963873d927a5acf4807572c0d374">◆ </a></span>Concat2dDim1DiffInputDimsTestImpl()</h2> |
| 629 | |
| 630 | <div class="memitem"> |
| 631 | <div class="memproto"> |
| 632 | <table class="memname"> |
| 633 | <tr> |
| 634 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 2> Concat2dDim1DiffInputDimsTestImpl </td> |
| 635 | <td>(</td> |
| 636 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 637 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 638 | </tr> |
| 639 | <tr> |
| 640 | <td class="paramkey"></td> |
| 641 | <td></td> |
| 642 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 643 | <td class="paramname"><em>memoryManager</em>, </td> |
| 644 | </tr> |
| 645 | <tr> |
| 646 | <td class="paramkey"></td> |
| 647 | <td></td> |
| 648 | <td class="paramtype">float </td> |
| 649 | <td class="paramname"><em>qScale</em>, </td> |
| 650 | </tr> |
| 651 | <tr> |
| 652 | <td class="paramkey"></td> |
| 653 | <td></td> |
| 654 | <td class="paramtype">int32_t </td> |
| 655 | <td class="paramname"><em>qOffset</em> </td> |
| 656 | </tr> |
| 657 | <tr> |
| 658 | <td></td> |
| 659 | <td>)</td> |
| 660 | <td></td><td></td> |
| 661 | </tr> |
| 662 | </table> |
| 663 | </div><div class="memdoc"> |
| 664 | |
| 665 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00648">648</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 666 | <div class="fragment"><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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input0TensorInfo({ 2, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 2>(input0TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  {</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  1.0f, 2.0f, 3.0f,</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="comment">// Batch 1</span></div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  10.0f, 11.0f, 12.0f,</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  },</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  qScale, qOffset));</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span> </div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input1TensorInfo({ 2, 5 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 2>(input1TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  {</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  4.0f, 5.0f, 6.0f, 7.0f, 8.0f,</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> </div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  13.0f, 14.0f, 15.0f, 16.0f, 17.0f,</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  },</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  qScale, qOffset));</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span> </div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input2TensorInfo({ 2, 1 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 2>(input2TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  {</div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  9.0f,</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span> </div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  18.0f</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  },</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  qScale, qOffset));</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span> </div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 2, 9 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span> </div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  std::vector<T> output;</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  { input0TensorInfo, input1TensorInfo, input2TensorInfo },</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  outputTensorInfo,</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  output.data(),</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  1,</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span> </div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  result.output = MakeTensor<T, 2>(outputTensorInfo, output);</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  result.outputExpected = MakeTensor<T, 2>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  {</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span> </div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f, 17.0f, 18.0f,</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  },</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  qScale, qOffset));</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span> </div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</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> |
| 667 | <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> |
| 668 | </div><!-- fragment --> |
| 669 | </div> |
| 670 | </div> |
| 671 | <a id="a398f4322d3f71cc0fe4a04831a556c91"></a> |
| 672 | <h2 class="memtitle"><span class="permalink"><a href="#a398f4322d3f71cc0fe4a04831a556c91">◆ </a></span>Concat2dDim1DiffInputDimsUint8Test()</h2> |
| 673 | |
| 674 | <div class="memitem"> |
| 675 | <div class="memproto"> |
| 676 | <table class="memname"> |
| 677 | <tr> |
| 678 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 2> Concat2dDim1DiffInputDimsUint8Test </td> |
| 679 | <td>(</td> |
| 680 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 681 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 682 | </tr> |
| 683 | <tr> |
| 684 | <td class="paramkey"></td> |
| 685 | <td></td> |
| 686 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 687 | <td class="paramname"><em>memoryManager</em> </td> |
| 688 | </tr> |
| 689 | <tr> |
| 690 | <td></td> |
| 691 | <td>)</td> |
| 692 | <td></td><td></td> |
| 693 | </tr> |
| 694 | </table> |
| 695 | </div><div class="memdoc"> |
| 696 | |
| 697 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02792">2792</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 698 | <div class="fragment"><div class="line"><a name="l02795"></a><span class="lineno"> 2795</span> {</div><div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>  <span class="keywordflow">return</span> Concat2dDim1DiffInputDimsTestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>  workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02798"></a><span class="lineno"> 2798</span> }</div></div><!-- fragment --> |
| 699 | </div> |
| 700 | </div> |
| 701 | <a id="aa786ba656ce7f53cc93692eec4645f6b"></a> |
| 702 | <h2 class="memtitle"><span class="permalink"><a href="#aa786ba656ce7f53cc93692eec4645f6b">◆ </a></span>Concat2dDim1Test()</h2> |
| 703 | |
| 704 | <div class="memitem"> |
| 705 | <div class="memproto"> |
| 706 | <table class="memname"> |
| 707 | <tr> |
| 708 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 2> Concat2dDim1Test </td> |
| 709 | <td>(</td> |
| 710 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 711 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 712 | </tr> |
| 713 | <tr> |
| 714 | <td class="paramkey"></td> |
| 715 | <td></td> |
| 716 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 717 | <td class="paramname"><em>memoryManager</em> </td> |
| 718 | </tr> |
| 719 | <tr> |
| 720 | <td></td> |
| 721 | <td>)</td> |
| 722 | <td></td><td></td> |
| 723 | </tr> |
| 724 | </table> |
| 725 | </div><div class="memdoc"> |
| 726 | |
| 727 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02211">2211</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 728 | <div class="fragment"><div class="line"><a name="l02214"></a><span class="lineno"> 2214</span> {</div><div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>  <span class="keywordflow">return</span> Concat2dDim1TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02216"></a><span class="lineno"> 2216</span> }</div></div><!-- fragment --> |
| 729 | </div> |
| 730 | </div> |
| 731 | <a id="a5f5b1d554f06515b564fb563c9b8c127"></a> |
| 732 | <h2 class="memtitle"><span class="permalink"><a href="#a5f5b1d554f06515b564fb563c9b8c127">◆ </a></span>Concat2dDim1TestImpl()</h2> |
| 733 | |
| 734 | <div class="memitem"> |
| 735 | <div class="memproto"> |
| 736 | <table class="memname"> |
| 737 | <tr> |
| 738 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 2> Concat2dDim1TestImpl </td> |
| 739 | <td>(</td> |
| 740 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 741 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 742 | </tr> |
| 743 | <tr> |
| 744 | <td class="paramkey"></td> |
| 745 | <td></td> |
| 746 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 747 | <td class="paramname"><em>memoryManager</em>, </td> |
| 748 | </tr> |
| 749 | <tr> |
| 750 | <td class="paramkey"></td> |
| 751 | <td></td> |
| 752 | <td class="paramtype">float </td> |
| 753 | <td class="paramname"><em>qScale</em>, </td> |
| 754 | </tr> |
| 755 | <tr> |
| 756 | <td class="paramkey"></td> |
| 757 | <td></td> |
| 758 | <td class="paramtype">int32_t </td> |
| 759 | <td class="paramname"><em>qOffset</em> </td> |
| 760 | </tr> |
| 761 | <tr> |
| 762 | <td></td> |
| 763 | <td>)</td> |
| 764 | <td></td><td></td> |
| 765 | </tr> |
| 766 | </table> |
| 767 | </div><div class="memdoc"> |
| 768 | |
| 769 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00544">544</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 770 | |
| 771 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 772 | <div class="fragment"><div class="line"><a name="l00549"></a><span class="lineno"> 549</span> {</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 2, 9 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result = Concat2dTestImpl<ArmnnType>(</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  workloadFactory, memoryManager, outputTensorInfo, 1, qScale, qOffset);</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span> </div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 2>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  {</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> </div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f, 17.0f, 18.0f</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  },</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  qScale, qOffset));</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> </div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</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> |
| 773 | <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> |
| 774 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 775 | </div><!-- fragment --> |
| 776 | </div> |
| 777 | </div> |
| 778 | <a id="a71bbfb11850812db44a607d2f9c39681"></a> |
| 779 | <h2 class="memtitle"><span class="permalink"><a href="#a71bbfb11850812db44a607d2f9c39681">◆ </a></span>Concat2dDim1Uint8Test()</h2> |
| 780 | |
| 781 | <div class="memitem"> |
| 782 | <div class="memproto"> |
| 783 | <table class="memname"> |
| 784 | <tr> |
| 785 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 2> Concat2dDim1Uint8Test </td> |
| 786 | <td>(</td> |
| 787 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 788 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 789 | </tr> |
| 790 | <tr> |
| 791 | <td class="paramkey"></td> |
| 792 | <td></td> |
| 793 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 794 | <td class="paramname"><em>memoryManager</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 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02777">2777</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 805 | <div class="fragment"><div class="line"><a name="l02780"></a><span class="lineno"> 2780</span> {</div><div class="line"><a name="l02781"></a><span class="lineno"> 2781</span>  <span class="keywordflow">return</span> Concat2dDim1TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02782"></a><span class="lineno"> 2782</span> }</div></div><!-- fragment --> |
| 806 | </div> |
| 807 | </div> |
| 808 | <a id="a73214e9f0561ba98a6ba4824c7e69dbc"></a> |
| 809 | <h2 class="memtitle"><span class="permalink"><a href="#a73214e9f0561ba98a6ba4824c7e69dbc">◆ </a></span>Concat2dTestImpl()</h2> |
| 810 | |
| 811 | <div class="memitem"> |
| 812 | <div class="memproto"> |
| 813 | <table class="memname"> |
| 814 | <tr> |
| 815 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 2> Concat2dTestImpl </td> |
| 816 | <td>(</td> |
| 817 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 818 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 819 | </tr> |
| 820 | <tr> |
| 821 | <td class="paramkey"></td> |
| 822 | <td></td> |
| 823 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 824 | <td class="paramname"><em>memoryManager</em>, </td> |
| 825 | </tr> |
| 826 | <tr> |
| 827 | <td class="paramkey"></td> |
| 828 | <td></td> |
| 829 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 830 | <td class="paramname"><em>outputTensorInfo</em>, </td> |
| 831 | </tr> |
| 832 | <tr> |
| 833 | <td class="paramkey"></td> |
| 834 | <td></td> |
| 835 | <td class="paramtype">unsigned int </td> |
| 836 | <td class="paramname"><em>dimension</em>, </td> |
| 837 | </tr> |
| 838 | <tr> |
| 839 | <td class="paramkey"></td> |
| 840 | <td></td> |
| 841 | <td class="paramtype">const float </td> |
| 842 | <td class="paramname"><em>qScale</em>, </td> |
| 843 | </tr> |
| 844 | <tr> |
| 845 | <td class="paramkey"></td> |
| 846 | <td></td> |
| 847 | <td class="paramtype">const int32_t </td> |
| 848 | <td class="paramname"><em>qOffset</em> </td> |
| 849 | </tr> |
| 850 | <tr> |
| 851 | <td></td> |
| 852 | <td>)</td> |
| 853 | <td></td><td></td> |
| 854 | </tr> |
| 855 | </table> |
| 856 | </div><div class="memdoc"> |
| 857 | |
| 858 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00450">450</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 859 | |
| 860 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00093">TensorInfo::GetNumElements()</a>, and <a class="el" href="_layer_test_result_8hpp_source.html#l00040">LayerTestResult< T, n >::output</a>.</p> |
| 861 | <div class="fragment"><div class="line"><a name="l00457"></a><span class="lineno"> 457</span> {</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo({ 2, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 2>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  {</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  1.0f, 2.0f, 3.0f,</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span> </div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  10.0f, 11.0f, 12.0f,</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>  qScale, qOffset));</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 2>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  {</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span> </div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  13.0f, 14.0f, 15.0f,</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  },</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  qScale, qOffset));</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 2>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  {</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="comment">// Batch 0</span></div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <span class="comment">// Batch 1</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  16.0f, 17.0f, 18.0f,</div><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>  qScale, qOffset));</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="struct_layer_test_result.html">LayerTestResult<T, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  std::vector<T> output;</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  output.resize(outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  { inputTensorInfo, inputTensorInfo, inputTensorInfo },</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  outputTensorInfo,</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  output.data(),</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  dimension,</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="keyword">true</span>);</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>  result.output = MakeTensor<T, 2>(outputTensorInfo, output);</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</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> |
| 862 | <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> |
| 863 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 864 | </div><!-- fragment --> |
| 865 | </div> |
| 866 | </div> |
| 867 | <a id="ad970167c99234cfcc22107efbe3503d3"></a> |
| 868 | <h2 class="memtitle"><span class="permalink"><a href="#ad970167c99234cfcc22107efbe3503d3">◆ </a></span>Concat3dDim0DiffInputDimsTest()</h2> |
| 869 | |
| 870 | <div class="memitem"> |
| 871 | <div class="memproto"> |
| 872 | <table class="memname"> |
| 873 | <tr> |
| 874 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 3> Concat3dDim0DiffInputDimsTest </td> |
| 875 | <td>(</td> |
| 876 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 877 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 878 | </tr> |
| 879 | <tr> |
| 880 | <td class="paramkey"></td> |
| 881 | <td></td> |
| 882 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 883 | <td class="paramname"><em>memoryManager</em> </td> |
| 884 | </tr> |
| 885 | <tr> |
| 886 | <td></td> |
| 887 | <td>)</td> |
| 888 | <td></td><td></td> |
| 889 | </tr> |
| 890 | </table> |
| 891 | </div><div class="memdoc"> |
| 892 | |
| 893 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02254">2254</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 894 | <div class="fragment"><div class="line"><a name="l02257"></a><span class="lineno"> 2257</span> {</div><div class="line"><a name="l02258"></a><span class="lineno"> 2258</span>  <span class="keywordflow">return</span> Concat3dDim0DiffInputDimsTestImpl<DataType::Float32>(</div><div class="line"><a name="l02259"></a><span class="lineno"> 2259</span>  workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02260"></a><span class="lineno"> 2260</span> }</div></div><!-- fragment --> |
| 895 | </div> |
| 896 | </div> |
| 897 | <a id="aed8a32c1d927c684bd76ce2e30a949fe"></a> |
| 898 | <h2 class="memtitle"><span class="permalink"><a href="#aed8a32c1d927c684bd76ce2e30a949fe">◆ </a></span>Concat3dDim0DiffInputDimsTestImpl()</h2> |
| 899 | |
| 900 | <div class="memitem"> |
| 901 | <div class="memproto"> |
| 902 | <table class="memname"> |
| 903 | <tr> |
| 904 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dDim0DiffInputDimsTestImpl </td> |
| 905 | <td>(</td> |
| 906 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 907 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 908 | </tr> |
| 909 | <tr> |
| 910 | <td class="paramkey"></td> |
| 911 | <td></td> |
| 912 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 913 | <td class="paramname"><em>memoryManager</em>, </td> |
| 914 | </tr> |
| 915 | <tr> |
| 916 | <td class="paramkey"></td> |
| 917 | <td></td> |
| 918 | <td class="paramtype">float </td> |
| 919 | <td class="paramname"><em>qScale</em>, </td> |
| 920 | </tr> |
| 921 | <tr> |
| 922 | <td class="paramkey"></td> |
| 923 | <td></td> |
| 924 | <td class="paramtype">int32_t </td> |
| 925 | <td class="paramname"><em>qOffset</em> </td> |
| 926 | </tr> |
| 927 | <tr> |
| 928 | <td></td> |
| 929 | <td>)</td> |
| 930 | <td></td><td></td> |
| 931 | </tr> |
| 932 | </table> |
| 933 | </div><div class="memdoc"> |
| 934 | |
| 935 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00993">993</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 936 | <div class="fragment"><div class="line"><a name="l00998"></a><span class="lineno"> 998</span> {</div><div class="line"><a name="l00999"></a><span class="lineno"> 999</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input0TensorInfo({ 2, 3, 2 }, ArmnnType);</div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 3>(input0TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>  {</div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>  1.0f, 2.0f,</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> </div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>  3.0f, 4.0f,</div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> </div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>  5.0f, 6.0f,</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> </div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>  19.0f, 20.0f,</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> </div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>  21.0f, 22.0f,</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span> </div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>  23.0f, 24.0f</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>  },</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>  qScale, qOffset));</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span> </div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input1TensorInfo({ 1, 3, 2 }, ArmnnType);</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 3>(input1TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>  {</div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>  7.0f, 8.0f,</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  9.0f, 10.0f,</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> </div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  11.0f, 12.0f,</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  },</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>  qScale, qOffset));</div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span> </div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input2TensorInfo({ 3, 3, 2 }, ArmnnType);</div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 3>(input2TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>  {</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>  25.0f, 26.0f,</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span> </div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  27.0f, 28.0f,</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> </div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>  29.0f, 30.0f,</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> </div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>  13.0f, 14.0f,</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span> </div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>  15.0f, 16.0f,</div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> </div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>  17.0f, 18.0f,</div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> </div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>  <span class="comment">// Batch 2, Channel 0</span></div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>  31.0f, 32.0f,</div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>  <span class="comment">// Batch 2, Channel 1</span></div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  33.0f, 34.0f,</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> </div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>  <span class="comment">// Batch 2, Channel 2</span></div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>  35.0f, 36.0f</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>  },</div><div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>  qScale, qOffset));</div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> </div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 6, 3, 2 }, ArmnnType);</div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result(outputTensorInfo);</div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span> </div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>  std::vector<T> output;</div><div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>  { input0TensorInfo, input1TensorInfo, input2TensorInfo },</div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>  outputTensorInfo,</div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>  output.data(),</div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>  0,</div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> </div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>  result.output = MakeTensor<T, 3>(outputTensorInfo, output);</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>  result.outputExpected = MakeTensor<T, 3>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>  {</div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>  1.0f, 2.0f,</div><div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> </div><div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>  3.0f, 4.0f,</div><div class="line"><a name="l01089"></a><span class="lineno"> 1089</span> </div><div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>  5.0f, 6.0f,</div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span> </div><div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>  19.0f, 20.0f,</div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span> </div><div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>  21.0f, 22.0f,</div><div class="line"><a name="l01098"></a><span class="lineno"> 1098</span> </div><div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>  23.0f, 24.0f,</div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span> </div><div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>  <span class="comment">// Batch 2, Channel 0</span></div><div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>  7.0f, 8.0f,</div><div class="line"><a name="l01104"></a><span class="lineno"> 1104</span> </div><div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>  <span class="comment">// Batch 2, Channel 1</span></div><div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>  9.0f, 10.0f,</div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div><div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>  <span class="comment">// Batch 2, Channel 2</span></div><div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>  11.0f, 12.0f,</div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span> </div><div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>  <span class="comment">// Batch 3, Channel 0</span></div><div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>  25.0f, 26.0f,</div><div class="line"><a name="l01113"></a><span class="lineno"> 1113</span> </div><div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>  <span class="comment">// Batch 3, Channel 1</span></div><div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>  27.0f, 28.0f,</div><div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div><div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>  <span class="comment">// Batch 3, Channel 2</span></div><div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>  29.0f, 30.0f,</div><div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div><div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>  <span class="comment">// Batch 4, Channel 0</span></div><div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>  13.0f, 14.0f,</div><div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> </div><div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>  <span class="comment">// Batch 4, Channel 1</span></div><div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>  15.0f, 16.0f,</div><div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> </div><div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>  <span class="comment">// Batch 4, Channel 2</span></div><div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>  17.0f, 18.0f,</div><div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div><div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>  <span class="comment">// Batch 5, Channel 0</span></div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>  31.0f, 32.0f,</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span> </div><div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>  <span class="comment">// Batch 5, Channel 1</span></div><div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>  33.0f, 34.0f,</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> </div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>  <span class="comment">// Batch 5, Channel 2</span></div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>  35.0f, 36.0f</div><div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>  },</div><div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>  qScale, qOffset));</div><div class="line"><a name="l01139"></a><span class="lineno"> 1139</span> </div><div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</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> |
| 937 | <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> |
| 938 | </div><!-- fragment --> |
| 939 | </div> |
| 940 | </div> |
| 941 | <a id="afa4c2db58080ed0749c5e7c64f23af04"></a> |
| 942 | <h2 class="memtitle"><span class="permalink"><a href="#afa4c2db58080ed0749c5e7c64f23af04">◆ </a></span>Concat3dDim0DiffInputDimsUint8Test()</h2> |
| 943 | |
| 944 | <div class="memitem"> |
| 945 | <div class="memproto"> |
| 946 | <table class="memname"> |
| 947 | <tr> |
| 948 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> Concat3dDim0DiffInputDimsUint8Test </td> |
| 949 | <td>(</td> |
| 950 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 951 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 952 | </tr> |
| 953 | <tr> |
| 954 | <td class="paramkey"></td> |
| 955 | <td></td> |
| 956 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 957 | <td class="paramname"><em>memoryManager</em> </td> |
| 958 | </tr> |
| 959 | <tr> |
| 960 | <td></td> |
| 961 | <td>)</td> |
| 962 | <td></td><td></td> |
| 963 | </tr> |
| 964 | </table> |
| 965 | </div><div class="memdoc"> |
| 966 | |
| 967 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02823">2823</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 968 | <div class="fragment"><div class="line"><a name="l02826"></a><span class="lineno"> 2826</span> {</div><div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>  <span class="keywordflow">return</span> Concat3dDim0TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02828"></a><span class="lineno"> 2828</span> }</div></div><!-- fragment --> |
| 969 | </div> |
| 970 | </div> |
| 971 | <a id="ad9391e74e0fcf3a9f2c08d6a865d910a"></a> |
| 972 | <h2 class="memtitle"><span class="permalink"><a href="#ad9391e74e0fcf3a9f2c08d6a865d910a">◆ </a></span>Concat3dDim0Test()</h2> |
| 973 | |
| 974 | <div class="memitem"> |
| 975 | <div class="memproto"> |
| 976 | <table class="memname"> |
| 977 | <tr> |
| 978 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 3> Concat3dDim0Test </td> |
| 979 | <td>(</td> |
| 980 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 981 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 982 | </tr> |
| 983 | <tr> |
| 984 | <td class="paramkey"></td> |
| 985 | <td></td> |
| 986 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 987 | <td class="paramname"><em>memoryManager</em> </td> |
| 988 | </tr> |
| 989 | <tr> |
| 990 | <td></td> |
| 991 | <td>)</td> |
| 992 | <td></td><td></td> |
| 993 | </tr> |
| 994 | </table> |
| 995 | </div><div class="memdoc"> |
| 996 | |
| 997 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02232">2232</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 998 | <div class="fragment"><div class="line"><a name="l02235"></a><span class="lineno"> 2235</span> {</div><div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>  <span class="keywordflow">return</span> Concat3dDim0TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02237"></a><span class="lineno"> 2237</span> }</div></div><!-- fragment --> |
| 999 | </div> |
| 1000 | </div> |
| 1001 | <a id="ab129fe939f6a83daeecd9802c2024799"></a> |
| 1002 | <h2 class="memtitle"><span class="permalink"><a href="#ab129fe939f6a83daeecd9802c2024799">◆ </a></span>Concat3dDim0TestImpl()</h2> |
| 1003 | |
| 1004 | <div class="memitem"> |
| 1005 | <div class="memproto"> |
| 1006 | <table class="memname"> |
| 1007 | <tr> |
| 1008 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dDim0TestImpl </td> |
| 1009 | <td>(</td> |
| 1010 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1011 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1012 | </tr> |
| 1013 | <tr> |
| 1014 | <td class="paramkey"></td> |
| 1015 | <td></td> |
| 1016 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1017 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1018 | </tr> |
| 1019 | <tr> |
| 1020 | <td class="paramkey"></td> |
| 1021 | <td></td> |
| 1022 | <td class="paramtype">float </td> |
| 1023 | <td class="paramname"><em>qScale</em>, </td> |
| 1024 | </tr> |
| 1025 | <tr> |
| 1026 | <td class="paramkey"></td> |
| 1027 | <td></td> |
| 1028 | <td class="paramtype">int32_t </td> |
| 1029 | <td class="paramname"><em>qOffset</em> </td> |
| 1030 | </tr> |
| 1031 | <tr> |
| 1032 | <td></td> |
| 1033 | <td>)</td> |
| 1034 | <td></td><td></td> |
| 1035 | </tr> |
| 1036 | </table> |
| 1037 | </div><div class="memdoc"> |
| 1038 | |
| 1039 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00809">809</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1040 | |
| 1041 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 1042 | <div class="fragment"><div class="line"><a name="l00814"></a><span class="lineno"> 814</span> {</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 6, 3, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span> </div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result = Concat3dTestImpl<ArmnnType>(</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  workloadFactory, memoryManager, outputTensorInfo, 0, <span class="keyword">true</span>, qScale, qOffset);</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span> </div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 3>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  {</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  1.0f, 2.0f,</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span> </div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  3.0f, 4.0f,</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span> </div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  5.0f, 6.0f,</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span> </div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  19.0f, 20.0f,</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span> </div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  21.0f, 22.0f,</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span> </div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  23.0f, 24.0f,</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span> </div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="comment">// Batch 2, Channel 0</span></div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  7.0f, 8.0f,</div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span> </div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  <span class="comment">// Batch 2, Channel 1</span></div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  9.0f, 10.0f,</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span> </div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  <span class="comment">// Batch 2, Channel 2</span></div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  11.0f, 12.0f,</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span> </div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  <span class="comment">// Batch 3, Channel 0</span></div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  25.0f, 26.0f,</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span> </div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  <span class="comment">// Batch 3, Channel 1</span></div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  27.0f, 28.0f,</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span> </div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  <span class="comment">// Batch 3, Channel 2</span></div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  29.0f, 30.0f,</div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span> </div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  <span class="comment">// Batch 4, Channel 0</span></div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  13.0f, 14.0f,</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span> </div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  <span class="comment">// Batch 4, Channel 1</span></div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  15.0f, 16.0f,</div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span> </div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  <span class="comment">// Batch 4, Channel 2</span></div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  17.0f, 18.0f,</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span> </div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  <span class="comment">// Batch 5, Channel 0</span></div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  31.0f, 32.0f,</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span> </div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="comment">// Batch 5, Channel 1</span></div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  33.0f, 34.0f,</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span> </div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <span class="comment">// Batch 5, Channel 2</span></div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  35.0f, 36.0f</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  },</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  qScale, qOffset));</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span> </div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</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> |
| 1043 | <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> |
| 1044 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 1045 | </div><!-- fragment --> |
| 1046 | </div> |
| 1047 | </div> |
| 1048 | <a id="a05e4c6d3c63851bebb99391e4af3ab6b"></a> |
| 1049 | <h2 class="memtitle"><span class="permalink"><a href="#a05e4c6d3c63851bebb99391e4af3ab6b">◆ </a></span>Concat3dDim0Uint8Test()</h2> |
| 1050 | |
| 1051 | <div class="memitem"> |
| 1052 | <div class="memproto"> |
| 1053 | <table class="memname"> |
| 1054 | <tr> |
| 1055 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> Concat3dDim0Uint8Test </td> |
| 1056 | <td>(</td> |
| 1057 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1058 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1059 | </tr> |
| 1060 | <tr> |
| 1061 | <td class="paramkey"></td> |
| 1062 | <td></td> |
| 1063 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1064 | <td class="paramname"><em>memoryManager</em> </td> |
| 1065 | </tr> |
| 1066 | <tr> |
| 1067 | <td></td> |
| 1068 | <td>)</td> |
| 1069 | <td></td><td></td> |
| 1070 | </tr> |
| 1071 | </table> |
| 1072 | </div><div class="memdoc"> |
| 1073 | |
| 1074 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02800">2800</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1075 | <div class="fragment"><div class="line"><a name="l02803"></a><span class="lineno"> 2803</span> {</div><div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>  <span class="keywordflow">return</span> Concat3dDim0TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02805"></a><span class="lineno"> 2805</span> }</div></div><!-- fragment --> |
| 1076 | </div> |
| 1077 | </div> |
| 1078 | <a id="a693e34e3f519f0323cb165468560ee72"></a> |
| 1079 | <h2 class="memtitle"><span class="permalink"><a href="#a693e34e3f519f0323cb165468560ee72">◆ </a></span>Concat3dDim1DiffInputDimsTest()</h2> |
| 1080 | |
| 1081 | <div class="memitem"> |
| 1082 | <div class="memproto"> |
| 1083 | <table class="memname"> |
| 1084 | <tr> |
| 1085 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 3> Concat3dDim1DiffInputDimsTest </td> |
| 1086 | <td>(</td> |
| 1087 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1088 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1089 | </tr> |
| 1090 | <tr> |
| 1091 | <td class="paramkey"></td> |
| 1092 | <td></td> |
| 1093 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1094 | <td class="paramname"><em>memoryManager</em> </td> |
| 1095 | </tr> |
| 1096 | <tr> |
| 1097 | <td></td> |
| 1098 | <td>)</td> |
| 1099 | <td></td><td></td> |
| 1100 | </tr> |
| 1101 | </table> |
| 1102 | </div><div class="memdoc"> |
| 1103 | |
| 1104 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02262">2262</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1105 | <div class="fragment"><div class="line"><a name="l02265"></a><span class="lineno"> 2265</span> {</div><div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>  <span class="keywordflow">return</span> Concat3dDim1DiffInputDimsTestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> }</div></div><!-- fragment --> |
| 1106 | </div> |
| 1107 | </div> |
| 1108 | <a id="a0c6ca29f4bf7c7fa4883fa73b5488b1a"></a> |
| 1109 | <h2 class="memtitle"><span class="permalink"><a href="#a0c6ca29f4bf7c7fa4883fa73b5488b1a">◆ </a></span>Concat3dDim1DiffInputDimsTestImpl()</h2> |
| 1110 | |
| 1111 | <div class="memitem"> |
| 1112 | <div class="memproto"> |
| 1113 | <table class="memname"> |
| 1114 | <tr> |
| 1115 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dDim1DiffInputDimsTestImpl </td> |
| 1116 | <td>(</td> |
| 1117 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1118 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1119 | </tr> |
| 1120 | <tr> |
| 1121 | <td class="paramkey"></td> |
| 1122 | <td></td> |
| 1123 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1124 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1125 | </tr> |
| 1126 | <tr> |
| 1127 | <td class="paramkey"></td> |
| 1128 | <td></td> |
| 1129 | <td class="paramtype">float </td> |
| 1130 | <td class="paramname"><em>qScale</em>, </td> |
| 1131 | </tr> |
| 1132 | <tr> |
| 1133 | <td class="paramkey"></td> |
| 1134 | <td></td> |
| 1135 | <td class="paramtype">int32_t </td> |
| 1136 | <td class="paramname"><em>qOffset</em> </td> |
| 1137 | </tr> |
| 1138 | <tr> |
| 1139 | <td></td> |
| 1140 | <td>)</td> |
| 1141 | <td></td><td></td> |
| 1142 | </tr> |
| 1143 | </table> |
| 1144 | </div><div class="memdoc"> |
| 1145 | |
| 1146 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01144">1144</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1147 | <div class="fragment"><div class="line"><a name="l01149"></a><span class="lineno"> 1149</span> {</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input0TensorInfo({ 2, 3, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 3>(input0TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>  {</div><div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>  1.0f, 2.0f,</div><div class="line"><a name="l01155"></a><span class="lineno"> 1155</span> </div><div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>  3.0f, 4.0f,</div><div class="line"><a name="l01158"></a><span class="lineno"> 1158</span> </div><div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>  5.0f, 6.0f,</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>  19.0f, 20.0f,</div><div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div><div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>  21.0f, 22.0f,</div><div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div><div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>  23.0f, 24.0f</div><div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>  },</div><div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>  qScale, qOffset));</div><div class="line"><a name="l01172"></a><span class="lineno"> 1172</span> </div><div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input1TensorInfo({ 2, 4, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 3>(input1TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>  {</div><div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>  7.0f, 8.0f,</div><div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div><div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>  9.0f, 10.0f,</div><div class="line"><a name="l01181"></a><span class="lineno"> 1181</span> </div><div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>  11.0f, 12.0f,</div><div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div><div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>  <span class="comment">// Batch 0, Channel 3</span></div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>  25.0f, 26.0f,</div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span> </div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>  27.0f, 28.0f,</div><div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div><div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>  29.0f, 30.0f,</div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div><div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>  13.0f, 14.0f,</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span> </div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>  <span class="comment">// Batch 1, Channel 3</span></div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>  15.0f, 16.0f,</div><div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>  },</div><div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>  qScale, qOffset));</div><div class="line"><a name="l01201"></a><span class="lineno"> 1201</span> </div><div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input2TensorInfo({ 2, 1, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 3>(input2TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>  {</div><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>  17.0f, 18.0f,</div><div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> </div><div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>  31.0f, 32.0f,</div><div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>  },</div><div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>  qScale, qOffset));</div><div class="line"><a name="l01212"></a><span class="lineno"> 1212</span> </div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 2, 8, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result(outputTensorInfo);</div><div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> </div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>  std::vector<T> output;</div><div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>  { input0TensorInfo, input1TensorInfo, input2TensorInfo },</div><div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>  outputTensorInfo,</div><div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>  output.data(),</div><div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>  1,</div><div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div><div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>  result.output = MakeTensor<T, 3>(outputTensorInfo, output);</div><div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>  result.outputExpected = MakeTensor<T, 3>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>  {</div><div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>  1.0f, 2.0f,</div><div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> </div><div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>  3.0f, 4.0f,</div><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span> </div><div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>  5.0f, 6.0f,</div><div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> </div><div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>  <span class="comment">// Batch 0, Channel 3</span></div><div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>  7.0f, 8.0f,</div><div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div><div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>  <span class="comment">// Batch 0, Channel 4</span></div><div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>  9.0f, 10.0f,</div><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> </div><div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>  <span class="comment">// Batch 0, Channel 5</span></div><div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>  11.0f, 12.0f,</div><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>  <span class="comment">// Batch 0, Channel 6</span></div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>  25.0f, 26.0f,</div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>  <span class="comment">// Batch 0, Channel 7</span></div><div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>  17.0f, 18.0f,</div><div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> </div><div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>  19.0f, 20.0f,</div><div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>  21.0f, 22.0f,</div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div><div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>  23.0f, 24.0f,</div><div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> </div><div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>  <span class="comment">// Batch 1, Channel 3</span></div><div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>  27.0f, 28.0f,</div><div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> </div><div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>  <span class="comment">// Batch 1, Channel 4</span></div><div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>  29.0f, 30.0f,</div><div class="line"><a name="l01267"></a><span class="lineno"> 1267</span> </div><div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>  <span class="comment">// Batch 1, Channel 5</span></div><div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>  13.0f, 14.0f,</div><div class="line"><a name="l01270"></a><span class="lineno"> 1270</span> </div><div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>  <span class="comment">// Batch 1, Channel 6</span></div><div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>  15.0f, 16.0f,</div><div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div><div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>  <span class="comment">// Batch 1, Channel 7</span></div><div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>  31.0f, 32.0f,</div><div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>  },</div><div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>  qScale, qOffset));</div><div class="line"><a name="l01278"></a><span class="lineno"> 1278</span> </div><div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01280"></a><span class="lineno"> 1280</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> |
| 1148 | <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> |
| 1149 | </div><!-- fragment --> |
| 1150 | </div> |
| 1151 | </div> |
| 1152 | <a id="a1f8ad3cf8df29398ea04eaa4c790a100"></a> |
| 1153 | <h2 class="memtitle"><span class="permalink"><a href="#a1f8ad3cf8df29398ea04eaa4c790a100">◆ </a></span>Concat3dDim1DiffInputDimsUint8Test()</h2> |
| 1154 | |
| 1155 | <div class="memitem"> |
| 1156 | <div class="memproto"> |
| 1157 | <table class="memname"> |
| 1158 | <tr> |
| 1159 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> Concat3dDim1DiffInputDimsUint8Test </td> |
| 1160 | <td>(</td> |
| 1161 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1162 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1163 | </tr> |
| 1164 | <tr> |
| 1165 | <td class="paramkey"></td> |
| 1166 | <td></td> |
| 1167 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1168 | <td class="paramname"><em>memoryManager</em> </td> |
| 1169 | </tr> |
| 1170 | <tr> |
| 1171 | <td></td> |
| 1172 | <td>)</td> |
| 1173 | <td></td><td></td> |
| 1174 | </tr> |
| 1175 | </table> |
| 1176 | </div><div class="memdoc"> |
| 1177 | |
| 1178 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02830">2830</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1179 | <div class="fragment"><div class="line"><a name="l02833"></a><span class="lineno"> 2833</span> {</div><div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>  <span class="keywordflow">return</span> Concat3dDim1DiffInputDimsTestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>  workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02836"></a><span class="lineno"> 2836</span> }</div></div><!-- fragment --> |
| 1180 | </div> |
| 1181 | </div> |
| 1182 | <a id="a462db75851b433b8739039a789e14c0f"></a> |
| 1183 | <h2 class="memtitle"><span class="permalink"><a href="#a462db75851b433b8739039a789e14c0f">◆ </a></span>Concat3dDim1Test()</h2> |
| 1184 | |
| 1185 | <div class="memitem"> |
| 1186 | <div class="memproto"> |
| 1187 | <table class="memname"> |
| 1188 | <tr> |
| 1189 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 3> Concat3dDim1Test </td> |
| 1190 | <td>(</td> |
| 1191 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1192 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1193 | </tr> |
| 1194 | <tr> |
| 1195 | <td class="paramkey"></td> |
| 1196 | <td></td> |
| 1197 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1198 | <td class="paramname"><em>memoryManager</em> </td> |
| 1199 | </tr> |
| 1200 | <tr> |
| 1201 | <td></td> |
| 1202 | <td>)</td> |
| 1203 | <td></td><td></td> |
| 1204 | </tr> |
| 1205 | </table> |
| 1206 | </div><div class="memdoc"> |
| 1207 | |
| 1208 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02239">2239</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1209 | <div class="fragment"><div class="line"><a name="l02242"></a><span class="lineno"> 2242</span> {</div><div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>  <span class="keywordflow">return</span> Concat3dDim1TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02244"></a><span class="lineno"> 2244</span> }</div></div><!-- fragment --> |
| 1210 | </div> |
| 1211 | </div> |
| 1212 | <a id="a79b36066d3bbd4ce6a61c081ea863ad7"></a> |
| 1213 | <h2 class="memtitle"><span class="permalink"><a href="#a79b36066d3bbd4ce6a61c081ea863ad7">◆ </a></span>Concat3dDim1TestImpl()</h2> |
| 1214 | |
| 1215 | <div class="memitem"> |
| 1216 | <div class="memproto"> |
| 1217 | <table class="memname"> |
| 1218 | <tr> |
| 1219 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dDim1TestImpl </td> |
| 1220 | <td>(</td> |
| 1221 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1222 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1223 | </tr> |
| 1224 | <tr> |
| 1225 | <td class="paramkey"></td> |
| 1226 | <td></td> |
| 1227 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1228 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1229 | </tr> |
| 1230 | <tr> |
| 1231 | <td class="paramkey"></td> |
| 1232 | <td></td> |
| 1233 | <td class="paramtype">float </td> |
| 1234 | <td class="paramname"><em>qScale</em>, </td> |
| 1235 | </tr> |
| 1236 | <tr> |
| 1237 | <td class="paramkey"></td> |
| 1238 | <td></td> |
| 1239 | <td class="paramtype">int32_t </td> |
| 1240 | <td class="paramname"><em>qOffset</em> </td> |
| 1241 | </tr> |
| 1242 | <tr> |
| 1243 | <td></td> |
| 1244 | <td>)</td> |
| 1245 | <td></td><td></td> |
| 1246 | </tr> |
| 1247 | </table> |
| 1248 | </div><div class="memdoc"> |
| 1249 | |
| 1250 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00882">882</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1251 | |
| 1252 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 1253 | <div class="fragment"><div class="line"><a name="l00887"></a><span class="lineno"> 887</span> {</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 2, 9, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span> </div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result = Concat3dTestImpl<ArmnnType>(</div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  workloadFactory, memoryManager, outputTensorInfo, 1, <span class="keyword">true</span>, qScale, qOffset);</div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span> </div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 3>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span>  {</div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  1.0f, 2.0f,</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span> </div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  3.0f, 4.0f,</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span> </div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  5.0f, 6.0f,</div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span> </div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  <span class="comment">// Batch 0, Channel 3</span></div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  7.0f, 8.0f,</div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span> </div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  <span class="comment">// Batch 0, Channel 4</span></div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  9.0f, 10.0f,</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span> </div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  <span class="comment">// Batch 0, Channel 5</span></div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  11.0f, 12.0f,</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span> </div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <span class="comment">// Batch 0, Channel 6</span></div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  13.0f, 14.0f,</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span> </div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span>  <span class="comment">// Batch 0, Channel 7</span></div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  15.0f, 16.0f,</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span> </div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  <span class="comment">// Batch 0, Channel 8</span></div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  17.0f, 18.0f,</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span> </div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  19.0f, 20.0f,</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span> </div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  21.0f, 22.0f,</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span> </div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span>  23.0f, 24.0f,</div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span> </div><div class="line"><a name="l00931"></a><span class="lineno"> 931</span>  <span class="comment">// Batch 1, Channel 3</span></div><div class="line"><a name="l00932"></a><span class="lineno"> 932</span>  25.0f, 26.0f,</div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span> </div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span>  <span class="comment">// Batch 1, Channel 4</span></div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span>  27.0f, 28.0f,</div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span> </div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span>  <span class="comment">// Batch 1, Channel 5</span></div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  29.0f, 30.0f,</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span> </div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span>  <span class="comment">// Batch 1, Channel 6</span></div><div class="line"><a name="l00941"></a><span class="lineno"> 941</span>  31.0f, 32.0f,</div><div class="line"><a name="l00942"></a><span class="lineno"> 942</span> </div><div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  <span class="comment">// Batch 1, Channel 7</span></div><div class="line"><a name="l00944"></a><span class="lineno"> 944</span>  33.0f, 34.0f,</div><div class="line"><a name="l00945"></a><span class="lineno"> 945</span> </div><div class="line"><a name="l00946"></a><span class="lineno"> 946</span>  <span class="comment">// Batch 1, Channel 8</span></div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>  35.0f, 36.0f</div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  },</div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  qScale, qOffset));</div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span> </div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</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> |
| 1254 | <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> |
| 1255 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 1256 | </div><!-- fragment --> |
| 1257 | </div> |
| 1258 | </div> |
| 1259 | <a id="a8e409cdc677af52ce07c5cdc8ec63678"></a> |
| 1260 | <h2 class="memtitle"><span class="permalink"><a href="#a8e409cdc677af52ce07c5cdc8ec63678">◆ </a></span>Concat3dDim1Uint8Test()</h2> |
| 1261 | |
| 1262 | <div class="memitem"> |
| 1263 | <div class="memproto"> |
| 1264 | <table class="memname"> |
| 1265 | <tr> |
| 1266 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> Concat3dDim1Uint8Test </td> |
| 1267 | <td>(</td> |
| 1268 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1269 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1270 | </tr> |
| 1271 | <tr> |
| 1272 | <td class="paramkey"></td> |
| 1273 | <td></td> |
| 1274 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1275 | <td class="paramname"><em>memoryManager</em> </td> |
| 1276 | </tr> |
| 1277 | <tr> |
| 1278 | <td></td> |
| 1279 | <td>)</td> |
| 1280 | <td></td><td></td> |
| 1281 | </tr> |
| 1282 | </table> |
| 1283 | </div><div class="memdoc"> |
| 1284 | |
| 1285 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02807">2807</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1286 | <div class="fragment"><div class="line"><a name="l02810"></a><span class="lineno"> 2810</span> {</div><div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>  <span class="keywordflow">return</span> Concat3dDim1TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02812"></a><span class="lineno"> 2812</span> }</div></div><!-- fragment --> |
| 1287 | </div> |
| 1288 | </div> |
| 1289 | <a id="aab6fb09abdae83f7944da4d9d8a894de"></a> |
| 1290 | <h2 class="memtitle"><span class="permalink"><a href="#aab6fb09abdae83f7944da4d9d8a894de">◆ </a></span>Concat3dDim2DiffInputDimsTest()</h2> |
| 1291 | |
| 1292 | <div class="memitem"> |
| 1293 | <div class="memproto"> |
| 1294 | <table class="memname"> |
| 1295 | <tr> |
| 1296 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 3> Concat3dDim2DiffInputDimsTest </td> |
| 1297 | <td>(</td> |
| 1298 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1299 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1300 | </tr> |
| 1301 | <tr> |
| 1302 | <td class="paramkey"></td> |
| 1303 | <td></td> |
| 1304 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1305 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1306 | </tr> |
| 1307 | <tr> |
| 1308 | <td class="paramkey"></td> |
| 1309 | <td></td> |
| 1310 | <td class="paramtype">bool </td> |
| 1311 | <td class="paramname"><em>useSubtensor</em> </td> |
| 1312 | </tr> |
| 1313 | <tr> |
| 1314 | <td></td> |
| 1315 | <td>)</td> |
| 1316 | <td></td><td></td> |
| 1317 | </tr> |
| 1318 | </table> |
| 1319 | </div><div class="memdoc"> |
| 1320 | |
| 1321 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02269">2269</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1322 | <div class="fragment"><div class="line"><a name="l02273"></a><span class="lineno"> 2273</span> {</div><div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>  <span class="keywordflow">return</span> Concat3dDim2DiffInputDimsTestImpl<DataType::Float32>(</div><div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>  workloadFactory, memoryManager, useSubtensor, 0.0f, 0);</div><div class="line"><a name="l02276"></a><span class="lineno"> 2276</span> }</div></div><!-- fragment --> |
| 1323 | </div> |
| 1324 | </div> |
| 1325 | <a id="a8af1d375ac13d009cf818825b343ec1c"></a> |
| 1326 | <h2 class="memtitle"><span class="permalink"><a href="#a8af1d375ac13d009cf818825b343ec1c">◆ </a></span>Concat3dDim2DiffInputDimsTestImpl()</h2> |
| 1327 | |
| 1328 | <div class="memitem"> |
| 1329 | <div class="memproto"> |
| 1330 | <table class="memname"> |
| 1331 | <tr> |
| 1332 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dDim2DiffInputDimsTestImpl </td> |
| 1333 | <td>(</td> |
| 1334 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1335 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1336 | </tr> |
| 1337 | <tr> |
| 1338 | <td class="paramkey"></td> |
| 1339 | <td></td> |
| 1340 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1341 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1342 | </tr> |
| 1343 | <tr> |
| 1344 | <td class="paramkey"></td> |
| 1345 | <td></td> |
| 1346 | <td class="paramtype">bool </td> |
| 1347 | <td class="paramname"><em>useSubtensor</em>, </td> |
| 1348 | </tr> |
| 1349 | <tr> |
| 1350 | <td class="paramkey"></td> |
| 1351 | <td></td> |
| 1352 | <td class="paramtype">float </td> |
| 1353 | <td class="paramname"><em>qScale</em>, </td> |
| 1354 | </tr> |
| 1355 | <tr> |
| 1356 | <td class="paramkey"></td> |
| 1357 | <td></td> |
| 1358 | <td class="paramtype">int32_t </td> |
| 1359 | <td class="paramname"><em>qOffset</em> </td> |
| 1360 | </tr> |
| 1361 | <tr> |
| 1362 | <td></td> |
| 1363 | <td>)</td> |
| 1364 | <td></td><td></td> |
| 1365 | </tr> |
| 1366 | </table> |
| 1367 | </div><div class="memdoc"> |
| 1368 | |
| 1369 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01283">1283</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1370 | <div class="fragment"><div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> {</div><div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input0TensorInfo({ 2, 3, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 3>(input0TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>  {</div><div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>  1.0f, 2.0f,</div><div class="line"><a name="l01295"></a><span class="lineno"> 1295</span> </div><div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>  3.0f, 4.0f,</div><div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div><div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>  5.0f, 6.0f,</div><div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> </div><div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>  19.0f, 20.0f,</div><div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> </div><div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>  21.0f, 22.0f,</div><div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> </div><div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>  23.0f, 24.0f</div><div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>  },</div><div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>  qScale, qOffset));</div><div class="line"><a name="l01312"></a><span class="lineno"> 1312</span> </div><div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input1TensorInfo({ 2, 3, 1 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 3>(input1TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>  {</div><div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>  7.0f,</div><div class="line"><a name="l01318"></a><span class="lineno"> 1318</span> </div><div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>  9.0f,</div><div class="line"><a name="l01321"></a><span class="lineno"> 1321</span> </div><div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>  11.0f,</div><div class="line"><a name="l01324"></a><span class="lineno"> 1324</span> </div><div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>  25.0f,</div><div class="line"><a name="l01327"></a><span class="lineno"> 1327</span> </div><div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>  27.0f,</div><div class="line"><a name="l01330"></a><span class="lineno"> 1330</span> </div><div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>  29.0f</div><div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>  },</div><div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>  qScale, qOffset));</div><div class="line"><a name="l01335"></a><span class="lineno"> 1335</span> </div><div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> input2TensorInfo({ 2, 3, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 3>(input2TensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>  {</div><div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>  13.0f, 14.0f, 50.0f,</div><div class="line"><a name="l01341"></a><span class="lineno"> 1341</span> </div><div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>  15.0f, 16.0f, 51.0f,</div><div class="line"><a name="l01344"></a><span class="lineno"> 1344</span> </div><div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>  17.0f, 18.0f, 52.0f,</div><div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> </div><div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>  31.0f, 32.0f, 53.0f,</div><div class="line"><a name="l01350"></a><span class="lineno"> 1350</span> </div><div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>  33.0f, 34.0f, 54.0f,</div><div class="line"><a name="l01353"></a><span class="lineno"> 1353</span> </div><div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>  35.0f, 36.0f, 55.0f,</div><div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>  },</div><div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>  qScale, qOffset));</div><div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div><div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 2, 3, 6 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result(outputTensorInfo);</div><div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> </div><div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>  std::vector<T> output;</div><div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>  { input0TensorInfo, input1TensorInfo, input2TensorInfo },</div><div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>  outputTensorInfo,</div><div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>  output.data(),</div><div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>  2,</div><div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>  useSubtensor);</div><div class="line"><a name="l01371"></a><span class="lineno"> 1371</span> </div><div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>  result.output = MakeTensor<T, 3>(outputTensorInfo, output);</div><div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>  result.outputExpected = MakeTensor<T, 3>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>  {</div><div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>  1.0f, 2.0f, 7.0f, 13.0f, 14.0f, 50.0f,</div><div class="line"><a name="l01377"></a><span class="lineno"> 1377</span> </div><div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>  3.0f, 4.0f, 9.0f, 15.0f, 16.0f, 51.0f,</div><div class="line"><a name="l01380"></a><span class="lineno"> 1380</span> </div><div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>  5.0f, 6.0f, 11.0f, 17.0f, 18.0f, 52.0f,</div><div class="line"><a name="l01383"></a><span class="lineno"> 1383</span> </div><div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>  19.0f, 20.0f, 25.0f, 31.0f, 32.0f, 53.0f,</div><div class="line"><a name="l01386"></a><span class="lineno"> 1386</span> </div><div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>  21.0f, 22.0f, 27.0f, 33.0f, 34.0f, 54.0f,</div><div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> </div><div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>  23.0f, 24.0f, 29.0f, 35.0f, 36.0f, 55.0f,</div><div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>  },</div><div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>  qScale, qOffset));</div><div class="line"><a name="l01394"></a><span class="lineno"> 1394</span> </div><div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01396"></a><span class="lineno"> 1396</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> |
| 1371 | <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> |
| 1372 | </div><!-- fragment --> |
| 1373 | </div> |
| 1374 | </div> |
| 1375 | <a id="a6a0578f5cabc3b13c8800066d094f08b"></a> |
| 1376 | <h2 class="memtitle"><span class="permalink"><a href="#a6a0578f5cabc3b13c8800066d094f08b">◆ </a></span>Concat3dDim2DiffInputDimsUint8Test()</h2> |
| 1377 | |
| 1378 | <div class="memitem"> |
| 1379 | <div class="memproto"> |
| 1380 | <table class="memname"> |
| 1381 | <tr> |
| 1382 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> Concat3dDim2DiffInputDimsUint8Test </td> |
| 1383 | <td>(</td> |
| 1384 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1385 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1386 | </tr> |
| 1387 | <tr> |
| 1388 | <td class="paramkey"></td> |
| 1389 | <td></td> |
| 1390 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1391 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1392 | </tr> |
| 1393 | <tr> |
| 1394 | <td class="paramkey"></td> |
| 1395 | <td></td> |
| 1396 | <td class="paramtype">bool </td> |
| 1397 | <td class="paramname"><em>useSubtensor</em> </td> |
| 1398 | </tr> |
| 1399 | <tr> |
| 1400 | <td></td> |
| 1401 | <td>)</td> |
| 1402 | <td></td><td></td> |
| 1403 | </tr> |
| 1404 | </table> |
| 1405 | </div><div class="memdoc"> |
| 1406 | |
| 1407 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02838">2838</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1408 | <div class="fragment"><div class="line"><a name="l02842"></a><span class="lineno"> 2842</span> {</div><div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>  <span class="keywordflow">return</span> Concat3dDim2DiffInputDimsTestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>  workloadFactory, memoryManager, useSubtensor, 0.5f, -1);</div><div class="line"><a name="l02845"></a><span class="lineno"> 2845</span> }</div></div><!-- fragment --> |
| 1409 | </div> |
| 1410 | </div> |
| 1411 | <a id="ade318c9975477ee7bab3d230baf8d48a"></a> |
| 1412 | <h2 class="memtitle"><span class="permalink"><a href="#ade318c9975477ee7bab3d230baf8d48a">◆ </a></span>Concat3dDim2Test()</h2> |
| 1413 | |
| 1414 | <div class="memitem"> |
| 1415 | <div class="memproto"> |
| 1416 | <table class="memname"> |
| 1417 | <tr> |
| 1418 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 3> Concat3dDim2Test </td> |
| 1419 | <td>(</td> |
| 1420 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1421 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1422 | </tr> |
| 1423 | <tr> |
| 1424 | <td class="paramkey"></td> |
| 1425 | <td></td> |
| 1426 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1427 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1428 | </tr> |
| 1429 | <tr> |
| 1430 | <td class="paramkey"></td> |
| 1431 | <td></td> |
| 1432 | <td class="paramtype">bool </td> |
| 1433 | <td class="paramname"><em>useSubtensor</em> </td> |
| 1434 | </tr> |
| 1435 | <tr> |
| 1436 | <td></td> |
| 1437 | <td>)</td> |
| 1438 | <td></td><td></td> |
| 1439 | </tr> |
| 1440 | </table> |
| 1441 | </div><div class="memdoc"> |
| 1442 | |
| 1443 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02246">2246</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1444 | <div class="fragment"><div class="line"><a name="l02250"></a><span class="lineno"> 2250</span> {</div><div class="line"><a name="l02251"></a><span class="lineno"> 2251</span>  <span class="keywordflow">return</span> Concat3dDim2TestImpl<DataType::Float32>(workloadFactory, memoryManager, useSubtensor, 0.0f, 0);</div><div class="line"><a name="l02252"></a><span class="lineno"> 2252</span> }</div></div><!-- fragment --> |
| 1445 | </div> |
| 1446 | </div> |
| 1447 | <a id="a89188ab52e61bc27b6e6bc4ccc81a413"></a> |
| 1448 | <h2 class="memtitle"><span class="permalink"><a href="#a89188ab52e61bc27b6e6bc4ccc81a413">◆ </a></span>Concat3dDim2TestImpl()</h2> |
| 1449 | |
| 1450 | <div class="memitem"> |
| 1451 | <div class="memproto"> |
| 1452 | <table class="memname"> |
| 1453 | <tr> |
| 1454 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dDim2TestImpl </td> |
| 1455 | <td>(</td> |
| 1456 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1457 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1458 | </tr> |
| 1459 | <tr> |
| 1460 | <td class="paramkey"></td> |
| 1461 | <td></td> |
| 1462 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1463 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1464 | </tr> |
| 1465 | <tr> |
| 1466 | <td class="paramkey"></td> |
| 1467 | <td></td> |
| 1468 | <td class="paramtype">bool </td> |
| 1469 | <td class="paramname"><em>useSubtensor</em>, </td> |
| 1470 | </tr> |
| 1471 | <tr> |
| 1472 | <td class="paramkey"></td> |
| 1473 | <td></td> |
| 1474 | <td class="paramtype">float </td> |
| 1475 | <td class="paramname"><em>qScale</em>, </td> |
| 1476 | </tr> |
| 1477 | <tr> |
| 1478 | <td class="paramkey"></td> |
| 1479 | <td></td> |
| 1480 | <td class="paramtype">int32_t </td> |
| 1481 | <td class="paramname"><em>qOffset</em> </td> |
| 1482 | </tr> |
| 1483 | <tr> |
| 1484 | <td></td> |
| 1485 | <td>)</td> |
| 1486 | <td></td><td></td> |
| 1487 | </tr> |
| 1488 | </table> |
| 1489 | </div><div class="memdoc"> |
| 1490 | |
| 1491 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00955">955</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1492 | |
| 1493 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 1494 | <div class="fragment"><div class="line"><a name="l00961"></a><span class="lineno"> 961</span> {</div><div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 2, 3, 6 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00963"></a><span class="lineno"> 963</span> </div><div class="line"><a name="l00964"></a><span class="lineno"> 964</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result = Concat3dTestImpl<ArmnnType>(</div><div class="line"><a name="l00965"></a><span class="lineno"> 965</span>  workloadFactory, memoryManager, outputTensorInfo, 2, useSubtensor, qScale, qOffset);</div><div class="line"><a name="l00966"></a><span class="lineno"> 966</span> </div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 3>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00968"></a><span class="lineno"> 968</span>  {</div><div class="line"><a name="l00969"></a><span class="lineno"> 969</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l00970"></a><span class="lineno"> 970</span>  1.0f, 2.0f, 7.0f, 8.0f, 13.0f, 14.0f,</div><div class="line"><a name="l00971"></a><span class="lineno"> 971</span> </div><div class="line"><a name="l00972"></a><span class="lineno"> 972</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l00973"></a><span class="lineno"> 973</span>  3.0f, 4.0f, 9.0f, 10.0f, 15.0f, 16.0f,</div><div class="line"><a name="l00974"></a><span class="lineno"> 974</span> </div><div class="line"><a name="l00975"></a><span class="lineno"> 975</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  5.0f, 6.0f, 11.0f, 12.0f, 17.0f, 18.0f,</div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span> </div><div class="line"><a name="l00978"></a><span class="lineno"> 978</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span>  19.0f, 20.0f, 25.0f, 26.0f, 31.0f, 32.0f,</div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span> </div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>  21.0f, 22.0f, 27.0f, 28.0f, 33.0f, 34.0f,</div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span> </div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span>  23.0f, 24.0f, 29.0f, 30.0f, 35.0f, 36.0f,</div><div class="line"><a name="l00986"></a><span class="lineno"> 986</span>  },</div><div class="line"><a name="l00987"></a><span class="lineno"> 987</span>  qScale, qOffset));</div><div class="line"><a name="l00988"></a><span class="lineno"> 988</span> </div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</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> |
| 1495 | <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> |
| 1496 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 1497 | </div><!-- fragment --> |
| 1498 | </div> |
| 1499 | </div> |
| 1500 | <a id="a75091ca6eb52deea2ce14ad8f6261236"></a> |
| 1501 | <h2 class="memtitle"><span class="permalink"><a href="#a75091ca6eb52deea2ce14ad8f6261236">◆ </a></span>Concat3dDim2Uint8Test()</h2> |
| 1502 | |
| 1503 | <div class="memitem"> |
| 1504 | <div class="memproto"> |
| 1505 | <table class="memname"> |
| 1506 | <tr> |
| 1507 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> Concat3dDim2Uint8Test </td> |
| 1508 | <td>(</td> |
| 1509 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1510 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1511 | </tr> |
| 1512 | <tr> |
| 1513 | <td class="paramkey"></td> |
| 1514 | <td></td> |
| 1515 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1516 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1517 | </tr> |
| 1518 | <tr> |
| 1519 | <td class="paramkey"></td> |
| 1520 | <td></td> |
| 1521 | <td class="paramtype">bool </td> |
| 1522 | <td class="paramname"><em>useSubtensor</em> </td> |
| 1523 | </tr> |
| 1524 | <tr> |
| 1525 | <td></td> |
| 1526 | <td>)</td> |
| 1527 | <td></td><td></td> |
| 1528 | </tr> |
| 1529 | </table> |
| 1530 | </div><div class="memdoc"> |
| 1531 | |
| 1532 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02814">2814</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1533 | <div class="fragment"><div class="line"><a name="l02818"></a><span class="lineno"> 2818</span> {</div><div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>  <span class="keywordflow">return</span> Concat3dDim2TestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>  workloadFactory, memoryManager, useSubtensor, 0.5f, -1);</div><div class="line"><a name="l02821"></a><span class="lineno"> 2821</span> }</div></div><!-- fragment --> |
| 1534 | </div> |
| 1535 | </div> |
| 1536 | <a id="a7fbe775cdbc1967d651a97702a0eb08f"></a> |
| 1537 | <h2 class="memtitle"><span class="permalink"><a href="#a7fbe775cdbc1967d651a97702a0eb08f">◆ </a></span>Concat3dTestImpl()</h2> |
| 1538 | |
| 1539 | <div class="memitem"> |
| 1540 | <div class="memproto"> |
| 1541 | <table class="memname"> |
| 1542 | <tr> |
| 1543 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> Concat3dTestImpl </td> |
| 1544 | <td>(</td> |
| 1545 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1546 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1547 | </tr> |
| 1548 | <tr> |
| 1549 | <td class="paramkey"></td> |
| 1550 | <td></td> |
| 1551 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1552 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1553 | </tr> |
| 1554 | <tr> |
| 1555 | <td class="paramkey"></td> |
| 1556 | <td></td> |
| 1557 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 1558 | <td class="paramname"><em>outputTensorInfo</em>, </td> |
| 1559 | </tr> |
| 1560 | <tr> |
| 1561 | <td class="paramkey"></td> |
| 1562 | <td></td> |
| 1563 | <td class="paramtype">unsigned int </td> |
| 1564 | <td class="paramname"><em>dimension</em>, </td> |
| 1565 | </tr> |
| 1566 | <tr> |
| 1567 | <td class="paramkey"></td> |
| 1568 | <td></td> |
| 1569 | <td class="paramtype">bool </td> |
| 1570 | <td class="paramname"><em>useSubtensor</em>, </td> |
| 1571 | </tr> |
| 1572 | <tr> |
| 1573 | <td class="paramkey"></td> |
| 1574 | <td></td> |
| 1575 | <td class="paramtype">float </td> |
| 1576 | <td class="paramname"><em>qScale</em>, </td> |
| 1577 | </tr> |
| 1578 | <tr> |
| 1579 | <td class="paramkey"></td> |
| 1580 | <td></td> |
| 1581 | <td class="paramtype">int32_t </td> |
| 1582 | <td class="paramname"><em>qOffset</em> </td> |
| 1583 | </tr> |
| 1584 | <tr> |
| 1585 | <td></td> |
| 1586 | <td>)</td> |
| 1587 | <td></td><td></td> |
| 1588 | </tr> |
| 1589 | </table> |
| 1590 | </div><div class="memdoc"> |
| 1591 | |
| 1592 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00715">715</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1593 | |
| 1594 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00093">TensorInfo::GetNumElements()</a>, and <a class="el" href="_layer_test_result_8hpp_source.html#l00040">LayerTestResult< T, n >::output</a>.</p> |
| 1595 | <div class="fragment"><div class="line"><a name="l00723"></a><span class="lineno"> 723</span> {</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo({ 2, 3, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span> </div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 3>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  {</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  1.0f, 2.0f,</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span> </div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  3.0f, 4.0f,</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span> </div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  5.0f, 6.0f,</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span> </div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  19.0f, 20.0f,</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span> </div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  21.0f, 22.0f,</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span> </div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  23.0f, 24.0f</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  },</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  qScale, qOffset));</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span> </div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 3>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  {</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  7.0f, 8.0f,</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span> </div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  9.0f, 10.0f,</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span> </div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  11.0f, 12.0f,</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span> </div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  25.0f, 26.0f,</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span> </div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  27.0f, 28.0f,</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span> </div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  29.0f, 30.0f</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  },</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  qScale, qOffset));</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span> </div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 3>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  {</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  <span class="comment">// Batch 0, Channel 0</span></div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  13.0f, 14.0f,</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span> </div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <span class="comment">// Batch 0, Channel 1</span></div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  15.0f, 16.0f,</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span> </div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span>  <span class="comment">// Batch 0, Channel 2</span></div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  17.0f, 18.0f,</div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span> </div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  <span class="comment">// Batch 1, Channel 0</span></div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  31.0f, 32.0f,</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span> </div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  <span class="comment">// Batch 1, Channel 1</span></div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  33.0f, 34.0f,</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span> </div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  <span class="comment">// Batch 1, Channel 2</span></div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  35.0f, 36.0f</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  },</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  qScale, qOffset));</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span> </div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> result(outputTensorInfo);</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span> </div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  std::vector<T> output;</div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  output.resize(outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  Concatenate<T>(workloadFactory, memoryManager,</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span>  { inputTensorInfo, inputTensorInfo, inputTensorInfo },</div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span>  { input0.data(), input1.data(), input2.data() },</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>  outputTensorInfo,</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  output.data(),</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  dimension,</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  useSubtensor);</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span> </div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  result.output = MakeTensor<T, 3>(outputTensorInfo, output);</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00806"></a><span class="lineno"> 806</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> |
| 1596 | <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> |
| 1597 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 1598 | </div><!-- fragment --> |
| 1599 | </div> |
| 1600 | </div> |
| 1601 | <a id="a9199f32df2745143e544e703c2380dd4"></a> |
| 1602 | <h2 class="memtitle"><span class="permalink"><a href="#a9199f32df2745143e544e703c2380dd4">◆ </a></span>Concat4dDiffShapeDim0Test()</h2> |
| 1603 | |
| 1604 | <div class="memitem"> |
| 1605 | <div class="memproto"> |
| 1606 | <table class="memname"> |
| 1607 | <tr> |
| 1608 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDiffShapeDim0Test </td> |
| 1609 | <td>(</td> |
| 1610 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1611 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1612 | </tr> |
| 1613 | <tr> |
| 1614 | <td class="paramkey"></td> |
| 1615 | <td></td> |
| 1616 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1617 | <td class="paramname"><em>memoryManager</em> </td> |
| 1618 | </tr> |
| 1619 | <tr> |
| 1620 | <td></td> |
| 1621 | <td>)</td> |
| 1622 | <td></td><td></td> |
| 1623 | </tr> |
| 1624 | </table> |
| 1625 | </div><div class="memdoc"> |
| 1626 | |
| 1627 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02307">2307</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1628 | <div class="fragment"><div class="line"><a name="l02310"></a><span class="lineno"> 2310</span> {</div><div class="line"><a name="l02311"></a><span class="lineno"> 2311</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim0TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02312"></a><span class="lineno"> 2312</span> }</div></div><!-- fragment --> |
| 1629 | </div> |
| 1630 | </div> |
| 1631 | <a id="a00d88e24db4f4af21b6ba36d206a296c"></a> |
| 1632 | <h2 class="memtitle"><span class="permalink"><a href="#a00d88e24db4f4af21b6ba36d206a296c">◆ </a></span>Concat4dDiffShapeDim0TestImpl()</h2> |
| 1633 | |
| 1634 | <div class="memitem"> |
| 1635 | <div class="memproto"> |
| 1636 | <table class="memname"> |
| 1637 | <tr> |
| 1638 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDiffShapeDim0TestImpl </td> |
| 1639 | <td>(</td> |
| 1640 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1641 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1642 | </tr> |
| 1643 | <tr> |
| 1644 | <td class="paramkey"></td> |
| 1645 | <td></td> |
| 1646 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1647 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1648 | </tr> |
| 1649 | <tr> |
| 1650 | <td class="paramkey"></td> |
| 1651 | <td></td> |
| 1652 | <td class="paramtype">float </td> |
| 1653 | <td class="paramname"><em>qScale</em>, </td> |
| 1654 | </tr> |
| 1655 | <tr> |
| 1656 | <td class="paramkey"></td> |
| 1657 | <td></td> |
| 1658 | <td class="paramtype">int32_t </td> |
| 1659 | <td class="paramname"><em>qOffset</em> </td> |
| 1660 | </tr> |
| 1661 | <tr> |
| 1662 | <td></td> |
| 1663 | <td>)</td> |
| 1664 | <td></td><td></td> |
| 1665 | </tr> |
| 1666 | </table> |
| 1667 | </div><div class="memdoc"> |
| 1668 | |
| 1669 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01623">1623</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1670 | <div class="fragment"><div class="line"><a name="l01628"></a><span class="lineno"> 1628</span> {</div><div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dimension = 0u;</div><div class="line"><a name="l01630"></a><span class="lineno"> 1630</span> </div><div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo0({ 1, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 4>(inputTensorInfo0, QuantizedVector<T>(</div><div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>  {</div><div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>  1.0f, 2.0f,</div><div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>  3.0f, 4.0f,</div><div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>  5.0f, 6.0f,</div><div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>  7.0f, 8.0f,</div><div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>  9.0f, 10.0f,</div><div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>  11.0f, 12.0f</div><div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>  },</div><div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>  qScale, qOffset));</div><div class="line"><a name="l01642"></a><span class="lineno"> 1642</span> </div><div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ 2, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01644"></a><span class="lineno"> 1644</span> </div><div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 4>(inputTensorInfo1, QuantizedVector<T>(</div><div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>  {</div><div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>  11.0f, 12.0f,</div><div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>  13.0f, 14.0f,</div><div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>  15.0f, 16.0f,</div><div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>  17.0f, 18.0f,</div><div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>  19.0f, 20.0f,</div><div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>  21.0f, 22.0f,</div><div class="line"><a name="l01653"></a><span class="lineno"> 1653</span> </div><div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>  21.0f, 22.0f,</div><div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>  23.0f, 24.0f,</div><div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>  25.0f, 26.0f,</div><div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>  27.0f, 28.0f,</div><div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>  29.0f, 30.0f,</div><div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>  31.0f, 32.0f</div><div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>  },</div><div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>  qScale, qOffset));</div><div class="line"><a name="l01662"></a><span class="lineno"> 1662</span> </div><div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 3, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01664"></a><span class="lineno"> 1664</span> </div><div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result(outputTensorInfo);</div><div class="line"><a name="l01666"></a><span class="lineno"> 1666</span> </div><div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>  std::vector<T> output;</div><div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>  Concatenate<T>(workloadFactory,</div><div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>  memoryManager,</div><div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>  {inputTensorInfo0, inputTensorInfo1},</div><div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>  {input0.data(), input1.data()},</div><div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>  outputTensorInfo,</div><div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>  output.data(),</div><div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>  dimension,</div><div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l01677"></a><span class="lineno"> 1677</span> </div><div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>  result.output = MakeTensor<T, 4>(outputTensorInfo, output);</div><div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>  result.outputExpected = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>  {</div><div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>  1.0f, 2.0f,</div><div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>  3.0f, 4.0f,</div><div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>  5.0f, 6.0f,</div><div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>  7.0f, 8.0f,</div><div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>  9.0f, 10.0f,</div><div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>  11.0f, 12.0f,</div><div class="line"><a name="l01687"></a><span class="lineno"> 1687</span> </div><div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>  11.0f, 12.0f,</div><div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>  13.0f, 14.0f,</div><div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>  15.0f, 16.0f,</div><div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>  17.0f, 18.0f,</div><div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>  19.0f, 20.0f,</div><div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>  21.0f, 22.0f,</div><div class="line"><a name="l01694"></a><span class="lineno"> 1694</span> </div><div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>  21.0f, 22.0f,</div><div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>  23.0f, 24.0f,</div><div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>  25.0f, 26.0f,</div><div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>  27.0f, 28.0f,</div><div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>  29.0f, 30.0f,</div><div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>  31.0f, 32.0f</div><div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>  },</div><div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>  qScale, qOffset));</div><div class="line"><a name="l01703"></a><span class="lineno"> 1703</span> </div><div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01705"></a><span class="lineno"> 1705</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> |
| 1671 | <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> |
| 1672 | </div><!-- fragment --> |
| 1673 | </div> |
| 1674 | </div> |
| 1675 | <a id="a39a5321f36681cf1b7bbea885a0ccce9"></a> |
| 1676 | <h2 class="memtitle"><span class="permalink"><a href="#a39a5321f36681cf1b7bbea885a0ccce9">◆ </a></span>Concat4dDiffShapeDim0Uint8Test()</h2> |
| 1677 | |
| 1678 | <div class="memitem"> |
| 1679 | <div class="memproto"> |
| 1680 | <table class="memname"> |
| 1681 | <tr> |
| 1682 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDiffShapeDim0Uint8Test </td> |
| 1683 | <td>(</td> |
| 1684 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1685 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1686 | </tr> |
| 1687 | <tr> |
| 1688 | <td class="paramkey"></td> |
| 1689 | <td></td> |
| 1690 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1691 | <td class="paramname"><em>memoryManager</em> </td> |
| 1692 | </tr> |
| 1693 | <tr> |
| 1694 | <td></td> |
| 1695 | <td>)</td> |
| 1696 | <td></td><td></td> |
| 1697 | </tr> |
| 1698 | </table> |
| 1699 | </div><div class="memdoc"> |
| 1700 | |
| 1701 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02876">2876</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1702 | <div class="fragment"><div class="line"><a name="l02879"></a><span class="lineno"> 2879</span> {</div><div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim0TestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>  workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02882"></a><span class="lineno"> 2882</span> }</div></div><!-- fragment --> |
| 1703 | </div> |
| 1704 | </div> |
| 1705 | <a id="aa40068e0a65840e70b2da4902a0f47da"></a> |
| 1706 | <h2 class="memtitle"><span class="permalink"><a href="#aa40068e0a65840e70b2da4902a0f47da">◆ </a></span>Concat4dDiffShapeDim1Test()</h2> |
| 1707 | |
| 1708 | <div class="memitem"> |
| 1709 | <div class="memproto"> |
| 1710 | <table class="memname"> |
| 1711 | <tr> |
| 1712 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDiffShapeDim1Test </td> |
| 1713 | <td>(</td> |
| 1714 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1715 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1716 | </tr> |
| 1717 | <tr> |
| 1718 | <td class="paramkey"></td> |
| 1719 | <td></td> |
| 1720 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1721 | <td class="paramname"><em>memoryManager</em> </td> |
| 1722 | </tr> |
| 1723 | <tr> |
| 1724 | <td></td> |
| 1725 | <td>)</td> |
| 1726 | <td></td><td></td> |
| 1727 | </tr> |
| 1728 | </table> |
| 1729 | </div><div class="memdoc"> |
| 1730 | |
| 1731 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02314">2314</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1732 | <div class="fragment"><div class="line"><a name="l02317"></a><span class="lineno"> 2317</span> {</div><div class="line"><a name="l02318"></a><span class="lineno"> 2318</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim1TestImpl<DataType::Float32>(</div><div class="line"><a name="l02319"></a><span class="lineno"> 2319</span>  workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02320"></a><span class="lineno"> 2320</span> }</div></div><!-- fragment --> |
| 1733 | </div> |
| 1734 | </div> |
| 1735 | <a id="afca22d4151120b94ca2c68c662193cc1"></a> |
| 1736 | <h2 class="memtitle"><span class="permalink"><a href="#afca22d4151120b94ca2c68c662193cc1">◆ </a></span>Concat4dDiffShapeDim1TestImpl()</h2> |
| 1737 | |
| 1738 | <div class="memitem"> |
| 1739 | <div class="memproto"> |
| 1740 | <table class="memname"> |
| 1741 | <tr> |
| 1742 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDiffShapeDim1TestImpl </td> |
| 1743 | <td>(</td> |
| 1744 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1745 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1746 | </tr> |
| 1747 | <tr> |
| 1748 | <td class="paramkey"></td> |
| 1749 | <td></td> |
| 1750 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1751 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1752 | </tr> |
| 1753 | <tr> |
| 1754 | <td class="paramkey"></td> |
| 1755 | <td></td> |
| 1756 | <td class="paramtype">float </td> |
| 1757 | <td class="paramname"><em>qScale</em>, </td> |
| 1758 | </tr> |
| 1759 | <tr> |
| 1760 | <td class="paramkey"></td> |
| 1761 | <td></td> |
| 1762 | <td class="paramtype">int32_t </td> |
| 1763 | <td class="paramname"><em>qOffset</em> </td> |
| 1764 | </tr> |
| 1765 | <tr> |
| 1766 | <td></td> |
| 1767 | <td>)</td> |
| 1768 | <td></td><td></td> |
| 1769 | </tr> |
| 1770 | </table> |
| 1771 | </div><div class="memdoc"> |
| 1772 | |
| 1773 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01708">1708</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1774 | <div class="fragment"><div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> {</div><div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dimension = 1u;</div><div class="line"><a name="l01715"></a><span class="lineno"> 1715</span> </div><div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo0({ 1, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 4>(inputTensorInfo0, QuantizedVector<T>(</div><div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>  {</div><div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>  1.0f, 2.0f,</div><div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>  3.0f, 4.0f,</div><div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>  5.0f, 6.0f,</div><div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>  7.0f, 8.0f,</div><div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>  9.0f, 10.0f,</div><div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>  11.0f, 12.0f</div><div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>  },</div><div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>  qScale, qOffset));</div><div class="line"><a name="l01727"></a><span class="lineno"> 1727</span> </div><div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ 1, 2, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01729"></a><span class="lineno"> 1729</span> </div><div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 4>(inputTensorInfo1, QuantizedVector<T>(</div><div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>  {</div><div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>  11.0f, 12.0f,</div><div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>  13.0f, 14.0f,</div><div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>  15.0f, 16.0f,</div><div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>  17.0f, 18.0f,</div><div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>  },</div><div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>  qScale, qOffset));</div><div class="line"><a name="l01738"></a><span class="lineno"> 1738</span> </div><div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 1, 5, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01740"></a><span class="lineno"> 1740</span> </div><div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result(outputTensorInfo);</div><div class="line"><a name="l01742"></a><span class="lineno"> 1742</span> </div><div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>  std::vector<T> output;</div><div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>  Concatenate<T>(workloadFactory,</div><div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>  memoryManager,</div><div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>  {inputTensorInfo0, inputTensorInfo1},</div><div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>  {input0.data(), input1.data()},</div><div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>  outputTensorInfo,</div><div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>  output.data(),</div><div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>  dimension,</div><div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l01753"></a><span class="lineno"> 1753</span> </div><div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>  result.output = MakeTensor<T, 4>(outputTensorInfo, output);</div><div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>  result.outputExpected = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>  {</div><div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>  1.0f, 2.0f,</div><div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>  3.0f, 4.0f,</div><div class="line"><a name="l01759"></a><span class="lineno"> 1759</span>  5.0f, 6.0f,</div><div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>  7.0f, 8.0f,</div><div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>  9.0f, 10.0f,</div><div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>  11.0f, 12.0f,</div><div class="line"><a name="l01763"></a><span class="lineno"> 1763</span>  11.0f, 12.0f,</div><div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>  13.0f, 14.0f,</div><div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>  15.0f, 16.0f,</div><div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>  17.0f, 18.0f</div><div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>  },</div><div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>  qScale, qOffset));</div><div class="line"><a name="l01769"></a><span class="lineno"> 1769</span> </div><div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01771"></a><span class="lineno"> 1771</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> |
| 1775 | <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> |
| 1776 | </div><!-- fragment --> |
| 1777 | </div> |
| 1778 | </div> |
| 1779 | <a id="af5b51da08139262f68be752047e1b94c"></a> |
| 1780 | <h2 class="memtitle"><span class="permalink"><a href="#af5b51da08139262f68be752047e1b94c">◆ </a></span>Concat4dDiffShapeDim1Uint8Test()</h2> |
| 1781 | |
| 1782 | <div class="memitem"> |
| 1783 | <div class="memproto"> |
| 1784 | <table class="memname"> |
| 1785 | <tr> |
| 1786 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDiffShapeDim1Uint8Test </td> |
| 1787 | <td>(</td> |
| 1788 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1789 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1790 | </tr> |
| 1791 | <tr> |
| 1792 | <td class="paramkey"></td> |
| 1793 | <td></td> |
| 1794 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1795 | <td class="paramname"><em>memoryManager</em> </td> |
| 1796 | </tr> |
| 1797 | <tr> |
| 1798 | <td></td> |
| 1799 | <td>)</td> |
| 1800 | <td></td><td></td> |
| 1801 | </tr> |
| 1802 | </table> |
| 1803 | </div><div class="memdoc"> |
| 1804 | |
| 1805 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02884">2884</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1806 | <div class="fragment"><div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> {</div><div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim1TestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>  workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02890"></a><span class="lineno"> 2890</span> }</div></div><!-- fragment --> |
| 1807 | </div> |
| 1808 | </div> |
| 1809 | <a id="ab7261b2e00a06881f0c8bf3e2ecbff19"></a> |
| 1810 | <h2 class="memtitle"><span class="permalink"><a href="#ab7261b2e00a06881f0c8bf3e2ecbff19">◆ </a></span>Concat4dDiffShapeDim2Test()</h2> |
| 1811 | |
| 1812 | <div class="memitem"> |
| 1813 | <div class="memproto"> |
| 1814 | <table class="memname"> |
| 1815 | <tr> |
| 1816 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDiffShapeDim2Test </td> |
| 1817 | <td>(</td> |
| 1818 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1819 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1820 | </tr> |
| 1821 | <tr> |
| 1822 | <td class="paramkey"></td> |
| 1823 | <td></td> |
| 1824 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1825 | <td class="paramname"><em>memoryManager</em> </td> |
| 1826 | </tr> |
| 1827 | <tr> |
| 1828 | <td></td> |
| 1829 | <td>)</td> |
| 1830 | <td></td><td></td> |
| 1831 | </tr> |
| 1832 | </table> |
| 1833 | </div><div class="memdoc"> |
| 1834 | |
| 1835 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02322">2322</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1836 | <div class="fragment"><div class="line"><a name="l02325"></a><span class="lineno"> 2325</span> {</div><div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim2TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02327"></a><span class="lineno"> 2327</span> }</div></div><!-- fragment --> |
| 1837 | </div> |
| 1838 | </div> |
| 1839 | <a id="a75ce8fbfdee084faa855d8e61d09b56d"></a> |
| 1840 | <h2 class="memtitle"><span class="permalink"><a href="#a75ce8fbfdee084faa855d8e61d09b56d">◆ </a></span>Concat4dDiffShapeDim2TestImpl()</h2> |
| 1841 | |
| 1842 | <div class="memitem"> |
| 1843 | <div class="memproto"> |
| 1844 | <table class="memname"> |
| 1845 | <tr> |
| 1846 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDiffShapeDim2TestImpl </td> |
| 1847 | <td>(</td> |
| 1848 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1849 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1850 | </tr> |
| 1851 | <tr> |
| 1852 | <td class="paramkey"></td> |
| 1853 | <td></td> |
| 1854 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1855 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1856 | </tr> |
| 1857 | <tr> |
| 1858 | <td class="paramkey"></td> |
| 1859 | <td></td> |
| 1860 | <td class="paramtype">float </td> |
| 1861 | <td class="paramname"><em>qScale</em>, </td> |
| 1862 | </tr> |
| 1863 | <tr> |
| 1864 | <td class="paramkey"></td> |
| 1865 | <td></td> |
| 1866 | <td class="paramtype">int32_t </td> |
| 1867 | <td class="paramname"><em>qOffset</em> </td> |
| 1868 | </tr> |
| 1869 | <tr> |
| 1870 | <td></td> |
| 1871 | <td>)</td> |
| 1872 | <td></td><td></td> |
| 1873 | </tr> |
| 1874 | </table> |
| 1875 | </div><div class="memdoc"> |
| 1876 | |
| 1877 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01774">1774</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1878 | <div class="fragment"><div class="line"><a name="l01779"></a><span class="lineno"> 1779</span> {</div><div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dimension = 2u;</div><div class="line"><a name="l01781"></a><span class="lineno"> 1781</span> </div><div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo0({ 1, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 4>(inputTensorInfo0, QuantizedVector<T>(</div><div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>  {</div><div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>  1.0f, 2.0f,</div><div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>  3.0f, 4.0f,</div><div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>  5.0f, 6.0f,</div><div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>  7.0f, 8.0f,</div><div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>  9.0f, 10.0f,</div><div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>  11.0f, 12.0f</div><div class="line"><a name="l01791"></a><span class="lineno"> 1791</span>  },</div><div class="line"><a name="l01792"></a><span class="lineno"> 1792</span>  qScale, qOffset));</div><div class="line"><a name="l01793"></a><span class="lineno"> 1793</span> </div><div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ 1, 3, 3, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 4>(inputTensorInfo1, QuantizedVector<T>(</div><div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>  {</div><div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>  11.0f, 12.0f,</div><div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>  13.0f, 14.0f,</div><div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>  15.0f, 16.0f,</div><div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>  17.0f, 18.0f,</div><div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>  19.0f, 20.0f,</div><div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>  21.0f, 22.0f,</div><div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>  23.0f, 24.0f,</div><div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>  25.0f, 26.0f,</div><div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>  27.0f, 28.0f</div><div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>  },</div><div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>  qScale, qOffset));</div><div class="line"><a name="l01808"></a><span class="lineno"> 1808</span> </div><div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 1, 3, 5, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result(outputTensorInfo);</div><div class="line"><a name="l01811"></a><span class="lineno"> 1811</span> </div><div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>  std::vector<T> output;</div><div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>  Concatenate<T>(workloadFactory,</div><div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>  memoryManager,</div><div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>  {inputTensorInfo0, inputTensorInfo1},</div><div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>  {input0.data(), input1.data()},</div><div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>  outputTensorInfo,</div><div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>  output.data(),</div><div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>  dimension,</div><div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>  <span class="keyword">true</span>);</div><div class="line"><a name="l01822"></a><span class="lineno"> 1822</span> </div><div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>  result.output = MakeTensor<T, 4>(outputTensorInfo, output);</div><div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>  result.outputExpected = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>  {</div><div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>  1.0f, 2.0f,</div><div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>  3.0f, 4.0f,</div><div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>  11.0f, 12.0f,</div><div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>  13.0f, 14.0f,</div><div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>  15.0f, 16.0f,</div><div class="line"><a name="l01831"></a><span class="lineno"> 1831</span> </div><div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>  5.0f, 6.0f,</div><div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>  7.0f, 8.0f,</div><div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>  17.0f, 18.0f,</div><div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>  19.0f, 20.0f,</div><div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>  21.0f, 22.0f,</div><div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> </div><div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>  9.0f, 10.0f,</div><div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>  11.0f, 12.0f,</div><div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>  23.0f, 24.0f,</div><div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>  25.0f, 26.0f,</div><div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>  27.0f, 28.0f</div><div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>  },</div><div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>  qScale, qOffset));</div><div class="line"><a name="l01845"></a><span class="lineno"> 1845</span> </div><div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01847"></a><span class="lineno"> 1847</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> |
| 1879 | <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> |
| 1880 | </div><!-- fragment --> |
| 1881 | </div> |
| 1882 | </div> |
| 1883 | <a id="a4ab1a7c2b554de49ef453e802eaf88a3"></a> |
| 1884 | <h2 class="memtitle"><span class="permalink"><a href="#a4ab1a7c2b554de49ef453e802eaf88a3">◆ </a></span>Concat4dDiffShapeDim2Uint8Test()</h2> |
| 1885 | |
| 1886 | <div class="memitem"> |
| 1887 | <div class="memproto"> |
| 1888 | <table class="memname"> |
| 1889 | <tr> |
| 1890 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDiffShapeDim2Uint8Test </td> |
| 1891 | <td>(</td> |
| 1892 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1893 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1894 | </tr> |
| 1895 | <tr> |
| 1896 | <td class="paramkey"></td> |
| 1897 | <td></td> |
| 1898 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1899 | <td class="paramname"><em>memoryManager</em> </td> |
| 1900 | </tr> |
| 1901 | <tr> |
| 1902 | <td></td> |
| 1903 | <td>)</td> |
| 1904 | <td></td><td></td> |
| 1905 | </tr> |
| 1906 | </table> |
| 1907 | </div><div class="memdoc"> |
| 1908 | |
| 1909 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02892">2892</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1910 | <div class="fragment"><div class="line"><a name="l02895"></a><span class="lineno"> 2895</span> {</div><div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim2TestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02897"></a><span class="lineno"> 2897</span>  workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02898"></a><span class="lineno"> 2898</span> }</div></div><!-- fragment --> |
| 1911 | </div> |
| 1912 | </div> |
| 1913 | <a id="a6323bb2aa7e5a8215d1c38e7e0159d29"></a> |
| 1914 | <h2 class="memtitle"><span class="permalink"><a href="#a6323bb2aa7e5a8215d1c38e7e0159d29">◆ </a></span>Concat4dDiffShapeDim3Test()</h2> |
| 1915 | |
| 1916 | <div class="memitem"> |
| 1917 | <div class="memproto"> |
| 1918 | <table class="memname"> |
| 1919 | <tr> |
| 1920 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDiffShapeDim3Test </td> |
| 1921 | <td>(</td> |
| 1922 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1923 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1924 | </tr> |
| 1925 | <tr> |
| 1926 | <td class="paramkey"></td> |
| 1927 | <td></td> |
| 1928 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1929 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1930 | </tr> |
| 1931 | <tr> |
| 1932 | <td class="paramkey"></td> |
| 1933 | <td></td> |
| 1934 | <td class="paramtype">bool </td> |
| 1935 | <td class="paramname"><em>useSubtensor</em> </td> |
| 1936 | </tr> |
| 1937 | <tr> |
| 1938 | <td></td> |
| 1939 | <td>)</td> |
| 1940 | <td></td><td></td> |
| 1941 | </tr> |
| 1942 | </table> |
| 1943 | </div><div class="memdoc"> |
| 1944 | |
| 1945 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02329">2329</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1946 | <div class="fragment"><div class="line"><a name="l02333"></a><span class="lineno"> 2333</span> {</div><div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim3TestImpl<DataType::Float32>(</div><div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>  workloadFactory, memoryManager, 0.0f, 0, useSubtensor);</div><div class="line"><a name="l02336"></a><span class="lineno"> 2336</span> }</div></div><!-- fragment --> |
| 1947 | </div> |
| 1948 | </div> |
| 1949 | <a id="a6318384f0f00e73bd26e43b7c4ca7735"></a> |
| 1950 | <h2 class="memtitle"><span class="permalink"><a href="#a6318384f0f00e73bd26e43b7c4ca7735">◆ </a></span>Concat4dDiffShapeDim3TestImpl()</h2> |
| 1951 | |
| 1952 | <div class="memitem"> |
| 1953 | <div class="memproto"> |
| 1954 | <table class="memname"> |
| 1955 | <tr> |
| 1956 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDiffShapeDim3TestImpl </td> |
| 1957 | <td>(</td> |
| 1958 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 1959 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 1960 | </tr> |
| 1961 | <tr> |
| 1962 | <td class="paramkey"></td> |
| 1963 | <td></td> |
| 1964 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 1965 | <td class="paramname"><em>memoryManager</em>, </td> |
| 1966 | </tr> |
| 1967 | <tr> |
| 1968 | <td class="paramkey"></td> |
| 1969 | <td></td> |
| 1970 | <td class="paramtype">float </td> |
| 1971 | <td class="paramname"><em>qScale</em>, </td> |
| 1972 | </tr> |
| 1973 | <tr> |
| 1974 | <td class="paramkey"></td> |
| 1975 | <td></td> |
| 1976 | <td class="paramtype">int32_t </td> |
| 1977 | <td class="paramname"><em>qOffset</em>, </td> |
| 1978 | </tr> |
| 1979 | <tr> |
| 1980 | <td class="paramkey"></td> |
| 1981 | <td></td> |
| 1982 | <td class="paramtype">bool </td> |
| 1983 | <td class="paramname"><em>useSubtensor</em> </td> |
| 1984 | </tr> |
| 1985 | <tr> |
| 1986 | <td></td> |
| 1987 | <td>)</td> |
| 1988 | <td></td><td></td> |
| 1989 | </tr> |
| 1990 | </table> |
| 1991 | </div><div class="memdoc"> |
| 1992 | |
| 1993 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01850">1850</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 1994 | <div class="fragment"><div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> {</div><div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>  constexpr <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dimension = 3u;</div><div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> </div><div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo0({ 1, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 4>(inputTensorInfo0, QuantizedVector<T>(</div><div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>  {</div><div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>  1.0f, 2.0f,</div><div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>  3.0f, 4.0f,</div><div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>  5.0f, 6.0f,</div><div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>  7.0f, 8.0f,</div><div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>  9.0f, 10.0f,</div><div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>  11.0f, 12.0f</div><div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>  },</div><div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>  qScale, qOffset));</div><div class="line"><a name="l01870"></a><span class="lineno"> 1870</span> </div><div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ 1, 3, 2, 3 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 4>(inputTensorInfo1, QuantizedVector<T>(</div><div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>  {</div><div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>  11.0f, 12.0f, 13.0f,</div><div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>  14.0f, 15.0f, 16.0f,</div><div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> </div><div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>  17.0f, 18.0f, 19.0f,</div><div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>  20.0f, 21.0f, 22.0f,</div><div class="line"><a name="l01879"></a><span class="lineno"> 1879</span> </div><div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>  23.0f, 24.0f, 25.0f,</div><div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>  26.0f, 27.0f, 28.0f</div><div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>  },</div><div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>  qScale, qOffset));</div><div class="line"><a name="l01884"></a><span class="lineno"> 1884</span> </div><div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 1, 3, 2, 5 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01886"></a><span class="lineno"> 1886</span> </div><div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result(outputTensorInfo);</div><div class="line"><a name="l01888"></a><span class="lineno"> 1888</span> </div><div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>  std::vector<T> output;</div><div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>  output.resize(outputTensorInfo.GetNumElements());</div><div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>  Concatenate<T>(workloadFactory,</div><div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>  memoryManager,</div><div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>  {inputTensorInfo0, inputTensorInfo1},</div><div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>  {input0.data(), input1.data()},</div><div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>  outputTensorInfo,</div><div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>  output.data(),</div><div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>  dimension,</div><div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>  useSubtensor);</div><div class="line"><a name="l01899"></a><span class="lineno"> 1899</span> </div><div class="line"><a name="l01900"></a><span class="lineno"> 1900</span>  result.output = MakeTensor<T, 4>(outputTensorInfo, output);</div><div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>  result.outputExpected = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>  {</div><div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>  1.0f, 2.0f, 11.0f, 12.0f, 13.0f,</div><div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>  3.0f, 4.0f, 14.0f, 15.0f, 16.0f,</div><div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>  5.0f, 6.0f, 17.0f, 18.0f, 19.0f,</div><div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>  7.0f, 8.0f, 20.0f, 21.0f, 22.0f,</div><div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>  9.0f, 10.0f, 23.0f, 24.0f, 25.0f,</div><div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>  11.0f, 12.0f, 26.0f, 27.0f, 28.0f</div><div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>  },</div><div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>  qScale, qOffset));</div><div class="line"><a name="l01911"></a><span class="lineno"> 1911</span> </div><div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01913"></a><span class="lineno"> 1913</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> |
| 1995 | <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> |
| 1996 | </div><!-- fragment --> |
| 1997 | </div> |
| 1998 | </div> |
| 1999 | <a id="a6852f3bb0b5a59260e0f76031e64cb3e"></a> |
| 2000 | <h2 class="memtitle"><span class="permalink"><a href="#a6852f3bb0b5a59260e0f76031e64cb3e">◆ </a></span>Concat4dDiffShapeDim3Uint8Test()</h2> |
| 2001 | |
| 2002 | <div class="memitem"> |
| 2003 | <div class="memproto"> |
| 2004 | <table class="memname"> |
| 2005 | <tr> |
| 2006 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDiffShapeDim3Uint8Test </td> |
| 2007 | <td>(</td> |
| 2008 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2009 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2010 | </tr> |
| 2011 | <tr> |
| 2012 | <td class="paramkey"></td> |
| 2013 | <td></td> |
| 2014 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2015 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2016 | </tr> |
| 2017 | <tr> |
| 2018 | <td class="paramkey"></td> |
| 2019 | <td></td> |
| 2020 | <td class="paramtype">bool </td> |
| 2021 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2022 | </tr> |
| 2023 | <tr> |
| 2024 | <td></td> |
| 2025 | <td>)</td> |
| 2026 | <td></td><td></td> |
| 2027 | </tr> |
| 2028 | </table> |
| 2029 | </div><div class="memdoc"> |
| 2030 | |
| 2031 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02900">2900</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2032 | <div class="fragment"><div class="line"><a name="l02904"></a><span class="lineno"> 2904</span> {</div><div class="line"><a name="l02905"></a><span class="lineno"> 2905</span>  <span class="keywordflow">return</span> Concat4dDiffShapeDim3TestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>  workloadFactory, memoryManager, 0.5f, -1, useSubtensor);</div><div class="line"><a name="l02907"></a><span class="lineno"> 2907</span> }</div></div><!-- fragment --> |
| 2033 | </div> |
| 2034 | </div> |
| 2035 | <a id="a7f29312851dee5f74ed0bffebd5448d2"></a> |
| 2036 | <h2 class="memtitle"><span class="permalink"><a href="#a7f29312851dee5f74ed0bffebd5448d2">◆ </a></span>Concat4dDim0Test()</h2> |
| 2037 | |
| 2038 | <div class="memitem"> |
| 2039 | <div class="memproto"> |
| 2040 | <table class="memname"> |
| 2041 | <tr> |
| 2042 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDim0Test </td> |
| 2043 | <td>(</td> |
| 2044 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2045 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2046 | </tr> |
| 2047 | <tr> |
| 2048 | <td class="paramkey"></td> |
| 2049 | <td></td> |
| 2050 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2051 | <td class="paramname"><em>memoryManager</em> </td> |
| 2052 | </tr> |
| 2053 | <tr> |
| 2054 | <td></td> |
| 2055 | <td>)</td> |
| 2056 | <td></td><td></td> |
| 2057 | </tr> |
| 2058 | </table> |
| 2059 | </div><div class="memdoc"> |
| 2060 | |
| 2061 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02278">2278</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2062 | <div class="fragment"><div class="line"><a name="l02281"></a><span class="lineno"> 2281</span> {</div><div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>  <span class="keywordflow">return</span> Concat4dDim0TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02283"></a><span class="lineno"> 2283</span> }</div></div><!-- fragment --> |
| 2063 | </div> |
| 2064 | </div> |
| 2065 | <a id="a59d4515193d877da62a352fc299d6d0f"></a> |
| 2066 | <h2 class="memtitle"><span class="permalink"><a href="#a59d4515193d877da62a352fc299d6d0f">◆ </a></span>Concat4dDim0TestImpl()</h2> |
| 2067 | |
| 2068 | <div class="memitem"> |
| 2069 | <div class="memproto"> |
| 2070 | <table class="memname"> |
| 2071 | <tr> |
| 2072 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDim0TestImpl </td> |
| 2073 | <td>(</td> |
| 2074 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2075 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2076 | </tr> |
| 2077 | <tr> |
| 2078 | <td class="paramkey"></td> |
| 2079 | <td></td> |
| 2080 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2081 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2082 | </tr> |
| 2083 | <tr> |
| 2084 | <td class="paramkey"></td> |
| 2085 | <td></td> |
| 2086 | <td class="paramtype">float </td> |
| 2087 | <td class="paramname"><em>qScale</em>, </td> |
| 2088 | </tr> |
| 2089 | <tr> |
| 2090 | <td class="paramkey"></td> |
| 2091 | <td></td> |
| 2092 | <td class="paramtype">int32_t </td> |
| 2093 | <td class="paramname"><em>qOffset</em> </td> |
| 2094 | </tr> |
| 2095 | <tr> |
| 2096 | <td></td> |
| 2097 | <td>)</td> |
| 2098 | <td></td><td></td> |
| 2099 | </tr> |
| 2100 | </table> |
| 2101 | </div><div class="memdoc"> |
| 2102 | |
| 2103 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01462">1462</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2104 | |
| 2105 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 2106 | <div class="fragment"><div class="line"><a name="l01467"></a><span class="lineno"> 1467</span> {</div><div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 3, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> </div><div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result = Concat4dTestImpl<ArmnnType>(</div><div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>  workloadFactory, memoryManager, outputTensorInfo, 0, <span class="keyword">true</span>, qScale, qOffset);</div><div class="line"><a name="l01472"></a><span class="lineno"> 1472</span> </div><div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>  {</div><div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>  1.0f, 2.0f,</div><div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>  3.0f, 4.0f,</div><div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>  5.0f, 6.0f,</div><div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>  7.0f, 8.0f,</div><div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>  9.0f, 10.0f,</div><div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>  11.0f, 12.0f,</div><div class="line"><a name="l01481"></a><span class="lineno"> 1481</span> </div><div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>  11.0f, 12.0f,</div><div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>  13.0f, 14.0f,</div><div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>  15.0f, 16.0f,</div><div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>  17.0f, 18.0f,</div><div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>  19.0f, 20.0f,</div><div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>  21.0f, 22.0f,</div><div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> </div><div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>  21.0f, 22.0f,</div><div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>  23.0f, 24.0f,</div><div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>  25.0f, 26.0f,</div><div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>  27.0f, 28.0f,</div><div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>  29.0f, 30.0f,</div><div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>  31.0f, 32.0f</div><div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>  },</div><div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>  qScale, qOffset));</div><div class="line"><a name="l01497"></a><span class="lineno"> 1497</span> </div><div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01499"></a><span class="lineno"> 1499</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> |
| 2107 | <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> |
| 2108 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 2109 | </div><!-- fragment --> |
| 2110 | </div> |
| 2111 | </div> |
| 2112 | <a id="a7b3adb97b81ab7b464c566caa3a231ba"></a> |
| 2113 | <h2 class="memtitle"><span class="permalink"><a href="#a7b3adb97b81ab7b464c566caa3a231ba">◆ </a></span>Concat4dDim0Uint8Test()</h2> |
| 2114 | |
| 2115 | <div class="memitem"> |
| 2116 | <div class="memproto"> |
| 2117 | <table class="memname"> |
| 2118 | <tr> |
| 2119 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDim0Uint8Test </td> |
| 2120 | <td>(</td> |
| 2121 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2122 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2123 | </tr> |
| 2124 | <tr> |
| 2125 | <td class="paramkey"></td> |
| 2126 | <td></td> |
| 2127 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2128 | <td class="paramname"><em>memoryManager</em> </td> |
| 2129 | </tr> |
| 2130 | <tr> |
| 2131 | <td></td> |
| 2132 | <td>)</td> |
| 2133 | <td></td><td></td> |
| 2134 | </tr> |
| 2135 | </table> |
| 2136 | </div><div class="memdoc"> |
| 2137 | |
| 2138 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02847">2847</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2139 | <div class="fragment"><div class="line"><a name="l02850"></a><span class="lineno"> 2850</span> {</div><div class="line"><a name="l02851"></a><span class="lineno"> 2851</span>  <span class="keywordflow">return</span> Concat4dDim0TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02852"></a><span class="lineno"> 2852</span> }</div></div><!-- fragment --> |
| 2140 | </div> |
| 2141 | </div> |
| 2142 | <a id="a1a5bb4ab6841dd39e48089413cf8fe05"></a> |
| 2143 | <h2 class="memtitle"><span class="permalink"><a href="#a1a5bb4ab6841dd39e48089413cf8fe05">◆ </a></span>Concat4dDim1Test()</h2> |
| 2144 | |
| 2145 | <div class="memitem"> |
| 2146 | <div class="memproto"> |
| 2147 | <table class="memname"> |
| 2148 | <tr> |
| 2149 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDim1Test </td> |
| 2150 | <td>(</td> |
| 2151 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2152 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2153 | </tr> |
| 2154 | <tr> |
| 2155 | <td class="paramkey"></td> |
| 2156 | <td></td> |
| 2157 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2158 | <td class="paramname"><em>memoryManager</em> </td> |
| 2159 | </tr> |
| 2160 | <tr> |
| 2161 | <td></td> |
| 2162 | <td>)</td> |
| 2163 | <td></td><td></td> |
| 2164 | </tr> |
| 2165 | </table> |
| 2166 | </div><div class="memdoc"> |
| 2167 | |
| 2168 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02285">2285</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2169 | <div class="fragment"><div class="line"><a name="l02288"></a><span class="lineno"> 2288</span> {</div><div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>  <span class="keywordflow">return</span> Concat4dDim1TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02290"></a><span class="lineno"> 2290</span> }</div></div><!-- fragment --> |
| 2170 | </div> |
| 2171 | </div> |
| 2172 | <a id="ac0a20ee6a32563959bbbbd16358d2a07"></a> |
| 2173 | <h2 class="memtitle"><span class="permalink"><a href="#ac0a20ee6a32563959bbbbd16358d2a07">◆ </a></span>Concat4dDim1TestImpl()</h2> |
| 2174 | |
| 2175 | <div class="memitem"> |
| 2176 | <div class="memproto"> |
| 2177 | <table class="memname"> |
| 2178 | <tr> |
| 2179 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDim1TestImpl </td> |
| 2180 | <td>(</td> |
| 2181 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2182 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2183 | </tr> |
| 2184 | <tr> |
| 2185 | <td class="paramkey"></td> |
| 2186 | <td></td> |
| 2187 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2188 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2189 | </tr> |
| 2190 | <tr> |
| 2191 | <td class="paramkey"></td> |
| 2192 | <td></td> |
| 2193 | <td class="paramtype">float </td> |
| 2194 | <td class="paramname"><em>qScale</em>, </td> |
| 2195 | </tr> |
| 2196 | <tr> |
| 2197 | <td class="paramkey"></td> |
| 2198 | <td></td> |
| 2199 | <td class="paramtype">int32_t </td> |
| 2200 | <td class="paramname"><em>qOffset</em> </td> |
| 2201 | </tr> |
| 2202 | <tr> |
| 2203 | <td></td> |
| 2204 | <td>)</td> |
| 2205 | <td></td><td></td> |
| 2206 | </tr> |
| 2207 | </table> |
| 2208 | </div><div class="memdoc"> |
| 2209 | |
| 2210 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01502">1502</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2211 | |
| 2212 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 2213 | <div class="fragment"><div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> {</div><div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 1, 9, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01509"></a><span class="lineno"> 1509</span> </div><div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result = Concat4dTestImpl<ArmnnType>(</div><div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>  workloadFactory, memoryManager, outputTensorInfo, 1, <span class="keyword">true</span>, qScale, qOffset);</div><div class="line"><a name="l01512"></a><span class="lineno"> 1512</span> </div><div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>  {</div><div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>  1.0f, 2.0f,</div><div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>  3.0f, 4.0f,</div><div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>  5.0f, 6.0f,</div><div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>  7.0f, 8.0f,</div><div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>  9.0f, 10.0f,</div><div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>  11.0f, 12.0f,</div><div class="line"><a name="l01521"></a><span class="lineno"> 1521</span> </div><div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>  11.0f, 12.0f,</div><div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>  13.0f, 14.0f,</div><div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>  15.0f, 16.0f,</div><div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>  17.0f, 18.0f,</div><div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>  19.0f, 20.0f,</div><div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>  21.0f, 22.0f,</div><div class="line"><a name="l01528"></a><span class="lineno"> 1528</span> </div><div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>  21.0f, 22.0f,</div><div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>  23.0f, 24.0f,</div><div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>  25.0f, 26.0f,</div><div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>  27.0f, 28.0f,</div><div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>  29.0f, 30.0f,</div><div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>  31.0f, 32.0f</div><div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>  },</div><div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>  qScale, qOffset));</div><div class="line"><a name="l01537"></a><span class="lineno"> 1537</span> </div><div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01539"></a><span class="lineno"> 1539</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> |
| 2214 | <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> |
| 2215 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 2216 | </div><!-- fragment --> |
| 2217 | </div> |
| 2218 | </div> |
| 2219 | <a id="aa13bf446c9b813c55ce96b49e5a17154"></a> |
| 2220 | <h2 class="memtitle"><span class="permalink"><a href="#aa13bf446c9b813c55ce96b49e5a17154">◆ </a></span>Concat4dDim1Uint8Test()</h2> |
| 2221 | |
| 2222 | <div class="memitem"> |
| 2223 | <div class="memproto"> |
| 2224 | <table class="memname"> |
| 2225 | <tr> |
| 2226 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDim1Uint8Test </td> |
| 2227 | <td>(</td> |
| 2228 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2229 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2230 | </tr> |
| 2231 | <tr> |
| 2232 | <td class="paramkey"></td> |
| 2233 | <td></td> |
| 2234 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2235 | <td class="paramname"><em>memoryManager</em> </td> |
| 2236 | </tr> |
| 2237 | <tr> |
| 2238 | <td></td> |
| 2239 | <td>)</td> |
| 2240 | <td></td><td></td> |
| 2241 | </tr> |
| 2242 | </table> |
| 2243 | </div><div class="memdoc"> |
| 2244 | |
| 2245 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02854">2854</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2246 | <div class="fragment"><div class="line"><a name="l02857"></a><span class="lineno"> 2857</span> {</div><div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>  <span class="keywordflow">return</span> Concat4dDim1TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02859"></a><span class="lineno"> 2859</span> }</div></div><!-- fragment --> |
| 2247 | </div> |
| 2248 | </div> |
| 2249 | <a id="a1d148bdca4ed20301d41d73398dd90e5"></a> |
| 2250 | <h2 class="memtitle"><span class="permalink"><a href="#a1d148bdca4ed20301d41d73398dd90e5">◆ </a></span>Concat4dDim2Test()</h2> |
| 2251 | |
| 2252 | <div class="memitem"> |
| 2253 | <div class="memproto"> |
| 2254 | <table class="memname"> |
| 2255 | <tr> |
| 2256 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDim2Test </td> |
| 2257 | <td>(</td> |
| 2258 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2259 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2260 | </tr> |
| 2261 | <tr> |
| 2262 | <td class="paramkey"></td> |
| 2263 | <td></td> |
| 2264 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2265 | <td class="paramname"><em>memoryManager</em> </td> |
| 2266 | </tr> |
| 2267 | <tr> |
| 2268 | <td></td> |
| 2269 | <td>)</td> |
| 2270 | <td></td><td></td> |
| 2271 | </tr> |
| 2272 | </table> |
| 2273 | </div><div class="memdoc"> |
| 2274 | |
| 2275 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02292">2292</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2276 | <div class="fragment"><div class="line"><a name="l02295"></a><span class="lineno"> 2295</span> {</div><div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>  <span class="keywordflow">return</span> Concat4dDim2TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02297"></a><span class="lineno"> 2297</span> }</div></div><!-- fragment --> |
| 2277 | </div> |
| 2278 | </div> |
| 2279 | <a id="ad14affe1f35650404637e949e6cda6d7"></a> |
| 2280 | <h2 class="memtitle"><span class="permalink"><a href="#ad14affe1f35650404637e949e6cda6d7">◆ </a></span>Concat4dDim2TestImpl()</h2> |
| 2281 | |
| 2282 | <div class="memitem"> |
| 2283 | <div class="memproto"> |
| 2284 | <table class="memname"> |
| 2285 | <tr> |
| 2286 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDim2TestImpl </td> |
| 2287 | <td>(</td> |
| 2288 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2289 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2290 | </tr> |
| 2291 | <tr> |
| 2292 | <td class="paramkey"></td> |
| 2293 | <td></td> |
| 2294 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2295 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2296 | </tr> |
| 2297 | <tr> |
| 2298 | <td class="paramkey"></td> |
| 2299 | <td></td> |
| 2300 | <td class="paramtype">float </td> |
| 2301 | <td class="paramname"><em>qScale</em>, </td> |
| 2302 | </tr> |
| 2303 | <tr> |
| 2304 | <td class="paramkey"></td> |
| 2305 | <td></td> |
| 2306 | <td class="paramtype">int32_t </td> |
| 2307 | <td class="paramname"><em>qOffset</em> </td> |
| 2308 | </tr> |
| 2309 | <tr> |
| 2310 | <td></td> |
| 2311 | <td>)</td> |
| 2312 | <td></td><td></td> |
| 2313 | </tr> |
| 2314 | </table> |
| 2315 | </div><div class="memdoc"> |
| 2316 | |
| 2317 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01542">1542</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2318 | |
| 2319 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 2320 | <div class="fragment"><div class="line"><a name="l01547"></a><span class="lineno"> 1547</span> {</div><div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 1, 3, 6, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01549"></a><span class="lineno"> 1549</span> </div><div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result = Concat4dTestImpl<ArmnnType>(</div><div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>  workloadFactory, memoryManager, outputTensorInfo, 2, <span class="keyword">true</span>, qScale, qOffset);</div><div class="line"><a name="l01552"></a><span class="lineno"> 1552</span> </div><div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>  {</div><div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>  1.0f, 2.0f,</div><div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>  3.0f, 4.0f,</div><div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>  11.0f, 12.0f,</div><div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>  13.0f, 14.0f,</div><div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>  21.0f, 22.0f,</div><div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>  23.0f, 24.0f,</div><div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> </div><div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>  5.0f, 6.0f,</div><div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>  7.0f, 8.0f,</div><div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>  15.0f, 16.0f,</div><div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>  17.0f, 18.0f,</div><div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>  25.0f, 26.0f,</div><div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>  27.0f, 28.0f,</div><div class="line"><a name="l01568"></a><span class="lineno"> 1568</span> </div><div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>  9.0f, 10.0f,</div><div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>  11.0f, 12.0f,</div><div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>  19.0f, 20.0f,</div><div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>  21.0f, 22.0f,</div><div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>  29.0f, 30.0f,</div><div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>  31.0f, 32.0f</div><div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>  },</div><div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>  qScale, qOffset));</div><div class="line"><a name="l01577"></a><span class="lineno"> 1577</span> </div><div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01579"></a><span class="lineno"> 1579</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> |
| 2321 | <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> |
| 2322 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 2323 | </div><!-- fragment --> |
| 2324 | </div> |
| 2325 | </div> |
| 2326 | <a id="a9a1400c7948e6536489676848c40630f"></a> |
| 2327 | <h2 class="memtitle"><span class="permalink"><a href="#a9a1400c7948e6536489676848c40630f">◆ </a></span>Concat4dDim2Uint8Test()</h2> |
| 2328 | |
| 2329 | <div class="memitem"> |
| 2330 | <div class="memproto"> |
| 2331 | <table class="memname"> |
| 2332 | <tr> |
| 2333 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDim2Uint8Test </td> |
| 2334 | <td>(</td> |
| 2335 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2336 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2337 | </tr> |
| 2338 | <tr> |
| 2339 | <td class="paramkey"></td> |
| 2340 | <td></td> |
| 2341 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2342 | <td class="paramname"><em>memoryManager</em> </td> |
| 2343 | </tr> |
| 2344 | <tr> |
| 2345 | <td></td> |
| 2346 | <td>)</td> |
| 2347 | <td></td><td></td> |
| 2348 | </tr> |
| 2349 | </table> |
| 2350 | </div><div class="memdoc"> |
| 2351 | |
| 2352 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02861">2861</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2353 | <div class="fragment"><div class="line"><a name="l02864"></a><span class="lineno"> 2864</span> {</div><div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>  <span class="keywordflow">return</span> Concat4dDim2TestImpl<DataType::QAsymmU8>(workloadFactory, memoryManager, 0.5f, -1);</div><div class="line"><a name="l02866"></a><span class="lineno"> 2866</span> }</div></div><!-- fragment --> |
| 2354 | </div> |
| 2355 | </div> |
| 2356 | <a id="a2081650a5142448a5db4065819da2089"></a> |
| 2357 | <h2 class="memtitle"><span class="permalink"><a href="#a2081650a5142448a5db4065819da2089">◆ </a></span>Concat4dDim3Test()</h2> |
| 2358 | |
| 2359 | <div class="memitem"> |
| 2360 | <div class="memproto"> |
| 2361 | <table class="memname"> |
| 2362 | <tr> |
| 2363 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float, 4> Concat4dDim3Test </td> |
| 2364 | <td>(</td> |
| 2365 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2366 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2367 | </tr> |
| 2368 | <tr> |
| 2369 | <td class="paramkey"></td> |
| 2370 | <td></td> |
| 2371 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2372 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2373 | </tr> |
| 2374 | <tr> |
| 2375 | <td class="paramkey"></td> |
| 2376 | <td></td> |
| 2377 | <td class="paramtype">bool </td> |
| 2378 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2379 | </tr> |
| 2380 | <tr> |
| 2381 | <td></td> |
| 2382 | <td>)</td> |
| 2383 | <td></td><td></td> |
| 2384 | </tr> |
| 2385 | </table> |
| 2386 | </div><div class="memdoc"> |
| 2387 | |
| 2388 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02299">2299</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2389 | <div class="fragment"><div class="line"><a name="l02303"></a><span class="lineno"> 2303</span> {</div><div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>  <span class="keywordflow">return</span> Concat4dDim3TestImpl<DataType::Float32>(workloadFactory, memoryManager, 0.0f, 0, useSubtensor);</div><div class="line"><a name="l02305"></a><span class="lineno"> 2305</span> }</div></div><!-- fragment --> |
| 2390 | </div> |
| 2391 | </div> |
| 2392 | <a id="a5d8473a59cf76ad1914b36fd8d45f00b"></a> |
| 2393 | <h2 class="memtitle"><span class="permalink"><a href="#a5d8473a59cf76ad1914b36fd8d45f00b">◆ </a></span>Concat4dDim3TestImpl()</h2> |
| 2394 | |
| 2395 | <div class="memitem"> |
| 2396 | <div class="memproto"> |
| 2397 | <table class="memname"> |
| 2398 | <tr> |
| 2399 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dDim3TestImpl </td> |
| 2400 | <td>(</td> |
| 2401 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2402 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2403 | </tr> |
| 2404 | <tr> |
| 2405 | <td class="paramkey"></td> |
| 2406 | <td></td> |
| 2407 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2408 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2409 | </tr> |
| 2410 | <tr> |
| 2411 | <td class="paramkey"></td> |
| 2412 | <td></td> |
| 2413 | <td class="paramtype">float </td> |
| 2414 | <td class="paramname"><em>qScale</em>, </td> |
| 2415 | </tr> |
| 2416 | <tr> |
| 2417 | <td class="paramkey"></td> |
| 2418 | <td></td> |
| 2419 | <td class="paramtype">int32_t </td> |
| 2420 | <td class="paramname"><em>qOffset</em>, </td> |
| 2421 | </tr> |
| 2422 | <tr> |
| 2423 | <td class="paramkey"></td> |
| 2424 | <td></td> |
| 2425 | <td class="paramtype">bool </td> |
| 2426 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2427 | </tr> |
| 2428 | <tr> |
| 2429 | <td></td> |
| 2430 | <td>)</td> |
| 2431 | <td></td><td></td> |
| 2432 | </tr> |
| 2433 | </table> |
| 2434 | </div><div class="memdoc"> |
| 2435 | |
| 2436 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01582">1582</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2437 | |
| 2438 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult< T, n >::outputExpected</a>.</p> |
| 2439 | <div class="fragment"><div class="line"><a name="l01588"></a><span class="lineno"> 1588</span> {</div><div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 1, 3, 2, 6 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01590"></a><span class="lineno"> 1590</span> </div><div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result = Concat4dTestImpl<ArmnnType>(</div><div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>  workloadFactory, memoryManager, outputTensorInfo, 3, useSubtensor, qScale, qOffset);</div><div class="line"><a name="l01593"></a><span class="lineno"> 1593</span> </div><div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 4>(outputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>  {</div><div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>  1.0f, 2.0f,</div><div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>  11.0f, 12.0f,</div><div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>  21.0f, 22.0f,</div><div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>  3.0f, 4.0f,</div><div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>  13.0f, 14.0f,</div><div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>  23.0f, 24.0f,</div><div class="line"><a name="l01602"></a><span class="lineno"> 1602</span> </div><div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>  5.0f, 6.0f,</div><div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>  15.0f, 16.0f,</div><div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>  25.0f, 26.0f,</div><div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>  7.0f, 8.0f,</div><div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>  17.0f, 18.0f,</div><div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>  27.0f, 28.0f,</div><div class="line"><a name="l01609"></a><span class="lineno"> 1609</span> </div><div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>  9.0f, 10.0f,</div><div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>  19.0f, 20.0f,</div><div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>  29.0f, 30.0f,</div><div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>  11.0f, 12.0f,</div><div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>  21.0f, 22.0f,</div><div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>  31.0f, 32.0f</div><div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>  },</div><div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>  qScale, qOffset));</div><div class="line"><a name="l01618"></a><span class="lineno"> 1618</span> </div><div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01620"></a><span class="lineno"> 1620</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> |
| 2440 | <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> |
| 2441 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 2442 | </div><!-- fragment --> |
| 2443 | </div> |
| 2444 | </div> |
| 2445 | <a id="a3de096f0e07787adaf34b6d348ca9543"></a> |
| 2446 | <h2 class="memtitle"><span class="permalink"><a href="#a3de096f0e07787adaf34b6d348ca9543">◆ </a></span>Concat4dDim3Uint8Test()</h2> |
| 2447 | |
| 2448 | <div class="memitem"> |
| 2449 | <div class="memproto"> |
| 2450 | <table class="memname"> |
| 2451 | <tr> |
| 2452 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 4> Concat4dDim3Uint8Test </td> |
| 2453 | <td>(</td> |
| 2454 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2455 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2456 | </tr> |
| 2457 | <tr> |
| 2458 | <td class="paramkey"></td> |
| 2459 | <td></td> |
| 2460 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2461 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2462 | </tr> |
| 2463 | <tr> |
| 2464 | <td class="paramkey"></td> |
| 2465 | <td></td> |
| 2466 | <td class="paramtype">bool </td> |
| 2467 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2468 | </tr> |
| 2469 | <tr> |
| 2470 | <td></td> |
| 2471 | <td>)</td> |
| 2472 | <td></td><td></td> |
| 2473 | </tr> |
| 2474 | </table> |
| 2475 | </div><div class="memdoc"> |
| 2476 | |
| 2477 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02868">2868</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2478 | <div class="fragment"><div class="line"><a name="l02871"></a><span class="lineno"> 2871</span> {</div><div class="line"><a name="l02872"></a><span class="lineno"> 2872</span>  <span class="keywordflow">return</span> Concat4dDim3TestImpl<DataType::QAsymmU8>(</div><div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>  workloadFactory, memoryManager, 0.5f, -1, useSubtensor);</div><div class="line"><a name="l02874"></a><span class="lineno"> 2874</span> }</div></div><!-- fragment --> |
| 2479 | </div> |
| 2480 | </div> |
| 2481 | <a id="aeef13eb0a86ade1b1c92357c44ed8add"></a> |
| 2482 | <h2 class="memtitle"><span class="permalink"><a href="#aeef13eb0a86ade1b1c92357c44ed8add">◆ </a></span>Concat4dTestImpl()</h2> |
| 2483 | |
| 2484 | <div class="memitem"> |
| 2485 | <div class="memproto"> |
| 2486 | <table class="memname"> |
| 2487 | <tr> |
| 2488 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 4> Concat4dTestImpl </td> |
| 2489 | <td>(</td> |
| 2490 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2491 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2492 | </tr> |
| 2493 | <tr> |
| 2494 | <td class="paramkey"></td> |
| 2495 | <td></td> |
| 2496 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2497 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2498 | </tr> |
| 2499 | <tr> |
| 2500 | <td class="paramkey"></td> |
| 2501 | <td></td> |
| 2502 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 2503 | <td class="paramname"><em>outputTensorInfo</em>, </td> |
| 2504 | </tr> |
| 2505 | <tr> |
| 2506 | <td class="paramkey"></td> |
| 2507 | <td></td> |
| 2508 | <td class="paramtype">unsigned int </td> |
| 2509 | <td class="paramname"><em>dimension</em>, </td> |
| 2510 | </tr> |
| 2511 | <tr> |
| 2512 | <td class="paramkey"></td> |
| 2513 | <td></td> |
| 2514 | <td class="paramtype">bool </td> |
| 2515 | <td class="paramname"><em>useSubtensor</em>, </td> |
| 2516 | </tr> |
| 2517 | <tr> |
| 2518 | <td class="paramkey"></td> |
| 2519 | <td></td> |
| 2520 | <td class="paramtype">float </td> |
| 2521 | <td class="paramname"><em>qScale</em>, </td> |
| 2522 | </tr> |
| 2523 | <tr> |
| 2524 | <td class="paramkey"></td> |
| 2525 | <td></td> |
| 2526 | <td class="paramtype">int32_t </td> |
| 2527 | <td class="paramname"><em>qOffset</em> </td> |
| 2528 | </tr> |
| 2529 | <tr> |
| 2530 | <td></td> |
| 2531 | <td>)</td> |
| 2532 | <td></td><td></td> |
| 2533 | </tr> |
| 2534 | </table> |
| 2535 | </div><div class="memdoc"> |
| 2536 | |
| 2537 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01399">1399</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2538 | |
| 2539 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00093">TensorInfo::GetNumElements()</a>, and <a class="el" href="_layer_test_result_8hpp_source.html#l00040">LayerTestResult< T, n >::output</a>.</p> |
| 2540 | <div class="fragment"><div class="line"><a name="l01407"></a><span class="lineno"> 1407</span> {</div><div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo({ 1, 3, 2, 2 }, ArmnnType, qScale, qOffset);</div><div class="line"><a name="l01409"></a><span class="lineno"> 1409</span> </div><div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>  <span class="keyword">auto</span> input0 = MakeTensor<T, 4>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>  {</div><div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>  1.0f, 2.0f,</div><div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>  3.0f, 4.0f,</div><div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>  5.0f, 6.0f,</div><div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>  7.0f, 8.0f,</div><div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>  9.0f, 10.0f,</div><div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>  11.0f, 12.0f</div><div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>  },</div><div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>  qScale, qOffset));</div><div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> </div><div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 4>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>  {</div><div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>  11.0f, 12.0f,</div><div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>  13.0f, 14.0f,</div><div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>  15.0f, 16.0f,</div><div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>  17.0f, 18.0f,</div><div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>  19.0f, 20.0f,</div><div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>  21.0f, 22.0f</div><div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>  },</div><div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>  qScale, qOffset));</div><div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> </div><div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 4>(inputTensorInfo, QuantizedVector<T>(</div><div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>  {</div><div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>  21.0f, 22.0f,</div><div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>  23.0f, 24.0f,</div><div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>  25.0f, 26.0f,</div><div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>  27.0f, 28.0f,</div><div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>  29.0f, 30.0f,</div><div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>  31.0f, 32.0f</div><div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>  },</div><div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>  qScale, qOffset));</div><div class="line"><a name="l01442"></a><span class="lineno"> 1442</span> </div><div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 4></a> result(outputTensorInfo);</div><div class="line"><a name="l01444"></a><span class="lineno"> 1444</span> </div><div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>  std::vector<T> output;</div><div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>  output.resize(outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l01447"></a><span class="lineno"> 1447</span> </div><div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>  Concatenate<T>(workloadFactory,</div><div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>  memoryManager,</div><div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>  {inputTensorInfo, inputTensorInfo, inputTensorInfo},</div><div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>  {input0.data(), input1.data(), input2.data()},</div><div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>  outputTensorInfo,</div><div class="line"><a name="l01453"></a><span class="lineno"> 1453</span>  output.data(),</div><div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>  dimension,</div><div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>  useSubtensor);</div><div class="line"><a name="l01456"></a><span class="lineno"> 1456</span> </div><div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>  result.output = MakeTensor<T, 4>(outputTensorInfo, output);</div><div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l01459"></a><span class="lineno"> 1459</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> |
| 2541 | <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> |
| 2542 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 2543 | </div><!-- fragment --> |
| 2544 | </div> |
| 2545 | </div> |
| 2546 | <a id="a9d679b4a18c9cadc563bd77a726a3726"></a> |
| 2547 | <h2 class="memtitle"><span class="permalink"><a href="#a9d679b4a18c9cadc563bd77a726a3726">◆ </a></span>ConcatDifferentInputOutputQParamTest()</h2> |
| 2548 | |
| 2549 | <div class="memitem"> |
| 2550 | <div class="memproto"> |
| 2551 | <table class="memname"> |
| 2552 | <tr> |
| 2553 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><T, 3> ConcatDifferentInputOutputQParamTest </td> |
| 2554 | <td>(</td> |
| 2555 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2556 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2557 | </tr> |
| 2558 | <tr> |
| 2559 | <td class="paramkey"></td> |
| 2560 | <td></td> |
| 2561 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2562 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2563 | </tr> |
| 2564 | <tr> |
| 2565 | <td class="paramkey"></td> |
| 2566 | <td></td> |
| 2567 | <td class="paramtype">bool </td> |
| 2568 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2569 | </tr> |
| 2570 | <tr> |
| 2571 | <td></td> |
| 2572 | <td>)</td> |
| 2573 | <td></td><td></td> |
| 2574 | </tr> |
| 2575 | </table> |
| 2576 | </div><div class="memdoc"> |
| 2577 | |
| 2578 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l01916">1916</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2579 | |
| 2580 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01118">IWorkloadFactory::CreateConcat()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00242">armnn::CreateDescriptorForConcatenation()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">IWorkloadFactory::CreateSubTensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::info</a>, <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters</a>, <a class="el" href="_workload_data_8hpp_source.html#l00115">ConcatQueueDescriptor::m_ViewOrigins</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>, and <a class="el" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">IWorkloadFactory::SupportsSubTensors()</a>.</p> |
| 2581 | <div class="fragment"><div class="line"><a name="l01920"></a><span class="lineno"> 1920</span> {</div><div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l01922"></a><span class="lineno"> 1922</span> </div><div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>  <span class="comment">// Defines the tensor descriptors.</span></div><div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ 3, 6, 3 }, ArmnnType);</div><div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ 3, 6, 2 }, ArmnnType);</div><div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo2({ 3, 6, 1 }, ArmnnType);</div><div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> </div><div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>  std::vector<TensorShape> inputTensorShapes({inputTensorInfo1.GetShape(), inputTensorInfo2.GetShape()});</div><div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> </div><div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>  <span class="comment">// Quantized input1 tensor.</span></div><div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> inputScale1 = 0.5f;</div><div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>  <span class="keyword">const</span> int32_t inputOffset1 = 5;</div><div class="line"><a name="l01933"></a><span class="lineno"> 1933</span> </div><div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>  <span class="keyword">auto</span> input1 = MakeTensor<T, 3>(inputTensorInfo1, std::vector<T>(</div><div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>  {</div><div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>  1, 2, 3,</div><div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>  4, 5, 6,</div><div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>  7, 8, 9,</div><div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>  10, 11, 12,</div><div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>  13, 14, 15,</div><div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>  16, 17, 18,</div><div class="line"><a name="l01942"></a><span class="lineno"> 1942</span> </div><div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>  19, 20, 21,</div><div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>  22, 23, 24,</div><div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>  25, 26, 27,</div><div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>  28, 29, 30,</div><div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>  31, 32, 33,</div><div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>  34, 35, 36</div><div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>  }));</div><div class="line"><a name="l01950"></a><span class="lineno"> 1950</span> </div><div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>  <span class="comment">// Quatized input2 tensor.</span></div><div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> inputScale2 = 0.2f;</div><div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>  <span class="keyword">const</span> int32_t inputOffset2 = 10;</div><div class="line"><a name="l01954"></a><span class="lineno"> 1954</span> </div><div class="line"><a name="l01955"></a><span class="lineno"> 1955</span>  <span class="keyword">auto</span> input2 = MakeTensor<T, 3>(inputTensorInfo2, std::vector<T>(</div><div class="line"><a name="l01956"></a><span class="lineno"> 1956</span>  {</div><div class="line"><a name="l01957"></a><span class="lineno"> 1957</span>  37, 38, 39,</div><div class="line"><a name="l01958"></a><span class="lineno"> 1958</span>  40, 41, 42,</div><div class="line"><a name="l01959"></a><span class="lineno"> 1959</span>  43, 44, 45,</div><div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>  46, 47, 48,</div><div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>  49, 50, 51,</div><div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>  52, 53, 54</div><div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>  }));</div><div class="line"><a name="l01964"></a><span class="lineno"> 1964</span> </div><div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>  <span class="comment">// Quantized output tensor.</span></div><div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> outputScale = 0.1f;</div><div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>  <span class="keyword">const</span> int32_t outputOffset = 20;</div><div class="line"><a name="l01968"></a><span class="lineno"> 1968</span> </div><div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 3></a> ret(outputTensorInfo);</div><div class="line"><a name="l01970"></a><span class="lineno"> 1970</span> </div><div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>  ret.outputExpected = MakeTensor<T, 3>(outputTensorInfo, std::vector<T>(</div><div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>  {</div><div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>  0, 5, 74,</div><div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>  10, 15, 76,</div><div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>  20, 25, 78,</div><div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>  30, 35, 80,</div><div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>  40, 45, 82,</div><div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>  50, 55, 84,</div><div class="line"><a name="l01979"></a><span class="lineno"> 1979</span> </div><div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>  60, 65, 86,</div><div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>  70, 75, 88,</div><div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>  80, 85, 90,</div><div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>  90, 95, 92,</div><div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>  100, 105, 94,</div><div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>  110, 115, 96,</div><div class="line"><a name="l01986"></a><span class="lineno"> 1986</span> </div><div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>  120, 125, 98,</div><div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>  130, 135, 100,</div><div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>  140, 145, 102,</div><div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>  150, 155, 104,</div><div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>  160, 165, 106,</div><div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>  170, 175, 108</div><div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>  }));</div><div class="line"><a name="l01994"></a><span class="lineno"> 1994</span> </div><div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>  outputTensorInfo.SetQuantizationScale(outputScale);</div><div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>  outputTensorInfo.SetQuantizationOffset(outputOffset);</div><div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>  inputTensorInfo1.SetQuantizationScale(inputScale1);</div><div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>  inputTensorInfo1.SetQuantizationOffset(inputOffset1);</div><div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>  inputTensorInfo2.SetQuantizationScale(inputScale2);</div><div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>  inputTensorInfo2.SetQuantizationOffset(inputOffset2);</div><div class="line"><a name="l02001"></a><span class="lineno"> 2001</span> </div><div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>  std::vector<unsigned int> wOrigin1 = { 0, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[0].</span></div><div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window1(wOrigin1);</div><div class="line"><a name="l02004"></a><span class="lineno"> 2004</span> </div><div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>  std::vector<unsigned int> wOrigin2 = { 0, 0, 2 }; <span class="comment">//Extent of the window is defined by size of input[1].</span></div><div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window2(wOrigin2);</div><div class="line"><a name="l02007"></a><span class="lineno"> 2007</span> </div><div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l02009"></a><span class="lineno"> 2009</span> </div><div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>  <span class="keywordtype">bool</span> subTensorsSupported = useSubtensor && workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">SupportsSubTensors</a>();</div><div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> </div><div class="line"><a name="l02012"></a><span class="lineno"> 2012</span>  std::unique_ptr<ITensorHandle> inputHandle1 =</div><div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>  subTensorsSupported ?</div><div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo1.GetShape(), wOrigin1.data()) :</div><div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo1);</div><div class="line"><a name="l02016"></a><span class="lineno"> 2016</span> </div><div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>  std::unique_ptr<ITensorHandle> inputHandle2 =</div><div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>  subTensorsSupported ?</div><div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo2.GetShape(), wOrigin2.data()) :</div><div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo2);</div><div class="line"><a name="l02021"></a><span class="lineno"> 2021</span> </div><div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor.html">ConcatQueueDescriptor</a> data;</div><div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>  <a class="code" href="structarmnn_1_1_origins_descriptor.html">OriginsDescriptor</a> desc = <a class="code" href="namespacearmnn.html#a733ae6b70d0bfa43433c3e7606992328">CreateDescriptorForConcatenation</a>(</div><div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>  inputTensorShapes.begin(),inputTensorShapes.end(), 2);</div><div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>  data.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a> = desc;</div><div class="line"><a name="l02026"></a><span class="lineno"> 2026</span> </div><div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>  AddInputToWorkload(data, info, inputTensorInfo1, inputHandle1.get());</div><div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>  AddInputToWorkload(data, info, inputTensorInfo2, inputHandle2.get());</div><div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l02031"></a><span class="lineno"> 2031</span> </div><div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window1);</div><div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window2);</div><div class="line"><a name="l02034"></a><span class="lineno"> 2034</span> </div><div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">CreateConcat</a>(data, info);</div><div class="line"><a name="l02036"></a><span class="lineno"> 2036</span> </div><div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>  inputHandle1->Allocate();</div><div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>  inputHandle2->Allocate();</div><div class="line"><a name="l02039"></a><span class="lineno"> 2039</span>  outputHandle->Allocate();</div><div class="line"><a name="l02040"></a><span class="lineno"> 2040</span> </div><div class="line"><a name="l02041"></a><span class="lineno"> 2041</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle1.get(), &input1[0][0][0]);</div><div class="line"><a name="l02042"></a><span class="lineno"> 2042</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle2.get(), &input2[0][0][0]);</div><div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> </div><div class="line"><a name="l02044"></a><span class="lineno"> 2044</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l02045"></a><span class="lineno"> 2045</span>  workload->Execute();</div><div class="line"><a name="l02046"></a><span class="lineno"> 2046</span> </div><div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&ret.output[0][0][0], outputHandle.get());</div><div class="line"><a name="l02048"></a><span class="lineno"> 2048</span> </div><div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l02050"></a><span class="lineno"> 2050</span> }</div><div class="ttc" id="namespacearmnn_html_a733ae6b70d0bfa43433c3e7606992328"><div class="ttname"><a href="namespacearmnn.html#a733ae6b70d0bfa43433c3e7606992328">armnn::CreateDescriptorForConcatenation</a></div><div class="ttdeci">OriginsDescriptor CreateDescriptorForConcatenation(TensorShapeIt first, TensorShapeIt last, unsigned int concatenationDimension)</div><div class="ttdoc">Convenience template to create an OriginsDescriptor to use when creating a ConcatLayer for performing...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00242">Descriptors.hpp:242</a></div></div> |
| 2582 | <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> |
| 2583 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 2584 | <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> |
| 2585 | <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> |
| 2586 | <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> |
| 2587 | <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> |
| 2588 | <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> |
| 2589 | <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> |
| 2590 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html_ab1794eb3e74c9700cd3d500fc06dc2e5"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">armnn::ConcatQueueDescriptor::m_ViewOrigins</a></div><div class="ttdeci">std::vector< ViewOrigin > m_ViewOrigins</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00115">WorkloadData.hpp:115</a></div></div> |
| 2591 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_ac043991b839903b2ba9da884e4020848"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">armnn::IWorkloadFactory::CreateSubTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0</div></div> |
| 2592 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a32bb8d6cf5fc028bf501252767c08b21"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">armnn::IWorkloadFactory::CreateConcat</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConcat(const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01118">WorkloadFactory.cpp:1118</a></div></div> |
| 2593 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a37f4eba7877deb34f4d8d64c9bcb9ab5"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">armnn::IWorkloadFactory::SupportsSubTensors</a></div><div class="ttdeci">virtual bool SupportsSubTensors() const =0</div></div> |
| 2594 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">armnn::ConcatQueueDescriptor::ViewOrigin</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00104">WorkloadData.hpp:104</a></div></div> |
| 2595 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html">armnn::ConcatQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00102">WorkloadData.hpp:102</a></div></div> |
| 2596 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html">armnn::OriginsDescriptor</a></div><div class="ttdoc">An OriginsDescriptor for the ConcatLayer. Descriptor to configure the concatenation process...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00147">Descriptors.hpp:147</a></div></div> |
| 2597 | </div><!-- fragment --> |
| 2598 | </div> |
| 2599 | </div> |
| 2600 | <a id="ac4a1dff653419576cd96b81cf10b984e"></a> |
| 2601 | <h2 class="memtitle"><span class="permalink"><a href="#ac4a1dff653419576cd96b81cf10b984e">◆ </a></span>ConcatDifferentInputOutputQParamTest< DataType::QAsymmU8 >()</h2> |
| 2602 | |
| 2603 | <div class="memitem"> |
| 2604 | <div class="memproto"> |
| 2605 | <table class="memname"> |
| 2606 | <tr> |
| 2607 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">ResolveType</a><DataType::QAsymmU8>, 3> <a class="el" href="_concat_test_impl_8hpp.html#a6e1f3186d22d87b9fd8cd165fc93dd8b">ConcatDifferentInputOutputQParamTest</a>< DataType::QAsymmU8 > </td> |
| 2608 | <td>(</td> |
| 2609 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2610 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2611 | </tr> |
| 2612 | <tr> |
| 2613 | <td class="paramkey"></td> |
| 2614 | <td></td> |
| 2615 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2616 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2617 | </tr> |
| 2618 | <tr> |
| 2619 | <td class="paramkey"></td> |
| 2620 | <td></td> |
| 2621 | <td class="paramtype">bool </td> |
| 2622 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2623 | </tr> |
| 2624 | <tr> |
| 2625 | <td></td> |
| 2626 | <td>)</td> |
| 2627 | <td></td><td></td> |
| 2628 | </tr> |
| 2629 | </table> |
| 2630 | </div><div class="memdoc"> |
| 2631 | |
| 2632 | </div> |
| 2633 | </div> |
| 2634 | <a id="a878b6bd50169d509d8ee47d79e3c87d0"></a> |
| 2635 | <h2 class="memtitle"><span class="permalink"><a href="#a878b6bd50169d509d8ee47d79e3c87d0">◆ </a></span>ConcatDifferentInputOutputQParamTest< DataType::QSymmS16 >()</h2> |
| 2636 | |
| 2637 | <div class="memitem"> |
| 2638 | <div class="memproto"> |
| 2639 | <table class="memname"> |
| 2640 | <tr> |
| 2641 | <td class="memname">template <a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0743ed5e860c316a20b68ca96301b411">ResolveType</a><DataType::QSymmS16>, 3> <a class="el" href="_concat_test_impl_8hpp.html#a6e1f3186d22d87b9fd8cd165fc93dd8b">ConcatDifferentInputOutputQParamTest</a>< DataType::QSymmS16 > </td> |
| 2642 | <td>(</td> |
| 2643 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2644 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2645 | </tr> |
| 2646 | <tr> |
| 2647 | <td class="paramkey"></td> |
| 2648 | <td></td> |
| 2649 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2650 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2651 | </tr> |
| 2652 | <tr> |
| 2653 | <td class="paramkey"></td> |
| 2654 | <td></td> |
| 2655 | <td class="paramtype">bool </td> |
| 2656 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2657 | </tr> |
| 2658 | <tr> |
| 2659 | <td></td> |
| 2660 | <td>)</td> |
| 2661 | <td></td><td></td> |
| 2662 | </tr> |
| 2663 | </table> |
| 2664 | </div><div class="memdoc"> |
| 2665 | |
| 2666 | </div> |
| 2667 | </div> |
| 2668 | <a id="a3a7534d69e8cc11c52b0a056ca82bcb8"></a> |
| 2669 | <h2 class="memtitle"><span class="permalink"><a href="#a3a7534d69e8cc11c52b0a056ca82bcb8">◆ </a></span>Concatenate()</h2> |
| 2670 | |
| 2671 | <div class="memitem"> |
| 2672 | <div class="memproto"> |
| 2673 | <table class="memname"> |
| 2674 | <tr> |
| 2675 | <td class="memname">void Concatenate </td> |
| 2676 | <td>(</td> |
| 2677 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2678 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2679 | </tr> |
| 2680 | <tr> |
| 2681 | <td class="paramkey"></td> |
| 2682 | <td></td> |
| 2683 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2684 | <td class="paramname"><em>memoryManager</em>, </td> |
| 2685 | </tr> |
| 2686 | <tr> |
| 2687 | <td class="paramkey"></td> |
| 2688 | <td></td> |
| 2689 | <td class="paramtype">std::initializer_list< const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > </td> |
| 2690 | <td class="paramname"><em>inputTensorInfosOrig</em>, </td> |
| 2691 | </tr> |
| 2692 | <tr> |
| 2693 | <td class="paramkey"></td> |
| 2694 | <td></td> |
| 2695 | <td class="paramtype">std::initializer_list< T *> </td> |
| 2696 | <td class="paramname"><em>inputsOrig</em>, </td> |
| 2697 | </tr> |
| 2698 | <tr> |
| 2699 | <td class="paramkey"></td> |
| 2700 | <td></td> |
| 2701 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 2702 | <td class="paramname"><em>outputTensorInfoOrig</em>, </td> |
| 2703 | </tr> |
| 2704 | <tr> |
| 2705 | <td class="paramkey"></td> |
| 2706 | <td></td> |
| 2707 | <td class="paramtype">T * </td> |
| 2708 | <td class="paramname"><em>output</em>, </td> |
| 2709 | </tr> |
| 2710 | <tr> |
| 2711 | <td class="paramkey"></td> |
| 2712 | <td></td> |
| 2713 | <td class="paramtype">unsigned int </td> |
| 2714 | <td class="paramname"><em>concatDim</em>, </td> |
| 2715 | </tr> |
| 2716 | <tr> |
| 2717 | <td class="paramkey"></td> |
| 2718 | <td></td> |
| 2719 | <td class="paramtype">bool </td> |
| 2720 | <td class="paramname"><em>useSubtensor</em> </td> |
| 2721 | </tr> |
| 2722 | <tr> |
| 2723 | <td></td> |
| 2724 | <td>)</td> |
| 2725 | <td></td><td></td> |
| 2726 | </tr> |
| 2727 | </table> |
| 2728 | </div><div class="memdoc"> |
| 2729 | |
| 2730 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00272">272</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2731 | |
| 2732 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01118">IWorkloadFactory::CreateConcat()</a>, <a class="el" href="_concat_test_impl_8cpp_source.html#l00026">CreateDescriptorForConcat()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">IWorkloadFactory::CreateSubTensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00184">OriginsDescriptor::GetNumDimensions()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00179">OriginsDescriptor::GetNumViews()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00189">OriginsDescriptor::GetViewOrigin()</a>, <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters</a>, <a class="el" href="_workload_data_8hpp_source.html#l00115">ConcatQueueDescriptor::m_ViewOrigins</a>, <a class="el" href="_concat_test_impl_8cpp_source.html#l00046">NeedPermuteForConcat()</a>, and <a class="el" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">IWorkloadFactory::SupportsSubTensors()</a>.</p> |
| 2733 | <div class="fragment"><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> {</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  BOOST_ASSERT_MSG(output != <span class="keyword">nullptr</span>, <span class="stringliteral">"output must not be null"</span>);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">if</span> (output == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  {</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="comment">// Nullptr is an error in the test. By returning without doing the permutation</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="comment">// I expect the caller to fail the test. It still makes sense to report this as</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="comment">// an assert for Debug builds.</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">return</span>;</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="comment">// Saves a copy of the parameters which we might need to change.</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  std::vector<TensorInfo> inputTensorInfos(inputTensorInfosOrig.begin(), inputTensorInfosOrig.end());</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  std::vector<T *> inputs = inputsOrig;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo = outputTensorInfoOrig;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> permuteVector{0, 1, 2};</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> </div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="comment">// Holds and automatically releases memory for the reshaped input data.</span></div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  std::vector<std::vector<T>> tmpInputDataStorage;</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> inputCount = inputTensorInfos.size();</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keywordtype">bool</span> needPermuteForConcat = <a class="code" href="_concat_test_impl_8cpp.html#a905e011ae8536bbd643dd09495524596">NeedPermuteForConcat</a>(inputTensorInfos, concatDim);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordflow">if</span> (needPermuteForConcat)</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  {</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="comment">//</span></div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="comment">// We need to permute the inputs, because concatenation along</span></div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="comment">// the requested axis is not supported.</span></div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="comment">//</span></div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  PermuteInputsForConcat<T>(workloadFactory,</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  memoryManager,</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  inputTensorInfos,</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  inputs,</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  tmpInputDataStorage,</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  permuteVector,</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  concatDim,</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  outputTensorInfo);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  }</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> workloadInfo;</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span> </div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  std::vector<std::unique_ptr<ITensorHandle>> inputHandles;</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  inputHandles.reserve(inputCount);</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor.html">ConcatQueueDescriptor</a> queueDescriptor;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <a class="code" href="structarmnn_1_1_origins_descriptor.html">OriginsDescriptor</a> viewsDescriptor = <a class="code" href="_concat_test_impl_8cpp.html#a908c80ff86d48fe1bc7cd4d4b1d00147">CreateDescriptorForConcat</a>(inputTensorInfos, concatDim);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  queueDescriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a> = viewsDescriptor;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">if</span> (useSubtensor)</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>  queueDescriptor.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.reserve(viewsDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a35546e7b56e6e972a495b48748478ede">GetNumViews</a>());</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < viewsDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a35546e7b56e6e972a495b48748478ede">GetNumViews</a>(); ++i)</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  {</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  queueDescriptor.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.emplace_back(std::vector<unsigned int>(viewsDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#ab78e6fe963508c1ac5c00d04bb3361a3">GetViewOrigin</a>(i),</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  viewsDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#ab78e6fe963508c1ac5c00d04bb3361a3">GetViewOrigin</a>(i) + viewsDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">GetNumDimensions</a>()));</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  }</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>  outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> </div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> subTensorsSupported = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">SupportsSubTensors</a>();</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputCount; ++i)</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  {</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& inputTensorInfo = inputTensorInfos[i];</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  std::unique_ptr<ITensorHandle> inputHandle =</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  subTensorsSupported ?</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle,</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(),</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  queueDescriptor.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>[i].m_Origin.data()) :</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo);</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  inputHandles.emplace_back(std::move(inputHandle));</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>  }</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  {</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputCount; ++i)</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  {</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  std::unique_ptr<ITensorHandle> inputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfos[i]);</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  inputHandles.emplace_back(std::move(inputHandle));</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  }</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  }</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputCount; ++i)</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  {</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  AddInputToWorkload(queueDescriptor, workloadInfo, inputTensorInfos[i], inputHandles[i].<span class="keyword">get</span>());</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  }</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  AddOutputToWorkload(queueDescriptor, workloadInfo, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">CreateConcat</a>(queueDescriptor, workloadInfo);</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& inputHandle : inputHandles)</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  inputHandle->Allocate();</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> </div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  outputHandle->Allocate();</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span> </div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nextInputId = 0;</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& inputHandle : inputHandles)</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  {</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle.get(), inputs[nextInputId]);</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  ++nextInputId;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  }</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  workload->Execute();</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span> </div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordflow">if</span> (needPermuteForConcat)</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  {</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  PermuteOutputForConcat<T>(workloadFactory,</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  memoryManager,</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  outputTensorInfo,</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  permuteVector,</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  std::move(outputHandle),</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  output);</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>  <span class="keywordflow">else</span></div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  {</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(output, outputHandle.get());</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  }</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> }</div><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> |
| 2734 | <div class="ttc" id="classarmnn_1_1_permutation_vector_html"><div class="ttname"><a href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00170">Types.hpp:170</a></div></div> |
| 2735 | <div class="ttc" id="_concat_test_impl_8cpp_html_a908c80ff86d48fe1bc7cd4d4b1d00147"><div class="ttname"><a href="_concat_test_impl_8cpp.html#a908c80ff86d48fe1bc7cd4d4b1d00147">CreateDescriptorForConcat</a></div><div class="ttdeci">OriginsDescriptor CreateDescriptorForConcat(const std::vector< TensorInfo > &inputTensorInfos, unsigned int concatDim)</div><div class="ttdef"><b>Definition:</b> <a href="_concat_test_impl_8cpp_source.html#l00026">ConcatTestImpl.cpp:26</a></div></div> |
| 2736 | <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> |
| 2737 | <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> |
| 2738 | <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> |
| 2739 | <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> |
| 2740 | <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> |
| 2741 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html_ab1794eb3e74c9700cd3d500fc06dc2e5"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">armnn::ConcatQueueDescriptor::m_ViewOrigins</a></div><div class="ttdeci">std::vector< ViewOrigin > m_ViewOrigins</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00115">WorkloadData.hpp:115</a></div></div> |
| 2742 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_ac043991b839903b2ba9da884e4020848"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">armnn::IWorkloadFactory::CreateSubTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0</div></div> |
| 2743 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a32bb8d6cf5fc028bf501252767c08b21"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">armnn::IWorkloadFactory::CreateConcat</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConcat(const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01118">WorkloadFactory.cpp:1118</a></div></div> |
| 2744 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_ab78e6fe963508c1ac5c00d04bb3361a3"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#ab78e6fe963508c1ac5c00d04bb3361a3">armnn::OriginsDescriptor::GetViewOrigin</a></div><div class="ttdeci">const uint32_t * GetViewOrigin(uint32_t idx) const</div><div class="ttdoc">Return the view origin at the int value idx. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00189">Descriptors.cpp:189</a></div></div> |
| 2745 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a35546e7b56e6e972a495b48748478ede"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a35546e7b56e6e972a495b48748478ede">armnn::OriginsDescriptor::GetNumViews</a></div><div class="ttdeci">uint32_t GetNumViews() const</div><div class="ttdoc">Get the number of views. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00179">Descriptors.cpp:179</a></div></div> |
| 2746 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a37f4eba7877deb34f4d8d64c9bcb9ab5"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">armnn::IWorkloadFactory::SupportsSubTensors</a></div><div class="ttdeci">virtual bool SupportsSubTensors() const =0</div></div> |
| 2747 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a78e8266be865fdd92cadd04d6e25ae1f"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">armnn::OriginsDescriptor::GetNumDimensions</a></div><div class="ttdeci">uint32_t GetNumDimensions() const</div><div class="ttdoc">Get the number of dimensions. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00184">Descriptors.cpp:184</a></div></div> |
| 2748 | <div class="ttc" id="_concat_test_impl_8cpp_html_a905e011ae8536bbd643dd09495524596"><div class="ttname"><a href="_concat_test_impl_8cpp.html#a905e011ae8536bbd643dd09495524596">NeedPermuteForConcat</a></div><div class="ttdeci">bool NeedPermuteForConcat(const std::vector< TensorInfo > &inputTensorInfos, unsigned int concatDim)</div><div class="ttdef"><b>Definition:</b> <a href="_concat_test_impl_8cpp_source.html#l00046">ConcatTestImpl.cpp:46</a></div></div> |
| 2749 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html">armnn::ConcatQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00102">WorkloadData.hpp:102</a></div></div> |
| 2750 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div> |
| 2751 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html">armnn::OriginsDescriptor</a></div><div class="ttdoc">An OriginsDescriptor for the ConcatLayer. Descriptor to configure the concatenation process...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00147">Descriptors.hpp:147</a></div></div> |
| 2752 | </div><!-- fragment --> |
| 2753 | </div> |
| 2754 | </div> |
| 2755 | <a id="ac6e55fbcc8ae3dfa8c1762d343264006"></a> |
| 2756 | <h2 class="memtitle"><span class="permalink"><a href="#ac6e55fbcc8ae3dfa8c1762d343264006">◆ </a></span>ConcatFloat16Test()</h2> |
| 2757 | |
| 2758 | <div class="memitem"> |
| 2759 | <div class="memproto"> |
| 2760 | <table class="memname"> |
| 2761 | <tr> |
| 2762 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><<a class="el" href="namespacearmnn.html#a0f38fa92b2468d5378258a2b074c1a31">Half</a>, 3> ConcatFloat16Test </td> |
| 2763 | <td>(</td> |
| 2764 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2765 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2766 | </tr> |
| 2767 | <tr> |
| 2768 | <td class="paramkey"></td> |
| 2769 | <td></td> |
| 2770 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2771 | <td class="paramname"><em>memoryManager</em> </td> |
| 2772 | </tr> |
| 2773 | <tr> |
| 2774 | <td></td> |
| 2775 | <td>)</td> |
| 2776 | <td></td><td></td> |
| 2777 | </tr> |
| 2778 | </table> |
| 2779 | </div><div class="memdoc"> |
| 2780 | |
| 2781 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02338">2338</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2782 | <div class="fragment"><div class="line"><a name="l02341"></a><span class="lineno"> 2341</span> {</div><div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>  <span class="keywordflow">return</span> Concat3dDim1TestImpl<DataType::Float16>(workloadFactory, memoryManager, 0.0f, 0);</div><div class="line"><a name="l02343"></a><span class="lineno"> 2343</span> }</div></div><!-- fragment --> |
| 2783 | </div> |
| 2784 | </div> |
| 2785 | <a id="a4d293b286db068580f9d72048d4d7bfc"></a> |
| 2786 | <h2 class="memtitle"><span class="permalink"><a href="#a4d293b286db068580f9d72048d4d7bfc">◆ </a></span>ConcatTest()</h2> |
| 2787 | |
| 2788 | <div class="memitem"> |
| 2789 | <div class="memproto"> |
| 2790 | <table class="memname"> |
| 2791 | <tr> |
| 2792 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><float,3> ConcatTest </td> |
| 2793 | <td>(</td> |
| 2794 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2795 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2796 | </tr> |
| 2797 | <tr> |
| 2798 | <td class="paramkey"></td> |
| 2799 | <td></td> |
| 2800 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2801 | <td class="paramname"><em>memoryManager</em> </td> |
| 2802 | </tr> |
| 2803 | <tr> |
| 2804 | <td></td> |
| 2805 | <td>)</td> |
| 2806 | <td></td><td></td> |
| 2807 | </tr> |
| 2808 | </table> |
| 2809 | </div><div class="memdoc"> |
| 2810 | |
| 2811 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02072">2072</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2812 | |
| 2813 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01118">IWorkloadFactory::CreateConcat()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">IWorkloadFactory::CreateSubTensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, <a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::info</a>, <a class="el" href="_workload_data_8hpp_source.html#l00115">ConcatQueueDescriptor::m_ViewOrigins</a>, and <a class="el" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">IWorkloadFactory::SupportsSubTensors()</a>.</p> |
| 2814 | <div class="fragment"><div class="line"><a name="l02075"></a><span class="lineno"> 2075</span> {</div><div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l02077"></a><span class="lineno"> 2077</span> </div><div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputWidth = 3;</div><div class="line"><a name="l02079"></a><span class="lineno"> 2079</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputHeight = 6;</div><div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 3;</div><div class="line"><a name="l02081"></a><span class="lineno"> 2081</span> </div><div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth1 = 3;</div><div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight1 = 6;</div><div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels1 = 2;</div><div class="line"><a name="l02085"></a><span class="lineno"> 2085</span> </div><div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth2 = 3;</div><div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight2 = 6;</div><div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels2 = 1;</div><div class="line"><a name="l02089"></a><span class="lineno"> 2089</span> </div><div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>  <span class="comment">// Define the tensor descriptors.</span></div><div class="line"><a name="l02091"></a><span class="lineno"> 2091</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ outputChannels, outputHeight, outputWidth }, DataType::Float32);</div><div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ inputChannels1, inputHeight1, inputWidth1 }, DataType::Float32);</div><div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo2({ inputChannels2, inputHeight2, inputWidth2 }, DataType::Float32);</div><div class="line"><a name="l02094"></a><span class="lineno"> 2094</span> </div><div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<float,3></a> ret(outputTensorInfo);</div><div class="line"><a name="l02096"></a><span class="lineno"> 2096</span> </div><div class="line"><a name="l02097"></a><span class="lineno"> 2097</span>  ret.outputExpected = MakeTensor<float, 3>(outputTensorInfo, std::vector<float>(</div><div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>  {</div><div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>  1.0f, 2.0f, 3.0f,</div><div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>  4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>  7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>  10.0f, 11.0f, 12.0f,</div><div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>  13.0f, 14.0f, 15.0f,</div><div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>  16.0f, 17.0f, 18.0f,</div><div class="line"><a name="l02105"></a><span class="lineno"> 2105</span> </div><div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>  19.0f, 20.0f, 21.0f,</div><div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>  22.0f, 23.0f, 24.0f,</div><div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>  25.0f, 26.0f, 27.0f,</div><div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>  28.0f, 29.0f, 30.0f,</div><div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>  31.0f, 32.0f, 33.0f,</div><div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>  34.0f, 35.0f, 36.0f,</div><div class="line"><a name="l02112"></a><span class="lineno"> 2112</span> </div><div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>  37.0f, 38.0f, 39.0f,</div><div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>  40.0f, 41.0f, 42.0f,</div><div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>  43.0f, 44.0f, 45.0f,</div><div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>  46.0f, 47.0f, 48.0f,</div><div class="line"><a name="l02117"></a><span class="lineno"> 2117</span>  49.0f, 50.0f, 51.0f,</div><div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>  52.0f, 53.0f, 54.0f,</div><div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>  })</div><div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>  );</div><div class="line"><a name="l02121"></a><span class="lineno"> 2121</span> </div><div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>  <span class="keyword">auto</span> input1 = MakeTensor<float, 3>(inputTensorInfo1, std::vector<float>(</div><div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>  {</div><div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>  1.0f, 2.0f, 3.0f,</div><div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>  4.0f, 5.0f, 6.0f,</div><div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>  7.0f, 8.0f, 9.0f,</div><div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>  10.0f, 11.0f, 12.0f,</div><div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>  13.0f, 14.0f, 15.0f,</div><div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>  16.0f, 17.0f, 18.0f,</div><div class="line"><a name="l02130"></a><span class="lineno"> 2130</span> </div><div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>  19.0f, 20.0f, 21.0f,</div><div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>  22.0f, 23.0f, 24.0f,</div><div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>  25.0f, 26.0f, 27.0f,</div><div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>  28.0f, 29.0f, 30.0f,</div><div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>  31.0f, 32.0f, 33.0f,</div><div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>  34.0f, 35.0f, 36.0f,</div><div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>  })</div><div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>  );</div><div class="line"><a name="l02139"></a><span class="lineno"> 2139</span> </div><div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>  <span class="keyword">auto</span> input2 = MakeTensor<float, 3>(inputTensorInfo2, std::vector<float>(</div><div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>  {</div><div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>  37.0f, 38.0f, 39.0f,</div><div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>  40.0f, 41.0f, 42.0f,</div><div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>  43.0f, 44.0f, 45.0f,</div><div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>  46.0f, 47.0f, 48.0f,</div><div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>  49.0f, 50.0f, 51.0f,</div><div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>  52.0f, 53.0f, 54.0f,</div><div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>  })</div><div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>  );</div><div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> </div><div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>  std::vector<unsigned int> wOrigin1 = {0, 0, 0}; <span class="comment">//Extent of the window is defined by size of input[0].</span></div><div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window1(wOrigin1);</div><div class="line"><a name="l02153"></a><span class="lineno"> 2153</span> </div><div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>  std::vector<unsigned int> wOrigin2 = {2, 0, 0}; <span class="comment">//Extent of the window is defined by size of input[1].</span></div><div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window2(wOrigin2);</div><div class="line"><a name="l02156"></a><span class="lineno"> 2156</span> </div><div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l02158"></a><span class="lineno"> 2158</span> </div><div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>  <span class="keywordtype">bool</span> subTensorsSupported = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">SupportsSubTensors</a>();</div><div class="line"><a name="l02160"></a><span class="lineno"> 2160</span> </div><div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>  std::unique_ptr<ITensorHandle> inputHandle1 =</div><div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>  subTensorsSupported ?</div><div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo1.GetShape(), wOrigin1.data()) :</div><div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo1);</div><div class="line"><a name="l02165"></a><span class="lineno"> 2165</span> </div><div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>  std::unique_ptr<ITensorHandle> inputHandle2 =</div><div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>  subTensorsSupported ?</div><div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo2.GetShape(), wOrigin2.data()) :</div><div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo2);</div><div class="line"><a name="l02170"></a><span class="lineno"> 2170</span> </div><div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor.html">ConcatQueueDescriptor</a> data;</div><div class="line"><a name="l02172"></a><span class="lineno"> 2172</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>  AddInputToWorkload(data, info, inputTensorInfo1, inputHandle1.get());</div><div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>  AddInputToWorkload(data, info, inputTensorInfo2, inputHandle2.get());</div><div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l02176"></a><span class="lineno"> 2176</span> </div><div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window1);</div><div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window2);</div><div class="line"><a name="l02179"></a><span class="lineno"> 2179</span> </div><div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">CreateConcat</a>(data, info);</div><div class="line"><a name="l02181"></a><span class="lineno"> 2181</span> </div><div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>  inputHandle1->Allocate();</div><div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>  inputHandle2->Allocate();</div><div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>  outputHandle->Allocate();</div><div class="line"><a name="l02185"></a><span class="lineno"> 2185</span> </div><div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle1.get(), &input1[0][0][0]);</div><div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle2.get(), &input2[0][0][0]);</div><div class="line"><a name="l02188"></a><span class="lineno"> 2188</span> </div><div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>  workload->Execute();</div><div class="line"><a name="l02191"></a><span class="lineno"> 2191</span> </div><div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&ret.output[0][0][0], outputHandle.get());</div><div class="line"><a name="l02193"></a><span class="lineno"> 2193</span> </div><div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l02195"></a><span class="lineno"> 2195</span> }</div><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> |
| 2815 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 2816 | <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> |
| 2817 | <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> |
| 2818 | <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> |
| 2819 | <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> |
| 2820 | <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> |
| 2821 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html_ab1794eb3e74c9700cd3d500fc06dc2e5"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">armnn::ConcatQueueDescriptor::m_ViewOrigins</a></div><div class="ttdeci">std::vector< ViewOrigin > m_ViewOrigins</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00115">WorkloadData.hpp:115</a></div></div> |
| 2822 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_ac043991b839903b2ba9da884e4020848"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">armnn::IWorkloadFactory::CreateSubTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0</div></div> |
| 2823 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a32bb8d6cf5fc028bf501252767c08b21"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">armnn::IWorkloadFactory::CreateConcat</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConcat(const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01118">WorkloadFactory.cpp:1118</a></div></div> |
| 2824 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a37f4eba7877deb34f4d8d64c9bcb9ab5"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">armnn::IWorkloadFactory::SupportsSubTensors</a></div><div class="ttdeci">virtual bool SupportsSubTensors() const =0</div></div> |
| 2825 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">armnn::ConcatQueueDescriptor::ViewOrigin</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00104">WorkloadData.hpp:104</a></div></div> |
| 2826 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html">armnn::ConcatQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00102">WorkloadData.hpp:102</a></div></div> |
| 2827 | </div><!-- fragment --> |
| 2828 | </div> |
| 2829 | </div> |
| 2830 | <a id="a66df3b4ed5c8e464dcba94c2afc2b432"></a> |
| 2831 | <h2 class="memtitle"><span class="permalink"><a href="#a66df3b4ed5c8e464dcba94c2afc2b432">◆ </a></span>ConcatUint16Test()</h2> |
| 2832 | |
| 2833 | <div class="memitem"> |
| 2834 | <div class="memproto"> |
| 2835 | <table class="memname"> |
| 2836 | <tr> |
| 2837 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint16_t, 3> ConcatUint16Test </td> |
| 2838 | <td>(</td> |
| 2839 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2840 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2841 | </tr> |
| 2842 | <tr> |
| 2843 | <td class="paramkey"></td> |
| 2844 | <td></td> |
| 2845 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2846 | <td class="paramname"><em>memoryManager</em> </td> |
| 2847 | </tr> |
| 2848 | <tr> |
| 2849 | <td></td> |
| 2850 | <td>)</td> |
| 2851 | <td></td><td></td> |
| 2852 | </tr> |
| 2853 | </table> |
| 2854 | </div><div class="memdoc"> |
| 2855 | |
| 2856 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02628">2628</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2857 | |
| 2858 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01118">IWorkloadFactory::CreateConcat()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">IWorkloadFactory::CreateSubTensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::info</a>, <a class="el" href="_workload_data_8hpp_source.html#l00115">ConcatQueueDescriptor::m_ViewOrigins</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="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>, <a class="el" href="_tensor_8cpp_source.html#l00259">TensorInfo::SetQuantizationScale()</a>, and <a class="el" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">IWorkloadFactory::SupportsSubTensors()</a>.</p> |
| 2859 | <div class="fragment"><div class="line"><a name="l02631"></a><span class="lineno"> 2631</span> {</div><div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l02633"></a><span class="lineno"> 2633</span> </div><div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputWidth = 3;</div><div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputHeight = 6;</div><div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 3;</div><div class="line"><a name="l02637"></a><span class="lineno"> 2637</span> </div><div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth1 = 3;</div><div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight1 = 6;</div><div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels1 = 2;</div><div class="line"><a name="l02641"></a><span class="lineno"> 2641</span> </div><div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth2 = 3;</div><div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight2 = 6;</div><div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels2 = 1;</div><div class="line"><a name="l02645"></a><span class="lineno"> 2645</span> </div><div class="line"><a name="l02646"></a><span class="lineno"> 2646</span>  <span class="comment">// Defines the tensor descriptors.</span></div><div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ outputChannels, outputHeight, outputWidth }, DataType::QSymmS16);</div><div class="line"><a name="l02648"></a><span class="lineno"> 2648</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ inputChannels1, inputHeight1, inputWidth1 }, DataType::QSymmS16);</div><div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo2({ inputChannels2, inputHeight2, inputWidth2 }, DataType::QSymmS16);</div><div class="line"><a name="l02650"></a><span class="lineno"> 2650</span> </div><div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>  <span class="comment">// Arbitrary scale and offsets. They don't really matter as the Concat operator doesn't dequantize/quantize them.</span></div><div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> scale = 0.13497836f;</div><div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>  <span class="keyword">const</span> int32_t offset = -7;</div><div class="line"><a name="l02654"></a><span class="lineno"> 2654</span> </div><div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>  outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(scale);</div><div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>  outputTensorInfo.SetQuantizationOffset(offset);</div><div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>  inputTensorInfo1.SetQuantizationScale(scale);</div><div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>  inputTensorInfo1.SetQuantizationOffset(offset);</div><div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>  inputTensorInfo2.SetQuantizationScale(scale);</div><div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>  inputTensorInfo2.SetQuantizationOffset(offset);</div><div class="line"><a name="l02661"></a><span class="lineno"> 2661</span> </div><div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<uint16_t, 3></a> ret(outputTensorInfo);</div><div class="line"><a name="l02663"></a><span class="lineno"> 2663</span> </div><div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>  ret.outputExpected = MakeTensor<uint16_t, 3>(outputTensorInfo, std::vector<uint16_t>(</div><div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>  {</div><div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>  1, 2, 3,</div><div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>  4, 5, 6,</div><div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>  7, 8, 9,</div><div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>  10, 11, 12,</div><div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>  13, 14, 15,</div><div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>  16, 17, 18,</div><div class="line"><a name="l02672"></a><span class="lineno"> 2672</span> </div><div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>  19, 20, 21,</div><div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>  22, 23, 24,</div><div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>  25, 26, 27,</div><div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>  28, 29, 30,</div><div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>  31, 32, 33,</div><div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>  34, 35, 36,</div><div class="line"><a name="l02679"></a><span class="lineno"> 2679</span> </div><div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>  37, 38, 39,</div><div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>  40, 41, 42,</div><div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>  43, 44, 45,</div><div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>  46, 47, 48,</div><div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>  49, 50, 51,</div><div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>  52, 53, 54,</div><div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>  }));</div><div class="line"><a name="l02687"></a><span class="lineno"> 2687</span> </div><div class="line"><a name="l02688"></a><span class="lineno"> 2688</span>  <span class="keyword">auto</span> input1 = MakeTensor<uint16_t, 3>(inputTensorInfo1, std::vector<uint16_t>(</div><div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>  {</div><div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>  1, 2, 3,</div><div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>  4, 5, 6,</div><div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>  7, 8, 9,</div><div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>  10, 11, 12,</div><div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>  13, 14, 15,</div><div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>  16, 17, 18,</div><div class="line"><a name="l02696"></a><span class="lineno"> 2696</span> </div><div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>  19, 20, 21,</div><div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>  22, 23, 24,</div><div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>  25, 26, 27,</div><div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>  28, 29, 30,</div><div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>  31, 32, 33,</div><div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>  34, 35, 36,</div><div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>  }));</div><div class="line"><a name="l02704"></a><span class="lineno"> 2704</span> </div><div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>  <span class="keyword">auto</span> input2 = MakeTensor<uint16_t, 3>(inputTensorInfo2, std::vector<uint16_t>(</div><div class="line"><a name="l02706"></a><span class="lineno"> 2706</span>  {</div><div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>  37, 38, 39,</div><div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>  40, 41, 42,</div><div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>  43, 44, 45,</div><div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>  46, 47, 48,</div><div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>  49, 50, 51,</div><div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>  52, 53, 54,</div><div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>  }));</div><div class="line"><a name="l02714"></a><span class="lineno"> 2714</span> </div><div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>  std::vector<unsigned int> wOrigin1 = { 0, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[0].</span></div><div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window1(wOrigin1);</div><div class="line"><a name="l02717"></a><span class="lineno"> 2717</span> </div><div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>  std::vector<unsigned int> wOrigin2 = { 2, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[1].</span></div><div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window2(wOrigin2);</div><div class="line"><a name="l02720"></a><span class="lineno"> 2720</span> </div><div class="line"><a name="l02721"></a><span class="lineno"> 2721</span> </div><div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l02723"></a><span class="lineno"> 2723</span> </div><div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>  <span class="keywordtype">bool</span> subTensorsSupported = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">SupportsSubTensors</a>();</div><div class="line"><a name="l02725"></a><span class="lineno"> 2725</span> </div><div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>  std::unique_ptr<ITensorHandle> inputHandle1 =</div><div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>  subTensorsSupported ?</div><div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo1.GetShape(), wOrigin1.data()) :</div><div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo1);</div><div class="line"><a name="l02730"></a><span class="lineno"> 2730</span> </div><div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>  std::unique_ptr<ITensorHandle> inputHandle2 =</div><div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>  subTensorsSupported ?</div><div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo2.GetShape(), wOrigin2.data()) :</div><div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo2);</div><div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> </div><div class="line"><a name="l02736"></a><span class="lineno"> 2736</span> </div><div class="line"><a name="l02737"></a><span class="lineno"> 2737</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor.html">ConcatQueueDescriptor</a> data;</div><div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>  AddInputToWorkload(data, info, inputTensorInfo1, inputHandle1.get());</div><div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>  AddInputToWorkload(data, info, inputTensorInfo2, inputHandle2.get());</div><div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l02742"></a><span class="lineno"> 2742</span> </div><div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window1);</div><div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window2);</div><div class="line"><a name="l02745"></a><span class="lineno"> 2745</span> </div><div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">CreateConcat</a>(data, info);</div><div class="line"><a name="l02747"></a><span class="lineno"> 2747</span> </div><div class="line"><a name="l02748"></a><span class="lineno"> 2748</span>  inputHandle1->Allocate();</div><div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>  inputHandle2->Allocate();</div><div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>  outputHandle->Allocate();</div><div class="line"><a name="l02751"></a><span class="lineno"> 2751</span> </div><div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle1.get(), &input1[0][0][0]);</div><div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle2.get(), &input2[0][0][0]);</div><div class="line"><a name="l02754"></a><span class="lineno"> 2754</span> </div><div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>  workload->Execute();</div><div class="line"><a name="l02757"></a><span class="lineno"> 2757</span> </div><div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&ret.output[0][0][0], outputHandle.get());</div><div class="line"><a name="l02759"></a><span class="lineno"> 2759</span> </div><div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l02761"></a><span class="lineno"> 2761</span> }</div><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> |
| 2860 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 2861 | <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> |
| 2862 | <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> |
| 2863 | <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> |
| 2864 | <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> |
| 2865 | <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> |
| 2866 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html_ab1794eb3e74c9700cd3d500fc06dc2e5"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">armnn::ConcatQueueDescriptor::m_ViewOrigins</a></div><div class="ttdeci">std::vector< ViewOrigin > m_ViewOrigins</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00115">WorkloadData.hpp:115</a></div></div> |
| 2867 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_ac043991b839903b2ba9da884e4020848"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">armnn::IWorkloadFactory::CreateSubTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0</div></div> |
| 2868 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a32bb8d6cf5fc028bf501252767c08b21"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">armnn::IWorkloadFactory::CreateConcat</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConcat(const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01118">WorkloadFactory.cpp:1118</a></div></div> |
| 2869 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a37f4eba7877deb34f4d8d64c9bcb9ab5"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">armnn::IWorkloadFactory::SupportsSubTensors</a></div><div class="ttdeci">virtual bool SupportsSubTensors() const =0</div></div> |
| 2870 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a685739c4eb65a580e075282cfe6787d6"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">armnn::TensorInfo::SetQuantizationScale</a></div><div class="ttdeci">void SetQuantizationScale(float scale)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00259">Tensor.cpp:259</a></div></div> |
| 2871 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">armnn::ConcatQueueDescriptor::ViewOrigin</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00104">WorkloadData.hpp:104</a></div></div> |
| 2872 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html">armnn::ConcatQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00102">WorkloadData.hpp:102</a></div></div> |
| 2873 | </div><!-- fragment --> |
| 2874 | </div> |
| 2875 | </div> |
| 2876 | <a id="aa1491773368b57bfbe2a737a05c041fa"></a> |
| 2877 | <h2 class="memtitle"><span class="permalink"><a href="#aa1491773368b57bfbe2a737a05c041fa">◆ </a></span>ConcatUint8DifferentQParamsTest()</h2> |
| 2878 | |
| 2879 | <div class="memitem"> |
| 2880 | <div class="memproto"> |
| 2881 | <table class="memname"> |
| 2882 | <tr> |
| 2883 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> ConcatUint8DifferentQParamsTest </td> |
| 2884 | <td>(</td> |
| 2885 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2886 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2887 | </tr> |
| 2888 | <tr> |
| 2889 | <td class="paramkey"></td> |
| 2890 | <td></td> |
| 2891 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2892 | <td class="paramname"><em>memoryManager</em> </td> |
| 2893 | </tr> |
| 2894 | <tr> |
| 2895 | <td></td> |
| 2896 | <td>)</td> |
| 2897 | <td></td><td></td> |
| 2898 | </tr> |
| 2899 | </table> |
| 2900 | </div><div class="memdoc"> |
| 2901 | |
| 2902 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02345">2345</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2903 | |
| 2904 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01118">IWorkloadFactory::CreateConcat()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">IWorkloadFactory::CreateSubTensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::info</a>, <a class="el" href="_workload_data_8hpp_source.html#l00115">ConcatQueueDescriptor::m_ViewOrigins</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="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, and <a class="el" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">IWorkloadFactory::SupportsSubTensors()</a>.</p> |
| 2905 | <div class="fragment"><div class="line"><a name="l02348"></a><span class="lineno"> 2348</span> {</div><div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l02350"></a><span class="lineno"> 2350</span> </div><div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputWidth = 3;</div><div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputHeight = 6;</div><div class="line"><a name="l02353"></a><span class="lineno"> 2353</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 3;</div><div class="line"><a name="l02354"></a><span class="lineno"> 2354</span> </div><div class="line"><a name="l02355"></a><span class="lineno"> 2355</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth1 = 3;</div><div class="line"><a name="l02356"></a><span class="lineno"> 2356</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight1 = 6;</div><div class="line"><a name="l02357"></a><span class="lineno"> 2357</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels1 = 2;</div><div class="line"><a name="l02358"></a><span class="lineno"> 2358</span> </div><div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth2 = 3;</div><div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight2 = 6;</div><div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels2 = 1;</div><div class="line"><a name="l02362"></a><span class="lineno"> 2362</span> </div><div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>  <span class="comment">// Defines the tensor descriptors.</span></div><div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ outputChannels, outputHeight, outputWidth }, DataType::QAsymmU8);</div><div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ inputChannels1, inputHeight1, inputWidth1 }, DataType::QAsymmU8);</div><div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo2({ inputChannels2, inputHeight2, inputWidth2 }, DataType::QAsymmU8);</div><div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> </div><div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>  <span class="comment">// Quantized input1 tensor. Range [-3, 1]</span></div><div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> inputScale1 = 0.015686f;</div><div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>  <span class="keyword">const</span> int32_t inputOffset1 = 192;</div><div class="line"><a name="l02371"></a><span class="lineno"> 2371</span> </div><div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>  <span class="keyword">auto</span> input1 = MakeTensor<uint8_t, 3>(inputTensorInfo1, std::vector<uint8_t>(</div><div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>  {</div><div class="line"><a name="l02374"></a><span class="lineno"> 2374</span>  1, 2, 3,</div><div class="line"><a name="l02375"></a><span class="lineno"> 2375</span>  4, 5, 6,</div><div class="line"><a name="l02376"></a><span class="lineno"> 2376</span>  7, 8, 9,</div><div class="line"><a name="l02377"></a><span class="lineno"> 2377</span>  10, 11, 12,</div><div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>  13, 14, 15,</div><div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>  16, 17, 18,</div><div class="line"><a name="l02380"></a><span class="lineno"> 2380</span> </div><div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>  19, 20, 21,</div><div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>  22, 23, 24,</div><div class="line"><a name="l02383"></a><span class="lineno"> 2383</span>  25, 26, 27,</div><div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>  28, 29, 30,</div><div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>  31, 32, 33,</div><div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>  34, 35, 36,</div><div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>  })</div><div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>  );</div><div class="line"><a name="l02389"></a><span class="lineno"> 2389</span> </div><div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>  <span class="comment">// Quatized input2 tensor. Range [-1, 4]</span></div><div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> inputScale2 = 0.019608f;</div><div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>  <span class="keyword">const</span> int32_t inputOffset2 = 50;</div><div class="line"><a name="l02393"></a><span class="lineno"> 2393</span> </div><div class="line"><a name="l02394"></a><span class="lineno"> 2394</span>  <span class="keyword">auto</span> input2 = MakeTensor<uint8_t, 3>(inputTensorInfo2, std::vector<uint8_t>(</div><div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>  {</div><div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>  37, 38, 39,</div><div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>  40, 41, 42,</div><div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>  43, 44, 45,</div><div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>  46, 47, 48,</div><div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>  49, 50, 51,</div><div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>  52, 53, 54,</div><div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>  })</div><div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>  );</div><div class="line"><a name="l02404"></a><span class="lineno"> 2404</span> </div><div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>  <span class="comment">// Output has the same quantization parameters than input1,</span></div><div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>  <span class="comment">// so that only the requantization of input2 is required</span></div><div class="line"><a name="l02407"></a><span class="lineno"> 2407</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> outputScale = 0.015686f;</div><div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>  <span class="keyword">const</span> int32_t outputOffset = 192;</div><div class="line"><a name="l02409"></a><span class="lineno"> 2409</span> </div><div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<uint8_t, 3></a> ret(outputTensorInfo);</div><div class="line"><a name="l02411"></a><span class="lineno"> 2411</span> </div><div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>  ret.outputExpected = MakeTensor<uint8_t, 3>(outputTensorInfo, std::vector<uint8_t>(</div><div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>  {</div><div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>  1, 2, 3,</div><div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>  4, 5, 6,</div><div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>  7, 8, 9,</div><div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>  10, 11, 12,</div><div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>  13, 14, 15,</div><div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>  16, 17, 18,</div><div class="line"><a name="l02420"></a><span class="lineno"> 2420</span> </div><div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>  19, 20, 21,</div><div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>  22, 23, 24,</div><div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>  25, 26, 27,</div><div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>  28, 29, 30,</div><div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>  31, 32, 33,</div><div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>  34, 35, 36,</div><div class="line"><a name="l02427"></a><span class="lineno"> 2427</span> </div><div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>  176, 177, 178,</div><div class="line"><a name="l02429"></a><span class="lineno"> 2429</span>  179, 181, 182,</div><div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>  183, 184, 186,</div><div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>  187, 188, 189,</div><div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>  191, 192, 193,</div><div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>  195, 196, 197,</div><div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>  })</div><div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>  );</div><div class="line"><a name="l02436"></a><span class="lineno"> 2436</span> </div><div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>  outputTensorInfo.SetQuantizationScale(outputScale);</div><div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>  outputTensorInfo.SetQuantizationOffset(outputOffset);</div><div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>  inputTensorInfo1.SetQuantizationScale(inputScale1);</div><div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>  inputTensorInfo1.SetQuantizationOffset(inputOffset1);</div><div class="line"><a name="l02441"></a><span class="lineno"> 2441</span>  inputTensorInfo2.SetQuantizationScale(inputScale2);</div><div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>  inputTensorInfo2.SetQuantizationOffset(inputOffset2);</div><div class="line"><a name="l02443"></a><span class="lineno"> 2443</span> </div><div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>  std::vector<unsigned int> wOrigin1 = { 0, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[0].</span></div><div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window1(wOrigin1);</div><div class="line"><a name="l02446"></a><span class="lineno"> 2446</span> </div><div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>  std::vector<unsigned int> wOrigin2 = { 2, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[1].</span></div><div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window2(wOrigin2);</div><div class="line"><a name="l02449"></a><span class="lineno"> 2449</span> </div><div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l02451"></a><span class="lineno"> 2451</span> </div><div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>  <span class="keywordtype">bool</span> subTensorsSupported = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">SupportsSubTensors</a>();</div><div class="line"><a name="l02453"></a><span class="lineno"> 2453</span> </div><div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>  std::unique_ptr<ITensorHandle> inputHandle1 =</div><div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>  subTensorsSupported ?</div><div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo1.GetShape(), wOrigin1.data()) :</div><div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo1);</div><div class="line"><a name="l02458"></a><span class="lineno"> 2458</span> </div><div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>  std::unique_ptr<ITensorHandle> inputHandle2 =</div><div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>  subTensorsSupported ?</div><div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo2.GetShape(), wOrigin2.data()) :</div><div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo2);</div><div class="line"><a name="l02463"></a><span class="lineno"> 2463</span> </div><div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor.html">ConcatQueueDescriptor</a> data;</div><div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>  AddInputToWorkload(data, info, inputTensorInfo1, inputHandle1.get());</div><div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>  AddInputToWorkload(data, info, inputTensorInfo2, inputHandle2.get());</div><div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l02469"></a><span class="lineno"> 2469</span> </div><div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window1);</div><div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window2);</div><div class="line"><a name="l02472"></a><span class="lineno"> 2472</span> </div><div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">CreateConcat</a>(data, info);</div><div class="line"><a name="l02474"></a><span class="lineno"> 2474</span> </div><div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>  inputHandle1->Allocate();</div><div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>  inputHandle2->Allocate();</div><div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>  outputHandle->Allocate();</div><div class="line"><a name="l02478"></a><span class="lineno"> 2478</span> </div><div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle1.get(), &input1[0][0][0]);</div><div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle2.get(), &input2[0][0][0]);</div><div class="line"><a name="l02481"></a><span class="lineno"> 2481</span> </div><div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>  workload->Execute();</div><div class="line"><a name="l02484"></a><span class="lineno"> 2484</span> </div><div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&ret.output[0][0][0], outputHandle.get());</div><div class="line"><a name="l02486"></a><span class="lineno"> 2486</span> </div><div class="line"><a name="l02487"></a><span class="lineno"> 2487</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l02488"></a><span class="lineno"> 2488</span> }</div><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> |
| 2906 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 2907 | <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> |
| 2908 | <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> |
| 2909 | <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> |
| 2910 | <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> |
| 2911 | <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> |
| 2912 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html_ab1794eb3e74c9700cd3d500fc06dc2e5"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">armnn::ConcatQueueDescriptor::m_ViewOrigins</a></div><div class="ttdeci">std::vector< ViewOrigin > m_ViewOrigins</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00115">WorkloadData.hpp:115</a></div></div> |
| 2913 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_ac043991b839903b2ba9da884e4020848"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">armnn::IWorkloadFactory::CreateSubTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0</div></div> |
| 2914 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a32bb8d6cf5fc028bf501252767c08b21"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">armnn::IWorkloadFactory::CreateConcat</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConcat(const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01118">WorkloadFactory.cpp:1118</a></div></div> |
| 2915 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a37f4eba7877deb34f4d8d64c9bcb9ab5"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">armnn::IWorkloadFactory::SupportsSubTensors</a></div><div class="ttdeci">virtual bool SupportsSubTensors() const =0</div></div> |
| 2916 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">armnn::ConcatQueueDescriptor::ViewOrigin</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00104">WorkloadData.hpp:104</a></div></div> |
| 2917 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html">armnn::ConcatQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00102">WorkloadData.hpp:102</a></div></div> |
| 2918 | </div><!-- fragment --> |
| 2919 | </div> |
| 2920 | </div> |
| 2921 | <a id="ab0aa694e3cd5555731f28b2c61a01f7e"></a> |
| 2922 | <h2 class="memtitle"><span class="permalink"><a href="#ab0aa694e3cd5555731f28b2c61a01f7e">◆ </a></span>ConcatUint8Test()</h2> |
| 2923 | |
| 2924 | <div class="memitem"> |
| 2925 | <div class="memproto"> |
| 2926 | <table class="memname"> |
| 2927 | <tr> |
| 2928 | <td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a><uint8_t, 3> ConcatUint8Test </td> |
| 2929 | <td>(</td> |
| 2930 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 2931 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 2932 | </tr> |
| 2933 | <tr> |
| 2934 | <td class="paramkey"></td> |
| 2935 | <td></td> |
| 2936 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 2937 | <td class="paramname"><em>memoryManager</em> </td> |
| 2938 | </tr> |
| 2939 | <tr> |
| 2940 | <td></td> |
| 2941 | <td>)</td> |
| 2942 | <td></td><td></td> |
| 2943 | </tr> |
| 2944 | </table> |
| 2945 | </div><div class="memdoc"> |
| 2946 | |
| 2947 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l02490">2490</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2948 | |
| 2949 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01118">IWorkloadFactory::CreateConcat()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">IWorkloadFactory::CreateSubTensorHandle()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::info</a>, <a class="el" href="_workload_data_8hpp_source.html#l00115">ConcatQueueDescriptor::m_ViewOrigins</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="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, <a class="el" href="_tensor_8cpp_source.html#l00259">TensorInfo::SetQuantizationScale()</a>, and <a class="el" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">IWorkloadFactory::SupportsSubTensors()</a>.</p> |
| 2950 | <div class="fragment"><div class="line"><a name="l02493"></a><span class="lineno"> 2493</span> {</div><div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l02495"></a><span class="lineno"> 2495</span> </div><div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputWidth = 3;</div><div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputHeight = 6;</div><div class="line"><a name="l02498"></a><span class="lineno"> 2498</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 3;</div><div class="line"><a name="l02499"></a><span class="lineno"> 2499</span> </div><div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth1 = 3;</div><div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight1 = 6;</div><div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels1 = 2;</div><div class="line"><a name="l02503"></a><span class="lineno"> 2503</span> </div><div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth2 = 3;</div><div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight2 = 6;</div><div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels2 = 1;</div><div class="line"><a name="l02507"></a><span class="lineno"> 2507</span> </div><div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>  <span class="comment">// Defines the tensor descriptors.</span></div><div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo({ outputChannels, outputHeight, outputWidth }, DataType::QAsymmU8);</div><div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo1({ inputChannels1, inputHeight1, inputWidth1 }, DataType::QAsymmU8);</div><div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputTensorInfo2({ inputChannels2, inputHeight2, inputWidth2 }, DataType::QAsymmU8);</div><div class="line"><a name="l02512"></a><span class="lineno"> 2512</span> </div><div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>  <span class="comment">// Arbitrary scale and offsets. They don't really matter as the Concat operator doesn't dequantize/quantize them.</span></div><div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> scale = 0.13497836f;</div><div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>  <span class="keyword">const</span> int32_t offset = -7;</div><div class="line"><a name="l02516"></a><span class="lineno"> 2516</span> </div><div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>  outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(scale);</div><div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>  outputTensorInfo.SetQuantizationOffset(offset);</div><div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>  inputTensorInfo1.SetQuantizationScale(scale);</div><div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>  inputTensorInfo1.SetQuantizationOffset(offset);</div><div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>  inputTensorInfo2.SetQuantizationScale(scale);</div><div class="line"><a name="l02522"></a><span class="lineno"> 2522</span>  inputTensorInfo2.SetQuantizationOffset(offset);</div><div class="line"><a name="l02523"></a><span class="lineno"> 2523</span> </div><div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<uint8_t, 3></a> ret(outputTensorInfo);</div><div class="line"><a name="l02525"></a><span class="lineno"> 2525</span> </div><div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>  ret.outputExpected = MakeTensor<uint8_t, 3>(outputTensorInfo, std::vector<uint8_t>(</div><div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>  {</div><div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>  1, 2, 3,</div><div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>  4, 5, 6,</div><div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>  7, 8, 9,</div><div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>  10, 11, 12,</div><div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>  13, 14, 15,</div><div class="line"><a name="l02533"></a><span class="lineno"> 2533</span>  16, 17, 18,</div><div class="line"><a name="l02534"></a><span class="lineno"> 2534</span> </div><div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>  19, 20, 21,</div><div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>  22, 23, 24,</div><div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>  25, 26, 27,</div><div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>  28, 29, 30,</div><div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>  31, 32, 33,</div><div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>  34, 35, 36,</div><div class="line"><a name="l02541"></a><span class="lineno"> 2541</span> </div><div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>  37, 38, 39,</div><div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>  40, 41, 42,</div><div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>  43, 44, 45,</div><div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>  46, 47, 48,</div><div class="line"><a name="l02546"></a><span class="lineno"> 2546</span>  49, 50, 51,</div><div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>  52, 53, 54,</div><div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>  })</div><div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>  );</div><div class="line"><a name="l02550"></a><span class="lineno"> 2550</span> </div><div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>  <span class="keyword">auto</span> input1 = MakeTensor<uint8_t, 3>(inputTensorInfo1, std::vector<uint8_t>(</div><div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>  {</div><div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>  1, 2, 3,</div><div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>  4, 5, 6,</div><div class="line"><a name="l02555"></a><span class="lineno"> 2555</span>  7, 8, 9,</div><div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>  10, 11, 12,</div><div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>  13, 14, 15,</div><div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>  16, 17, 18,</div><div class="line"><a name="l02559"></a><span class="lineno"> 2559</span> </div><div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>  19, 20, 21,</div><div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>  22, 23, 24,</div><div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>  25, 26, 27,</div><div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>  28, 29, 30,</div><div class="line"><a name="l02564"></a><span class="lineno"> 2564</span>  31, 32, 33,</div><div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>  34, 35, 36,</div><div class="line"><a name="l02566"></a><span class="lineno"> 2566</span>  })</div><div class="line"><a name="l02567"></a><span class="lineno"> 2567</span>  );</div><div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> </div><div class="line"><a name="l02569"></a><span class="lineno"> 2569</span>  <span class="keyword">auto</span> input2 = MakeTensor<uint8_t, 3>(inputTensorInfo2, std::vector<uint8_t>(</div><div class="line"><a name="l02570"></a><span class="lineno"> 2570</span>  {</div><div class="line"><a name="l02571"></a><span class="lineno"> 2571</span>  37, 38, 39,</div><div class="line"><a name="l02572"></a><span class="lineno"> 2572</span>  40, 41, 42,</div><div class="line"><a name="l02573"></a><span class="lineno"> 2573</span>  43, 44, 45,</div><div class="line"><a name="l02574"></a><span class="lineno"> 2574</span>  46, 47, 48,</div><div class="line"><a name="l02575"></a><span class="lineno"> 2575</span>  49, 50, 51,</div><div class="line"><a name="l02576"></a><span class="lineno"> 2576</span>  52, 53, 54,</div><div class="line"><a name="l02577"></a><span class="lineno"> 2577</span>  })</div><div class="line"><a name="l02578"></a><span class="lineno"> 2578</span>  );</div><div class="line"><a name="l02579"></a><span class="lineno"> 2579</span> </div><div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>  std::vector<unsigned int> wOrigin1 = { 0, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[0].</span></div><div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window1(wOrigin1);</div><div class="line"><a name="l02582"></a><span class="lineno"> 2582</span> </div><div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>  std::vector<unsigned int> wOrigin2 = { 2, 0, 0 }; <span class="comment">//Extent of the window is defined by size of input[1].</span></div><div class="line"><a name="l02584"></a><span class="lineno"> 2584</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">ConcatQueueDescriptor::ViewOrigin</a> window2(wOrigin2);</div><div class="line"><a name="l02585"></a><span class="lineno"> 2585</span> </div><div class="line"><a name="l02586"></a><span class="lineno"> 2586</span> </div><div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l02588"></a><span class="lineno"> 2588</span> </div><div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>  <span class="keywordtype">bool</span> subTensorsSupported = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">SupportsSubTensors</a>();</div><div class="line"><a name="l02590"></a><span class="lineno"> 2590</span> </div><div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>  std::unique_ptr<ITensorHandle> inputHandle1 =</div><div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>  subTensorsSupported ?</div><div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo1.GetShape(), wOrigin1.data()) :</div><div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo1);</div><div class="line"><a name="l02595"></a><span class="lineno"> 2595</span> </div><div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>  std::unique_ptr<ITensorHandle> inputHandle2 =</div><div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>  subTensorsSupported ?</div><div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">CreateSubTensorHandle</a>(*outputHandle, inputTensorInfo2.GetShape(), wOrigin2.data()) :</div><div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>  workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo2);</div><div class="line"><a name="l02600"></a><span class="lineno"> 2600</span> </div><div class="line"><a name="l02601"></a><span class="lineno"> 2601</span> </div><div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>  <a class="code" href="structarmnn_1_1_concat_queue_descriptor.html">ConcatQueueDescriptor</a> data;</div><div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>  AddInputToWorkload(data, info, inputTensorInfo1, inputHandle1.get());</div><div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>  AddInputToWorkload(data, info, inputTensorInfo2, inputHandle2.get());</div><div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l02607"></a><span class="lineno"> 2607</span> </div><div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window1);</div><div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>  data.<a class="code" href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">m_ViewOrigins</a>.push_back(window2);</div><div class="line"><a name="l02610"></a><span class="lineno"> 2610</span> </div><div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">CreateConcat</a>(data, info);</div><div class="line"><a name="l02612"></a><span class="lineno"> 2612</span> </div><div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>  inputHandle1->Allocate();</div><div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>  inputHandle2->Allocate();</div><div class="line"><a name="l02615"></a><span class="lineno"> 2615</span>  outputHandle->Allocate();</div><div class="line"><a name="l02616"></a><span class="lineno"> 2616</span> </div><div class="line"><a name="l02617"></a><span class="lineno"> 2617</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle1.get(), &input1[0][0][0]);</div><div class="line"><a name="l02618"></a><span class="lineno"> 2618</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle2.get(), &input2[0][0][0]);</div><div class="line"><a name="l02619"></a><span class="lineno"> 2619</span> </div><div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>  workload->Execute();</div><div class="line"><a name="l02622"></a><span class="lineno"> 2622</span> </div><div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&ret.output[0][0][0], outputHandle.get());</div><div class="line"><a name="l02624"></a><span class="lineno"> 2624</span> </div><div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l02626"></a><span class="lineno"> 2626</span> }</div><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> |
| 2951 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 2952 | <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> |
| 2953 | <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> |
| 2954 | <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> |
| 2955 | <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> |
| 2956 | <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> |
| 2957 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html_ab1794eb3e74c9700cd3d500fc06dc2e5"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html#ab1794eb3e74c9700cd3d500fc06dc2e5">armnn::ConcatQueueDescriptor::m_ViewOrigins</a></div><div class="ttdeci">std::vector< ViewOrigin > m_ViewOrigins</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00115">WorkloadData.hpp:115</a></div></div> |
| 2958 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_ac043991b839903b2ba9da884e4020848"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#ac043991b839903b2ba9da884e4020848">armnn::IWorkloadFactory::CreateSubTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0</div></div> |
| 2959 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a32bb8d6cf5fc028bf501252767c08b21"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a32bb8d6cf5fc028bf501252767c08b21">armnn::IWorkloadFactory::CreateConcat</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConcat(const ConcatQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01118">WorkloadFactory.cpp:1118</a></div></div> |
| 2960 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a37f4eba7877deb34f4d8d64c9bcb9ab5"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a37f4eba7877deb34f4d8d64c9bcb9ab5">armnn::IWorkloadFactory::SupportsSubTensors</a></div><div class="ttdeci">virtual bool SupportsSubTensors() const =0</div></div> |
| 2961 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a685739c4eb65a580e075282cfe6787d6"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">armnn::TensorInfo::SetQuantizationScale</a></div><div class="ttdeci">void SetQuantizationScale(float scale)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00259">Tensor.cpp:259</a></div></div> |
| 2962 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor_1_1_view_origin.html">armnn::ConcatQueueDescriptor::ViewOrigin</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00104">WorkloadData.hpp:104</a></div></div> |
| 2963 | <div class="ttc" id="structarmnn_1_1_concat_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_concat_queue_descriptor.html">armnn::ConcatQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00102">WorkloadData.hpp:102</a></div></div> |
| 2964 | </div><!-- fragment --> |
| 2965 | </div> |
| 2966 | </div> |
| 2967 | <a id="a908c80ff86d48fe1bc7cd4d4b1d00147"></a> |
| 2968 | <h2 class="memtitle"><span class="permalink"><a href="#a908c80ff86d48fe1bc7cd4d4b1d00147">◆ </a></span>CreateDescriptorForConcat()</h2> |
| 2969 | |
| 2970 | <div class="memitem"> |
| 2971 | <div class="memproto"> |
| 2972 | <table class="memname"> |
| 2973 | <tr> |
| 2974 | <td class="memname"><a class="el" href="structarmnn_1_1_origins_descriptor.html">OriginsDescriptor</a> CreateDescriptorForConcat </td> |
| 2975 | <td>(</td> |
| 2976 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > & </td> |
| 2977 | <td class="paramname"><em>inputTensorInfos</em>, </td> |
| 2978 | </tr> |
| 2979 | <tr> |
| 2980 | <td class="paramkey"></td> |
| 2981 | <td></td> |
| 2982 | <td class="paramtype">unsigned int </td> |
| 2983 | <td class="paramname"><em>concatDim</em> </td> |
| 2984 | </tr> |
| 2985 | <tr> |
| 2986 | <td></td> |
| 2987 | <td>)</td> |
| 2988 | <td></td><td></td> |
| 2989 | </tr> |
| 2990 | </table> |
| 2991 | </div><div class="memdoc"> |
| 2992 | |
| 2993 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00026">26</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 2994 | |
| 2995 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00242">armnn::CreateDescriptorForConcatenation()</a>.</p> |
| 2996 | |
| 2997 | <p class="reference">Referenced by <a class="el" href="_concat_test_impl_8cpp_source.html#l00272">Concatenate()</a>.</p> |
| 2998 | <div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  std::vector<TensorShape> shapes;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  shapes.reserve(inputTensorInfos.size());</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& it: inputTensorInfos)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  shapes.push_back(it.GetShape());</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.html#a733ae6b70d0bfa43433c3e7606992328">CreateDescriptorForConcatenation</a>(shapes.begin(), shapes.end(), concatDim);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> }</div><div class="ttc" id="namespacearmnn_html_a733ae6b70d0bfa43433c3e7606992328"><div class="ttname"><a href="namespacearmnn.html#a733ae6b70d0bfa43433c3e7606992328">armnn::CreateDescriptorForConcatenation</a></div><div class="ttdeci">OriginsDescriptor CreateDescriptorForConcatenation(TensorShapeIt first, TensorShapeIt last, unsigned int concatenationDimension)</div><div class="ttdoc">Convenience template to create an OriginsDescriptor to use when creating a ConcatLayer for performing...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00242">Descriptors.hpp:242</a></div></div> |
| 2999 | <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> |
| 3000 | </div><!-- fragment --> |
| 3001 | </div> |
| 3002 | </div> |
| 3003 | <a id="a8fcf10f2804bcbbfef4fd86ef6a5ff2d"></a> |
| 3004 | <h2 class="memtitle"><span class="permalink"><a href="#a8fcf10f2804bcbbfef4fd86ef6a5ff2d">◆ </a></span>ExpandTensorShapeTo3dForPermute()</h2> |
| 3005 | |
| 3006 | <div class="memitem"> |
| 3007 | <div class="memproto"> |
| 3008 | <table class="memname"> |
| 3009 | <tr> |
| 3010 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> ExpandTensorShapeTo3dForPermute </td> |
| 3011 | <td>(</td> |
| 3012 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> & </td> |
| 3013 | <td class="paramname"><em>inputShape</em></td><td>)</td> |
| 3014 | <td></td> |
| 3015 | </tr> |
| 3016 | </table> |
| 3017 | </div><div class="memdoc"> |
| 3018 | |
| 3019 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00072">72</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 3020 | |
| 3021 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>.</p> |
| 3022 | |
| 3023 | <p class="reference">Referenced by <a class="el" href="_concat_test_impl_8cpp_source.html#l00171">PermuteInputsForConcat()</a>.</p> |
| 3024 | <div class="fragment"><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDims = inputShape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>();</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> (numDims >= 3)</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// Nothing to do if the inputShape has at least 3 dimensions.</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> inputShape;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::vector<unsigned int> newDims(<span class="keywordtype">size_t</span>(3), 1u);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> expandedBy = 3 - numDims;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<numDims; ++i)</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  newDims[expandedBy+i] = inputShape[i];</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>(3u, &newDims[0]);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div> |
| 3025 | <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> |
| 3026 | </div><!-- fragment --> |
| 3027 | </div> |
| 3028 | </div> |
| 3029 | <a id="abd92409a35f1f4c41ee52c7471936fd8"></a> |
| 3030 | <h2 class="memtitle"><span class="permalink"><a href="#abd92409a35f1f4c41ee52c7471936fd8">◆ </a></span>Generate3dPermuteVectorForConcat()</h2> |
| 3031 | |
| 3032 | <div class="memitem"> |
| 3033 | <div class="memproto"> |
| 3034 | <table class="memname"> |
| 3035 | <tr> |
| 3036 | <td class="memname">void Generate3dPermuteVectorForConcat </td> |
| 3037 | <td>(</td> |
| 3038 | <td class="paramtype">unsigned int </td> |
| 3039 | <td class="paramname"><em>numDimensions</em>, </td> |
| 3040 | </tr> |
| 3041 | <tr> |
| 3042 | <td class="paramkey"></td> |
| 3043 | <td></td> |
| 3044 | <td class="paramtype">unsigned int & </td> |
| 3045 | <td class="paramname"><em>concatDim</em>, </td> |
| 3046 | </tr> |
| 3047 | <tr> |
| 3048 | <td class="paramkey"></td> |
| 3049 | <td></td> |
| 3050 | <td class="paramtype">std::pair< <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a>, <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> > & </td> |
| 3051 | <td class="paramname"><em>permutations</em> </td> |
| 3052 | </tr> |
| 3053 | <tr> |
| 3054 | <td></td> |
| 3055 | <td>)</td> |
| 3056 | <td></td><td></td> |
| 3057 | </tr> |
| 3058 | </table> |
| 3059 | </div><div class="memdoc"> |
| 3060 | |
| 3061 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00090">90</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 3062 | |
| 3063 | <p class="reference">Referenced by <a class="el" href="_concat_test_impl_8cpp_source.html#l00171">PermuteInputsForConcat()</a>.</p> |
| 3064 | <div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  BOOST_ASSERT_MSG(numDimensions <= 3,</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="stringliteral">"Only dimensions 1,2 and 3 are supported by this helper"</span>);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> expandedBy = 3 - numDimensions;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> expandedConcatAxis = concatDim + expandedBy;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> (expandedConcatAxis == 2)</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  concatDim = 0;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> forwardPermutation({1, 2, 0});</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> reversePermutation({2, 0, 1});</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  permutations = std::make_pair(forwardPermutation, reversePermutation);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (expandedConcatAxis == 1)</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  {</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  concatDim = 0;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> forwardPermutation({2, 0, 1});</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> reversePermutation({1, 2, 0});</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  permutations = std::make_pair(forwardPermutation, reversePermutation);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  BOOST_ASSERT(expandedConcatAxis == 0);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  concatDim = 0;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  }</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> }</div><div class="ttc" id="classarmnn_1_1_permutation_vector_html"><div class="ttname"><a href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00170">Types.hpp:170</a></div></div> |
| 3065 | </div><!-- fragment --> |
| 3066 | </div> |
| 3067 | </div> |
| 3068 | <a id="a905e011ae8536bbd643dd09495524596"></a> |
| 3069 | <h2 class="memtitle"><span class="permalink"><a href="#a905e011ae8536bbd643dd09495524596">◆ </a></span>NeedPermuteForConcat()</h2> |
| 3070 | |
| 3071 | <div class="memitem"> |
| 3072 | <div class="memproto"> |
| 3073 | <table class="memname"> |
| 3074 | <tr> |
| 3075 | <td class="memname">bool NeedPermuteForConcat </td> |
| 3076 | <td>(</td> |
| 3077 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > & </td> |
| 3078 | <td class="paramname"><em>inputTensorInfos</em>, </td> |
| 3079 | </tr> |
| 3080 | <tr> |
| 3081 | <td class="paramkey"></td> |
| 3082 | <td></td> |
| 3083 | <td class="paramtype">unsigned int </td> |
| 3084 | <td class="paramname"><em>concatDim</em> </td> |
| 3085 | </tr> |
| 3086 | <tr> |
| 3087 | <td></td> |
| 3088 | <td>)</td> |
| 3089 | <td></td><td></td> |
| 3090 | </tr> |
| 3091 | </table> |
| 3092 | </div><div class="memdoc"> |
| 3093 | |
| 3094 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00046">46</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 3095 | |
| 3096 | <p class="reference">Referenced by <a class="el" href="_concat_test_impl_8cpp_source.html#l00272">Concatenate()</a>.</p> |
| 3097 | <div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="comment">// See note above. Additionally we expect the input shapes to have the</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// same number of dimensions.</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nDimensions = 0;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">// Determine the number of dimensions as well as sanity check them</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// agains test implementation issues.</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> && tensorInfo : inputTensorInfos)</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (!nDimensions)</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  nDimensions = tensorInfo.GetShape().GetNumDimensions();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  BOOST_ASSERT_MSG(nDimensions == tensorInfo.GetShape().GetNumDimensions(),</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="stringliteral">"Input shapes must have the same number of dimensions"</span>);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> (nDimensions < 3 || (nDimensions == 3 && (nDimensions-concatDim) < 3 && (nDimensions-concatDim) != 1));</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> }</div></div><!-- fragment --> |
| 3098 | </div> |
| 3099 | </div> |
| 3100 | <a id="a501616a77a3c7ca6d809c52e52da6ae3"></a> |
| 3101 | <h2 class="memtitle"><span class="permalink"><a href="#a501616a77a3c7ca6d809c52e52da6ae3">◆ </a></span>PermuteInputsForConcat()</h2> |
| 3102 | |
| 3103 | <div class="memitem"> |
| 3104 | <div class="memproto"> |
| 3105 | <table class="memname"> |
| 3106 | <tr> |
| 3107 | <td class="memname">void PermuteInputsForConcat </td> |
| 3108 | <td>(</td> |
| 3109 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 3110 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 3111 | </tr> |
| 3112 | <tr> |
| 3113 | <td class="paramkey"></td> |
| 3114 | <td></td> |
| 3115 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 3116 | <td class="paramname"><em>memoryManager</em>, </td> |
| 3117 | </tr> |
| 3118 | <tr> |
| 3119 | <td class="paramkey"></td> |
| 3120 | <td></td> |
| 3121 | <td class="paramtype">std::vector< <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> > & </td> |
| 3122 | <td class="paramname"><em>inputTensorInfos</em>, </td> |
| 3123 | </tr> |
| 3124 | <tr> |
| 3125 | <td class="paramkey"></td> |
| 3126 | <td></td> |
| 3127 | <td class="paramtype">std::vector< T *> & </td> |
| 3128 | <td class="paramname"><em>inputData</em>, </td> |
| 3129 | </tr> |
| 3130 | <tr> |
| 3131 | <td class="paramkey"></td> |
| 3132 | <td></td> |
| 3133 | <td class="paramtype">std::vector< std::vector< T >> & </td> |
| 3134 | <td class="paramname"><em>inputDataStorage</em>, </td> |
| 3135 | </tr> |
| 3136 | <tr> |
| 3137 | <td class="paramkey"></td> |
| 3138 | <td></td> |
| 3139 | <td class="paramtype"><a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> & </td> |
| 3140 | <td class="paramname"><em>permuteVector</em>, </td> |
| 3141 | </tr> |
| 3142 | <tr> |
| 3143 | <td class="paramkey"></td> |
| 3144 | <td></td> |
| 3145 | <td class="paramtype">unsigned int & </td> |
| 3146 | <td class="paramname"><em>concatDim</em>, </td> |
| 3147 | </tr> |
| 3148 | <tr> |
| 3149 | <td class="paramkey"></td> |
| 3150 | <td></td> |
| 3151 | <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 3152 | <td class="paramname"><em>outputTensorInfo</em> </td> |
| 3153 | </tr> |
| 3154 | <tr> |
| 3155 | <td></td> |
| 3156 | <td>)</td> |
| 3157 | <td></td><td></td> |
| 3158 | </tr> |
| 3159 | </table> |
| 3160 | </div><div class="memdoc"> |
| 3161 | |
| 3162 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00171">171</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 3163 | |
| 3164 | <p class="reference">References <a class="el" href="_concat_test_impl_8cpp_source.html#l00072">ExpandTensorShapeTo3dForPermute()</a>, <a class="el" href="_concat_test_impl_8cpp_source.html#l00090">Generate3dPermuteVectorForConcat()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_types_8hpp_source.html#l00204">PermutationVector::IsEqual()</a>, <a class="el" href="_permute_8cpp_source.html#l00098">armnnUtils::Permuted()</a>, and <a class="el" href="_tensor_8hpp_source.html#l00090">TensorInfo::SetShape()</a>.</p> |
| 3165 | <div class="fragment"><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  BOOST_ASSERT_MSG(inputTensorInfos.size() > 1,</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="stringliteral">"Expecting more than one tensor to be concatenated here"</span>);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDims = 0;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nthInput = 0;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> identity({0, 1, 2});</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  std::pair<PermutationVector, PermutationVector> permutations =</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  std::make_pair(identity, identity);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  inputDataStorage.resize(inputData.size());</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> && tensorInfo : inputTensorInfos)</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  {</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">if</span> (numDims == 0)</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  {</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  numDims = tensorInfo.GetShape().GetNumDimensions();</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="_concat_test_impl_8cpp.html#abd92409a35f1f4c41ee52c7471936fd8">Generate3dPermuteVectorForConcat</a>(numDims, concatDim, permutations);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="comment">// Store the reverese permutation.</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  permuteVector = permutations.second;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  BOOST_ASSERT_MSG(!permuteVector.<a class="code" href="classarmnn_1_1_permutation_vector.html#aae44e4154aa80fba7616747450ff69d5">IsEqual</a>(identity),</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="stringliteral">"Test logic error, we don't need permutation, so we shouldn't arrive here"</span>);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  }</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  {</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  BOOST_ASSERT_MSG(numDims == tensorInfo.GetShape().GetNumDimensions(),</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="stringliteral">"All inputs must have the same number of dimensions"</span>);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  }</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> newTensorInfo = tensorInfo;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  newTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">SetShape</a>(<a class="code" href="_concat_test_impl_8cpp.html#a8fcf10f2804bcbbfef4fd86ef6a5ff2d">ExpandTensorShapeTo3dForPermute</a>(tensorInfo.GetShape()));</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  PermuteTensorData<T>(workloadFactory,</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  memoryManager,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  permutations.first,</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  newTensorInfo,</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  inputData[nthInput],</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  inputDataStorage[nthInput]);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  inputData[nthInput] = inputDataStorage[nthInput].data();</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  inputTensorInfos[nthInput] = newTensorInfo;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  ++nthInput;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">SetShape</a>(</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">armnnUtils::Permuted</a>(</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="_concat_test_impl_8cpp.html#a8fcf10f2804bcbbfef4fd86ef6a5ff2d">ExpandTensorShapeTo3dForPermute</a>(outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()),</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  permutations.first));</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> }</div><div class="ttc" id="classarmnn_1_1_permutation_vector_html_aae44e4154aa80fba7616747450ff69d5"><div class="ttname"><a href="classarmnn_1_1_permutation_vector.html#aae44e4154aa80fba7616747450ff69d5">armnn::PermutationVector::IsEqual</a></div><div class="ttdeci">bool IsEqual(const PermutationVector &other) const</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00204">Types.hpp:204</a></div></div> |
| 3166 | <div class="ttc" id="classarmnn_1_1_permutation_vector_html"><div class="ttname"><a href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00170">Types.hpp:170</a></div></div> |
| 3167 | <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> |
| 3168 | <div class="ttc" id="namespacearmnn_utils_html_abeaf4f6785039866fd075f4569ba8e84"><div class="ttname"><a href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">armnnUtils::Permuted</a></div><div class="ttdeci">armnn::TensorShape Permuted(const armnn::TensorShape &srcShape, const armnn::PermutationVector &mappings)</div><div class="ttdef"><b>Definition:</b> <a href="_permute_8cpp_source.html#l00098">Permute.cpp:98</a></div></div> |
| 3169 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_abe8889e8150beef5fd204b2d87b49298"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">armnn::TensorInfo::SetShape</a></div><div class="ttdeci">void SetShape(const TensorShape &newShape)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00090">Tensor.hpp:90</a></div></div> |
| 3170 | <div class="ttc" id="_concat_test_impl_8cpp_html_a8fcf10f2804bcbbfef4fd86ef6a5ff2d"><div class="ttname"><a href="_concat_test_impl_8cpp.html#a8fcf10f2804bcbbfef4fd86ef6a5ff2d">ExpandTensorShapeTo3dForPermute</a></div><div class="ttdeci">TensorShape ExpandTensorShapeTo3dForPermute(const TensorShape &inputShape)</div><div class="ttdef"><b>Definition:</b> <a href="_concat_test_impl_8cpp_source.html#l00072">ConcatTestImpl.cpp:72</a></div></div> |
| 3171 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div> |
| 3172 | <div class="ttc" id="_concat_test_impl_8cpp_html_abd92409a35f1f4c41ee52c7471936fd8"><div class="ttname"><a href="_concat_test_impl_8cpp.html#abd92409a35f1f4c41ee52c7471936fd8">Generate3dPermuteVectorForConcat</a></div><div class="ttdeci">void Generate3dPermuteVectorForConcat(unsigned int numDimensions, unsigned int &concatDim, std::pair< PermutationVector, PermutationVector > &permutations)</div><div class="ttdef"><b>Definition:</b> <a href="_concat_test_impl_8cpp_source.html#l00090">ConcatTestImpl.cpp:90</a></div></div> |
| 3173 | </div><!-- fragment --> |
| 3174 | </div> |
| 3175 | </div> |
| 3176 | <a id="a46079932a4f92d02da9b0b538ddca52c"></a> |
| 3177 | <h2 class="memtitle"><span class="permalink"><a href="#a46079932a4f92d02da9b0b538ddca52c">◆ </a></span>PermuteOutputForConcat()</h2> |
| 3178 | |
| 3179 | <div class="memitem"> |
| 3180 | <div class="memproto"> |
| 3181 | <table class="memname"> |
| 3182 | <tr> |
| 3183 | <td class="memname">void PermuteOutputForConcat </td> |
| 3184 | <td>(</td> |
| 3185 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 3186 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 3187 | </tr> |
| 3188 | <tr> |
| 3189 | <td class="paramkey"></td> |
| 3190 | <td></td> |
| 3191 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 3192 | <td class="paramname"><em>memoryManager</em>, </td> |
| 3193 | </tr> |
| 3194 | <tr> |
| 3195 | <td class="paramkey"></td> |
| 3196 | <td></td> |
| 3197 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 3198 | <td class="paramname"><em>tensorInfo</em>, </td> |
| 3199 | </tr> |
| 3200 | <tr> |
| 3201 | <td class="paramkey"></td> |
| 3202 | <td></td> |
| 3203 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> & </td> |
| 3204 | <td class="paramname"><em>permuteVector</em>, </td> |
| 3205 | </tr> |
| 3206 | <tr> |
| 3207 | <td class="paramkey"></td> |
| 3208 | <td></td> |
| 3209 | <td class="paramtype">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_tensor_handle.html">ITensorHandle</a> > && </td> |
| 3210 | <td class="paramname"><em>inputDataHandle</em>, </td> |
| 3211 | </tr> |
| 3212 | <tr> |
| 3213 | <td class="paramkey"></td> |
| 3214 | <td></td> |
| 3215 | <td class="paramtype">T * </td> |
| 3216 | <td class="paramname"><em>data</em> </td> |
| 3217 | </tr> |
| 3218 | <tr> |
| 3219 | <td></td> |
| 3220 | <td>)</td> |
| 3221 | <td></td><td></td> |
| 3222 | </tr> |
| 3223 | </table> |
| 3224 | </div><div class="memdoc"> |
| 3225 | |
| 3226 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00239">239</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 3227 | |
| 3228 | <p class="reference">References <a class="el" href="_tensor_copy_utils_8cpp_source.html#l00014">CopyDataFromITensorHandle()</a>, and <a class="el" href="_tensor_8hpp_source.html#l00093">TensorInfo::GetNumElements()</a>.</p> |
| 3229 | <div class="fragment"><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>  BOOST_ASSERT_MSG(data != <span class="keyword">nullptr</span>, <span class="stringliteral">"data must not be null"</span>);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">if</span> (data == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  {</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="comment">// Nullptr is an error in the test. By returning without doing the permutation</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="comment">// I expect the caller to fail the test. It still makes sense to report this as</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="comment">// an assert for Debug builds.</span></div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  }</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> resultTensorInfo = tensorInfo;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  std::vector<T> inputData(tensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  std::vector<T> outputData;</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>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&inputData[0], inputDataHandle.get());</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  PermuteTensorData<T>(workloadFactory,</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  memoryManager,</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  permuteVector,</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  resultTensorInfo,</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  &inputData[0],</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  outputData);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  ::memcpy(data, &outputData[0], <span class="keyword">sizeof</span>(T)*outputData.size());</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</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> |
| 3230 | <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> |
| 3231 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 3232 | </div><!-- fragment --> |
| 3233 | </div> |
| 3234 | </div> |
| 3235 | <a id="a64d353b468c3a9ec4b783a06cf59cb42"></a> |
| 3236 | <h2 class="memtitle"><span class="permalink"><a href="#a64d353b468c3a9ec4b783a06cf59cb42">◆ </a></span>PermuteTensorData()</h2> |
| 3237 | |
| 3238 | <div class="memitem"> |
| 3239 | <div class="memproto"> |
| 3240 | <table class="memname"> |
| 3241 | <tr> |
| 3242 | <td class="memname">void PermuteTensorData </td> |
| 3243 | <td>(</td> |
| 3244 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 3245 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 3246 | </tr> |
| 3247 | <tr> |
| 3248 | <td class="paramkey"></td> |
| 3249 | <td></td> |
| 3250 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 3251 | <td class="paramname"><em>memoryManager</em>, </td> |
| 3252 | </tr> |
| 3253 | <tr> |
| 3254 | <td class="paramkey"></td> |
| 3255 | <td></td> |
| 3256 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_permutation_vector.html">PermutationVector</a> & </td> |
| 3257 | <td class="paramname"><em>mappings</em>, </td> |
| 3258 | </tr> |
| 3259 | <tr> |
| 3260 | <td class="paramkey"></td> |
| 3261 | <td></td> |
| 3262 | <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> & </td> |
| 3263 | <td class="paramname"><em>inputTensorInfo</em>, </td> |
| 3264 | </tr> |
| 3265 | <tr> |
| 3266 | <td class="paramkey"></td> |
| 3267 | <td></td> |
| 3268 | <td class="paramtype">const T * </td> |
| 3269 | <td class="paramname"><em>inputData</em>, </td> |
| 3270 | </tr> |
| 3271 | <tr> |
| 3272 | <td class="paramkey"></td> |
| 3273 | <td></td> |
| 3274 | <td class="paramtype">std::vector< T > & </td> |
| 3275 | <td class="paramname"><em>outputData</em> </td> |
| 3276 | </tr> |
| 3277 | <tr> |
| 3278 | <td></td> |
| 3279 | <td>)</td> |
| 3280 | <td></td><td></td> |
| 3281 | </tr> |
| 3282 | </table> |
| 3283 | </div><div class="memdoc"> |
| 3284 | |
| 3285 | <p class="definition">Definition at line <a class="el" href="_concat_test_impl_8cpp_source.html#l00121">121</a> of file <a class="el" href="_concat_test_impl_8cpp_source.html">ConcatTestImpl.cpp</a>.</p> |
| 3286 | |
| 3287 | <p class="reference">References <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="_workload_factory_8cpp_source.html#l01317">IWorkloadFactory::CreatePermute()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="_tensor_8hpp_source.html#l00093">TensorInfo::GetNumElements()</a>, <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters</a>, and <a class="el" href="_permute_8cpp_source.html#l00098">armnnUtils::Permuted()</a>.</p> |
| 3288 | <div class="fragment"><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  BOOST_ASSERT_MSG(inputData != <span class="keyword">nullptr</span>, <span class="stringliteral">"inputData must not be null"</span>);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span> (inputData == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// Nullptr is an error in the test. By returning without doing the concatenation</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// I expect the caller to fail the test. It still makes sense to report this as</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="comment">// an assert for Debug builds.</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputTensorInfo = <a class="code" href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">armnnUtils::Permuted</a>(inputTensorInfo, mappings);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  std::unique_ptr<ITensorHandle> inputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  std::unique_ptr<ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="structarmnn_1_1_permute_queue_descriptor.html">PermuteQueueDescriptor</a> queueDescriptor;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  queueDescriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a> = <a class="code" href="structarmnn_1_1_permute_descriptor.html">PermuteDescriptor</a>{mappings};</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> workloadInfo;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  AddInputToWorkload(queueDescriptor, workloadInfo, inputTensorInfo, inputHandle.get());</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  AddOutputToWorkload(queueDescriptor, workloadInfo, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  std::unique_ptr<IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a2dcee0bc4bbae1f745324aed0f841a0a">CreatePermute</a>(queueDescriptor, workloadInfo);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  inputHandle->Allocate();</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  outputHandle->Allocate();</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle.get(), inputData);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  workload->Execute();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  outputData.resize(outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>());</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&outputData[0], outputHandle.get());</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  inputTensorInfo = outputTensorInfo;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }</div><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> |
| 3289 | <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> |
| 3290 | <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> |
| 3291 | <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> |
| 3292 | <div class="ttc" id="structarmnn_1_1_permute_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_permute_queue_descriptor.html">armnn::PermuteQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00156">WorkloadData.hpp:156</a></div></div> |
| 3293 | <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> |
| 3294 | <div class="ttc" id="namespacearmnn_utils_html_abeaf4f6785039866fd075f4569ba8e84"><div class="ttname"><a href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">armnnUtils::Permuted</a></div><div class="ttdeci">armnn::TensorShape Permuted(const armnn::TensorShape &srcShape, const armnn::PermutationVector &mappings)</div><div class="ttdef"><b>Definition:</b> <a href="_permute_8cpp_source.html#l00098">Permute.cpp:98</a></div></div> |
| 3295 | <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> |
| 3296 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a2dcee0bc4bbae1f745324aed0f841a0a"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a2dcee0bc4bbae1f745324aed0f841a0a">armnn::IWorkloadFactory::CreatePermute</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreatePermute(const PermuteQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01317">WorkloadFactory.cpp:1317</a></div></div> |
| 3297 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 3298 | <div class="ttc" id="structarmnn_1_1_permute_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_permute_descriptor.html">armnn::PermuteDescriptor</a></div><div class="ttdoc">A PermuteDescriptor for the PermuteLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00102">Descriptors.hpp:102</a></div></div> |
| 3299 | </div><!-- fragment --> |
| 3300 | </div> |
| 3301 | </div> |
| 3302 | </div><!-- contents --> |
| 3303 | </div><!-- doc-content --> |
| 3304 | <!-- start footer part --> |
| 3305 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 3306 | <ul> |
| 3307 | <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="_concat_test_impl_8cpp.html">ConcatTestImpl.cpp</a></li> |
| 3308 | <li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by |
| 3309 | <a href="http://www.doxygen.org/index.html"> |
| 3310 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 3311 | </ul> |
| 3312 | </div> |
| 3313 | </body> |
| 3314 | </html> |