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/armnn/layers/DetectionPostProcessLayer.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('_detection_post_process_layer_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">DetectionPostProcessLayer.cpp</div> </div> |
| 97 | </div><!--header--> |
| 98 | <div class="contents"> |
| 99 | <a href="_detection_post_process_layer_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="_detection_post_process_layer_8hpp.html">DetectionPostProcessLayer.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="_layer_clone_base_8hpp.html">LayerCloneBase.hpp</a>"</span></div> |
| 107 | <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div> |
| 108 | <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="_types_utils_8hpp.html">armnn/TypesUtils.hpp</a>></span></div> |
| 109 | <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="code" href="_tensor_handle_8hpp.html">armnn/backends/TensorHandle.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="_workload_data_8hpp.html">armnn/backends/WorkloadData.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="_workload_factory_8hpp.html">armnn/backends/WorkloadFactory.hpp</a>></span></div> |
| 112 | <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div> |
| 113 | <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.html">armnn</a></div> |
| 114 | <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div> |
| 115 | <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div> |
| 116 | <div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#a8270bf304cb3fa6af15c99562892b1ff"> 18</a></span> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a8270bf304cb3fa6af15c99562892b1ff">DetectionPostProcessLayer::DetectionPostProcessLayer</a>(<span class="keyword">const</span> <a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html">DetectionPostProcessDescriptor</a>& param, <span class="keyword">const</span> <span class="keywordtype">char</span>* name)</div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 117 | <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  : <a class="code" href="classarmnn_1_1_layer_with_parameters.html">LayerWithParameters</a>(2, 4, <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a>::<a class="code" href="namespacearmnn.html#a5826c31d9342002f512999ce89841073">DetectionPostProcess</a>, param, name)</div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 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> }</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"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#adfa912d0c4c6c00f1af2cbfa799572b7"> 23</a></span> std::unique_ptr<IWorkload> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#adfa912d0c4c6c00f1af2cbfa799572b7">DetectionPostProcessLayer::CreateWorkload</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& factory)<span class="keyword"> const</span></div> |
| 122 | <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword"></span>{</div> |
| 123 | <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="structarmnn_1_1_detection_post_process_queue_descriptor.html">DetectionPostProcessQueueDescriptor</a> descriptor;</div> |
| 124 | <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_queue_descriptor.html#aeb542471c225031a9922db3433f40b56">m_Anchors</a> = <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">m_Anchors</a>.get();</div> |
| 125 | <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classarmnn_1_1_layer.html#af7f0460d32511de0da525f1817d13e8c">SetAdditionalInfo</a>(descriptor);</div> |
| 126 | <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div> |
| 127 | <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> factory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a694a8411c8c799da95306034d274930b">CreateWorkload</a>(<a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a1db19222ac424bd7162142ddf929fd2a">LayerType::DetectionPostProcess</a>, descriptor, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">PrepInfoAndDesc</a>(descriptor));</div> |
| 128 | <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div> |
| 129 | <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div> |
| 130 | <div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#a8d3b0c5e823f04841d74a2647e6a5246"> 32</a></span> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html">DetectionPostProcessLayer</a>* <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a8d3b0c5e823f04841d74a2647e6a5246">DetectionPostProcessLayer::Clone</a>(<a class="code" href="classarmnn_1_1_graph.html">Graph</a>& graph)<span class="keyword"> const</span></div> |
| 131 | <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword"></span>{</div> |
| 132 | <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">auto</span> layer = CloneBase<DetectionPostProcessLayer>(graph, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>, <a class="code" href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">GetName</a>());</div> |
| 133 | <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  layer->m_Anchors = <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">m_Anchors</a> ? <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">m_Anchors</a> : <span class="keyword">nullptr</span>;</div> |
| 134 | <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">return</span> std::move(layer);</div> |
| 135 | <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> }</div> |
| 136 | <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div> |
| 137 | <div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#a8c8f543d7e9729362c266d12ec169966"> 39</a></span> <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a8c8f543d7e9729362c266d12ec169966">DetectionPostProcessLayer::ValidateTensorShapesFromInputs</a>()</div> |
| 138 | <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> {</div> |
| 139 | <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classarmnn_1_1_layer.html#a0607e36e88f38c34c71c663164b76776">VerifyLayerConnections</a>(2, <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div> |
| 140 | <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div> |
| 141 | <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& outputShape = <a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>();</div> |
| 142 | <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div> |
| 143 | <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classarmnn_1_1_layer.html#a448afc716fda85394df1e8e5b7d530e8">VerifyShapeInferenceType</a>(outputShape, <a class="code" href="classarmnn_1_1_layer.html#afe508761cc8318b15329ba4acf7fbfec">m_ShapeInferenceMethod</a>);</div> |
| 144 | <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div> |
| 145 | <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// on this level constant data should not be released.</span></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 146 | <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">m_Anchors</a>)</div> |
| 147 | <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div> |
| 148 | <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_layer_validation_exception.html">armnn::LayerValidationException</a>(<span class="stringliteral">"DetectionPostProcessLayer: Anchors data should not be null."</span>);</div> |
| 149 | <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</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>  <span class="keywordflow">if</span> (<a class="code" href="classarmnn_1_1_layer.html#a1594bddc87d6477df300317658f566bb">GetNumOutputSlots</a>() != 4)</div> |
| 152 | <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div> |
| 153 | <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_layer_validation_exception.html">armnn::LayerValidationException</a>(<span class="stringliteral">"DetectionPostProcessLayer: The layer should return 4 outputs."</span>);</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>  </div> |
| 156 | <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  std::vector<TensorShape> inferredShapes = <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>(</div> |
| 157 | <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  { <a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0).<a class="code" href="classarmnn_1_1_input_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(),</div> |
| 158 | <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(1).<a class="code" href="classarmnn_1_1_input_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>() });</div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 159 | <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 160 | <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">if</span> (inferredShapes.size() != 4)</div> |
| 161 | <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div> |
| 162 | <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_layer_validation_exception.html">armnn::LayerValidationException</a>(<span class="stringliteral">"inferredShapes has "</span></div> |
| 163 | <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  + std::to_string(inferredShapes.size()) +</div> |
| 164 | <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="stringliteral">" element(s) - should only have 4."</span>);</div> |
| 165 | <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 166 | <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 167 | <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">if</span> (std::any_of(inferredShapes.begin(), inferredShapes.end(), [] (<span class="keyword">auto</span>&& inferredShape) {</div> |
| 168 | <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  return inferredShape.GetDimensionality() != Dimensionality::Specified;</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>  {</div> |
| 171 | <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(<span class="stringliteral">"One of inferredShapes' dimensionalities is not specified."</span>);</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>  </div> |
| 174 | <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classarmnn_1_1_layer.html#aeb2d638cc0e02c10075e015100996f2d">ValidateAndCopyShape</a>(outputShape, inferredShapes[0], <a class="code" href="classarmnn_1_1_layer.html#afe508761cc8318b15329ba4acf7fbfec">m_ShapeInferenceMethod</a>, <span class="stringliteral">"DetectionPostProcessLayer"</span>);</div> |
| 175 | <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div> |
| 176 | <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classarmnn_1_1_layer.html#aeb2d638cc0e02c10075e015100996f2d">ValidateAndCopyShape</a>(<a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(1).<a class="code" href="namespacearmnn.html#aa815fde54f6d8e8aa5b4f0301cf4178b">GetTensorInfo</a>().GetShape(),</div> |
| 177 | <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  inferredShapes[1],</div> |
| 178 | <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classarmnn_1_1_layer.html#afe508761cc8318b15329ba4acf7fbfec">m_ShapeInferenceMethod</a>,</div> |
| 179 | <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="stringliteral">"DetectionPostProcessLayer"</span>, 1);</div> |
| 180 | <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div> |
| 181 | <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classarmnn_1_1_layer.html#aeb2d638cc0e02c10075e015100996f2d">ValidateAndCopyShape</a>(<a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(2).<a class="code" href="namespacearmnn.html#aa815fde54f6d8e8aa5b4f0301cf4178b">GetTensorInfo</a>().GetShape(),</div> |
| 182 | <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  inferredShapes[2],</div> |
| 183 | <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classarmnn_1_1_layer.html#afe508761cc8318b15329ba4acf7fbfec">m_ShapeInferenceMethod</a>,</div> |
| 184 | <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="stringliteral">"DetectionPostProcessLayer"</span>, 2);</div> |
| 185 | <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div> |
| 186 | <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classarmnn_1_1_layer.html#aeb2d638cc0e02c10075e015100996f2d">ValidateAndCopyShape</a>(<a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(3).<a class="code" href="namespacearmnn.html#aa815fde54f6d8e8aa5b4f0301cf4178b">GetTensorInfo</a>().GetShape(),</div> |
| 187 | <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  inferredShapes[3],</div> |
| 188 | <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classarmnn_1_1_layer.html#afe508761cc8318b15329ba4acf7fbfec">m_ShapeInferenceMethod</a>,</div> |
| 189 | <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="stringliteral">"DetectionPostProcessLayer"</span>, 3);</div> |
| 190 | <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</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"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#a65ca562c882ad619684445a1402f415a"> 94</a></span> std::vector<TensorShape> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a65ca562c882ad619684445a1402f415a">DetectionPostProcessLayer::InferOutputShapes</a>(<span class="keyword">const</span> std::vector<TensorShape>&)<span class="keyword"> const</span></div> |
| 193 | <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword"></span>{</div> |
| 194 | <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> detectedBoxes = <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#ae72089bcab60ac175557f4241b16a014">m_MaxDetections</a> * <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a9ae2c9796692ebeafe19a4d3f09c8ea8">m_MaxClassesPerDetection</a>;</div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 195 | <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 196 | <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  std::vector<TensorShape> results;</div> |
| 197 | <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  results.push_back({ 1, detectedBoxes, 4 });</div> |
| 198 | <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  results.push_back({ 1, detectedBoxes });</div> |
| 199 | <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  results.push_back({ 1, detectedBoxes });</div> |
| 200 | <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  results.push_back({ 1 });</div> |
| 201 | <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> results;</div> |
| 202 | <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div> |
| 203 | <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div> |
| 204 | <div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#a29cc31172f6ab16ac931f90c667c092d"> 106</a></span> <a class="code" href="classarmnn_1_1_i_connectable_layer.html#aba5c20cadbebd2e7ba67e20a47e31472">Layer::ImmutableConstantTensors</a> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a29cc31172f6ab16ac931f90c667c092d">DetectionPostProcessLayer::GetConstantTensorsByRef</a>()<span class="keyword"> const</span></div> |
| 205 | <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword"></span>{</div> |
| 206 | <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// For API stability DO NOT ALTER order and add new members to the end of vector</span></div> |
| 207 | <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">return</span> { <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">m_Anchors</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>  </div> |
| 210 | <div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classarmnn_1_1_detection_post_process_layer.html#a46fc3fdd4b2a5dd6d184e57983cf20bc"> 112</a></span> <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a46fc3fdd4b2a5dd6d184e57983cf20bc">DetectionPostProcessLayer::ExecuteStrategy</a>(<a class="code" href="classarmnn_1_1_i_strategy.html">IStrategy</a>& strategy)<span class="keyword"> const</span></div> |
| 211 | <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword"></span>{</div> |
| 212 | <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classarmnn_1_1_managed_const_tensor_handle.html">ManagedConstTensorHandle</a> managedAnchors(<a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">m_Anchors</a>);</div> |
| 213 | <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  std::vector<armnn::ConstTensor> constTensors { {managedAnchors.<a class="code" href="classarmnn_1_1_managed_const_tensor_handle.html#a66e8f43a5b42b500871ed96e15419567">GetTensorInfo</a>(), managedAnchors.<a class="code" href="classarmnn_1_1_managed_const_tensor_handle.html#a85e02725184184331cc2e3b00642be47">Map</a>()} };</div> |
| 214 | <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  strategy.<a class="code" href="classarmnn_1_1_i_strategy.html#ad4f8c9ff973cf6a603d26b56c5b34967">ExecuteStrategy</a>(<span class="keyword">this</span>, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#afa3e8a8f23589b1eaddbe203825bbdcf">GetParameters</a>(), constTensors, <a class="code" href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">GetName</a>());</div> |
| 215 | <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</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> } <span class="comment">// namespace armnn</span></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 218 | </div><!-- fragment --></div><!-- contents --> |
| 219 | </div><!-- doc-content --> |
| 220 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_adfa912d0c4c6c00f1af2cbfa799572b7"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#adfa912d0c4c6c00f1af2cbfa799572b7">armnn::DetectionPostProcessLayer::CreateWorkload</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override</div><div class="ttdoc">Makes a workload for the DetectionPostProcess type.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00023">DetectionPostProcessLayer.cpp:23</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 221 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a65ca562c882ad619684445a1402f415a">armnn::DetectionPostProcessLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override</div><div class="ttdoc">The model does not specify the output shapes.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00094">DetectionPostProcessLayer.cpp:94</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 222 | <div class="ttc" id="a_detection_post_process_layer_8hpp_html"><div class="ttname"><a href="_detection_post_process_layer_8hpp.html">DetectionPostProcessLayer.hpp</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 223 | <div class="ttc" id="aclassarmnn_1_1_output_slot_html_ada2ad7d1caeeb4ef6195c8925fad6a65"><div class="ttname"><a href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">armnn::OutputSlot::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00100">Layer.cpp:100</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 224 | <div class="ttc" id="a_workload_data_8hpp_html"><div class="ttname"><a href="_workload_data_8hpp.html">WorkloadData.hpp</a></div></div> |
| 225 | <div class="ttc" id="astructarmnn_1_1_detection_post_process_descriptor_html_ae72089bcab60ac175557f4241b16a014"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#ae72089bcab60ac175557f4241b16a014">armnn::DetectionPostProcessDescriptor::m_MaxDetections</a></div><div class="ttdeci">uint32_t m_MaxDetections</div><div class="ttdoc">Maximum numbers of detections.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00745">Descriptors.hpp:745</a></div></div> |
| 226 | <div class="ttc" id="a_types_utils_8hpp_html"><div class="ttname"><a href="_types_utils_8hpp.html">TypesUtils.hpp</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 227 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a29cc31172f6ab16ac931f90c667c092d"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a29cc31172f6ab16ac931f90c667c092d">armnn::DetectionPostProcessLayer::GetConstantTensorsByRef</a></div><div class="ttdeci">ImmutableConstantTensors GetConstantTensorsByRef() const override</div><div class="ttdoc">Retrieve the handles to the constant values stored by the layer.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00106">DetectionPostProcessLayer.cpp:106</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 228 | <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> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 229 | <div class="ttc" id="aclassarmnn_1_1_layer_html_aeb2d638cc0e02c10075e015100996f2d"><div class="ttname"><a href="classarmnn_1_1_layer.html#aeb2d638cc0e02c10075e015100996f2d">armnn::Layer::ValidateAndCopyShape</a></div><div class="ttdeci">void ValidateAndCopyShape(const TensorShape &outputShape, const TensorShape &inferredShape, const ShapeInferenceMethod shapeInferenceMethod, const std::string &layerName, const unsigned int outputSlotIndex=0)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00457">Layer.cpp:457</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 230 | <div class="ttc" id="aclassarmnn_1_1_layer_html_a0e36688a43c35668d8db5257274c68fe"><div class="ttname"><a href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">armnn::Layer::GetOutputSlot</a></div><div class="ttdeci">const OutputSlot & GetOutputSlot(unsigned int index=0) const override</div><div class="ttdoc">Get the const output slot handle by slot index.</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00339">Layer.hpp:339</a></div></div> |
| 231 | <div class="ttc" id="aclassarmnn_1_1_i_strategy_html"><div class="ttname"><a href="classarmnn_1_1_i_strategy.html">armnn::IStrategy</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_strategy_8hpp_source.html#l00016">IStrategy.hpp:16</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 232 | <div class="ttc" id="aclassarmnn_1_1_managed_const_tensor_handle_html"><div class="ttname"><a href="classarmnn_1_1_managed_const_tensor_handle.html">armnn::ManagedConstTensorHandle</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_8hpp_source.html#l00187">TensorHandle.hpp:187</a></div></div> |
| 233 | <div class="ttc" id="astructarmnn_1_1_detection_post_process_descriptor_html_a9ae2c9796692ebeafe19a4d3f09c8ea8"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a9ae2c9796692ebeafe19a4d3f09c8ea8">armnn::DetectionPostProcessDescriptor::m_MaxClassesPerDetection</a></div><div class="ttdeci">uint32_t m_MaxClassesPerDetection</div><div class="ttdoc">Maximum numbers of classes per detection, used in Fast NMS.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00747">Descriptors.hpp:747</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame] | 234 | <div class="ttc" id="astructarmnn_1_1_detection_post_process_queue_descriptor_html_aeb542471c225031a9922db3433f40b56"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_queue_descriptor.html#aeb542471c225031a9922db3433f40b56">armnn::DetectionPostProcessQueueDescriptor::m_Anchors</a></div><div class="ttdeci">const ConstTensorHandle * m_Anchors</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00246">WorkloadData.hpp:246</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 235 | <div class="ttc" id="aclassarmnn_1_1_layer_html_acf8b8e23bf647836592982f97088d375"><div class="ttname"><a href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">armnn::Layer::GetInputSlot</a></div><div class="ttdeci">const InputSlot & GetInputSlot(unsigned int index) const override</div><div class="ttdoc">Get a const input slot handle by slot index.</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00337">Layer.hpp:337</a></div></div> |
| 236 | <div class="ttc" id="aclassarmnn_1_1_layer_with_parameters_html_afa3e8a8f23589b1eaddbe203825bbdcf"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#afa3e8a8f23589b1eaddbe203825bbdcf">armnn::LayerWithParameters< DetectionPostProcessDescriptor >::GetParameters</a></div><div class="ttdeci">const DetectionPostProcessDescriptor & GetParameters() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00019">LayerWithParameters.hpp:19</a></div></div> |
| 237 | <div class="ttc" id="a_workload_factory_8hpp_html"><div class="ttname"><a href="_workload_factory_8hpp.html">WorkloadFactory.hpp</a></div></div> |
| 238 | <div class="ttc" id="aclassarmnn_1_1_layer_with_parameters_html"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html">armnn::LayerWithParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00014">LayerWithParameters.hpp:14</a></div></div> |
| 239 | <div class="ttc" id="aclassarmnn_1_1_layer_html_a7ddf0cf6f620d59c10e63495ace795d0"><div class="ttname"><a href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">armnn::Layer::GetName</a></div><div class="ttdeci">const char * GetName() const override</div><div class="ttdoc">Returns the name of the layer.</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00332">Layer.hpp:332</a></div></div> |
| 240 | <div class="ttc" id="aclassarmnn_1_1_i_connectable_layer_html_aba5c20cadbebd2e7ba67e20a47e31472"><div class="ttname"><a href="classarmnn_1_1_i_connectable_layer.html#aba5c20cadbebd2e7ba67e20a47e31472">armnn::IConnectableLayer::ImmutableConstantTensors</a></div><div class="ttdeci">std::vector< std::reference_wrapper< const std::shared_ptr< ConstTensorHandle > >> ImmutableConstantTensors</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00141">INetwork.hpp:141</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 241 | <div class="ttc" id="aclassarmnn_1_1_input_slot_html_ada2ad7d1caeeb4ef6195c8925fad6a65"><div class="ttname"><a href="classarmnn_1_1_input_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">armnn::InputSlot::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo() const override</div><div class="ttdoc">Gets the TensorInfo for this InputSlot.</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00614">Layer.cpp:614</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 242 | <div class="ttc" id="aclassarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 243 | <div class="ttc" id="aclassarmnn_1_1_layer_with_parameters_html_ad32ac22bc72e28dfd6b466d143c8e262"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">armnn::LayerWithParameters< DetectionPostProcessDescriptor >::m_Param</a></div><div class="ttdeci">DetectionPostProcessDescriptor m_Param</div><div class="ttdoc">The parameters for the layer (not including tensor-valued weights etc.).</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00052">LayerWithParameters.hpp:52</a></div></div> |
| 244 | <div class="ttc" id="aclassarmnn_1_1_layer_with_parameters_html_a30a858b2b26d651a066537e499fbf40d"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">armnn::LayerWithParameters< DetectionPostProcessDescriptor >::PrepInfoAndDesc</a></div><div class="ttdeci">WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const</div><div class="ttdoc">Helper function to reduce duplication in *Layer::CreateWorkload.</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00044">LayerWithParameters.hpp:44</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 245 | <div class="ttc" id="aclassarmnn_1_1_layer_validation_exception_html"><div class="ttname"><a href="classarmnn_1_1_layer_validation_exception.html">armnn::LayerValidationException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00105">Exceptions.hpp:105</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 246 | <div class="ttc" id="aclassarmnn_1_1_i_workload_factory_html"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8hpp_source.html#l00022">WorkloadFactory.hpp:22</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame] | 247 | <div class="ttc" id="astructarmnn_1_1_detection_post_process_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_queue_descriptor.html">armnn::DetectionPostProcessQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00239">WorkloadData.hpp:239</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 248 | <div class="ttc" id="aclassarmnn_1_1_layer_html_a1594bddc87d6477df300317658f566bb"><div class="ttname"><a href="classarmnn_1_1_layer.html#a1594bddc87d6477df300317658f566bb">armnn::Layer::GetNumOutputSlots</a></div><div class="ttdeci">unsigned int GetNumOutputSlots() const override</div><div class="ttdoc">Returns the number of connectable output slots.</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00335">Layer.hpp:335</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 249 | <div class="ttc" id="aclassarmnn_1_1_layer_html_a448afc716fda85394df1e8e5b7d530e8"><div class="ttname"><a href="classarmnn_1_1_layer.html#a448afc716fda85394df1e8e5b7d530e8">armnn::Layer::VerifyShapeInferenceType</a></div><div class="ttdeci">void VerifyShapeInferenceType(const TensorShape &outputShape, ShapeInferenceMethod shapeInferenceMethod)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00526">Layer.cpp:526</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 250 | <div class="ttc" id="anamespacearmnn_html_aa815fde54f6d8e8aa5b4f0301cf4178b"><div class="ttname"><a href="namespacearmnn.html#aa815fde54f6d8e8aa5b4f0301cf4178b">armnn::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)</div><div class="ttdoc">float32 helpers</div><div class="ttdef"><b>Definition:</b> <a href="_ref_workload_utils_8hpp_source.html#l00033">RefWorkloadUtils.hpp:33</a></div></div> |
| 251 | <div class="ttc" id="aclassarmnn_1_1_managed_const_tensor_handle_html_a85e02725184184331cc2e3b00642be47"><div class="ttname"><a href="classarmnn_1_1_managed_const_tensor_handle.html#a85e02725184184331cc2e3b00642be47">armnn::ManagedConstTensorHandle::Map</a></div><div class="ttdeci">const void * Map(bool blocking=true)</div><div class="ttdoc">RAII Managed resource Unmaps MemoryArea once out of scope.</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_8hpp_source.html#l00196">TensorHandle.hpp:196</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 252 | <div class="ttc" id="aclassarmnn_1_1_layer_html_af7f0460d32511de0da525f1817d13e8c"><div class="ttname"><a href="classarmnn_1_1_layer.html#af7f0460d32511de0da525f1817d13e8c">armnn::Layer::SetAdditionalInfo</a></div><div class="ttdeci">void SetAdditionalInfo(QueueDescriptor &descriptor) const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00303">Layer.cpp:303</a></div></div> |
| 253 | <div class="ttc" id="aclassarmnn_1_1_exception_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those.</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00046">Exceptions.hpp:46</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 254 | <div class="ttc" id="anamespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a1db19222ac424bd7162142ddf929fd2a"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a1db19222ac424bd7162142ddf929fd2a">armnn::LayerType::DetectionPostProcess</a></div><div class="ttdeci">@ DetectionPostProcess</div></div> |
| 255 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a8c8f543d7e9729362c266d12ec169966"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a8c8f543d7e9729362c266d12ec169966">armnn::DetectionPostProcessLayer::ValidateTensorShapesFromInputs</a></div><div class="ttdeci">void ValidateTensorShapesFromInputs() override</div><div class="ttdoc">Check if the input tensor shape(s) will lead to a valid configuration of DetectionPostProcessLayer.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00039">DetectionPostProcessLayer.cpp:39</a></div></div> |
| 256 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a6dc8f4e1c0a2109b2a8412251c2cf7b0"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a6dc8f4e1c0a2109b2a8412251c2cf7b0">armnn::DetectionPostProcessLayer::m_Anchors</a></div><div class="ttdeci">std::shared_ptr< ConstTensorHandle > m_Anchors</div><div class="ttdoc">A unique pointer to store Anchor values.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8hpp_source.html#l00020">DetectionPostProcessLayer.hpp:20</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 257 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a46fc3fdd4b2a5dd6d184e57983cf20bc"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a46fc3fdd4b2a5dd6d184e57983cf20bc">armnn::DetectionPostProcessLayer::ExecuteStrategy</a></div><div class="ttdeci">void ExecuteStrategy(IStrategy &strategy) const override</div><div class="ttdoc">Apply a visitor to this layer.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00112">DetectionPostProcessLayer.cpp:112</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 258 | <div class="ttc" id="a_tensor_handle_8hpp_html"><div class="ttname"><a href="_tensor_handle_8hpp.html">TensorHandle.hpp</a></div></div> |
Nikhil Raj | 38b600d | 2024-02-15 15:02:19 +0000 | [diff] [blame] | 259 | <div class="ttc" id="aclassarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00193">Tensor.hpp:193</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 260 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a8d3b0c5e823f04841d74a2647e6a5246"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a8d3b0c5e823f04841d74a2647e6a5246">armnn::DetectionPostProcessLayer::Clone</a></div><div class="ttdeci">DetectionPostProcessLayer * Clone(Graph &graph) const override</div><div class="ttdoc">Creates a dynamically-allocated copy of this layer.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00032">DetectionPostProcessLayer.cpp:32</a></div></div> |
| 261 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html_a8270bf304cb3fa6af15c99562892b1ff"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a8270bf304cb3fa6af15c99562892b1ff">armnn::DetectionPostProcessLayer::DetectionPostProcessLayer</a></div><div class="ttdeci">DetectionPostProcessLayer(const DetectionPostProcessDescriptor &param, const char *name)</div><div class="ttdoc">Constructor to create a DetectionPostProcessLayer.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8cpp_source.html#l00018">DetectionPostProcessLayer.cpp:18</a></div></div> |
| 262 | <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> |
| 263 | <div class="ttc" id="aclassarmnn_1_1_detection_post_process_layer_html"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html">armnn::DetectionPostProcessLayer</a></div><div class="ttdoc">This layer represents a detection postprocess operator.</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8hpp_source.html#l00016">DetectionPostProcessLayer.hpp:16</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 264 | <div class="ttc" id="aclassarmnn_1_1_layer_html_a0607e36e88f38c34c71c663164b76776"><div class="ttname"><a href="classarmnn_1_1_layer.html#a0607e36e88f38c34c71c663164b76776">armnn::Layer::VerifyLayerConnections</a></div><div class="ttdeci">void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00410">Layer.cpp:410</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 265 | <div class="ttc" id="astructarmnn_1_1_detection_post_process_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html">armnn::DetectionPostProcessDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00713">Descriptors.hpp:713</a></div></div> |
| 266 | <div class="ttc" id="aclassarmnn_1_1_layer_html_afe508761cc8318b15329ba4acf7fbfec"><div class="ttname"><a href="classarmnn_1_1_layer.html#afe508761cc8318b15329ba4acf7fbfec">armnn::Layer::m_ShapeInferenceMethod</a></div><div class="ttdeci">ShapeInferenceMethod m_ShapeInferenceMethod</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00441">Layer.hpp:441</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame] | 267 | <div class="ttc" id="anamespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">armnn::LayerType</a></div><div class="ttdeci">LayerType</div><div class="ttdoc">When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00491">Types.hpp:491</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 268 | <div class="ttc" id="aclassarmnn_1_1_graph_html"><div class="ttname"><a href="classarmnn_1_1_graph.html">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.html#l00030">Graph.hpp:30</a></div></div> |
| 269 | <div class="ttc" id="aclassarmnn_1_1_i_workload_factory_html_a694a8411c8c799da95306034d274930b"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a694a8411c8c799da95306034d274930b">armnn::IWorkloadFactory::CreateWorkload</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateWorkload(LayerType type, const QueueDescriptor &descriptor, const WorkloadInfo &info) const =0</div><div class="ttdoc">Backends should implement their own CreateWorkload function with a switch statement.</div></div> |
| 270 | <div class="ttc" id="aclassarmnn_1_1_i_strategy_html_ad4f8c9ff973cf6a603d26b56c5b34967"><div class="ttname"><a href="classarmnn_1_1_i_strategy.html#ad4f8c9ff973cf6a603d26b56c5b34967">armnn::IStrategy::ExecuteStrategy</a></div><div class="ttdeci">virtual void ExecuteStrategy(const IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0)=0</div></div> |
| 271 | <div class="ttc" id="a_layer_clone_base_8hpp_html"><div class="ttname"><a href="_layer_clone_base_8hpp.html">LayerCloneBase.hpp</a></div></div> |
| 272 | <div class="ttc" id="aclassarmnn_1_1_managed_const_tensor_handle_html_a66e8f43a5b42b500871ed96e15419567"><div class="ttname"><a href="classarmnn_1_1_managed_const_tensor_handle.html#a66e8f43a5b42b500871ed96e15419567">armnn::ManagedConstTensorHandle::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_8hpp_source.html#l00239">TensorHandle.hpp:239</a></div></div> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 273 | <div class="ttc" id="anamespacearmnn_html_a5826c31d9342002f512999ce89841073"><div class="ttname"><a href="namespacearmnn.html#a5826c31d9342002f512999ce89841073">armnn::DetectionPostProcess</a></div><div class="ttdeci">void DetectionPostProcess(const TensorInfo &boxEncodingsInfo, const TensorInfo &scoresInfo, const TensorInfo &, const TensorInfo &detectionBoxesInfo, const TensorInfo &, const TensorInfo &, const TensorInfo &, const DetectionPostProcessDescriptor &desc, Decoder< float > &boxEncodings, Decoder< float > &scores, Decoder< float > &anchors, float *detectionBoxes, float *detectionClasses, float *detectionScores, float *numDetections)</div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_8cpp_source.html#l00139">DetectionPostProcess.cpp:139</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 274 | <!-- start footer part --> |
| 275 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 276 | <ul> |
| 277 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.html">armnn</a></li><li class="navelem"><a class="el" href="dir_9da6642ce0fd5a8c83524f1b621275be.html">layers</a></li><li class="navelem"><a class="el" href="_detection_post_process_layer_8cpp.html">DetectionPostProcessLayer.cpp</a></li> |
Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame] | 278 | <li class="footer">Generated on Thu May 16 2024 09:31:44 for Arm NN by |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 279 | <a href="http://www.doxygen.org/index.html"> |
| 280 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li> |
| 281 | </ul> |
| 282 | </div> |
| 283 | </body> |
| 284 | </html> |