1 <!-- Copyright (c) 2020 ARM Limited. -->
3 <!-- SPDX-License-Identifier: MIT -->
5 <!-- HTML header for doxygen 1.8.13-->
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7 <html xmlns="http://www.w3.org/1999/xhtml">
9 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
10 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
11 <meta name="generator" content="Doxygen 1.8.13"/>
12 <meta name="robots" content="NOINDEX, NOFOLLOW" />
13 <meta name="viewport" content="width=device-width, initial-scale=1"/>
14 <title>ArmNN: src/armnn/Runtime.hpp Source File</title>
15 <link href="tabs.css" rel="stylesheet" type="text/css"/>
16 <script type="text/javascript" src="jquery.js"></script>
17 <script type="text/javascript" src="dynsections.js"></script>
18 <link href="navtree.css" rel="stylesheet" type="text/css"/>
19 <script type="text/javascript" src="resize.js"></script>
20 <script type="text/javascript" src="navtreedata.js"></script>
21 <script type="text/javascript" src="navtree.js"></script>
22 <script type="text/javascript">
23 $(document).ready(initResizable);
25 <link href="search/search.css" rel="stylesheet" type="text/css"/>
26 <script type="text/javascript" src="search/searchdata.js"></script>
27 <script type="text/javascript" src="search/search.js"></script>
28 <script type="text/x-mathjax-config">
30 extensions: ["tex2jax.js"],
31 jax: ["input/TeX","output/HTML-CSS"],
33 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
34 <link href="doxygen.css" rel="stylesheet" type="text/css" />
35 <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
38 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
40 <table cellspacing="0" cellpadding="0">
42 <tr style="height: 56px;">
43 <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
44 <td style="padding-left: 0.5em;">
45 <div id="projectname">
46  <span id="projectnumber">20.02</span>
53 <!-- end header part -->
54 <!-- Generated by Doxygen 1.8.13 -->
55 <script type="text/javascript">
56 var searchBox = new SearchBox("searchBox", "search",false,'Search');
58 <script type="text/javascript" src="menudata.js"></script>
59 <script type="text/javascript" src="menu.js"></script>
60 <script type="text/javascript">
62 initMenu('',true,false,'search.php','Search');
63 $(document).ready(function() { init_search(); });
66 <div id="main-nav"></div>
68 <div id="side-nav" class="ui-resizable side-nav-resizable">
70 <div id="nav-tree-contents">
71 <div id="nav-sync" class="sync"></div>
74 <div id="splitbar" style="-moz-user-select:none;"
75 class="ui-resizable-handle">
78 <script type="text/javascript">
79 $(document).ready(function(){initNavTree('_runtime_8hpp_source.xhtml','');});
81 <div id="doc-content">
82 <!-- window showing the filter options -->
83 <div id="MSearchSelectWindow"
84 onmouseover="return searchBox.OnSearchSelectShow()"
85 onmouseout="return searchBox.OnSearchSelectHide()"
86 onkeydown="return searchBox.OnSearchSelectKey(event)">
89 <!-- iframe showing the search results (closed by default) -->
90 <div id="MSearchResultsWindow">
91 <iframe src="javascript:void(0)" frameborder="0"
92 name="MSearchResults" id="MSearchResults">
97 <div class="headertitle">
98 <div class="title">Runtime.hpp</div> </div>
100 <div class="contents">
101 <a href="_runtime_8hpp.xhtml">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><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="_loaded_network_8hpp.xhtml">LoadedNetwork.hpp</a>"</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="_device_spec_8hpp.xhtml">DeviceSpec.hpp</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="_i_network_8hpp.xhtml">armnn/INetwork.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="code" href="_i_runtime_8hpp.xhtml">armnn/IRuntime.hpp</a>></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="code" href="_tensor_8hpp.xhtml">armnn/Tensor.hpp</a>></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_backend_id_8hpp.xhtml">armnn/BackendId.hpp</a>></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="include_2armnn_2backends_2_dynamic_backend_8hpp.xhtml">armnn/backends/DynamicBackend.hpp</a>></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <mutex></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <unordered_map></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classarmnn_1_1_runtime.xhtml"> 23</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_runtime.xhtml">Runtime</a> final : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1_i_runtime.xhtml">IRuntime</a></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> /// Loads a complete network into the Runtime.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> /// @param [out] networkIdOut - Unique identifier for the network is returned in this reference.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> /// @param [in] network - Complete network to load into the Runtime.</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> /// The runtime takes ownership of the network once passed in.</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> /// @return armnn::Status</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#ae225e29e38b44860a32d766053a383dc">LoadNetwork</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a>& networkIdOut, <a class="code" href="namespacearmnn.xhtml#a674efcf6cbdb9e831d653ff0e821fb38">IOptimizedNetworkPtr</a> network) <span class="keyword">override</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"></span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> /// Load a complete network into the IRuntime.</span></div><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><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> /// @param [in] network Complete network to load into the IRuntime.</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> /// @param [out] errorMessage Error message if there were any errors.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> /// The runtime takes ownership of the network once passed in.</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"> /// @return armnn::Status</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#ae225e29e38b44860a32d766053a383dc">LoadNetwork</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a>& networkIdOut,</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="namespacearmnn.xhtml#a674efcf6cbdb9e831d653ff0e821fb38">IOptimizedNetworkPtr</a> network,</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  std::string& errorMessage) <span class="keyword">override</span>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">virtual</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#ae225e29e38b44860a32d766053a383dc">LoadNetwork</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a>& networkIdOut,</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="namespacearmnn.xhtml#a674efcf6cbdb9e831d653ff0e821fb38">IOptimizedNetworkPtr</a> network,</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  std::string& errorMessage,</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_network_properties.xhtml">INetworkProperties</a>& networkProperties) <span class="keyword">override</span>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">virtual</span> <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#a7d0ddcd74d6f6438283e511480b64cc1">GetInputTensorInfo</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId, <a class="code" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">LayerBindingId</a> layerId) <span class="keyword">const override</span>;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">virtual</span> <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#a1d5d285b79758564ee68f234e02dd2b2">GetOutputTensorInfo</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId, <a class="code" href="namespacearmnn.xhtml#ab8cf8f9fb6792e654c2d8d8382f6f01b">LayerBindingId</a> layerId) <span class="keyword">const override</span>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// Evaluates network using input in inputTensors, outputs filled into outputTensors.</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">virtual</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#ad3be3cca4ac08a262383b96868f7123d">EnqueueWorkload</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#aa01bce88f89975a5a031db4cc8861527">InputTensors</a>& inputTensors,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#a8f091a512915d1cb29a4ebf13dfc53ea">OutputTensors</a>& outputTensors) <span class="keyword">override</span>;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"></span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> /// Unloads a network from the Runtime.</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"> /// At the moment this only removes the network from the m_Impl->m_Network.</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> /// This might need more work in the future to be AndroidNN compliant.</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> /// @param [in] networkId Unique identifier for the network to be unloaded. Generated in LoadNetwork().</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> /// @return armnn::Status</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> <a class="code" href="classarmnn_1_1_runtime.xhtml#ae54a3b358f009aec340d443d038805a4">UnloadNetwork</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) <span class="keyword">override</span>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classarmnn_1_1_runtime.xhtml#a25505c77f282c0295765d81c86514539"> 63</a></span>  <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_device_spec.xhtml">IDeviceSpec</a>& <a class="code" href="classarmnn_1_1_runtime.xhtml#a25505c77f282c0295765d81c86514539">GetDeviceSpec</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_DeviceSpec; }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"></span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> /// Gets the profiler corresponding to the given network id.</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> /// @param networkId The id of the network for which to get the profile.</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> /// @return A pointer to the requested profiler, or nullptr if not found.</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keyword">const</span> std::shared_ptr<IProfiler> <a class="code" href="classarmnn_1_1_runtime.xhtml#a4bcf6ecfacedc0567e1c044f1b0823f0">GetProfiler</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) <span class="keyword">const override</span>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"></span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> /// Registers a callback function to debug layers performing custom computations on intermediate tensors.</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> /// @param networkId The id of the network to register the callback.</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> /// @param func callback function to pass to the debug layer.</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_runtime.xhtml#abb2506e9166cd0467deaa9651fdade77">RegisterDebugCallback</a>(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId, <span class="keyword">const</span> <a class="code" href="namespacearmnn.xhtml#a15f3ad9b5e4e3d46b0a6dda246a7bc28">DebugCallbackFunction</a>& func) <span class="keyword">override</span>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"></span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> /// Creates a runtime for workload execution.</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"></span> <a class="code" href="classarmnn_1_1_runtime.xhtml#a013ec7e08ae653e003956b4c9b5d0748">Runtime</a>(<span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">CreationOptions</a>& <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classarmnn_1_1_runtime.xhtml#acedafca2d2711908fe94f2ef71286437">~Runtime</a>();</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_runtime.xhtml#a01fa2d4db2c1b4ee5269a31e514f37ec">RuntimeLoadedNetworksReserve</a>(<a class="code" href="classarmnn_1_1_runtime.xhtml">armnn::Runtime</a>* runtime); <span class="comment">// See RuntimeTests.cpp</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">int</span> GenerateNetworkId();</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classarmnn_1_1_loaded_network.xhtml">LoadedNetwork</a>* GetLoadedNetworkPtr(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId) <span class="keyword">const</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Func></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">void</span> LoadedNetworkFuncSafe(<a class="code" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">NetworkId</a> networkId, Func f)</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  std::lock_guard<std::mutex> lockGuard(m_Mutex);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">auto</span> iter = m_LoadedNetworks.find(networkId);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">if</span> (iter != m_LoadedNetworks.end())</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  f(iter->second.get());</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"></span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> /// Loads any available/compatible dynamic backend in the runtime.</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"></span> <span class="keywordtype">void</span> LoadDynamicBackends(<span class="keyword">const</span> std::string& overrideBackendPath);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">mutable</span> std::mutex m_Mutex;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  std::unordered_map<NetworkId, std::unique_ptr<LoadedNetwork>> m_LoadedNetworks;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  std::unordered_map<BackendId, IBackendInternal::IBackendContextPtr> m_BackendContexts;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">int</span> m_NetworkIdCounter;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classarmnn_1_1_device_spec.xhtml">DeviceSpec</a> m_DeviceSpec;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"></span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"> /// List of dynamic backends loaded in the runtime</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"></span> std::vector<DynamicBackendPtr> m_DynamicBackends;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> };</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> } <span class="comment">// namespace armnn</span></div><div class="ttc" id="classarmnn_1_1_runtime_xhtml_a1d5d285b79758564ee68f234e02dd2b2"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#a1d5d285b79758564ee68f234e02dd2b2">armnn::Runtime::GetOutputTensorInfo</a></div><div class="ttdeci">virtual TensorInfo GetOutputTensorInfo(NetworkId networkId, LayerBindingId layerId) const override</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00273">Runtime.cpp:273</a></div></div>
102 <div class="ttc" id="_device_spec_8hpp_xhtml"><div class="ttname"><a href="_device_spec_8hpp.xhtml">DeviceSpec.hpp</a></div></div>
103 <div class="ttc" id="_tensor_8hpp_xhtml"><div class="ttname"><a href="_tensor_8hpp.xhtml">Tensor.hpp</a></div></div>
104 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_a25505c77f282c0295765d81c86514539"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#a25505c77f282c0295765d81c86514539">armnn::Runtime::GetDeviceSpec</a></div><div class="ttdeci">virtual const IDeviceSpec & GetDeviceSpec() const override</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.xhtml#l00063">Runtime.hpp:63</a></div></div>
105 <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div>
106 <div class="ttc" id="classarmnn_1_1_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml">armnn::DeviceSpec</a></div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00014">DeviceSpec.hpp:14</a></div></div>
107 <div class="ttc" id="_i_runtime_8hpp_xhtml"><div class="ttname"><a href="_i_runtime_8hpp.xhtml">IRuntime.hpp</a></div></div>
108 <div class="ttc" id="namespacearmnn_xhtml_aa01bce88f89975a5a031db4cc8861527"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00225">Tensor.hpp:225</a></div></div>
109 <div class="ttc" id="namespacearmnn_xhtml_a83015160d8c67d5d77735eb0d4033d9a"><div class="ttname"><a href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a></div><div class="ttdeci">int NetworkId</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00019">IRuntime.hpp:19</a></div></div>
110 <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div>
111 <div class="ttc" id="classarmnn_1_1_i_runtime_xhtml"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml">armnn::IRuntime</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00038">IRuntime.hpp:38</a></div></div>
112 <div class="ttc" id="_loaded_network_8hpp_xhtml"><div class="ttname"><a href="_loaded_network_8hpp.xhtml">LoadedNetwork.hpp</a></div></div>
113 <div class="ttc" id="namespacearmnn_xhtml_a15f3ad9b5e4e3d46b0a6dda246a7bc28"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00244">Types.hpp:244</a></div></div>
114 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_a4bcf6ecfacedc0567e1c044f1b0823f0"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#a4bcf6ecfacedc0567e1c044f1b0823f0">armnn::Runtime::GetProfiler</a></div><div class="ttdeci">virtual const std::shared_ptr< IProfiler > GetProfiler(NetworkId networkId) const override</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.xhtml#l00143">Runtime.cpp:143</a></div></div>
115 <div class="ttc" id="namespacearmnn_xhtml_ab8cf8f9fb6792e654c2d8d8382f6f01b"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00171">Types.hpp:171</a></div></div>
116 <div class="ttc" id="structarmnn_1_1_i_network_properties_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_network_properties.xhtml">armnn::INetworkProperties</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00026">IRuntime.hpp:26</a></div></div>
117 <div class="ttc" id="include_2armnn_2backends_2_dynamic_backend_8hpp_xhtml"><div class="ttname"><a href="include_2armnn_2backends_2_dynamic_backend_8hpp.xhtml">DynamicBackend.hpp</a></div></div>
118 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_abb2506e9166cd0467deaa9651fdade77"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#abb2506e9166cd0467deaa9651fdade77">armnn::Runtime::RegisterDebugCallback</a></div><div class="ttdeci">virtual void RegisterDebugCallback(NetworkId networkId, const DebugCallbackFunction &func) override</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.xhtml#l00298">Runtime.cpp:298</a></div></div>
119 <div class="ttc" id="namespacearmnn_xhtml_a8f091a512915d1cb29a4ebf13dfc53ea"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00226">Tensor.hpp:226</a></div></div>
120 <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">enumeration </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00026">Types.hpp:26</a></div></div>
121 <div class="ttc" id="namespacearmnn_xhtml_a674efcf6cbdb9e831d653ff0e821fb38"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00566">INetwork.hpp:566</a></div></div>
122 <div class="ttc" id="classarmnn_1_1_i_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_i_device_spec.xhtml">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.xhtml#l00161">Types.hpp:161</a></div></div>
123 <div class="ttc" id="_backend_id_8hpp_xhtml"><div class="ttname"><a href="_backend_id_8hpp.xhtml">BackendId.hpp</a></div></div>
124 <div class="ttc" id="_i_network_8hpp_xhtml"><div class="ttname"><a href="_i_network_8hpp.xhtml">INetwork.hpp</a></div></div>
125 <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div>
126 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_a01fa2d4db2c1b4ee5269a31e514f37ec"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#a01fa2d4db2c1b4ee5269a31e514f37ec">armnn::Runtime::RuntimeLoadedNetworksReserve</a></div><div class="ttdeci">friend void RuntimeLoadedNetworksReserve(armnn::Runtime *runtime)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_tests_8cpp_source.xhtml#l00028">RuntimeTests.cpp:28</a></div></div>
127 <div class="ttc" id="classarmnn_1_1_loaded_network_xhtml"><div class="ttname"><a href="classarmnn_1_1_loaded_network.xhtml">armnn::LoadedNetwork</a></div><div class="ttdef"><b>Definition:</b> <a href="_loaded_network_8hpp_source.xhtml#l00033">LoadedNetwork.hpp:33</a></div></div>
128 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_ae225e29e38b44860a32d766053a383dc"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#ae225e29e38b44860a32d766053a383dc">armnn::Runtime::LoadNetwork</a></div><div class="ttdeci">virtual Status LoadNetwork(NetworkId &networkIdOut, IOptimizedNetworkPtr network) override</div><div class="ttdoc">Loads a complete network into the Runtime. </div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00047">Runtime.cpp:47</a></div></div>
129 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_acedafca2d2711908fe94f2ef71286437"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#acedafca2d2711908fe94f2ef71286437">armnn::Runtime::~Runtime</a></div><div class="ttdeci">~Runtime()</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00216">Runtime.cpp:216</a></div></div>
130 <div class="ttc" id="classarmnn_1_1_runtime_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml">armnn::Runtime</a></div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8hpp_source.xhtml#l00023">Runtime.hpp:23</a></div></div>
131 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_ae54a3b358f009aec340d443d038805a4"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#ae54a3b358f009aec340d443d038805a4">armnn::Runtime::UnloadNetwork</a></div><div class="ttdeci">virtual Status UnloadNetwork(NetworkId networkId) override</div><div class="ttdoc">Unloads a network from the Runtime. </div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00105">Runtime.cpp:105</a></div></div>
132 <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div>
133 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_a013ec7e08ae653e003956b4c9b5d0748"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#a013ec7e08ae653e003956b4c9b5d0748">armnn::Runtime::Runtime</a></div><div class="ttdeci">Runtime(const CreationOptions &options)</div><div class="ttdoc">Creates a runtime for workload execution. </div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00155">Runtime.cpp:155</a></div></div>
134 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_ad3be3cca4ac08a262383b96868f7123d"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#ad3be3cca4ac08a262383b96868f7123d">armnn::Runtime::EnqueueWorkload</a></div><div class="ttdeci">virtual Status EnqueueWorkload(NetworkId networkId, const InputTensors &inputTensors, const OutputTensors &outputTensors) override</div><div class="ttdoc">Evaluates a network using input in inputTensors and outputs filled into outputTensors. </div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00279">Runtime.cpp:279</a></div></div>
135 <div class="ttc" id="classarmnn_1_1_runtime_xhtml_a7d0ddcd74d6f6438283e511480b64cc1"><div class="ttname"><a href="classarmnn_1_1_runtime.xhtml#a7d0ddcd74d6f6438283e511480b64cc1">armnn::Runtime::GetInputTensorInfo</a></div><div class="ttdeci">virtual TensorInfo GetInputTensorInfo(NetworkId networkId, LayerBindingId layerId) const override</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00268">Runtime.cpp:268</a></div></div>
136 </div><!-- fragment --></div><!-- contents -->
137 </div><!-- doc-content -->
138 <!-- start footer part -->
139 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
141 <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="_runtime_8hpp.xhtml">Runtime.hpp</a></li>
142 <li class="footer">Generated on Fri Mar 13 2020 16:09:08 for ArmNN by
143 <a href="http://www.doxygen.org/index.html">
144 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>