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/neon/workloads/NeonWorkloadUtils.hpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_neon_workload_utils_8hpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#namespaces">Namespaces</a> | |
| 99 | <a href="#define-members">Macros</a> | |
| 100 | <a href="#func-members">Functions</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">NeonWorkloadUtils.hpp File Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | <div class="textblock"><code>#include <<a class="el" href="_workload_8hpp_source.xhtml">backendsCommon/Workload.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_arm_compute_tensor_utils_8hpp_source.xhtml">aclCommon/ArmComputeTensorUtils.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_neon_tensor_handle_8hpp_source.xhtml">neon/NeonTensorHandle.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_neon_timer_8hpp_source.xhtml">neon/NeonTimer.hpp</a>></code><br /> |
| 109 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 110 | <code>#include <<a class="el" href="_utils_8hpp_source.xhtml">armnn/Utils.hpp</a>></code><br /> |
| 111 | <code>#include <<a class="el" href="_half_8hpp_source.xhtml">Half.hpp</a>></code><br /> |
| 112 | </div> |
| 113 | <p><a href="_neon_workload_utils_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 114 | <table class="memberdecls"> |
| 115 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> |
| 116 | Namespaces</h2></td></tr> |
| 117 | <tr class="memitem:namespacearmnn"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml">armnn</a></td></tr> |
| 118 | <tr class="memdesc:namespacearmnn"><td class="mdescLeft"> </td><td class="mdescRight">Copyright (c) 2020 ARM Limited. <br /></td></tr> |
| 119 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | </table><table class="memberdecls"> |
| 121 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| 122 | Macros</h2></td></tr> |
| 123 | <tr class="memitem:a8bf91fd5e5875631bcf6abbcd97fe2f4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_neon_workload_utils_8hpp.xhtml#a8bf91fd5e5875631bcf6abbcd97fe2f4">ARMNN_SCOPED_PROFILING_EVENT_NEON</a>(name)</td></tr> |
| 124 | <tr class="separator:a8bf91fd5e5875631bcf6abbcd97fe2f4"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | </table><table class="memberdecls"> |
| 126 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 127 | Functions</h2></td></tr> |
| 128 | <tr class="memitem:a1351e01f9fb983937caf79e353142b41"><td class="memTemplParams" colspan="2">template<typename T > </td></tr> |
| 129 | <tr class="memitem:a1351e01f9fb983937caf79e353142b41"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a1351e01f9fb983937caf79e353142b41">CopyArmComputeTensorData</a> (arm_compute::Tensor &dstTensor, const T *srcData)</td></tr> |
| 130 | <tr class="separator:a1351e01f9fb983937caf79e353142b41"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:ad9aa8d49d42ada3f757290033af39857"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#ad9aa8d49d42ada3f757290033af39857">InitializeArmComputeTensorData</a> (arm_compute::Tensor &tensor, const ConstCpuTensorHandle *handle)</td></tr> |
| 132 | <tr class="separator:ad9aa8d49d42ada3f757290033af39857"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a01d1e745f360ccd0b655214645bcef32"><td class="memItemLeft" align="right" valign="top">auto </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a01d1e745f360ccd0b655214645bcef32">SetNeonStridedSliceData</a> (const std::vector< int > &m_begin, const std::vector< int > &m_end, const std::vector< int > &m_stride)</td></tr> |
| 134 | <tr class="separator:a01d1e745f360ccd0b655214645bcef32"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:ab40e30cea5a328a3c35aa32f9b7db1c1"><td class="memItemLeft" align="right" valign="top">auto </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#ab40e30cea5a328a3c35aa32f9b7db1c1">SetNeonSliceData</a> (const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)</td></tr> |
| 136 | <tr class="separator:ab40e30cea5a328a3c35aa32f9b7db1c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | </table> |
| 138 | <h2 class="groupheader">Macro Definition Documentation</h2> |
| 139 | <a id="a8bf91fd5e5875631bcf6abbcd97fe2f4"></a> |
| 140 | <h2 class="memtitle"><span class="permalink"><a href="#a8bf91fd5e5875631bcf6abbcd97fe2f4">◆ </a></span>ARMNN_SCOPED_PROFILING_EVENT_NEON</h2> |
| 141 | |
| 142 | <div class="memitem"> |
| 143 | <div class="memproto"> |
| 144 | <table class="memname"> |
| 145 | <tr> |
| 146 | <td class="memname">#define ARMNN_SCOPED_PROFILING_EVENT_NEON</td> |
| 147 | <td>(</td> |
| 148 | <td class="paramtype"> </td> |
| 149 | <td class="paramname">name</td><td>)</td> |
| 150 | <td></td> |
| 151 | </tr> |
| 152 | </table> |
| 153 | </div><div class="memdoc"> |
| 154 | <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="_profiling_8hpp.xhtml#a1a638e817a4bf185cd95dc61f8cca62c">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</a>(<a class="code" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1">armnn::Compute::CpuAcc</a>, \</div><div class="line"> name, \</div><div class="line"> <a class="code" href="classarmnn_1_1_neon_timer.xhtml">armnn::NeonTimer</a>(), \</div><div class="line"> <a class="code" href="classarmnn_1_1_wall_clock_timer.xhtml">armnn::WallClockTimer</a>())</div><div class="ttc" id="classarmnn_1_1_wall_clock_timer_xhtml"><div class="ttname"><a href="classarmnn_1_1_wall_clock_timer.xhtml">armnn::WallClockTimer</a></div><div class="ttdef"><b>Definition:</b> <a href="_wall_clock_timer_8hpp_source.xhtml#l00038">WallClockTimer.hpp:38</a></div></div> |
| 155 | <div class="ttc" id="classarmnn_1_1_neon_timer_xhtml"><div class="ttname"><a href="classarmnn_1_1_neon_timer.xhtml">armnn::NeonTimer</a></div><div class="ttdef"><b>Definition:</b> <a href="_neon_timer_8hpp_source.xhtml#l00021">NeonTimer.hpp:21</a></div></div> |
| 156 | <div class="ttc" id="_profiling_8hpp_xhtml_a1a638e817a4bf185cd95dc61f8cca62c"><div class="ttname"><a href="_profiling_8hpp.xhtml#a1a638e817a4bf185cd95dc61f8cca62c">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</a></div><div class="ttdeci">#define ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS(backendId,...)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_8hpp_source.xhtml#l00166">Profiling.hpp:166</a></div></div> |
| 157 | <div class="ttc" id="namespacearmnn_xhtml_ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1"><div class="ttname"><a href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1">armnn::Compute::CpuAcc</a></div><div class="ttdoc">CPU Execution: NEON: ArmCompute. </div></div> |
| 158 | </div><!-- fragment --> |
| 159 | <p class="definition">Definition at line <a class="el" href="_neon_workload_utils_8hpp_source.xhtml#l00017">17</a> of file <a class="el" href="_neon_workload_utils_8hpp_source.xhtml">NeonWorkloadUtils.hpp</a>.</p> |
| 160 | |
| 161 | <p class="reference">Referenced by <a class="el" href="_neon_constant_workload_8cpp_source.xhtml#l00027">NeonConstantWorkload::Execute()</a>, <a class="el" href="_neon_convert_fp16_to_fp32_workload_8cpp_source.xhtml#l00025">NeonConvertFp16ToFp32Workload::Execute()</a>, <a class="el" href="_neon_convert_fp32_to_fp16_workload_8cpp_source.xhtml#l00026">NeonConvertFp32ToFp16Workload::Execute()</a>, <a class="el" href="_neon_pad_workload_8cpp_source.xhtml#l00042">NeonPadWorkload::Execute()</a>, <a class="el" href="_neon_quantize_workload_8cpp_source.xhtml#l00043">NeonQuantizeWorkload::Execute()</a>, <a class="el" href="_neon_abs_workload_8cpp_source.xhtml#l00037">NeonAbsWorkload::Execute()</a>, <a class="el" href="_neon_floor_float_workload_8cpp_source.xhtml#l00030">NeonFloorFloatWorkload::Execute()</a>, <a class="el" href="_neon_rsqrt_workload_8cpp_source.xhtml#l00037">NeonRsqrtWorkload::Execute()</a>, <a class="el" href="_neon_resize_workload_8cpp_source.xhtml#l00068">NeonResizeWorkload::Execute()</a>, <a class="el" href="_neon_softmax_float_workload_8cpp_source.xhtml#l00032">NeonSoftmaxFloatWorkload::Execute()</a>, <a class="el" href="_neon_softmax_uint8_workload_8cpp_source.xhtml#l00042">NeonSoftmaxUint8Workload::Execute()</a>, <a class="el" href="_neon_stack_workload_8cpp_source.xhtml#l00067">NeonStackWorkload::Execute()</a>, <a class="el" href="_neon_prelu_workload_8cpp_source.xhtml#l00044">NeonPreluWorkload::Execute()</a>, <a class="el" href="_neon_division_workload_8cpp_source.xhtml#l00039">NeonDivisionWorkload::Execute()</a>, <a class="el" href="_neon_arg_min_max_workload_8cpp_source.xhtml#l00078">NeonArgMinMaxWorkload::Execute()</a>, <a class="el" href="_neon_activation_workload_8cpp_source.xhtml#l00048">NeonActivationWorkload::Execute()</a>, <a class="el" href="_neon_instance_normalization_workload_8cpp_source.xhtml#l00054">NeonInstanceNormalizationWorkload::Execute()</a>, <a class="el" href="_neon_maximum_workload_8cpp_source.xhtml#l00039">NeonMaximumWorkload::Execute()</a>, <a class="el" href="_neon_mean_workload_8cpp_source.xhtml#l00047">NeonMeanWorkload::Execute()</a>, <a class="el" href="_neon_addition_workload_8cpp_source.xhtml#l00047">NeonAdditionWorkload::Execute()</a>, <a class="el" href="_neon_slice_workload_8cpp_source.xhtml#l00051">NeonSliceWorkload::Execute()</a>, <a class="el" href="_neon_multiplication_workload_8cpp_source.xhtml#l00057">NeonMultiplicationWorkload::Execute()</a>, <a class="el" href="_neon_depth_to_space_workload_8cpp_source.xhtml#l00055">NeonDepthToSpaceWorkload::Execute()</a>, <a class="el" href="_neon_space_to_depth_workload_8cpp_source.xhtml#l00049">NeonSpaceToDepthWorkload::Execute()</a>, <a class="el" href="_neon_subtraction_workload_8cpp_source.xhtml#l00046">NeonSubtractionWorkload::Execute()</a>, <a class="el" href="_neon_dequantize_workload_8cpp_source.xhtml#l00044">NeonDequantizeWorkload::Execute()</a>, <a class="el" href="_neon_reshape_workload_8cpp_source.xhtml#l00040">NeonReshapeWorkload::Execute()</a>, <a class="el" href="_neon_greater_workload_8cpp_source.xhtml#l00040">NeonGreaterWorkload< T >::Execute()</a>, <a class="el" href="_neon_splitter_workload_8cpp_source.xhtml#l00104">NeonSplitterWorkload::Execute()</a>, <a class="el" href="_neon_l2_normalization_float_workload_8cpp_source.xhtml#l00050">NeonL2NormalizationFloatWorkload::Execute()</a>, <a class="el" href="_neon_normalization_float_workload_8cpp_source.xhtml#l00099">NeonNormalizationFloatWorkload::Execute()</a>, <a class="el" href="_neon_concat_workload_8cpp_source.xhtml#l00093">NeonConcatWorkload::Execute()</a>, <a class="el" href="_neon_strided_slice_workload_8cpp_source.xhtml#l00086">NeonStridedSliceWorkload::Execute()</a>, <a class="el" href="_neon_space_to_batch_nd_workload_8cpp_source.xhtml#l00074">NeonSpaceToBatchNdWorkload::Execute()</a>, <a class="el" href="_neon_pooling2d_workload_8cpp_source.xhtml#l00054">NeonPooling2dWorkload::Execute()</a>, <a class="el" href="_neon_batch_to_space_nd_workload_8cpp_source.xhtml#l00058">NeonBatchToSpaceNdWorkload::Execute()</a>, <a class="el" href="_neon_depthwise_convolution_workload_8cpp_source.xhtml#l00144">NeonDepthwiseConvolutionWorkload::Execute()</a>, <a class="el" href="_neon_detection_post_process_workload_8cpp_source.xhtml#l00106">NeonDetectionPostProcessWorkload::Execute()</a>, <a class="el" href="_neon_fully_connected_workload_8cpp_source.xhtml#l00102">NeonFullyConnectedWorkload::Execute()</a>, <a class="el" href="_neon_batch_normalization_workload_8cpp_source.xhtml#l00096">NeonBatchNormalizationWorkload::Execute()</a>, <a class="el" href="_neon_transpose_workload_8cpp_source.xhtml#l00042">NeonTransposeWorkload::Execute()</a>, <a class="el" href="_neon_permute_workload_8cpp_source.xhtml#l00043">NeonPermuteWorkload::Execute()</a>, <a class="el" href="_neon_minimum_workload_8cpp_source.xhtml#l00039">NeonMinimumWorkload::Execute()</a>, <a class="el" href="_neon_convolution2d_workload_8cpp_source.xhtml#l00113">NeonConvolution2dWorkload::Execute()</a>, and <a class="el" href="_neon_transpose_convolution2d_workload_8cpp_source.xhtml#l00097">NeonTransposeConvolution2dWorkload::Execute()</a>.</p> |
| 162 | |
| 163 | </div> |
| 164 | </div> |
| 165 | </div><!-- contents --> |
| 166 | </div><!-- doc-content --> |
| 167 | <!-- start footer part --> |
| 168 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 169 | <ul> |
| 170 | <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_d86eb514662c7c08e168285f21d00ea1.xhtml">neon</a></li><li class="navelem"><a class="el" href="dir_369c3c20501d0d10bd0354bf11c2f559.xhtml">workloads</a></li><li class="navelem"><a class="el" href="_neon_workload_utils_8hpp.xhtml">NeonWorkloadUtils.hpp</a></li> |
| 171 | <li class="footer">Generated on Fri Mar 13 2020 16:09:15 for ArmNN by |
| 172 | <a href="http://www.doxygen.org/index.html"> |
| 173 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 174 | </ul> |
| 175 | </div> |
| 176 | </body> |
| 177 | </html> |