Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame^] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/backends/backendsCommon/test/layerTests/L2NormalizationTestImpl.cpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_l2_normalization_test_impl_8cpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">L2NormalizationTestImpl.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include "<a class="el" href="_l2_normalization_test_impl_8hpp_source.xhtml">L2NormalizationTestImpl.hpp</a>"</code><br /> |
| 104 | <code>#include <<a class="el" href="_quantize_helper_8hpp_source.xhtml">QuantizeHelper.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="_resolve_type_8hpp_source.xhtml">ResolveType.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_tensor_utils_8hpp_source.xhtml">armnnUtils/TensorUtils.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_permute_8hpp_source.xhtml">armnnUtils/Permute.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_tensor_copy_utils_8hpp_source.xhtml">backendsCommon/test/TensorCopyUtils.hpp</a>></code><br /> |
| 109 | <code>#include <<a class="el" href="_workload_test_utils_8hpp_source.xhtml">backendsCommon/test/WorkloadTestUtils.hpp</a>></code><br /> |
| 110 | <code>#include <<a class="el" href="_tensor_helpers_8hpp_source.xhtml">test/TensorHelpers.hpp</a>></code><br /> |
| 111 | </div> |
| 112 | <p><a href="_l2_normalization_test_impl_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 113 | <table class="memberdecls"> |
| 114 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 115 | Functions</h2></td></tr> |
| 116 | <tr class="memitem:a13c8cd6115422815348d57aef2ca032d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a13c8cd6115422815348d57aef2ca032d">L2NormalizationDefaultEpsilonTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 117 | <tr class="separator:a13c8cd6115422815348d57aef2ca032d"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:ae6ec1c0ad5b1b94d03c160c8122587cc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#ae6ec1c0ad5b1b94d03c160c8122587cc">L2NormalizationNonDefaultEpsilonTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 119 | <tr class="separator:ae6ec1c0ad5b1b94d03c160c8122587cc"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:abc9aa62ee9cdec8c43b5a43d931c632c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#abc9aa62ee9cdec8c43b5a43d931c632c">L2Normalization1dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 121 | <tr class="separator:abc9aa62ee9cdec8c43b5a43d931c632c"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a51324dd32b0b605e9f27d2b91312dc80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a51324dd32b0b605e9f27d2b91312dc80">L2Normalization1dInt16Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 123 | <tr class="separator:a51324dd32b0b605e9f27d2b91312dc80"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:aea6a1743ba0fdb000d73856302ab6c23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#aea6a1743ba0fdb000d73856302ab6c23">L2Normalization1dUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 125 | <tr class="separator:aea6a1743ba0fdb000d73856302ab6c23"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a373fc44a34b2bba8739ad4c6e864b234"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a373fc44a34b2bba8739ad4c6e864b234">L2Normalization2dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 127 | <tr class="separator:a373fc44a34b2bba8739ad4c6e864b234"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a6e2879224854a663f502d3092a68d2c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a6e2879224854a663f502d3092a68d2c7">L2Normalization2dInt16Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 129 | <tr class="separator:a6e2879224854a663f502d3092a68d2c7"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:a96cf65cb33a0e9319ddd0d00d56b5056"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a96cf65cb33a0e9319ddd0d00d56b5056">L2Normalization2dUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 131 | <tr class="separator:a96cf65cb33a0e9319ddd0d00d56b5056"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a1a90f524b460439bb8e386ea672acd6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a1a90f524b460439bb8e386ea672acd6c">L2Normalization2dShapeTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager)</td></tr> |
| 133 | <tr class="separator:a1a90f524b460439bb8e386ea672acd6c"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a336e63cb246a1d6f8b5a02367932471a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a336e63cb246a1d6f8b5a02367932471a">L2Normalization3dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 135 | <tr class="separator:a336e63cb246a1d6f8b5a02367932471a"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a49295d2552ff6a80396649f5b6e3a9ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a49295d2552ff6a80396649f5b6e3a9ce">L2Normalization3dInt16Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 137 | <tr class="separator:a49295d2552ff6a80396649f5b6e3a9ce"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:ad087db636160f71155a4ac31b37184aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#ad087db636160f71155a4ac31b37184aa">L2Normalization3dUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 139 | <tr class="separator:ad087db636160f71155a4ac31b37184aa"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:a49c8b464589cbe8f6b7e7a1bf7e6403d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< float, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a49c8b464589cbe8f6b7e7a1bf7e6403d">L2Normalization4dTest</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 141 | <tr class="separator:a49c8b464589cbe8f6b7e7a1bf7e6403d"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:a1bbff607f046d49a92516969d8beff7a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< int16_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a1bbff607f046d49a92516969d8beff7a">L2Normalization4dInt16Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 143 | <tr class="separator:a1bbff607f046d49a92516969d8beff7a"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:a9672054d1096864d4c034aa90008efff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< uint8_t, 4 > </td><td class="memItemRight" valign="bottom"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml#a9672054d1096864d4c034aa90008efff">L2Normalization4dUint8Test</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> &workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &memoryManager, const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> |
| 145 | <tr class="separator:a9672054d1096864d4c034aa90008efff"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | </table> |
| 147 | <h2 class="groupheader">Function Documentation</h2> |
| 148 | <a id="a51324dd32b0b605e9f27d2b91312dc80"></a> |
| 149 | <h2 class="memtitle"><span class="permalink"><a href="#a51324dd32b0b605e9f27d2b91312dc80">◆ </a></span>L2Normalization1dInt16Test()</h2> |
| 150 | |
| 151 | <div class="memitem"> |
| 152 | <div class="memproto"> |
| 153 | <table class="memname"> |
| 154 | <tr> |
| 155 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> L2Normalization1dInt16Test </td> |
| 156 | <td>(</td> |
| 157 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 158 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td class="paramkey"></td> |
| 162 | <td></td> |
| 163 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 164 | <td class="paramname"><em>memoryManager</em>, </td> |
| 165 | </tr> |
| 166 | <tr> |
| 167 | <td class="paramkey"></td> |
| 168 | <td></td> |
| 169 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 170 | <td class="paramname"><em>layout</em> </td> |
| 171 | </tr> |
| 172 | <tr> |
| 173 | <td></td> |
| 174 | <td>)</td> |
| 175 | <td></td><td></td> |
| 176 | </tr> |
| 177 | </table> |
| 178 | </div><div class="memdoc"> |
| 179 | |
| 180 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00597">597</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 181 | <div class="fragment"><div class="line"><a name="l00601"></a><span class="lineno"> 601</span> {</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  workloadFactory,</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  memoryManager,</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  1.f,</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  0,</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  1.f,</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  0,</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  layout);</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> }</div></div><!-- fragment --> |
| 182 | </div> |
| 183 | </div> |
| 184 | <a id="abc9aa62ee9cdec8c43b5a43d931c632c"></a> |
| 185 | <h2 class="memtitle"><span class="permalink"><a href="#abc9aa62ee9cdec8c43b5a43d931c632c">◆ </a></span>L2Normalization1dTest()</h2> |
| 186 | |
| 187 | <div class="memitem"> |
| 188 | <div class="memproto"> |
| 189 | <table class="memname"> |
| 190 | <tr> |
| 191 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> L2Normalization1dTest </td> |
| 192 | <td>(</td> |
| 193 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 194 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 195 | </tr> |
| 196 | <tr> |
| 197 | <td class="paramkey"></td> |
| 198 | <td></td> |
| 199 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 200 | <td class="paramname"><em>memoryManager</em>, </td> |
| 201 | </tr> |
| 202 | <tr> |
| 203 | <td class="paramkey"></td> |
| 204 | <td></td> |
| 205 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 206 | <td class="paramname"><em>layout</em> </td> |
| 207 | </tr> |
| 208 | <tr> |
| 209 | <td></td> |
| 210 | <td>)</td> |
| 211 | <td></td><td></td> |
| 212 | </tr> |
| 213 | </table> |
| 214 | </div><div class="memdoc"> |
| 215 | |
| 216 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00582">582</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 217 | <div class="fragment"><div class="line"><a name="l00586"></a><span class="lineno"> 586</span> {</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::Float32>(</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  workloadFactory,</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  memoryManager,</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  0.f,</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  0,</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  0.f,</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  0,</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  layout);</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span> }</div></div><!-- fragment --> |
| 218 | </div> |
| 219 | </div> |
| 220 | <a id="aea6a1743ba0fdb000d73856302ab6c23"></a> |
| 221 | <h2 class="memtitle"><span class="permalink"><a href="#aea6a1743ba0fdb000d73856302ab6c23">◆ </a></span>L2Normalization1dUint8Test()</h2> |
| 222 | |
| 223 | <div class="memitem"> |
| 224 | <div class="memproto"> |
| 225 | <table class="memname"> |
| 226 | <tr> |
| 227 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> L2Normalization1dUint8Test </td> |
| 228 | <td>(</td> |
| 229 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 230 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 231 | </tr> |
| 232 | <tr> |
| 233 | <td class="paramkey"></td> |
| 234 | <td></td> |
| 235 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 236 | <td class="paramname"><em>memoryManager</em>, </td> |
| 237 | </tr> |
| 238 | <tr> |
| 239 | <td class="paramkey"></td> |
| 240 | <td></td> |
| 241 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 242 | <td class="paramname"><em>layout</em> </td> |
| 243 | </tr> |
| 244 | <tr> |
| 245 | <td></td> |
| 246 | <td>)</td> |
| 247 | <td></td><td></td> |
| 248 | </tr> |
| 249 | </table> |
| 250 | </div><div class="memdoc"> |
| 251 | |
| 252 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00612">612</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 253 | <div class="fragment"><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> {</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  workloadFactory,</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  memoryManager,</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  1.f,</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  0,</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  1.f / 128,</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  128,</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  layout);</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span> }</div></div><!-- fragment --> |
| 254 | </div> |
| 255 | </div> |
| 256 | <a id="a6e2879224854a663f502d3092a68d2c7"></a> |
| 257 | <h2 class="memtitle"><span class="permalink"><a href="#a6e2879224854a663f502d3092a68d2c7">◆ </a></span>L2Normalization2dInt16Test()</h2> |
| 258 | |
| 259 | <div class="memitem"> |
| 260 | <div class="memproto"> |
| 261 | <table class="memname"> |
| 262 | <tr> |
| 263 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> L2Normalization2dInt16Test </td> |
| 264 | <td>(</td> |
| 265 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 266 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 267 | </tr> |
| 268 | <tr> |
| 269 | <td class="paramkey"></td> |
| 270 | <td></td> |
| 271 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 272 | <td class="paramname"><em>memoryManager</em>, </td> |
| 273 | </tr> |
| 274 | <tr> |
| 275 | <td class="paramkey"></td> |
| 276 | <td></td> |
| 277 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 278 | <td class="paramname"><em>layout</em> </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td></td> |
| 282 | <td>)</td> |
| 283 | <td></td><td></td> |
| 284 | </tr> |
| 285 | </table> |
| 286 | </div><div class="memdoc"> |
| 287 | |
| 288 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00642">642</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 289 | <div class="fragment"><div class="line"><a name="l00646"></a><span class="lineno"> 646</span> {</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  workloadFactory,</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  memoryManager,</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  1.f,</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  0,</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  1.f,</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  0,</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  layout);</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span> }</div></div><!-- fragment --> |
| 290 | </div> |
| 291 | </div> |
| 292 | <a id="a1a90f524b460439bb8e386ea672acd6c"></a> |
| 293 | <h2 class="memtitle"><span class="permalink"><a href="#a1a90f524b460439bb8e386ea672acd6c">◆ </a></span>L2Normalization2dShapeTest()</h2> |
| 294 | |
| 295 | <div class="memitem"> |
| 296 | <div class="memproto"> |
| 297 | <table class="memname"> |
| 298 | <tr> |
| 299 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 2> L2Normalization2dShapeTest </td> |
| 300 | <td>(</td> |
| 301 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 302 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 303 | </tr> |
| 304 | <tr> |
| 305 | <td class="paramkey"></td> |
| 306 | <td></td> |
| 307 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 308 | <td class="paramname"><em>memoryManager</em> </td> |
| 309 | </tr> |
| 310 | <tr> |
| 311 | <td></td> |
| 312 | <td>)</td> |
| 313 | <td></td><td></td> |
| 314 | </tr> |
| 315 | </table> |
| 316 | </div><div class="memdoc"> |
| 317 | |
| 318 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00672">672</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 319 | |
| 320 | <p class="reference">References <a class="el" href="_tensor_copy_utils_8cpp_source.xhtml#l00014">CopyDataFromITensorHandle()</a>, <a class="el" href="_tensor_copy_utils_8cpp_source.xhtml#l00009">CopyDataToITensorHandle()</a>, <a class="el" href="_workload_factory_8cpp_source.xhtml#l01250">IWorkloadFactory::CreateL2Normalization()</a>, <a class="el" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">IWorkloadFactory::CreateTensorHandle()</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00606">L2NormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00604">L2NormalizationDescriptor::m_Eps</a>, <a class="el" href="_workload_data_8hpp_source.xhtml#l00049">QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters</a>, and <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 321 | <div class="fragment"><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>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout = <a class="code" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>;</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> inputOutputTensorShape = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a>({ 5, 2 });</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>  std::vector<float> inputData</div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  {</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f, 10.f</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  };</div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  std::vector<float> expectedOutputData</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>  1.0f * CalcInvL2Norm({ 1.0f, 2.0f }),</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  2.0f * CalcInvL2Norm({ 1.0f, 2.0f }),</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  3.0f * CalcInvL2Norm({ 3.0f, 4.0f }),</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  4.0f * CalcInvL2Norm({ 3.0f, 4.0f }),</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  5.0f * CalcInvL2Norm({ 5.0f, 6.0f }),</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  6.0f * CalcInvL2Norm({ 5.0f, 6.0f }),</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  7.0f * CalcInvL2Norm({ 7.0f, 8.0f }),</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  8.0f * CalcInvL2Norm({ 7.0f, 8.0f }),</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  9.0f * CalcInvL2Norm({ 9.0f, 10.0f }),</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  10.0f * CalcInvL2Norm({ 9.0f, 10.0f })</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  };</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span> </div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> inputTensorInfo(inputOutputTensorShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>, 0.f, 0);</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> outputTensorInfo(inputOutputTensorShape, <a class="code" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>, 0.f, 0);</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>  <span class="keyword">auto</span> inputTensor = MakeTensor<float, 2>(inputTensorInfo, inputData);</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span> </div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <a class="code" href="struct_layer_test_result.xhtml">LayerTestResult<float, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  result.outputExpected = MakeTensor<float, 2>(outputTensorInfo, expectedOutputData);</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span> </div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  std::unique_ptr<armnn::ITensorHandle> inputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo);</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  std::unique_ptr<armnn::ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span> </div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  <a class="code" href="structarmnn_1_1_l2_normalization_queue_descriptor.xhtml">armnn::L2NormalizationQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.xhtml#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_l2_normalization_descriptor.xhtml#a11c821c7524251004a72ed13c510853c">m_Eps</a> = 1e-12f;</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.xhtml#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_l2_normalization_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = layout;</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  <a class="code" href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a> <a class="code" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span> </div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  AddInputToWorkload(descriptor, info, inputTensorInfo, inputHandle.get());</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  AddOutputToWorkload(descriptor, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span> </div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  std::unique_ptr<armnn::IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.xhtml#a3c86f886e36ce943f1ebc241a37f0413">CreateL2Normalization</a>(descriptor, info);</div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span> </div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  inputHandle->Allocate();</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  outputHandle->Allocate();</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span> </div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  <a class="code" href="_tensor_copy_utils_8cpp.xhtml#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle.get(), &inputTensor[0][0]);</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span> </div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  workload->PostAllocationConfigure();</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>  ExecuteWorkload(*workload, memoryManager);</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>  <a class="code" href="_tensor_copy_utils_8cpp.xhtml#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&result.output[0][0], outputHandle.get());</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="keywordflow">return</span> result;</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span> }</div><div class="ttc" id="structarmnn_1_1_l2_normalization_descriptor_xhtml_a11c821c7524251004a72ed13c510853c"><div class="ttname"><a href="structarmnn_1_1_l2_normalization_descriptor.xhtml#a11c821c7524251004a72ed13c510853c">armnn::L2NormalizationDescriptor::m_Eps</a></div><div class="ttdeci">float m_Eps</div><div class="ttdoc">Used to avoid dividing by zero. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00604">Descriptors.hpp:604</a></div></div> |
| 322 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_xhtml_a3c86f886e36ce943f1ebc241a37f0413"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.xhtml#a3c86f886e36ce943f1ebc241a37f0413">armnn::IWorkloadFactory::CreateL2Normalization</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateL2Normalization(const L2NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.xhtml#l01250">WorkloadFactory.cpp:1250</a></div></div> |
| 323 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a></div><div class="ttdeci">DataLayout</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00049">Types.hpp:49</a></div></div> |
| 324 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 325 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 326 | <div class="ttc" id="structarmnn_1_1_queue_descriptor_with_parameters_xhtml_aad91b9bbf7aa365d304febe79a3d1333"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor_with_parameters.xhtml#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.xhtml#l00049">WorkloadData.hpp:49</a></div></div> |
| 327 | <div class="ttc" id="structarmnn_1_1_l2_normalization_descriptor_xhtml_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_l2_normalization_descriptor.xhtml#a6089e1ca91914015777ea780a513131a">armnn::L2NormalizationDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00606">Descriptors.hpp:606</a></div></div> |
| 328 | <div class="ttc" id="_tensor_copy_utils_8cpp_xhtml_a99b626c58a926dc7d6df78d22ec186c8"><div class="ttname"><a href="_tensor_copy_utils_8cpp.xhtml#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a></div><div class="ttdeci">void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.xhtml#l00014">TensorCopyUtils.cpp:14</a></div></div> |
| 329 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_xhtml_a15c140be4ddceffee16436f009d3ed94"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.xhtml#a15c140be4ddceffee16436f009d3ed94">armnn::IWorkloadFactory::CreateTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const =0</div></div> |
| 330 | <div class="ttc" id="structarmnn_1_1_l2_normalization_queue_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_l2_normalization_queue_descriptor.xhtml">armnn::L2NormalizationQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.xhtml#l00316">WorkloadData.hpp:316</a></div></div> |
| 331 | <div class="ttc" id="namespacearmnn_xhtml_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 332 | <div class="ttc" id="namespacearmnn_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 333 | <div class="ttc" id="structarmnn_1_1_workload_info_xhtml"><div class="ttname"><a href="structarmnn_1_1_workload_info.xhtml">armnn::WorkloadInfo</a></div><div class="ttdoc">Contains information about inputs and outputs to a layer. </div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_workload_info_8hpp_source.xhtml#l00016">WorkloadInfo.hpp:16</a></div></div> |
| 334 | <div class="ttc" id="struct_layer_test_result_xhtml"><div class="ttname"><a href="struct_layer_test_result.xhtml">LayerTestResult</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.xhtml#l00029">LayerTestResult.hpp:29</a></div></div> |
| 335 | <div class="ttc" id="namespacearmnn_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 336 | <div class="ttc" id="_tensor_copy_utils_8cpp_xhtml_ae15f1a3c55d2db87683577de9fa4437c"><div class="ttname"><a href="_tensor_copy_utils_8cpp.xhtml#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a></div><div class="ttdeci">void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.xhtml#l00009">TensorCopyUtils.cpp:9</a></div></div> |
| 337 | </div><!-- fragment --> |
| 338 | </div> |
| 339 | </div> |
| 340 | <a id="a373fc44a34b2bba8739ad4c6e864b234"></a> |
| 341 | <h2 class="memtitle"><span class="permalink"><a href="#a373fc44a34b2bba8739ad4c6e864b234">◆ </a></span>L2Normalization2dTest()</h2> |
| 342 | |
| 343 | <div class="memitem"> |
| 344 | <div class="memproto"> |
| 345 | <table class="memname"> |
| 346 | <tr> |
| 347 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> L2Normalization2dTest </td> |
| 348 | <td>(</td> |
| 349 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 350 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 351 | </tr> |
| 352 | <tr> |
| 353 | <td class="paramkey"></td> |
| 354 | <td></td> |
| 355 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 356 | <td class="paramname"><em>memoryManager</em>, </td> |
| 357 | </tr> |
| 358 | <tr> |
| 359 | <td class="paramkey"></td> |
| 360 | <td></td> |
| 361 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 362 | <td class="paramname"><em>layout</em> </td> |
| 363 | </tr> |
| 364 | <tr> |
| 365 | <td></td> |
| 366 | <td>)</td> |
| 367 | <td></td><td></td> |
| 368 | </tr> |
| 369 | </table> |
| 370 | </div><div class="memdoc"> |
| 371 | |
| 372 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00627">627</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 373 | <div class="fragment"><div class="line"><a name="l00631"></a><span class="lineno"> 631</span> {</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  <span class="keywordflow">return</span> L2Normalization2dTestCommon<armnn::DataType::Float32>(</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  workloadFactory,</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  memoryManager,</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  0.f,</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  0,</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  0.f,</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  0,</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  layout);</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span> }</div></div><!-- fragment --> |
| 374 | </div> |
| 375 | </div> |
| 376 | <a id="a96cf65cb33a0e9319ddd0d00d56b5056"></a> |
| 377 | <h2 class="memtitle"><span class="permalink"><a href="#a96cf65cb33a0e9319ddd0d00d56b5056">◆ </a></span>L2Normalization2dUint8Test()</h2> |
| 378 | |
| 379 | <div class="memitem"> |
| 380 | <div class="memproto"> |
| 381 | <table class="memname"> |
| 382 | <tr> |
| 383 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> L2Normalization2dUint8Test </td> |
| 384 | <td>(</td> |
| 385 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 386 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 387 | </tr> |
| 388 | <tr> |
| 389 | <td class="paramkey"></td> |
| 390 | <td></td> |
| 391 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 392 | <td class="paramname"><em>memoryManager</em>, </td> |
| 393 | </tr> |
| 394 | <tr> |
| 395 | <td class="paramkey"></td> |
| 396 | <td></td> |
| 397 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 398 | <td class="paramname"><em>layout</em> </td> |
| 399 | </tr> |
| 400 | <tr> |
| 401 | <td></td> |
| 402 | <td>)</td> |
| 403 | <td></td><td></td> |
| 404 | </tr> |
| 405 | </table> |
| 406 | </div><div class="memdoc"> |
| 407 | |
| 408 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00657">657</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 409 | <div class="fragment"><div class="line"><a name="l00661"></a><span class="lineno"> 661</span> {</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  workloadFactory,</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  memoryManager,</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  1.f,</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  0,</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  1.f / 128,</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  128,</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  layout);</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> }</div></div><!-- fragment --> |
| 410 | </div> |
| 411 | </div> |
| 412 | <a id="a49295d2552ff6a80396649f5b6e3a9ce"></a> |
| 413 | <h2 class="memtitle"><span class="permalink"><a href="#a49295d2552ff6a80396649f5b6e3a9ce">◆ </a></span>L2Normalization3dInt16Test()</h2> |
| 414 | |
| 415 | <div class="memitem"> |
| 416 | <div class="memproto"> |
| 417 | <table class="memname"> |
| 418 | <tr> |
| 419 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> L2Normalization3dInt16Test </td> |
| 420 | <td>(</td> |
| 421 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 422 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 423 | </tr> |
| 424 | <tr> |
| 425 | <td class="paramkey"></td> |
| 426 | <td></td> |
| 427 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 428 | <td class="paramname"><em>memoryManager</em>, </td> |
| 429 | </tr> |
| 430 | <tr> |
| 431 | <td class="paramkey"></td> |
| 432 | <td></td> |
| 433 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 434 | <td class="paramname"><em>layout</em> </td> |
| 435 | </tr> |
| 436 | <tr> |
| 437 | <td></td> |
| 438 | <td>)</td> |
| 439 | <td></td><td></td> |
| 440 | </tr> |
| 441 | </table> |
| 442 | </div><div class="memdoc"> |
| 443 | |
| 444 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00746">746</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 445 | <div class="fragment"><div class="line"><a name="l00750"></a><span class="lineno"> 750</span> {</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  workloadFactory,</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  memoryManager,</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  1.f,</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  0,</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  1.f,</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  0,</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  layout);</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span> }</div></div><!-- fragment --> |
| 446 | </div> |
| 447 | </div> |
| 448 | <a id="a336e63cb246a1d6f8b5a02367932471a"></a> |
| 449 | <h2 class="memtitle"><span class="permalink"><a href="#a336e63cb246a1d6f8b5a02367932471a">◆ </a></span>L2Normalization3dTest()</h2> |
| 450 | |
| 451 | <div class="memitem"> |
| 452 | <div class="memproto"> |
| 453 | <table class="memname"> |
| 454 | <tr> |
| 455 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> L2Normalization3dTest </td> |
| 456 | <td>(</td> |
| 457 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 458 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 459 | </tr> |
| 460 | <tr> |
| 461 | <td class="paramkey"></td> |
| 462 | <td></td> |
| 463 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 464 | <td class="paramname"><em>memoryManager</em>, </td> |
| 465 | </tr> |
| 466 | <tr> |
| 467 | <td class="paramkey"></td> |
| 468 | <td></td> |
| 469 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 470 | <td class="paramname"><em>layout</em> </td> |
| 471 | </tr> |
| 472 | <tr> |
| 473 | <td></td> |
| 474 | <td>)</td> |
| 475 | <td></td><td></td> |
| 476 | </tr> |
| 477 | </table> |
| 478 | </div><div class="memdoc"> |
| 479 | |
| 480 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00731">731</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 481 | <div class="fragment"><div class="line"><a name="l00735"></a><span class="lineno"> 735</span> {</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  <span class="keywordflow">return</span> L2Normalization3dTestCommon<armnn::DataType::Float32>(</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  workloadFactory,</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  memoryManager,</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  0.f,</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  0,</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  0.f,</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  0,</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  layout);</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span> }</div></div><!-- fragment --> |
| 482 | </div> |
| 483 | </div> |
| 484 | <a id="ad087db636160f71155a4ac31b37184aa"></a> |
| 485 | <h2 class="memtitle"><span class="permalink"><a href="#ad087db636160f71155a4ac31b37184aa">◆ </a></span>L2Normalization3dUint8Test()</h2> |
| 486 | |
| 487 | <div class="memitem"> |
| 488 | <div class="memproto"> |
| 489 | <table class="memname"> |
| 490 | <tr> |
| 491 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> L2Normalization3dUint8Test </td> |
| 492 | <td>(</td> |
| 493 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 494 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 495 | </tr> |
| 496 | <tr> |
| 497 | <td class="paramkey"></td> |
| 498 | <td></td> |
| 499 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 500 | <td class="paramname"><em>memoryManager</em>, </td> |
| 501 | </tr> |
| 502 | <tr> |
| 503 | <td class="paramkey"></td> |
| 504 | <td></td> |
| 505 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 506 | <td class="paramname"><em>layout</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="_l2_normalization_test_impl_8cpp_source.xhtml#l00761">761</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 517 | <div class="fragment"><div class="line"><a name="l00765"></a><span class="lineno"> 765</span> {</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  workloadFactory,</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  memoryManager,</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  1.f,</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  0,</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  1.f / 128,</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  128,</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  layout);</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span> }</div></div><!-- fragment --> |
| 518 | </div> |
| 519 | </div> |
| 520 | <a id="a1bbff607f046d49a92516969d8beff7a"></a> |
| 521 | <h2 class="memtitle"><span class="permalink"><a href="#a1bbff607f046d49a92516969d8beff7a">◆ </a></span>L2Normalization4dInt16Test()</h2> |
| 522 | |
| 523 | <div class="memitem"> |
| 524 | <div class="memproto"> |
| 525 | <table class="memname"> |
| 526 | <tr> |
| 527 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><int16_t, 4> L2Normalization4dInt16Test </td> |
| 528 | <td>(</td> |
| 529 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 530 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 531 | </tr> |
| 532 | <tr> |
| 533 | <td class="paramkey"></td> |
| 534 | <td></td> |
| 535 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 536 | <td class="paramname"><em>memoryManager</em>, </td> |
| 537 | </tr> |
| 538 | <tr> |
| 539 | <td class="paramkey"></td> |
| 540 | <td></td> |
| 541 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 542 | <td class="paramname"><em>layout</em> </td> |
| 543 | </tr> |
| 544 | <tr> |
| 545 | <td></td> |
| 546 | <td>)</td> |
| 547 | <td></td><td></td> |
| 548 | </tr> |
| 549 | </table> |
| 550 | </div><div class="memdoc"> |
| 551 | |
| 552 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00791">791</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 553 | <div class="fragment"><div class="line"><a name="l00795"></a><span class="lineno"> 795</span> {</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span>  workloadFactory,</div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span>  memoryManager,</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>  1.f,</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  0,</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  1.f,</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  0,</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  layout);</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span> }</div></div><!-- fragment --> |
| 554 | </div> |
| 555 | </div> |
| 556 | <a id="a49c8b464589cbe8f6b7e7a1bf7e6403d"></a> |
| 557 | <h2 class="memtitle"><span class="permalink"><a href="#a49c8b464589cbe8f6b7e7a1bf7e6403d">◆ </a></span>L2Normalization4dTest()</h2> |
| 558 | |
| 559 | <div class="memitem"> |
| 560 | <div class="memproto"> |
| 561 | <table class="memname"> |
| 562 | <tr> |
| 563 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> L2Normalization4dTest </td> |
| 564 | <td>(</td> |
| 565 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 566 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 567 | </tr> |
| 568 | <tr> |
| 569 | <td class="paramkey"></td> |
| 570 | <td></td> |
| 571 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 572 | <td class="paramname"><em>memoryManager</em>, </td> |
| 573 | </tr> |
| 574 | <tr> |
| 575 | <td class="paramkey"></td> |
| 576 | <td></td> |
| 577 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 578 | <td class="paramname"><em>layout</em> </td> |
| 579 | </tr> |
| 580 | <tr> |
| 581 | <td></td> |
| 582 | <td>)</td> |
| 583 | <td></td><td></td> |
| 584 | </tr> |
| 585 | </table> |
| 586 | </div><div class="memdoc"> |
| 587 | |
| 588 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00776">776</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 589 | <div class="fragment"><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="keywordflow">return</span> L2Normalization4dTestCommon<armnn::DataType::Float32>(</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  workloadFactory,</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  memoryManager,</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  0.f,</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  0,</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  0.f,</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  0,</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  layout);</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span> }</div></div><!-- fragment --> |
| 590 | </div> |
| 591 | </div> |
| 592 | <a id="a9672054d1096864d4c034aa90008efff"></a> |
| 593 | <h2 class="memtitle"><span class="permalink"><a href="#a9672054d1096864d4c034aa90008efff">◆ </a></span>L2Normalization4dUint8Test()</h2> |
| 594 | |
| 595 | <div class="memitem"> |
| 596 | <div class="memproto"> |
| 597 | <table class="memname"> |
| 598 | <tr> |
| 599 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><uint8_t, 4> L2Normalization4dUint8Test </td> |
| 600 | <td>(</td> |
| 601 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 602 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 603 | </tr> |
| 604 | <tr> |
| 605 | <td class="paramkey"></td> |
| 606 | <td></td> |
| 607 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 608 | <td class="paramname"><em>memoryManager</em>, </td> |
| 609 | </tr> |
| 610 | <tr> |
| 611 | <td class="paramkey"></td> |
| 612 | <td></td> |
| 613 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 614 | <td class="paramname"><em>layout</em> </td> |
| 615 | </tr> |
| 616 | <tr> |
| 617 | <td></td> |
| 618 | <td>)</td> |
| 619 | <td></td><td></td> |
| 620 | </tr> |
| 621 | </table> |
| 622 | </div><div class="memdoc"> |
| 623 | |
| 624 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00806">806</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 625 | <div class="fragment"><div class="line"><a name="l00810"></a><span class="lineno"> 810</span> {</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  <span class="keywordflow">return</span> L2Normalization1dTestCommon<armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  workloadFactory,</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  memoryManager,</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  1.f,</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  0,</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  1.f / 128,</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  128,</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  layout);</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span> }</div></div><!-- fragment --> |
| 626 | </div> |
| 627 | </div> |
| 628 | <a id="a13c8cd6115422815348d57aef2ca032d"></a> |
| 629 | <h2 class="memtitle"><span class="permalink"><a href="#a13c8cd6115422815348d57aef2ca032d">◆ </a></span>L2NormalizationDefaultEpsilonTest()</h2> |
| 630 | |
| 631 | <div class="memitem"> |
| 632 | <div class="memproto"> |
| 633 | <table class="memname"> |
| 634 | <tr> |
| 635 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> L2NormalizationDefaultEpsilonTest </td> |
| 636 | <td>(</td> |
| 637 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 638 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 639 | </tr> |
| 640 | <tr> |
| 641 | <td class="paramkey"></td> |
| 642 | <td></td> |
| 643 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 644 | <td class="paramname"><em>memoryManager</em>, </td> |
| 645 | </tr> |
| 646 | <tr> |
| 647 | <td class="paramkey"></td> |
| 648 | <td></td> |
| 649 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 650 | <td class="paramname"><em>layout</em> </td> |
| 651 | </tr> |
| 652 | <tr> |
| 653 | <td></td> |
| 654 | <td>)</td> |
| 655 | <td></td><td></td> |
| 656 | </tr> |
| 657 | </table> |
| 658 | </div><div class="memdoc"> |
| 659 | |
| 660 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00547">547</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 661 | |
| 662 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.xhtml#l00604">L2NormalizationDescriptor::m_Eps</a>.</p> |
| 663 | <div class="fragment"><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>  <span class="comment">// Dummy descriptor to get the default value of epsilon.</span></div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <a class="code" href="structarmnn_1_1_l2_normalization_descriptor.xhtml">armnn::L2NormalizationDescriptor</a> descriptor;</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>  <span class="keywordflow">return</span> L2NormalizationEpsilonTestCommon<armnn::DataType::Float32>(</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  workloadFactory,</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  memoryManager,</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  0.f,</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  0,</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  0.f,</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  0,</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  layout,</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  descriptor.<a class="code" href="structarmnn_1_1_l2_normalization_descriptor.xhtml#a11c821c7524251004a72ed13c510853c">m_Eps</a>);</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> }</div><div class="ttc" id="structarmnn_1_1_l2_normalization_descriptor_xhtml_a11c821c7524251004a72ed13c510853c"><div class="ttname"><a href="structarmnn_1_1_l2_normalization_descriptor.xhtml#a11c821c7524251004a72ed13c510853c">armnn::L2NormalizationDescriptor::m_Eps</a></div><div class="ttdeci">float m_Eps</div><div class="ttdoc">Used to avoid dividing by zero. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00604">Descriptors.hpp:604</a></div></div> |
| 664 | <div class="ttc" id="structarmnn_1_1_l2_normalization_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_l2_normalization_descriptor.xhtml">armnn::L2NormalizationDescriptor</a></div><div class="ttdoc">A L2NormalizationDescriptor for the L2NormalizationLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00591">Descriptors.hpp:591</a></div></div> |
| 665 | </div><!-- fragment --> |
| 666 | </div> |
| 667 | </div> |
| 668 | <a id="ae6ec1c0ad5b1b94d03c160c8122587cc"></a> |
| 669 | <h2 class="memtitle"><span class="permalink"><a href="#ae6ec1c0ad5b1b94d03c160c8122587cc">◆ </a></span>L2NormalizationNonDefaultEpsilonTest()</h2> |
| 670 | |
| 671 | <div class="memitem"> |
| 672 | <div class="memproto"> |
| 673 | <table class="memname"> |
| 674 | <tr> |
| 675 | <td class="memname"><a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a><float, 4> L2NormalizationNonDefaultEpsilonTest </td> |
| 676 | <td>(</td> |
| 677 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.xhtml">armnn::IWorkloadFactory</a> & </td> |
| 678 | <td class="paramname"><em>workloadFactory</em>, </td> |
| 679 | </tr> |
| 680 | <tr> |
| 681 | <td class="paramkey"></td> |
| 682 | <td></td> |
| 683 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.xhtml#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> & </td> |
| 684 | <td class="paramname"><em>memoryManager</em>, </td> |
| 685 | </tr> |
| 686 | <tr> |
| 687 | <td class="paramkey"></td> |
| 688 | <td></td> |
| 689 | <td class="paramtype">const <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 690 | <td class="paramname"><em>layout</em> </td> |
| 691 | </tr> |
| 692 | <tr> |
| 693 | <td></td> |
| 694 | <td>)</td> |
| 695 | <td></td><td></td> |
| 696 | </tr> |
| 697 | </table> |
| 698 | </div><div class="memdoc"> |
| 699 | |
| 700 | <p class="definition">Definition at line <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml#l00566">566</a> of file <a class="el" href="_l2_normalization_test_impl_8cpp_source.xhtml">L2NormalizationTestImpl.cpp</a>.</p> |
| 701 | <div class="fragment"><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> {</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keywordflow">return</span> L2NormalizationEpsilonTestCommon<armnn::DataType::Float32>(</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  workloadFactory,</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  memoryManager,</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  0.f,</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  0,</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  0.f,</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  0,</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  layout,</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  1e-9f);</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> }</div></div><!-- fragment --> |
| 702 | </div> |
| 703 | </div> |
| 704 | </div><!-- contents --> |
| 705 | </div><!-- doc-content --> |
| 706 | <!-- start footer part --> |
| 707 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 708 | <ul> |
| 709 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.xhtml">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.xhtml">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.xhtml">test</a></li><li class="navelem"><a class="el" href="dir_99a30439342d160875b21dac3498ad7f.xhtml">layerTests</a></li><li class="navelem"><a class="el" href="_l2_normalization_test_impl_8cpp.xhtml">L2NormalizationTestImpl.cpp</a></li> |
| 710 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 711 | <a href="http://www.doxygen.org/index.html"> |
| 712 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 713 | </ul> |
| 714 | </div> |
| 715 | </body> |
| 716 | </html> |