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/Runtime.hpp 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 | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame^] | 39 |  <span id="projectnumber">23.11</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('_runtime_8hpp_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">Runtime.hpp</div> </div> |
| 97 | </div><!--header--> |
| 98 | <div class="contents"> |
| 99 | <a href="_runtime_8hpp.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> |
| 100 | <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017, 2023 Arm Ltd and Contributors. All rights reserved.</span></div> |
| 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> <span class="preprocessor">#pragma once</span></div> |
| 104 | <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div> |
| 105 | <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="_loaded_network_8hpp.html">LoadedNetwork.hpp</a>"</span></div> |
| 106 | <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="_device_spec_8hpp.html">DeviceSpec.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="_i_network_8hpp.html">armnn/INetwork.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="_i_runtime_8hpp.html">armnn/IRuntime.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="_tensor_8hpp.html">armnn/Tensor.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="_backend_id_8hpp.html">armnn/BackendId.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="preprocessor">#include <<a class="code" href="_dynamic_backend_8hpp.html">armnn/backends/DynamicBackend.hpp</a>></span></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> <span class="preprocessor">#include <client/include/IInitialiseProfilingService.hpp></span></div> |
| 116 | <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <client/include/IProfilingService.hpp></span></div> |
| 117 | <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <client/include/IReportStructure.hpp></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="preprocessor">#include <mutex></span></div> |
| 120 | <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <unordered_map></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">namespace </span><a class="code" href="namespacearmnn.html">armnn</a></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#a12f6b97ee3f1060ecb6240e022678a8b"> 26</a></span> <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#a12f6b97ee3f1060ecb6240e022678a8b">LoadedNetworks</a> = std::unordered_map<NetworkId, std::unique_ptr<LoadedNetwork>>;</div> |
| 125 | <div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespacearmnn.html#a8f7d7a1df79013aed46ae67d31c239b5"> 27</a></span> <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#a8f7d7a1df79013aed46ae67d31c239b5">IReportStructure</a> = <a class="code" href="namespacearmnn.html#a8f7d7a1df79013aed46ae67d31c239b5">arm::pipe::IReportStructure</a>;</div> |
| 126 | <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespacearmnn.html#ac77c71a352f1e7f9fa4d9e4ceafa81d9"> 28</a></span>  <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#ac77c71a352f1e7f9fa4d9e4ceafa81d9">IInitialiseProfilingService</a> = <a class="code" href="namespacearmnn.html#ac77c71a352f1e7f9fa4d9e4ceafa81d9">arm::pipe::IInitialiseProfilingService</a>;</div> |
| 127 | <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div> |
| 128 | <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structarmnn_1_1_runtime_impl.html"> 30</a></span> <span class="keyword">struct </span><a class="code" href="structarmnn_1_1_runtime_impl.html">RuntimeImpl</a> final : <span class="keyword">public</span> <a class="code" href="namespacearmnn.html#a8f7d7a1df79013aed46ae67d31c239b5">IReportStructure</a>, <span class="keyword">public</span> <a class="code" href="namespacearmnn.html#ac77c71a352f1e7f9fa4d9e4ceafa81d9">IInitialiseProfilingService</a></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"> 32</span> <span class="keyword">public</span>:<span class="comment"></span></div> |
| 131 | <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> /// Loads a complete network into the Runtime.</span></div> |
| 132 | <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> /// @param [out] networkIdOut - Unique identifier for the network is returned in this reference.</span></div> |
| 133 | <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> /// @param [in] network - Complete network to load into the Runtime.</span></div> |
| 134 | <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> /// The runtime takes ownership of the network once passed in.</span></div> |
| 135 | <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> /// @return armnn::Status</span></div> |
| 136 | <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"></span> <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#af92b5ae61208a778571bcea7e6aac7b4">LoadNetwork</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a>& networkIdOut, <a class="code" href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">IOptimizedNetworkPtr</a> network);</div> |
| 137 | <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"></span> </div> |
| 138 | <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> /// Load a complete network into the IRuntime.</span></div> |
| 139 | <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> /// @param [out] networkIdOut Unique identifier for the network is returned in this reference.</span></div> |
| 140 | <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> /// @param [in] network Complete network to load into the IRuntime.</span></div> |
| 141 | <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> /// @param [out] errorMessage Error message if there were any errors.</span></div> |
| 142 | <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> /// The runtime takes ownership of the network once passed in.</span></div> |
| 143 | <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> /// @return armnn::Status</span></div> |
| 144 | <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"></span> <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#af92b5ae61208a778571bcea7e6aac7b4">LoadNetwork</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a>& networkIdOut,</div> |
| 145 | <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">IOptimizedNetworkPtr</a> network,</div> |
| 146 | <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  std::string& errorMessage);</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>  <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#af92b5ae61208a778571bcea7e6aac7b4">LoadNetwork</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a>& networkIdOut,</div> |
| 149 | <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">IOptimizedNetworkPtr</a> network,</div> |
| 150 | <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  std::string& errorMessage,</div> |
| 151 | <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_network_properties.html">INetworkProperties</a>& networkProperties);</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#aa198ca53eeb01b6e2134da924ec36405">GetInputTensorInfo</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <a class="code" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">LayerBindingId</a> layerId) <span class="keyword">const</span>;</div> |
| 154 | <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#a81c83702b94931626c6d84a3fa915362">GetOutputTensorInfo</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <a class="code" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">LayerBindingId</a> layerId) <span class="keyword">const</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<ImportedInputId> <a class="code" href="structarmnn_1_1_runtime_impl.html#a9e568c24b320fffcbacf27d9e5025b68">ImportInputs</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">InputTensors</a>& inputTensors,</div> |
| 157 | <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="namespacearmnn.html#a14fcd7f88d11cea0a018269dca5f9277">MemorySource</a> forceImportMemorySource);</div> |
| 158 | <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  std::vector<ImportedOutputId> <a class="code" href="structarmnn_1_1_runtime_impl.html#a759c10269d17da40e41500a132d4f0d8">ImportOutputs</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">OutputTensors</a>& outputTensors,</div> |
| 159 | <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="namespacearmnn.html#a14fcd7f88d11cea0a018269dca5f9277">MemorySource</a> forceImportMemorySource);</div> |
| 160 | <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div> |
| 161 | <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> <a class="code" href="structarmnn_1_1_runtime_impl.html#ab2498cef8d01323527d59b6bb5848eed">ClearImportedInputs</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <span class="keyword">const</span> std::vector<ImportedInputId> inputIds);</div> |
| 162 | <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">void</span> <a class="code" href="structarmnn_1_1_runtime_impl.html#a746d54f647096c2f9932dae20a6590a2">ClearImportedOutputs</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <span class="keyword">const</span> std::vector<ImportedOutputId> outputIds);</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>  <span class="comment">// Evaluates network using input in inputTensors, outputs filled into outputTensors.</span></div> |
| 165 | <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#aca51209383683ab8dbe801bbfddfe0c0">EnqueueWorkload</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId,</div> |
| 166 | <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">InputTensors</a>& inputTensors,</div> |
| 167 | <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">OutputTensors</a>& outputTensors,</div> |
| 168 | <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  std::vector<ImportedInputId> preImportedInputIds = {},</div> |
| 169 | <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  std::vector<ImportedOutputId> preImportedOutputIds = {});</div> |
| 170 | <div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"></span> </div> |
| 171 | <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> /// This is an experimental function.</span></div> |
| 172 | <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> /// Evaluates a network using input in inputTensors and outputs filled into outputTensors.</span></div> |
| 173 | <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> /// This function performs a thread safe execution of the network. Returns once execution is complete.</span></div> |
| 174 | <div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> /// Will block until this and any other thread using the same workingMem object completes.</span></div> |
| 175 | <div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"></span> <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#a5637cf5a5ddd5da1058606e26ca06737">Execute</a>(<a class="code" href="classarmnn_1_1experimental_1_1_i_working_mem_handle.html">IWorkingMemHandle</a>& workingMemHandle,</div> |
| 176 | <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">InputTensors</a>& inputTensors,</div> |
| 177 | <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">OutputTensors</a>& outputTensors,</div> |
| 178 | <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  std::vector<ImportedInputId> preImportedInputs,</div> |
| 179 | <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::vector<ImportedOutputId> preImportedOutputs);</div> |
| 180 | <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"></span> </div> |
| 181 | <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"> /// Unloads a network from the Runtime.</span></div> |
| 182 | <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"> /// At the moment this only removes the network from the m_Impl->m_Network.</span></div> |
| 183 | <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> /// This might need more work in the future to be AndroidNN compliant.</span></div> |
| 184 | <div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> /// @param [in] networkId Unique identifier for the network to be unloaded. Generated in LoadNetwork().</span></div> |
| 185 | <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> /// @return armnn::Status</span></div> |
| 186 | <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"></span> <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="structarmnn_1_1_runtime_impl.html#aed397991b99f485ffab9a42aece47019">UnloadNetwork</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId);</div> |
| 187 | <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div> |
| 188 | <div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structarmnn_1_1_runtime_impl.html#ace3a3fbd42ff981af628e91fbeb254d5"> 90</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_device_spec.html">IDeviceSpec</a>& <a class="code" href="structarmnn_1_1_runtime_impl.html#ace3a3fbd42ff981af628e91fbeb254d5">GetDeviceSpec</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_DeviceSpec; }</div> |
| 189 | <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"></span> </div> |
| 190 | <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> /// Gets the profiler corresponding to the given network id.</span></div> |
| 191 | <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> /// @param networkId The id of the network for which to get the profile.</span></div> |
| 192 | <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> /// @return A pointer to the requested profiler, or nullptr if not found.</span></div> |
| 193 | <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"></span> <span class="keyword">const</span> std::shared_ptr<IProfiler> <a class="code" href="structarmnn_1_1_runtime_impl.html#af87d0743d1266e264c3197a32299f4b2">GetProfiler</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId) <span class="keyword">const</span>;</div> |
| 194 | <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"></span> </div> |
| 195 | <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> /// Create a new unique WorkingMemHandle object. Create multiple handles if you wish to have</span></div> |
| 196 | <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> /// overlapped Execution by calling this function from different threads.</span></div> |
| 197 | <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"></span> std::unique_ptr<IWorkingMemHandle> <a class="code" href="structarmnn_1_1_runtime_impl.html#a16e72675c37a8f251cf02951e222d4ab">CreateWorkingMemHandle</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId);</div> |
| 198 | <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"></span> </div> |
| 199 | <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> /// Registers a callback function to debug layers performing custom computations on intermediate tensors.</span></div> |
| 200 | <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> /// @param networkId The id of the network to register the callback.</span></div> |
| 201 | <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> /// @param func callback function to pass to the debug layer.</span></div> |
| 202 | <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="structarmnn_1_1_runtime_impl.html#a957014ce1bfd27e99f0a50b3ced439e1">RegisterDebugCallback</a>(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a15f3ad9b5e4e3d46b0a6dda246a7bc28">DebugCallbackFunction</a>& func);</div> |
| 203 | <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"></span> </div> |
| 204 | <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> /// Creates a runtime for workload execution.</span></div> |
| 205 | <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"></span> <a class="code" href="structarmnn_1_1_runtime_impl.html#a16dc7f9aef55701fb8634997eef570b0">RuntimeImpl</a>(<span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a>& options);</div> |
| 206 | <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div> |
| 207 | <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="structarmnn_1_1_runtime_impl.html#a67c5b82a7e34c291702233eb716cf96f">~RuntimeImpl</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>  <span class="comment">//NOTE: we won't need the profiling service reference but it is good to pass the service</span></div> |
| 210 | <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// in this way to facilitate other implementations down the road</span></div> |
| 211 | <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">void</span> <a class="code" href="structarmnn_1_1_runtime_impl.html#a26fba70157e543867e53fded4373787d">ReportStructure</a>(arm::pipe::IProfilingService& profilingService) <span class="keyword">override</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="keywordtype">void</span> <a class="code" href="structarmnn_1_1_runtime_impl.html#ae481f80f6519544d0d20d4f5d7419c7c">InitialiseProfilingService</a>(arm::pipe::IProfilingService& profilingService) <span class="keyword">override</span>;</div> |
| 214 | <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div> |
| 215 | <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">private</span>:</div> |
| 216 | <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="structarmnn_1_1_runtime_impl.html#ab066312b4ca56c429a6b9c4095ac95ff">RuntimeLoadedNetworksReserve</a>(<a class="code" href="structarmnn_1_1_runtime_impl.html">RuntimeImpl</a>* runtime); <span class="comment">// See RuntimeTests.cpp</span></div> |
| 217 | <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div> |
| 218 | <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">friend</span> arm::pipe::IProfilingService& <a class="code" href="structarmnn_1_1_runtime_impl.html#ad100e1d65ec8df307df124da56b16e69">GetProfilingService</a>(<a class="code" href="structarmnn_1_1_runtime_impl.html">RuntimeImpl</a>* runtime); <span class="comment">// See RuntimeTests.cpp</span></div> |
| 219 | <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div> |
| 220 | <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordtype">int</span> GenerateNetworkId();</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>  <a class="code" href="classarmnn_1_1_loaded_network.html">LoadedNetwork</a>* GetLoadedNetworkPtr(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId) <span class="keyword">const</span>;</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">template</span><<span class="keyword">typename</span> Func></div> |
| 225 | <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordtype">void</span> LoadedNetworkFuncSafe(<a class="code" href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">NetworkId</a> networkId, Func f)</div> |
| 226 | <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div> |
| 227 | <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="preprocessor">#if !defined(ARMNN_DISABLE_THREADS)</span></div> |
| 228 | <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  std::lock_guard<std::mutex> lockGuard(m_Mutex);</div> |
| 229 | <div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="preprocessor">#endif</span></div> |
| 230 | <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">auto</span> iter = m_LoadedNetworks.find(networkId);</div> |
| 231 | <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (iter != m_LoadedNetworks.end())</div> |
| 232 | <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {</div> |
| 233 | <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  f(iter->second.get());</div> |
| 234 | <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div> |
| 235 | <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div> |
| 236 | <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"></span> </div> |
| 237 | <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> /// Loads any available/compatible dynamic backend in the runtime.</span></div> |
| 238 | <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"></span> <span class="keywordtype">void</span> LoadDynamicBackends(<span class="keyword">const</span> std::string& overrideBackendPath);</div> |
| 239 | <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div> |
| 240 | <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="preprocessor">#if !defined(ARMNN_DISABLE_THREADS)</span></div> |
| 241 | <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">mutable</span> std::mutex m_Mutex;</div> |
| 242 | <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#endif</span></div> |
| 243 | <div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"></span> </div> |
| 244 | <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> /// Map of Loaded Networks with associated GUID as key</span></div> |
| 245 | <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"></span> <a class="code" href="namespacearmnn.html#a12f6b97ee3f1060ecb6240e022678a8b">LoadedNetworks</a> m_LoadedNetworks;</div> |
| 246 | <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div> |
| 247 | <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  std::unordered_map<BackendId, IBackendInternal::IBackendContextPtr> m_BackendContexts;</div> |
| 248 | <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div> |
| 249 | <div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordtype">int</span> m_NetworkIdCounter;</div> |
| 250 | <div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  </div> |
| 251 | <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  DeviceSpec m_DeviceSpec;</div> |
| 252 | <div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"></span> </div> |
| 253 | <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment"> /// List of dynamic backends loaded in the runtime</span></div> |
| 254 | <div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"></span> std::vector<DynamicBackendPtr> m_DynamicBackends;</div> |
| 255 | <div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"></span> </div> |
| 256 | <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"> /// Profiling Service Instance</span></div> |
| 257 | <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"></span> std::unique_ptr<arm::pipe::IProfilingService> m_ProfilingService;</div> |
| 258 | <div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"></span> </div> |
| 259 | <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> /// Keep track of backend ids of the custom allocators that this instance of the runtime added. The</span></div> |
| 260 | <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> /// destructor can then clean up for this runtime.</span></div> |
| 261 | <div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"></span> std::set<BackendId> m_AllocatorsAddedByThisRuntime;</div> |
| 262 | <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> };</div> |
| 263 | <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div> |
| 264 | <div class="line"><a name="l00166"></a><span class="lineno"> 166</span> } <span class="comment">// namespace armnn</span></div> |
| 265 | </div><!-- fragment --></div><!-- contents --> |
| 266 | </div><!-- doc-content --> |
| 267 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a26fba70157e543867e53fded4373787d"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a26fba70157e543867e53fded4373787d">armnn::RuntimeImpl::ReportStructure</a></div><div class="ttdeci">void ReportStructure(arm::pipe::IProfilingService &profilingService) override</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00302">Runtime.cpp:302</a></div></div> |
| 268 | <div class="ttc" id="anamespacearmnn_html_a674efcf6cbdb9e831d653ff0e821fb38"><div class="ttname"><a href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">armnn::IOptimizedNetworkPtr</a></div><div class="ttdeci">std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00340">INetwork.hpp:340</a></div></div> |
| 269 | <div class="ttc" id="a_i_runtime_8hpp_html"><div class="ttname"><a href="_i_runtime_8hpp.html">IRuntime.hpp</a></div></div> |
| 270 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a746d54f647096c2f9932dae20a6590a2"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a746d54f647096c2f9932dae20a6590a2">armnn::RuntimeImpl::ClearImportedOutputs</a></div><div class="ttdeci">void ClearImportedOutputs(NetworkId networkId, const std::vector< ImportedOutputId > outputIds)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00639">Runtime.cpp:639</a></div></div> |
| 271 | <div class="ttc" id="anamespacearmnn_html_aa01bce88f89975a5a031db4cc8861527"><div class="ttname"><a href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00392">Tensor.hpp:392</a></div></div> |
| 272 | <div class="ttc" id="a_device_spec_8hpp_html"><div class="ttname"><a href="_device_spec_8hpp.html">DeviceSpec.hpp</a></div></div> |
| 273 | <div class="ttc" id="a_loaded_network_8hpp_html"><div class="ttname"><a href="_loaded_network_8hpp.html">LoadedNetwork.hpp</a></div></div> |
| 274 | <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> |
| 275 | <div class="ttc" id="a_backend_id_8hpp_html"><div class="ttname"><a href="_backend_id_8hpp.html">BackendId.hpp</a></div></div> |
| 276 | <div class="ttc" id="aclassarmnn_1_1_loaded_network_html"><div class="ttname"><a href="classarmnn_1_1_loaded_network.html">armnn::LoadedNetwork</a></div><div class="ttdef"><b>Definition:</b> <a href="_loaded_network_8hpp_source.html#l00042">LoadedNetwork.hpp:42</a></div></div> |
| 277 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_af92b5ae61208a778571bcea7e6aac7b4"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#af92b5ae61208a778571bcea7e6aac7b4">armnn::RuntimeImpl::LoadNetwork</a></div><div class="ttdeci">Status LoadNetwork(NetworkId &networkIdOut, IOptimizedNetworkPtr network)</div><div class="ttdoc">Loads a complete network into the Runtime.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00166">Runtime.cpp:166</a></div></div> |
| 278 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_af87d0743d1266e264c3197a32299f4b2"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#af87d0743d1266e264c3197a32299f4b2">armnn::RuntimeImpl::GetProfiler</a></div><div class="ttdeci">const std::shared_ptr< IProfiler > GetProfiler(NetworkId networkId) const</div><div class="ttdoc">Gets the profiler corresponding to the given network id.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00290">Runtime.cpp:290</a></div></div> |
| 279 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_ab2498cef8d01323527d59b6bb5848eed"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#ab2498cef8d01323527d59b6bb5848eed">armnn::RuntimeImpl::ClearImportedInputs</a></div><div class="ttdeci">void ClearImportedInputs(NetworkId networkId, const std::vector< ImportedInputId > inputIds)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00635">Runtime.cpp:635</a></div></div> |
| 280 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a67c5b82a7e34c291702233eb716cf96f"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a67c5b82a7e34c291702233eb716cf96f">armnn::RuntimeImpl::~RuntimeImpl</a></div><div class="ttdeci">~RuntimeImpl()</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00548">Runtime.cpp:548</a></div></div> |
| 281 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_ace3a3fbd42ff981af628e91fbeb254d5"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#ace3a3fbd42ff981af628e91fbeb254d5">armnn::RuntimeImpl::GetDeviceSpec</a></div><div class="ttdeci">const IDeviceSpec & GetDeviceSpec() const</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.html#l00090">Runtime.hpp:90</a></div></div> |
| 282 | <div class="ttc" id="anamespacearmnn_html_a8f091a512915d1cb29a4ebf13dfc53ea"><div class="ttname"><a href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00393">Tensor.hpp:393</a></div></div> |
| 283 | <div class="ttc" id="aclassarmnn_1_1experimental_1_1_i_working_mem_handle_html"><div class="ttname"><a href="classarmnn_1_1experimental_1_1_i_working_mem_handle.html">armnn::experimental::IWorkingMemHandle</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_working_mem_handle_8hpp_source.html#l00020">IWorkingMemHandle.hpp:20</a></div></div> |
| 284 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a9e568c24b320fffcbacf27d9e5025b68"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a9e568c24b320fffcbacf27d9e5025b68">armnn::RuntimeImpl::ImportInputs</a></div><div class="ttdeci">std::vector< ImportedInputId > ImportInputs(NetworkId networkId, const InputTensors &inputTensors, MemorySource forceImportMemorySource)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00623">Runtime.cpp:623</a></div></div> |
| 285 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_aed397991b99f485ffab9a42aece47019"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#aed397991b99f485ffab9a42aece47019">armnn::RuntimeImpl::UnloadNetwork</a></div><div class="ttdeci">Status UnloadNetwork(NetworkId networkId)</div><div class="ttdoc">Unloads a network from the Runtime.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00232">Runtime.cpp:232</a></div></div> |
| 286 | <div class="ttc" id="anamespacearmnn_html_a8f7d7a1df79013aed46ae67d31c239b5"><div class="ttname"><a href="namespacearmnn.html#a8f7d7a1df79013aed46ae67d31c239b5">armnn::IReportStructure</a></div><div class="ttdeci">arm::pipe::IReportStructure IReportStructure</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.html#l00027">Runtime.hpp:27</a></div></div> |
| 287 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_aca51209383683ab8dbe801bbfddfe0c0"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#aca51209383683ab8dbe801bbfddfe0c0">armnn::RuntimeImpl::EnqueueWorkload</a></div><div class="ttdeci">Status EnqueueWorkload(NetworkId networkId, const InputTensors &inputTensors, const OutputTensors &outputTensors, std::vector< ImportedInputId > preImportedInputIds={}, std::vector< ImportedOutputId > preImportedOutputIds={})</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00644">Runtime.cpp:644</a></div></div> |
| 288 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a759c10269d17da40e41500a132d4f0d8"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a759c10269d17da40e41500a132d4f0d8">armnn::RuntimeImpl::ImportOutputs</a></div><div class="ttdeci">std::vector< ImportedOutputId > ImportOutputs(NetworkId networkId, const OutputTensors &outputTensors, MemorySource forceImportMemorySource)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00629">Runtime.cpp:629</a></div></div> |
| 289 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_ad100e1d65ec8df307df124da56b16e69"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#ad100e1d65ec8df307df124da56b16e69">armnn::RuntimeImpl::GetProfilingService</a></div><div class="ttdeci">friend arm::pipe::IProfilingService & GetProfilingService(RuntimeImpl *runtime)</div><div class="ttdef"><b>Definition:</b> <a href="_test_utils_8cpp_source.html#l00059">TestUtils.cpp:59</a></div></div> |
| 290 | <div class="ttc" id="anamespacearmnn_html_a0d8160388a127c1a23b37bc88dc6e2ec"><div class="ttname"><a href="namespacearmnn.html#a0d8160388a127c1a23b37bc88dc6e2ec">armnn::NetworkId</a></div><div class="ttdeci">int NetworkId</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00035">IRuntime.hpp:35</a></div></div> |
| 291 | <div class="ttc" id="a_i_network_8hpp_html"><div class="ttname"><a href="_i_network_8hpp.html">INetwork.hpp</a></div></div> |
| 292 | <div class="ttc" id="anamespacearmnn_html_ac77c71a352f1e7f9fa4d9e4ceafa81d9"><div class="ttname"><a href="namespacearmnn.html#ac77c71a352f1e7f9fa4d9e4ceafa81d9">armnn::IInitialiseProfilingService</a></div><div class="ttdeci">arm::pipe::IInitialiseProfilingService IInitialiseProfilingService</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.html#l00028">Runtime.hpp:28</a></div></div> |
| 293 | <div class="ttc" id="anamespacearmnn_html_a12f6b97ee3f1060ecb6240e022678a8b"><div class="ttname"><a href="namespacearmnn.html#a12f6b97ee3f1060ecb6240e022678a8b">armnn::LoadedNetworks</a></div><div class="ttdeci">std::unordered_map< NetworkId, std::unique_ptr< LoadedNetwork > > LoadedNetworks</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.html#l00026">Runtime.hpp:26</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame^] | 294 | <div class="ttc" id="anamespacearmnn_html_ab8cf8f9fb6792e654c2d8d8382f6f01b"><div class="ttname"><a href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a></div><div class="ttdeci">int LayerBindingId</div><div class="ttdoc">Type of identifiers for bindable layers (inputs, outputs).</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00309">Types.hpp:309</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 295 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a16dc7f9aef55701fb8634997eef570b0"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a16dc7f9aef55701fb8634997eef570b0">armnn::RuntimeImpl::RuntimeImpl</a></div><div class="ttdeci">RuntimeImpl(const IRuntime::CreationOptions &options)</div><div class="ttdoc">Creates a runtime for workload execution.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00323">Runtime.cpp:323</a></div></div> |
| 296 | <div class="ttc" id="a_dynamic_backend_8hpp_html"><div class="ttname"><a href="_dynamic_backend_8hpp.html">DynamicBackend.hpp</a></div></div> |
| 297 | <div class="ttc" id="astructarmnn_1_1_i_network_properties_html"><div class="ttname"><a href="structarmnn_1_1_i_network_properties.html">armnn::INetworkProperties</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00043">IRuntime.hpp:43</a></div></div> |
| 298 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_ab066312b4ca56c429a6b9c4095ac95ff"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#ab066312b4ca56c429a6b9c4095ac95ff">armnn::RuntimeImpl::RuntimeLoadedNetworksReserve</a></div><div class="ttdeci">friend void RuntimeLoadedNetworksReserve(RuntimeImpl *runtime)</div></div> |
| 299 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a957014ce1bfd27e99f0a50b3ced439e1"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a957014ce1bfd27e99f0a50b3ced439e1">armnn::RuntimeImpl::RegisterDebugCallback</a></div><div class="ttdeci">void RegisterDebugCallback(NetworkId networkId, const DebugCallbackFunction &func)</div><div class="ttdoc">Registers a callback function to debug layers performing custom computations on intermediate tensors.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00766">Runtime.cpp:766</a></div></div> |
| 300 | <div class="ttc" id="a_tensor_8hpp_html"><div class="ttname"><a href="_tensor_8hpp.html">Tensor.hpp</a></div></div> |
| 301 | <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> |
| 302 | <div class="ttc" id="astructarmnn_1_1_i_runtime_1_1_creation_options_html"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.html">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00078">IRuntime.hpp:78</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame^] | 303 | <div class="ttc" id="anamespacearmnn_html_a15f3ad9b5e4e3d46b0a6dda246a7bc28"><div class="ttname"><a href="namespacearmnn.html#a15f3ad9b5e4e3d46b0a6dda246a7bc28">armnn::DebugCallbackFunction</a></div><div class="ttdeci">std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction</div><div class="ttdoc">Define the type of callback for the Debug layer to call.</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00398">Types.hpp:398</a></div></div> |
| 304 | <div class="ttc" id="anamespacearmnn_html_a14fcd7f88d11cea0a018269dca5f9277"><div class="ttname"><a href="namespacearmnn.html#a14fcd7f88d11cea0a018269dca5f9277">armnn::MemorySource</a></div><div class="ttdeci">MemorySource</div><div class="ttdoc">Define the Memory Source to reduce copies.</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00244">Types.hpp:244</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 305 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a5637cf5a5ddd5da1058606e26ca06737"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a5637cf5a5ddd5da1058606e26ca06737">armnn::RuntimeImpl::Execute</a></div><div class="ttdeci">Status Execute(IWorkingMemHandle &workingMemHandle, const InputTensors &inputTensors, const OutputTensors &outputTensors, std::vector< ImportedInputId > preImportedInputs, std::vector< ImportedOutputId > preImportedOutputs)</div><div class="ttdoc">This is an experimental function.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00696">Runtime.cpp:696</a></div></div> |
| 306 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html">armnn::RuntimeImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.html#l00030">Runtime.hpp:30</a></div></div> |
| 307 | <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> |
| 308 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_ae481f80f6519544d0d20d4f5d7419c7c"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#ae481f80f6519544d0d20d4f5d7419c7c">armnn::RuntimeImpl::InitialiseProfilingService</a></div><div class="ttdeci">void InitialiseProfilingService(arm::pipe::IProfilingService &profilingService) override</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00317">Runtime.cpp:317</a></div></div> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame^] | 309 | <div class="ttc" id="aclassarmnn_1_1_i_device_spec_html"><div class="ttname"><a href="classarmnn_1_1_i_device_spec.html">armnn::IDeviceSpec</a></div><div class="ttdoc">Device specific knowledge to be passed to the optimizer.</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00299">Types.hpp:299</a></div></div> |
Nikhil Raj | 03c7ff3 | 2023-08-22 12:00:04 +0100 | [diff] [blame] | 310 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a16e72675c37a8f251cf02951e222d4ab"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a16e72675c37a8f251cf02951e222d4ab">armnn::RuntimeImpl::CreateWorkingMemHandle</a></div><div class="ttdeci">std::unique_ptr< IWorkingMemHandle > CreateWorkingMemHandle(NetworkId networkId)</div><div class="ttdoc">Create a new unique WorkingMemHandle object.</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00735">Runtime.cpp:735</a></div></div> |
| 311 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_aa198ca53eeb01b6e2134da924ec36405"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#aa198ca53eeb01b6e2134da924ec36405">armnn::RuntimeImpl::GetInputTensorInfo</a></div><div class="ttdeci">armnn::TensorInfo GetInputTensorInfo(NetworkId networkId, LayerBindingId layerId) const</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00613">Runtime.cpp:613</a></div></div> |
| 312 | <div class="ttc" id="astructarmnn_1_1_runtime_impl_html_a81c83702b94931626c6d84a3fa915362"><div class="ttname"><a href="structarmnn_1_1_runtime_impl.html#a81c83702b94931626c6d84a3fa915362">armnn::RuntimeImpl::GetOutputTensorInfo</a></div><div class="ttdeci">armnn::TensorInfo GetOutputTensorInfo(NetworkId networkId, LayerBindingId layerId) const</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00618">Runtime.cpp:618</a></div></div> |
| 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_e0a84d05c80a2ef4231141dcbbeac5c8.html">armnn</a></li><li class="navelem"><a class="el" href="_runtime_8hpp.html">Runtime.hpp</a></li> |
Nikhil Raj | 6f92c8e | 2023-11-22 11:41:15 +0000 | [diff] [blame^] | 317 | <li class="footer">Generated on Wed Nov 22 2023 10:57:06 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> |