Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 1 | <!-- HTML header for doxygen 1.8.17--> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 7 | <meta name="generator" content="Doxygen 1.8.17"/> |
| 8 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 9 | <title>Arm NN: src/backends/cl/workloads/ClDepthwiseConvolutionWorkload.cpp Source File</title> |
| 10 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 11 | <script type="text/javascript" src="jquery.js"></script> |
| 12 | <script type="text/javascript" src="dynsections.js"></script> |
| 13 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 14 | <script type="text/javascript" src="resize.js"></script> |
| 15 | <script type="text/javascript" src="navtreedata.js"></script> |
| 16 | <script type="text/javascript" src="navtree.js"></script> |
| 17 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 18 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 19 | <script type="text/javascript" src="search/search.js"></script> |
| 20 | <script type="text/x-mathjax-config"> |
| 21 | MathJax.Hub.Config({ |
| 22 | extensions: ["tex2jax.js"], |
| 23 | jax: ["input/TeX","output/HTML-CSS"], |
| 24 | }); |
| 25 | </script> |
| 26 | <script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 27 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 28 | <link href="customdoxygen.css" rel="stylesheet" type="text/css"/> |
| 29 | </head> |
| 30 | <body> |
| 31 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 32 | <div id="titlearea"> |
| 33 | <table cellspacing="0" cellpadding="0"> |
| 34 | <tbody> |
| 35 | <tr style="height: 56px;"> |
| 36 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 15rem; margin-top: .5rem; margin-left 13px"/> |
| 37 | <td id="projectalign" style="padding-left: 0.9em;"> |
| 38 | <div id="projectname"> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 39 |  <span id="projectnumber">24.05</span> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 40 | </div> |
| 41 | </td> |
| 42 | </tr> |
| 43 | </tbody> |
| 44 | </table> |
| 45 | </div> |
| 46 | <!-- end header part --> |
| 47 | <!-- Generated by Doxygen 1.8.17 --> |
| 48 | <script type="text/javascript"> |
| 49 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| 50 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 51 | /* @license-end */ |
| 52 | </script> |
| 53 | <script type="text/javascript" src="menudata.js"></script> |
| 54 | <script type="text/javascript" src="menu.js"></script> |
| 55 | <script type="text/javascript"> |
| 56 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| 57 | $(function() { |
| 58 | initMenu('',true,false,'search.php','Search'); |
| 59 | $(document).ready(function() { init_search(); }); |
| 60 | }); |
| 61 | /* @license-end */</script> |
| 62 | <div id="main-nav"></div> |
| 63 | </div><!-- top --> |
| 64 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 65 | <div id="nav-tree"> |
| 66 | <div id="nav-tree-contents"> |
| 67 | <div id="nav-sync" class="sync"></div> |
| 68 | </div> |
| 69 | </div> |
| 70 | <div id="splitbar" style="-moz-user-select:none;" |
| 71 | class="ui-resizable-handle"> |
| 72 | </div> |
| 73 | </div> |
| 74 | <script type="text/javascript"> |
| 75 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| 76 | $(document).ready(function(){initNavTree('_cl_depthwise_convolution_workload_8cpp_source.html',''); initResizable(); }); |
| 77 | /* @license-end */ |
| 78 | </script> |
| 79 | <div id="doc-content"> |
| 80 | <!-- window showing the filter options --> |
| 81 | <div id="MSearchSelectWindow" |
| 82 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 83 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 84 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 85 | </div> |
| 86 | |
| 87 | <!-- iframe showing the search results (closed by default) --> |
| 88 | <div id="MSearchResultsWindow"> |
| 89 | <iframe src="javascript:void(0)" frameborder="0" |
| 90 | name="MSearchResults" id="MSearchResults"> |
| 91 | </iframe> |
| 92 | </div> |
| 93 | |
| 94 | <div class="header"> |
| 95 | <div class="headertitle"> |
| 96 | <div class="title">ClDepthwiseConvolutionWorkload.cpp</div> </div> |
| 97 | </div><!--header--> |
| 98 | <div class="contents"> |
| 99 | <a href="_cl_depthwise_convolution_workload_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 100 | <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017-2024 Arm Ltd and Contributors. All rights reserved.</span></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 101 | <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div> |
| 102 | <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div> |
| 103 | <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div> |
| 104 | <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="_cl_depthwise_convolution_workload_8hpp.html">ClDepthwiseConvolutionWorkload.hpp</a>"</span></div> |
| 105 | <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div> |
| 106 | <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="_resolve_type_8hpp.html">ResolveType.hpp</a>></span></div> |
| 107 | <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="_cl_workload_utils_8hpp.html">ClWorkloadUtils.hpp</a>"</span></div> |
| 108 | <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div> |
| 109 | <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="code" href="_exceptions_8hpp.html">armnn/Exceptions.hpp</a>></span></div> |
| 110 | <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="code" href="_arm_compute_utils_8hpp.html">aclCommon/ArmComputeUtils.hpp</a>></span></div> |
| 111 | <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_arm_compute_tensor_utils_8hpp.html">aclCommon/ArmComputeTensorUtils.hpp</a>></span></div> |
| 112 | <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <<a class="code" href="_cl_tensor_handle_8hpp.html">cl/ClTensorHandle.hpp</a>></span></div> |
| 113 | <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="_tensor_handle_8hpp.html">armnn/backends/TensorHandle.hpp</a>></span></div> |
| 114 | <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="_workload_utils_8hpp.html">backendsCommon/WorkloadUtils.hpp</a>></span></div> |
| 115 | <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="_workload_data_8hpp.html">armnn/backends/WorkloadData.hpp</a>></span></div> |
| 116 | <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div> |
| 117 | <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <arm_compute/runtime/CL/functions/CLDepthwiseConvolutionLayer.h></span></div> |
| 118 | <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div> |
| 119 | <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.html">armnn</a></div> |
| 120 | <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> {</div> |
| 121 | <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div> |
| 122 | <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">using namespace </span>armcomputetensorutils;</div> |
| 123 | <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div> |
| 124 | <div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespacearmnn.html#aa6670a2fcf9f365da69f3f3092dfa64b"> 26</a></span> <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">arm_compute::Status</a> <a class="code" href="namespacearmnn.html#aa6670a2fcf9f365da69f3f3092dfa64b">ClDepthwiseConvolutionWorkloadValidate</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& input,</div> |
| 125 | <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& output,</div> |
| 126 | <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html">DepthwiseConvolution2dDescriptor</a>& descriptor,</div> |
| 127 | <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& weights,</div> |
| 128 | <div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_optional.html">Optional<TensorInfo></a>& biases,</div> |
| 129 | <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_activation_descriptor.html">ActivationDescriptor</a>* activationDescriptor)</div> |
| 130 | <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div> |
| 131 | <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">const</span> arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input, descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div> |
| 132 | <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">const</span> arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output, descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div> |
| 133 | <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div> |
| 134 | <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// ArmNN format for weights for depthwise is [1, H, W, C] independently of the input/output layout</span></div> |
| 135 | <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="comment">//</span></div> |
| 136 | <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">// ACL format for weights for depthwise is:</span></div> |
| 137 | <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// - [1, H, W, C] for [N, H, W, C] input/output layout (matches with ArmNN)</span></div> |
| 138 | <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">// - [1, C, H, W] for [N, C, H, W] input/output layout</span></div> |
| 139 | <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">//</span></div> |
| 140 | <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// Therefore ArmNN weights have to be permuted when input/output layout is [N, C, H, W] to pass them to ACL.</span></div> |
| 141 | <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// The PermuteDepthwiseConv2dWeights backend optimization takes care of this, but it has not been performed yet,</span></div> |
| 142 | <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="comment">// so we do the permute here for the TensorInfo weights.</span></div> |
| 143 | <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> aclDepthMultiplier;</div> |
| 144 | <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> weightsPermuted;</div> |
| 145 | <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  std::tie(weightsPermuted, aclDepthMultiplier) = <a class="code" href="namespacearmnn.html#ac4aa9e41515b354234645f115c49de32">Convert1HWOTensorInfoToAcl</a>(weights, input,descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div> |
| 146 | <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div> |
| 147 | <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">// Convert the weights into the compute library format</span></div> |
| 148 | <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  arm_compute::TensorInfo aclWeightsInfo = BuildArmComputeTensorInfo(weightsPermuted, descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div> |
| 149 | <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  aclWeightsInfo.set_are_values_constant(weights.<a class="code" href="classarmnn_1_1_tensor_info.html#a945263e85c27f3216a8323cfc16d8919">IsConstant</a>());</div> |
| 150 | <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div> |
| 151 | <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  arm_compute::TensorInfo aclBiasesInfo;</div> |
| 152 | <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  arm_compute::TensorInfo* optionalAclBiasesInfo = <span class="keyword">nullptr</span>;</div> |
| 153 | <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span> (descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>)</div> |
| 154 | <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {</div> |
| 155 | <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (!biases.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>())</div> |
| 156 | <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div> |
| 157 | <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">arm_compute::Status</a>{arm_compute::ErrorCode::RUNTIME_ERROR,</div> |
| 158 | <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="stringliteral">"ArmNN ClDepthwiseConv2dWorkload has empty bias value."</span>};</div> |
| 159 | <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div> |
| 160 | <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  aclBiasesInfo = BuildArmComputeTensorInfo(biases.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>(), descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div> |
| 161 | <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  aclBiasesInfo.set_are_values_constant(biases.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>().IsConstant());</div> |
| 162 | <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  optionalAclBiasesInfo = &aclBiasesInfo;</div> |
| 163 | <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div> |
| 164 | <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div> |
| 165 | <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">const</span> arm_compute::PadStrideInfo aclPadStrideInfo = BuildArmComputePadStrideInfo(descriptor);</div> |
| 166 | <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">const</span> arm_compute::Size2D aclDilationInfo = BuildArmComputeSize2D(</div> |
| 167 | <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aa3c6a77a963a98ccb8ea7b8fd008a8c1">m_DilationX</a>,</div> |
| 168 | <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  descriptor.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a302b688d88dd73cde0fb1faef6679907">m_DilationY</a>);</div> |
| 169 | <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div> |
| 170 | <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> arm_compute::ActivationLayerInfo activationInfo = <a class="code" href="namespacearmnn.html#ad701d0d29baa4266ab4d33b090aa661c">ConvertActivationDescriptorToAclActivationLayerInfo</a>(</div> |
| 171 | <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  activationDescriptor);</div> |
| 172 | <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div> |
| 173 | <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> arm_compute::CLDepthwiseConvolutionLayer::validate(&aclInputInfo,</div> |
| 174 | <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  &aclWeightsInfo,</div> |
| 175 | <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  optionalAclBiasesInfo,</div> |
| 176 | <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  &aclOutputInfo,</div> |
| 177 | <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  aclPadStrideInfo,</div> |
| 178 | <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  aclDepthMultiplier,</div> |
| 179 | <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  activationInfo,</div> |
| 180 | <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  aclDilationInfo);</div> |
| 181 | <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div> |
| 182 | <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> }</div> |
| 183 | <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div> |
| 184 | <div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#a121c5818013508ab30f675da7fc3364c"> 86</a></span> <a class="code" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#a121c5818013508ab30f675da7fc3364c">ClDepthwiseConvolutionWorkload::ClDepthwiseConvolutionWorkload</a>(</div> |
| 185 | <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_depthwise_convolution2d_queue_descriptor.html">DepthwiseConvolution2dQueueDescriptor</a>& descriptor,</div> |
| 186 | <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a>& info,</div> |
| 187 | <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">const</span> arm_compute::CLCompileContext& clCompileContext)</div> |
| 188 | <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  : <a class="code" href="classarmnn_1_1_cl_base_workload.html">ClBaseWorkload</a><<a class="code" href="structarmnn_1_1_depthwise_convolution2d_queue_descriptor.html">DepthwiseConvolution2dQueueDescriptor</a>>(descriptor, <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>)</div> |
| 189 | <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> {</div> |
| 190 | <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor.html#a765d2cee4ccce5b9467e0c2b6d25b84a">ValidateInputsOutputs</a>(<span class="stringliteral">"ClDepthwiseConv2dWorkload"</span>, descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a62938964ffd34d5af3f2d56ca1183b18">GetNumInputs</a>(), 1);</div> |
| 191 | <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div> |
| 192 | <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  arm_compute::ICLTensor& input = PolymorphicDowncast<IClTensorHandle*>(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor.html#a4b50e46a6810018f3edecfb68b2a76b3">m_Inputs</a>[0])->GetTensor();</div> |
| 193 | <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  arm_compute::ICLTensor& output = PolymorphicDowncast<IClTensorHandle*>(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor.html#a6abd491bb99ffe88bd472c1ae5a1ed1a">m_Outputs</a>[0])->GetTensor();</div> |
| 194 | <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  arm_compute::ICLTensor& weights = PolymorphicDowncast<IClTensorHandle*>(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor.html#a4b50e46a6810018f3edecfb68b2a76b3">m_Inputs</a>[1])->GetTensor();</div> |
| 195 | <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  weights.info()->set_are_values_constant(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>.m_InputTensorInfos[1].IsConstant());</div> |
| 196 | <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  arm_compute::ITensorInfo* weightsInfo = weights.info();</div> |
| 197 | <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  arm_compute::ITensorInfo* inputInfo = input.info();</div> |
| 198 | <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">auto</span> weightsShape = weightsInfo->tensor_shape();</div> |
| 199 | <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">auto</span> inputShape = inputInfo->tensor_shape();</div> |
| 200 | <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div> |
| 201 | <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// The PermuteDepthwiseConv2dWeights backend optimization has been performed,</span></div> |
| 202 | <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">// converting weights to have the same data layout as input.</span></div> |
| 203 | <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> depthMultiplier =</div> |
| 204 | <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  ComputeDepthwiseConv2dDepthMultiplier(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>, weightsShape, inputShape);</div> |
| 205 | <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div> |
| 206 | <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  arm_compute::ICLTensor* bias = <span class="keyword">nullptr</span>;</div> |
| 207 | <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">if</span> (<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>)</div> |
| 208 | <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {</div> |
| 209 | <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  bias = &PolymorphicDowncast<IClTensorHandle*>(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor.html#a4b50e46a6810018f3edecfb68b2a76b3">m_Inputs</a>[2])->GetTensor();</div> |
| 210 | <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  bias->info()->set_are_values_constant(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>.m_InputTensorInfos[2].IsConstant());</div> |
| 211 | <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div> |
| 212 | <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div> |
| 213 | <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">const</span> arm_compute::Size2D aclDilationInfo = BuildArmComputeSize2D(</div> |
| 214 | <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aa3c6a77a963a98ccb8ea7b8fd008a8c1">m_DilationX</a>,</div> |
| 215 | <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a302b688d88dd73cde0fb1faef6679907">m_DilationY</a>);</div> |
| 216 | <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div> |
| 217 | <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">arm_compute::DataLayout</a> aclDataLayout = ConvertDataLayout(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div> |
| 218 | <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  input.info()->set_data_layout(aclDataLayout);</div> |
| 219 | <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  weights.info()->set_data_layout(aclDataLayout);</div> |
| 220 | <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  output.info()->set_data_layout(aclDataLayout);</div> |
| 221 | <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div> |
| 222 | <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  arm_compute::PadStrideInfo padStrideInfo = BuildArmComputePadStrideInfo(<a class="code" href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">m_Data</a>.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>);</div> |
| 223 | <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div> |
| 224 | <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">const</span> arm_compute::ActivationLayerInfo activationInfo = <a class="code" href="namespacearmnn.html#abfb0841058a8190d30851f07eca3991f">ConvertAdditionalInfoToAclActivationLayerInfo</a>(descriptor);</div> |
| 225 | <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div> |
| 226 | <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ac0fba9c7a56b1982e9aa8ca10b5df71b">m_DepthwiseConvolutionLayer</a> = std::make_unique<arm_compute::CLDepthwiseConvolutionLayer>();</div> |
| 227 | <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div> |
| 228 | <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div> |
| 229 | <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="_cl_workload_utils_8hpp.html#a2d57ef1645138f5f8a6dbd2ce92dc072">ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID</a>(<span class="stringliteral">"ClDepthwiseConvolutionWorkload_configure"</span>);</div> |
| 230 | <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">static_cast<</span>arm_compute::CLDepthwiseConvolutionLayer*<span class="keyword">></span>(<a class="code" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ac0fba9c7a56b1982e9aa8ca10b5df71b">m_DepthwiseConvolutionLayer</a>.get())->configure(</div> |
| 231 | <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  clCompileContext,</div> |
| 232 | <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  &input,</div> |
| 233 | <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  &weights,</div> |
| 234 | <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  bias,</div> |
| 235 | <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  &output,</div> |
| 236 | <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  padStrideInfo,</div> |
| 237 | <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  depthMultiplier,</div> |
| 238 | <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  activationInfo,</div> |
| 239 | <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  aclDilationInfo);</div> |
| 240 | <div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  }</div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 241 | <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div> |
| 242 | <div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// Add details for profiling output</span></div> |
| 243 | <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> detailsInfo;</div> |
| 244 | <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div> |
| 245 | <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  detailsInfo.<a class="code" href="structarmnn_1_1_workload_info.html#ac97905bfa0daab357b91df1347600309">m_InputTensorInfos</a> = <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>.m_InputTensorInfos;</div> |
| 246 | <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  detailsInfo.<a class="code" href="structarmnn_1_1_workload_info.html#a67b178f8a836bc1e52b8de109760adfd">m_OutputTensorInfos</a> = <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>.m_OutputTensorInfos;</div> |
| 247 | <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div> |
| 248 | <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">// Report Profiling Details</span></div> |
| 249 | <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="_profiling_8hpp.html#a786492a3881a4c760ab1eec2149f4aba">ARMNN_REPORT_PROFILING_WORKLOAD_DESC</a>(<span class="stringliteral">"ClDepthwiseConvolutionWorkload_Construct"</span>,</div> |
| 250 | <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>,</div> |
| 251 | <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  detailsInfo,</div> |
| 252 | <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classarmnn_1_1_base_workload.html#aaff95a48875d8fb4a616352906660ca9">GetGuid</a>());</div> |
| 253 | <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div> |
| 254 | <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div> |
| 255 | <div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ae071e8822437c78baea75c3aef3a263a"> 157</a></span> <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ae071e8822437c78baea75c3aef3a263a">ClDepthwiseConvolutionWorkload::Execute</a>()<span class="keyword"> const</span></div> |
| 256 | <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keyword"></span>{</div> |
| 257 | <div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="_cl_workload_utils_8hpp.html#a2d57ef1645138f5f8a6dbd2ce92dc072">ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID</a>(<span class="stringliteral">"ClDepthwiseConvolutionWorkload_Execute"</span>);</div> |
| 258 | <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div> |
| 259 | <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="namespacearmnn.html#a52c299ca6a3884c609583a5a0663db80">RunClFunction</a>(*<a class="code" href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ac0fba9c7a56b1982e9aa8ca10b5df71b">m_DepthwiseConvolutionLayer</a>, <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div> |
| 260 | <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div> |
| 261 | <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div> |
| 262 | <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> } <span class="comment">// namespace armnn</span></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 263 | </div><!-- fragment --></div><!-- contents --> |
| 264 | </div><!-- doc-content --> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 265 | <div class="ttc" id="astructarmnn_1_1_activation_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_activation_descriptor.html">armnn::ActivationDescriptor</a></div><div class="ttdoc">An ActivationDescriptor for the ActivationLayer.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00036">Descriptors.hpp:36</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 266 | <div class="ttc" id="anamespacearmnn_html_ac4aa9e41515b354234645f115c49de32"><div class="ttname"><a href="namespacearmnn.html#ac4aa9e41515b354234645f115c49de32">armnn::Convert1HWOTensorInfoToAcl</a></div><div class="ttdeci">std::tuple< TensorInfo, unsigned int > Convert1HWOTensorInfoToAcl(const TensorInfo &weightInfo, const TensorInfo &inputInfo, const DataLayout dataLayout)</div><div class="ttdoc">Weights for depthwise have a datalayout of [1,H,W,O] = [1,H,W,I*M] This function coverts a TensorInfo...</div><div class="ttdef"><b>Definition:</b> <a href="_workload_utils_8cpp_source.html#l00177">WorkloadUtils.cpp:177</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 267 | <div class="ttc" id="a_cl_depthwise_convolution_workload_8hpp_html"><div class="ttname"><a href="_cl_depthwise_convolution_workload_8hpp.html">ClDepthwiseConvolutionWorkload.hpp</a></div></div> |
| 268 | <div class="ttc" id="aclassarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00270">Optional.hpp:270</a></div></div> |
| 269 | <div class="ttc" id="aclassarmnn_1_1_cl_depthwise_convolution_workload_html_a121c5818013508ab30f675da7fc3364c"><div class="ttname"><a href="classarmnn_1_1_cl_depthwise_convolution_workload.html#a121c5818013508ab30f675da7fc3364c">armnn::ClDepthwiseConvolutionWorkload::ClDepthwiseConvolutionWorkload</a></div><div class="ttdeci">ClDepthwiseConvolutionWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_depthwise_convolution_workload_8cpp_source.html#l00086">ClDepthwiseConvolutionWorkload.cpp:86</a></div></div> |
| 270 | <div class="ttc" id="anamespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a></div><div class="ttdeci">DataLayout</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00062">Types.hpp:62</a></div></div> |
| 271 | <div class="ttc" id="a_workload_data_8hpp_html"><div class="ttname"><a href="_workload_data_8hpp.html">WorkloadData.hpp</a></div></div> |
| 272 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::DepthwiseConvolution2dDescriptor::m_BiasEnabled</a></div><div class="ttdeci">bool m_BiasEnabled</div><div class="ttdoc">Enable/disable bias.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00708">Descriptors.hpp:708</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 273 | <div class="ttc" id="aclassarmnn_1_1_cl_depthwise_convolution_workload_html_ae071e8822437c78baea75c3aef3a263a"><div class="ttname"><a href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ae071e8822437c78baea75c3aef3a263a">armnn::ClDepthwiseConvolutionWorkload::Execute</a></div><div class="ttdeci">void Execute() const override</div><div class="ttdef"><b>Definition:</b> <a href="_cl_depthwise_convolution_workload_8cpp_source.html#l00157">ClDepthwiseConvolutionWorkload.cpp:157</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 274 | <div class="ttc" id="a_workload_utils_8hpp_html"><div class="ttname"><a href="_workload_utils_8hpp.html">WorkloadUtils.hpp</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 275 | <div class="ttc" id="astructarmnn_1_1_queue_descriptor_html_a765d2cee4ccce5b9467e0c2b6d25b84a"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor.html#a765d2cee4ccce5b9467e0c2b6d25b84a">armnn::QueueDescriptor::ValidateInputsOutputs</a></div><div class="ttdeci">void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8cpp_source.html#l00447">WorkloadData.cpp:447</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame] | 276 | <div class="ttc" id="anamespacearmnn_html_abfb0841058a8190d30851f07eca3991f"><div class="ttname"><a href="namespacearmnn.html#abfb0841058a8190d30851f07eca3991f">armnn::ConvertAdditionalInfoToAclActivationLayerInfo</a></div><div class="ttdeci">arm_compute::ActivationLayerInfo ConvertAdditionalInfoToAclActivationLayerInfo(const QueueDescriptor &queueDescriptor)</div><div class="ttdef"><b>Definition:</b> <a href="_arm_compute_utils_8hpp_source.html#l00105">ArmComputeUtils.hpp:105</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 277 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::DepthwiseConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC).</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00710">Descriptors.hpp:710</a></div></div> |
| 278 | <div class="ttc" id="aclassarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00152">Tensor.hpp:152</a></div></div> |
| 279 | <div class="ttc" id="a_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00203">Exceptions.hpp:203</a></div></div> |
| 280 | <div class="ttc" id="aclassarmnn_1_1_cl_base_workload_html"><div class="ttname"><a href="classarmnn_1_1_cl_base_workload.html">armnn::ClBaseWorkload</a></div><div class="ttdef"><b>Definition:</b> <a href="_cl_base_workload_8hpp_source.html#l00013">ClBaseWorkload.hpp:13</a></div></div> |
| 281 | <div class="ttc" id="a_resolve_type_8hpp_html"><div class="ttname"><a href="_resolve_type_8hpp.html">ResolveType.hpp</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 282 | <div class="ttc" id="aclassarmnn_1_1_tensor_info_html_a945263e85c27f3216a8323cfc16d8919"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a945263e85c27f3216a8323cfc16d8919">armnn::TensorInfo::IsConstant</a></div><div class="ttdeci">bool IsConstant() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00513">Tensor.cpp:513</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 283 | <div class="ttc" id="astructarmnn_1_1_workload_info_html_a67b178f8a836bc1e52b8de109760adfd"><div class="ttname"><a href="structarmnn_1_1_workload_info.html#a67b178f8a836bc1e52b8de109760adfd">armnn::WorkloadInfo::m_OutputTensorInfos</a></div><div class="ttdeci">std::vector< TensorInfo > m_OutputTensorInfos</div><div class="ttdef"><b>Definition:</b> <a href="_workload_info_8hpp_source.html#l00019">WorkloadInfo.hpp:19</a></div></div> |
| 284 | <div class="ttc" id="astructarmnn_1_1_queue_descriptor_with_parameters_html_aad91b9bbf7aa365d304febe79a3d1333"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">armnn::QueueDescriptorWithParameters::m_Parameters</a></div><div class="ttdeci">LayerDescriptor m_Parameters</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00066">WorkloadData.hpp:66</a></div></div> |
| 285 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_descriptor_html_a302b688d88dd73cde0fb1faef6679907"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a302b688d88dd73cde0fb1faef6679907">armnn::DepthwiseConvolution2dDescriptor::m_DilationY</a></div><div class="ttdeci">uint32_t m_DilationY</div><div class="ttdoc">Dilation factor value for height dimension.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00706">Descriptors.hpp:706</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 286 | <div class="ttc" id="a_cl_workload_utils_8hpp_html_a2d57ef1645138f5f8a6dbd2ce92dc072"><div class="ttname"><a href="_cl_workload_utils_8hpp.html#a2d57ef1645138f5f8a6dbd2ce92dc072">ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID</a></div><div class="ttdeci">#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)</div><div class="ttdoc">Creates a profiling event that uses GetGuid() and GetName() from the calling class.</div><div class="ttdef"><b>Definition:</b> <a href="_cl_workload_utils_8hpp_source.html#l00036">ClWorkloadUtils.hpp:36</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 287 | <div class="ttc" id="astructarmnn_1_1_workload_info_html"><div class="ttname"><a href="structarmnn_1_1_workload_info.html">armnn::WorkloadInfo</a></div><div class="ttdoc">Contains information about TensorInfos of a layer.</div><div class="ttdef"><b>Definition:</b> <a href="_workload_info_8hpp_source.html#l00016">WorkloadInfo.hpp:16</a></div></div> |
| 288 | <div class="ttc" id="a_cl_workload_utils_8hpp_html"><div class="ttname"><a href="_cl_workload_utils_8hpp.html">ClWorkloadUtils.hpp</a></div></div> |
| 289 | <div class="ttc" id="a_arm_compute_utils_8hpp_html"><div class="ttname"><a href="_arm_compute_utils_8hpp.html">ArmComputeUtils.hpp</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame] | 290 | <div class="ttc" id="anamespacearmnn_html_ad701d0d29baa4266ab4d33b090aa661c"><div class="ttname"><a href="namespacearmnn.html#ad701d0d29baa4266ab4d33b090aa661c">armnn::ConvertActivationDescriptorToAclActivationLayerInfo</a></div><div class="ttdeci">arm_compute::ActivationLayerInfo ConvertActivationDescriptorToAclActivationLayerInfo(const ActivationDescriptor &actDesc)</div><div class="ttdef"><b>Definition:</b> <a href="_arm_compute_utils_8hpp_source.html#l00087">ArmComputeUtils.hpp:87</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 291 | <div class="ttc" id="anamespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div><div class="ttdeci">@ info</div></div> |
| 292 | <div class="ttc" id="aclassarmnn_1_1_cl_depthwise_convolution_workload_html_ac0fba9c7a56b1982e9aa8ca10b5df71b"><div class="ttname"><a href="classarmnn_1_1_cl_depthwise_convolution_workload.html#ac0fba9c7a56b1982e9aa8ca10b5df71b">armnn::ClDepthwiseConvolutionWorkload::m_DepthwiseConvolutionLayer</a></div><div class="ttdeci">std::unique_ptr< arm_compute::IFunction > m_DepthwiseConvolutionLayer</div><div class="ttdef"><b>Definition:</b> <a href="_cl_depthwise_convolution_workload_8hpp_source.html#l00036">ClDepthwiseConvolutionWorkload.hpp:36</a></div></div> |
| 293 | <div class="ttc" id="astructarmnn_1_1_queue_descriptor_html_a6abd491bb99ffe88bd472c1ae5a1ed1a"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor.html#a6abd491bb99ffe88bd472c1ae5a1ed1a">armnn::QueueDescriptor::m_Outputs</a></div><div class="ttdeci">std::vector< ITensorHandle * > m_Outputs</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00027">WorkloadData.hpp:27</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame] | 294 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_queue_descriptor.html">armnn::DepthwiseConvolution2dQueueDescriptor</a></div><div class="ttdoc">Depthwise Convolution 2D layer workload data.</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00234">WorkloadData.hpp:234</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 295 | <div class="ttc" id="a_profiling_8hpp_html_a786492a3881a4c760ab1eec2149f4aba"><div class="ttname"><a href="_profiling_8hpp.html#a786492a3881a4c760ab1eec2149f4aba">ARMNN_REPORT_PROFILING_WORKLOAD_DESC</a></div><div class="ttdeci">#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_8hpp_source.html#l00227">Profiling.hpp:227</a></div></div> |
| 296 | <div class="ttc" id="aclassarmnn_1_1_base_workload_html_aaff95a48875d8fb4a616352906660ca9"><div class="ttname"><a href="classarmnn_1_1_base_workload.html#aaff95a48875d8fb4a616352906660ca9">armnn::BaseWorkload< DepthwiseConvolution2dQueueDescriptor >::GetGuid</a></div><div class="ttdeci">arm::pipe::ProfilingGuid GetGuid() const final</div><div class="ttdef"><b>Definition:</b> <a href="_workload_8hpp_source.html#l00067">Workload.hpp:67</a></div></div> |
| 297 | <div class="ttc" id="a_tensor_handle_8hpp_html"><div class="ttname"><a href="_tensor_handle_8hpp.html">TensorHandle.hpp</a></div></div> |
| 298 | <div class="ttc" id="anamespacearmnn_html_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00042">Types.hpp:42</a></div></div> |
| 299 | <div class="ttc" id="a_cl_tensor_handle_8hpp_html"><div class="ttname"><a href="_cl_tensor_handle_8hpp.html">ClTensorHandle.hpp</a></div></div> |
| 300 | <div class="ttc" id="aclassarmnn_1_1_base_workload_html_afb8d2c8817c75de9d01a4c0e0d5c160b"><div class="ttname"><a href="classarmnn_1_1_base_workload.html#afb8d2c8817c75de9d01a4c0e0d5c160b">armnn::BaseWorkload< DepthwiseConvolution2dQueueDescriptor >::m_Data</a></div><div class="ttdeci">DepthwiseConvolution2dQueueDescriptor m_Data</div><div class="ttdef"><b>Definition:</b> <a href="_workload_8hpp_source.html#l00089">Workload.hpp:89</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 301 | <div class="ttc" id="anamespacearmnn_html_a52c299ca6a3884c609583a5a0663db80"><div class="ttname"><a href="namespacearmnn.html#a52c299ca6a3884c609583a5a0663db80">armnn::RunClFunction</a></div><div class="ttdeci">void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_workload_utils_8hpp_source.html#l00167">ClWorkloadUtils.hpp:167</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 302 | <div class="ttc" id="astructarmnn_1_1_workload_info_html_ac97905bfa0daab357b91df1347600309"><div class="ttname"><a href="structarmnn_1_1_workload_info.html#ac97905bfa0daab357b91df1347600309">armnn::WorkloadInfo::m_InputTensorInfos</a></div><div class="ttdeci">std::vector< TensorInfo > m_InputTensorInfos</div><div class="ttdef"><b>Definition:</b> <a href="_workload_info_8hpp_source.html#l00018">WorkloadInfo.hpp:18</a></div></div> |
| 303 | <div class="ttc" id="a_exceptions_8hpp_html"><div class="ttname"><a href="_exceptions_8hpp.html">Exceptions.hpp</a></div></div> |
| 304 | <div class="ttc" id="anamespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdoc">Copyright (c) 2021 ARM Limited and Contributors.</div><div class="ttdef"><b>Definition:</b> <a href="01__00__quick__start_8dox_source.html#l00006">01_00_quick_start.dox:6</a></div></div> |
| 305 | <div class="ttc" id="a_arm_compute_tensor_utils_8hpp_html"><div class="ttname"><a href="_arm_compute_tensor_utils_8hpp.html">ArmComputeTensorUtils.hpp</a></div></div> |
| 306 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html">armnn::DepthwiseConvolution2dDescriptor</a></div><div class="ttdoc">A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00659">Descriptors.hpp:659</a></div></div> |
| 307 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_descriptor_html_aa3c6a77a963a98ccb8ea7b8fd008a8c1"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aa3c6a77a963a98ccb8ea7b8fd008a8c1">armnn::DepthwiseConvolution2dDescriptor::m_DilationX</a></div><div class="ttdeci">uint32_t m_DilationX</div><div class="ttdoc">Dilation factor value for width dimension.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00704">Descriptors.hpp:704</a></div></div> |
| 308 | <div class="ttc" id="anamespacearmnn_html_aa6670a2fcf9f365da69f3f3092dfa64b"><div class="ttname"><a href="namespacearmnn.html#aa6670a2fcf9f365da69f3f3092dfa64b">armnn::ClDepthwiseConvolutionWorkloadValidate</a></div><div class="ttdeci">arm_compute::Status ClDepthwiseConvolutionWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, const ActivationDescriptor *activationDescriptor)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_depthwise_convolution_workload_8cpp_source.html#l00026">ClDepthwiseConvolutionWorkload.cpp:26</a></div></div> |
| 309 | <div class="ttc" id="aclassarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch< std::is_reference< T >::value, T >::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 310 | <div class="ttc" id="astructarmnn_1_1_queue_descriptor_html_a4b50e46a6810018f3edecfb68b2a76b3"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor.html#a4b50e46a6810018f3edecfb68b2a76b3">armnn::QueueDescriptor::m_Inputs</a></div><div class="ttdeci">std::vector< ITensorHandle * > m_Inputs</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00026">WorkloadData.hpp:26</a></div></div> |
| 311 | <div class="ttc" id="aclassarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 312 | <div class="ttc" id="astructarmnn_1_1_depthwise_convolution2d_descriptor_html_a62938964ffd34d5af3f2d56ca1183b18"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a62938964ffd34d5af3f2d56ca1183b18">armnn::DepthwiseConvolution2dDescriptor::GetNumInputs</a></div><div class="ttdeci">uint32_t GetNumInputs() const</div><div class="ttdoc">Get the number of views/inputs.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00480">Descriptors.cpp:480</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 313 | <!-- start footer part --> |
| 314 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 315 | <ul> |
| 316 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_1ad86c6d39ab715a831555571b9e98a5.html">cl</a></li><li class="navelem"><a class="el" href="dir_2d9c087bc7f49a1d7a25fdc615d2f0c9.html">workloads</a></li><li class="navelem"><a class="el" href="_cl_depthwise_convolution_workload_8cpp.html">ClDepthwiseConvolutionWorkload.cpp</a></li> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 317 | <li class="footer">Generated on Thu May 16 2024 09:31:46 for Arm NN by |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 318 | <a href="http://www.doxygen.org/index.html"> |
| 319 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li> |
| 320 | </ul> |
| 321 | </div> |
| 322 | </body> |
| 323 | </html> |