Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: src/backends/backendsCommon/test/MockBackend.cpp Source File</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_mock_backend_8cpp_source.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="headertitle"> |
| 84 | <div class="title">MockBackend.cpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="_mock_backend_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><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> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="_mock_backend_8hpp.html">MockBackend.hpp</a>"</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="_mock_backend_id_8hpp.html">MockBackendId.hpp</a>"</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="_i_backend_profiling_context_8hpp.html">armnn/backends/profiling/IBackendProfilingContext.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="_backend_registry_8hpp.html">armnn/BackendRegistry.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="code" href="include_2armnn_2backends_2_i_backend_context_8hpp.html">armnn/backends/IBackendContext.hpp</a>></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="include_2armnn_2backends_2_i_memory_manager_8hpp.html">armnn/backends/IMemoryManager.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="_optimizer_8hpp.html">Optimizer.hpp</a>></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="_subgraph_view_selector_8hpp.html">SubgraphViewSelector.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <boost/cast.hpp></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="preprocessor">#include <algorithm></span></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> <span class="keyword">namespace</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</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="keywordtype">bool</span> IsLayerSupported(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>* layer)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  BOOST_ASSERT(layer != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">armnn::LayerType</a> layerType = layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">switch</span> (layerType)</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">armnn::LayerType::Input</a>:</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">armnn::LayerType::Output</a>:</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f">armnn::LayerType::Addition</a>:</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a">armnn::LayerType::Convolution2d</a>:</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// Layer supported</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// Layer unsupported</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</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> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keywordtype">bool</span> IsLayerSupported(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>& layer)</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">return</span> IsLayerSupported(&layer);</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> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">bool</span> IsLayerOptimizable(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>* layer)</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>  BOOST_ASSERT(layer != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="comment">// A Layer is not optimizable if its name contains "unoptimizable"</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">const</span> std::string layerName(layer-><a class="code" href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">GetName</a>());</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">bool</span> optimizable = layerName.find(<span class="stringliteral">"unoptimizable"</span>) == std::string::npos;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span> optimizable;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">bool</span> IsLayerOptimizable(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>& layer)</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> IsLayerOptimizable(&layer);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> } <span class="comment">// Anonymous namespace</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.html">armnn</a></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend_initialiser.html#a844886db133bb7190b48f9af35bc6d58"> 70</a></span> <a class="code" href="classarmnn_1_1_mock_backend_initialiser.html#a844886db133bb7190b48f9af35bc6d58">MockBackendInitialiser::MockBackendInitialiser</a>()</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>().<a class="code" href="classarmnn_1_1_backend_registry.html#a0318ffa738b798986c4347ea9fe5ab37">Register</a>(<a class="code" href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">MockBackend::GetIdStatic</a>(),</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  []()</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a>(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_mock_backend.html">MockBackend</a>);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  });</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> </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend_initialiser.html#a196b5c64c6b7d52b16a9073d91302f71"> 79</a></span> <a class="code" href="classarmnn_1_1_mock_backend_initialiser.html#a196b5c64c6b7d52b16a9073d91302f71">MockBackendInitialiser::~MockBackendInitialiser</a>()</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">try</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>  <a class="code" href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>().<a class="code" href="classarmnn_1_1_backend_registry.html#a41895cd60f4b1bfd0b88571a8773ff1c">Deregister</a>(<a class="code" href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">MockBackend::GetIdStatic</a>());</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>  <span class="keywordflow">catch</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>  std::cerr << <span class="stringliteral">"could not deregister mock backend"</span> << std::endl;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</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> </div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8"> 91</a></span> <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.html">BackendId</a>& <a class="code" href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">MockBackend::GetIdStatic</a>()</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.html">BackendId</a> s_Id{<a class="code" href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">MockBackendId</a>()};</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> s_Id;</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"><a class="line" href="classarmnn_1_1_mock_backend.html#a8e19e275c8162e34e6d8d10a9245dbc9"> 97</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">IBackendInternal::IWorkloadFactoryPtr</a> <a class="code" href="classarmnn_1_1_mock_backend.html#a8e19e275c8162e34e6d8d10a9245dbc9">MockBackend::CreateWorkloadFactory</a>(</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">IBackendInternal::IMemoryManagerSharedPtr</a>& <span class="comment">/*memoryManager*/</span>)<span class="keyword"> const</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="keyword"></span>{</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">IWorkloadFactoryPtr</a>{};</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#a801cf3170dc777aca3e6f926d1bd70a5"> 103</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#ada6d56575c0fe53cf23c7ae4610c6367">IBackendInternal::IBackendContextPtr</a> <a class="code" href="classarmnn_1_1_mock_backend.html#a801cf3170dc777aca3e6f926d1bd70a5">MockBackend::CreateBackendContext</a>(<span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a>&)<span class="keyword"> const</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword"></span>{</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#ada6d56575c0fe53cf23c7ae4610c6367">IBackendContextPtr</a>{};</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#ac2480fbc4ae790e2e64f55d78b7f31a0"> 108</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#aaece3a614f6691da8de8c7295cb1b07f">IBackendInternal::IBackendProfilingContextPtr</a> <a class="code" href="classarmnn_1_1_mock_backend.html#ac2480fbc4ae790e2e64f55d78b7f31a0">MockBackend::CreateBackendProfilingContext</a>(</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">IRuntime::CreationOptions</a>& <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>, <a class="code" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendProfilingPtr</a>& backendProfiling)</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  boost::ignore_unused(options);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  std::shared_ptr<armnn::MockBackendProfilingContext> context =</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::make_shared<MockBackendProfilingContext>(backendProfiling);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classarmnn_1_1_mock_backend_profiling_service.html#a15a5e913e48840d7b767a4453d83f361">MockBackendProfilingService::Instance</a>().<a class="code" href="classarmnn_1_1_mock_backend_profiling_service.html#a3458b64cd6375e3842160a28ad6e2301">SetProfilingContextPtr</a>(context);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> context;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#a93fcb3bff141d8c77b53466a44b58eee"> 118</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">IBackendInternal::IMemoryManagerUniquePtr</a> <a class="code" href="classarmnn_1_1_mock_backend.html#a93fcb3bff141d8c77b53466a44b58eee">MockBackend::CreateMemoryManager</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keyword"></span>{</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">IMemoryManagerUniquePtr</a>{};</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#a87acb43c72272d9db21c547d4f4996cb"> 123</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#ad1794808004025d6e06c176507197b24">IBackendInternal::Optimizations</a> <a class="code" href="classarmnn_1_1_mock_backend.html#a87acb43c72272d9db21c547d4f4996cb">MockBackend::GetOptimizations</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="keyword"></span>{</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#ad1794808004025d6e06c176507197b24">Optimizations</a>{};</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> }</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#a93d4285a3ea5e4e3b35578484d889daa"> 128</a></span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a11fa919c11fe46aad613b2e960fcfe90">IBackendInternal::ILayerSupportSharedPtr</a> <a class="code" href="classarmnn_1_1_mock_backend.html#a93d4285a3ea5e4e3b35578484d889daa">MockBackend::GetLayerSupport</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="keyword"></span>{</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">static</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a11fa919c11fe46aad613b2e960fcfe90">ILayerSupportSharedPtr</a> layerSupport{<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_mock_layer_support.html">MockLayerSupport</a>};</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> layerSupport;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classarmnn_1_1_mock_backend.html#a3c7ed3d210544740ecb3fa9c28d56c34"> 134</a></span> <a class="code" href="classarmnn_1_1_optimization_views.html">OptimizationViews</a> <a class="code" href="classarmnn_1_1_mock_backend.html#a3c7ed3d210544740ecb3fa9c28d56c34">MockBackend::OptimizeSubgraphView</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a>& subgraph)<span class="keyword"> const</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword"></span>{</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="comment">// Prepare the optimization views</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="classarmnn_1_1_optimization_views.html">OptimizationViews</a> optimizationViews;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// Get the layers of the input sub-graph</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a>& subgraphLayers = subgraph.<a class="code" href="classarmnn_1_1_subgraph_view.html#ac8ac9809196ec980b8472fbc8367697a">GetLayers</a>();</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">// Parse the layers</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a> supportedLayers;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a> unsupportedLayers;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">SubgraphView::Layers</a> untouchedLayers;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  std::for_each(subgraphLayers.begin(),</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  subgraphLayers.end(),</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  [&](<a class="code" href="classarmnn_1_1_layer.html">Layer</a>* layer)</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a928c74de863a45a07986816d7c9ad68a">supported</a> = IsLayerSupported(layer);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">if</span> (supported)</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">// Layer supported, check if it's optimizable</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">bool</span> optimizable = IsLayerOptimizable(layer);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">if</span> (optimizable)</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// Layer fully supported</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  supportedLayers.push_back(layer);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  }</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="comment">// Layer supported but not optimizable</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  untouchedLayers.push_back(layer);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  }</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  {</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// Layer unsupported</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  unsupportedLayers.push_back(layer);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  }</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  });</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="comment">// Check if there are supported layers</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span> (!supportedLayers.empty())</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  {</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="comment">// Select the layers that are neither inputs or outputs, but that are optimizable</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">auto</span> supportedSubgraphSelector = [](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">Layer</a>& layer)</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> layer.<a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">LayerType::Input</a> &&</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  layer.<a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a> &&</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  IsLayerSupported(layer) &&</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  IsLayerOptimizable(layer);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  };</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">// Apply the subgraph selector to the supported layers to group them into sub-graphs were appropriate</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> mutableSubgraph(subgraph);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">SubgraphViewSelector::Subgraphs</a> supportedSubgraphs =</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">SubgraphViewSelector::SelectSubgraphs</a>(mutableSubgraph, supportedSubgraphSelector);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">// Create a substitution pair for each supported sub-graph</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  std::for_each(supportedSubgraphs.begin(),</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  supportedSubgraphs.end(),</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  [&optimizationViews](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">SubgraphView::SubgraphViewPtr</a>& supportedSubgraph)</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  BOOST_ASSERT(supportedSubgraph != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="classarmnn_1_1_pre_compiled_layer.html">PreCompiledLayer</a>* preCompiledLayer =</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  optimizationViews.<a class="code" href="classarmnn_1_1_optimization_views.html#a49800ad35ea869aa5569519760d3b339">GetGraph</a>().<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_pre_compiled_layer.html">PreCompiledLayer</a>>(</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="structarmnn_1_1_pre_compiled_descriptor.html">PreCompiledDescriptor</a>(supportedSubgraph->GetNumInputSlots(),</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  supportedSubgraph->GetNumOutputSlots()),</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="stringliteral">"pre-compiled"</span>);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  preCompiledLayer-><a class="code" href="classarmnn_1_1_layer.html#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<a class="code" href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">MockBackendId</a>());</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> substitutionSubgraph(*supportedSubgraph);</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> replacementSubgraph(preCompiledLayer);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  optimizationViews.<a class="code" href="classarmnn_1_1_optimization_views.html#a57340147dcb1c0ae05fdf14ff7af8a01">AddSubstitution</a>({ substitutionSubgraph, replacementSubgraph });</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  });</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="comment">// Check if there are unsupported layers</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span> (!unsupportedLayers.empty())</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="comment">// Select the layers that are neither inputs or outputs, and are not optimizable</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keyword">auto</span> unsupportedSubgraphSelector = [](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">Layer</a>& layer)</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">return</span> layer.<a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">LayerType::Input</a> &&</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  layer.<a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a> &&</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  !IsLayerSupported(layer);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  };</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">// Apply the subgraph selector to the unsupported layers to group them into sub-graphs were appropriate</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> mutableSubgraph(subgraph);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">SubgraphViewSelector::Subgraphs</a> unsupportedSubgraphs =</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">SubgraphViewSelector::SelectSubgraphs</a>(mutableSubgraph, unsupportedSubgraphSelector);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="comment">// Add each unsupported sub-graph to the list of failed sub-graphs in the optimizization views</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  std::for_each(unsupportedSubgraphs.begin(),</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  unsupportedSubgraphs.end(),</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  [&optimizationViews](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">SubgraphView::SubgraphViewPtr</a>& unsupportedSubgraph)</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  {</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  BOOST_ASSERT(unsupportedSubgraph != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  optimizationViews.<a class="code" href="classarmnn_1_1_optimization_views.html#a1b29d43c2596e40987838f6d1f819858">AddFailedSubgraph</a>(<a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a>(*unsupportedSubgraph));</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  });</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="comment">// Check if there are untouched layers</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (!untouchedLayers.empty())</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  {</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">// Select the layers that are neither inputs or outputs, that are supported but that and are not optimizable</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keyword">auto</span> untouchedSubgraphSelector = [](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">Layer</a>& layer)</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  {</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">return</span> layer.<a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">LayerType::Input</a> &&</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  layer.<a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() != <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">LayerType::Output</a> &&</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  IsLayerSupported(layer) &&</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  !IsLayerOptimizable(layer);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  };</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="comment">// Apply the subgraph selector to the untouched layers to group them into sub-graphs were appropriate</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a> mutableSubgraph(subgraph);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">SubgraphViewSelector::Subgraphs</a> untouchedSubgraphs =</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">SubgraphViewSelector::SelectSubgraphs</a>(mutableSubgraph, untouchedSubgraphSelector);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="comment">// Add each untouched sub-graph to the list of untouched sub-graphs in the optimizization views</span></div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  std::for_each(untouchedSubgraphs.begin(),</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  untouchedSubgraphs.end(),</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  [&optimizationViews](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">SubgraphView::SubgraphViewPtr</a>& untouchedSubgraph)</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  {</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  BOOST_ASSERT(untouchedSubgraph != <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  optimizationViews.<a class="code" href="classarmnn_1_1_optimization_views.html#a28e41bdd6b719a3d60a1a0de2e1ebc95">AddUntouchedSubgraph</a>(<a class="code" href="classarmnn_1_1_subgraph_view.html">SubgraphView</a>(*untouchedSubgraph));</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  });</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  }</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">return</span> optimizationViews;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> }</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> } <span class="comment">// namespace armnn</span></div><div class="ttc" id="classarmnn_1_1_optimization_views_html_a1b29d43c2596e40987838f6d1f819858"><div class="ttname"><a href="classarmnn_1_1_optimization_views.html#a1b29d43c2596e40987838f6d1f819858">armnn::OptimizationViews::AddFailedSubgraph</a></div><div class="ttdeci">void AddFailedSubgraph(SubgraphView &&subgraph)</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00039">OptimizationViews.hpp:39</a></div></div> |
| 88 | <div class="ttc" id="namespacearmnn_html_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.html#l00018">BackendRegistry.hpp:18</a></div></div> |
| 89 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a72ca1cf423bda4b0a9ffb789627126de"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a72ca1cf423bda4b0a9ffb789627126de">armnn::IBackendInternal::IWorkloadFactoryPtr</a></div><div class="ttdeci">std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00080">IBackendInternal.hpp:80</a></div></div> |
| 90 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f">armnn::LayerType::Addition</a></div></div> |
| 91 | <div class="ttc" id="classarmnn_1_1_layer_html_aaef29472862381822654ab6cbf7cba2a"><div class="ttname"><a href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">armnn::Layer::GetType</a></div><div class="ttdeci">LayerType GetType() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00259">Layer.hpp:259</a></div></div> |
| 92 | <div class="ttc" id="_mock_backend_8hpp_html"><div class="ttname"><a href="_mock_backend_8hpp.html">MockBackend.hpp</a></div></div> |
| 93 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_ad1794808004025d6e06c176507197b24"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#ad1794808004025d6e06c176507197b24">armnn::IBackendInternal::Optimizations</a></div><div class="ttdeci">std::vector< OptimizationPtr > Optimizations</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00086">IBackendInternal.hpp:86</a></div></div> |
| 94 | <div class="ttc" id="classarmnn_1_1_mock_backend_initialiser_html_a844886db133bb7190b48f9af35bc6d58"><div class="ttname"><a href="classarmnn_1_1_mock_backend_initialiser.html#a844886db133bb7190b48f9af35bc6d58">armnn::MockBackendInitialiser::MockBackendInitialiser</a></div><div class="ttdeci">MockBackendInitialiser()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00070">MockBackend.cpp:70</a></div></div> |
| 95 | <div class="ttc" id="classarmnn_1_1_layer_html_a7ddf0cf6f620d59c10e63495ace795d0"><div class="ttname"><a href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">armnn::Layer::GetName</a></div><div class="ttdeci">const char * GetName() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00305">Layer.hpp:305</a></div></div> |
| 96 | <div class="ttc" id="_subgraph_view_selector_8hpp_html"><div class="ttname"><a href="_subgraph_view_selector_8hpp.html">SubgraphViewSelector.hpp</a></div></div> |
| 97 | <div class="ttc" id="_optimizer_8hpp_html"><div class="ttname"><a href="_optimizer_8hpp.html">Optimizer.hpp</a></div></div> |
| 98 | <div class="ttc" id="classarmnn_1_1_optimization_views_html_a28e41bdd6b719a3d60a1a0de2e1ebc95"><div class="ttname"><a href="classarmnn_1_1_optimization_views.html#a28e41bdd6b719a3d60a1a0de2e1ebc95">armnn::OptimizationViews::AddUntouchedSubgraph</a></div><div class="ttdeci">void AddUntouchedSubgraph(SubgraphView &&subgraph)</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00044">OptimizationViews.hpp:44</a></div></div> |
| 99 | <div class="ttc" id="classarmnn_1_1_mock_backend_profiling_service_html_a15a5e913e48840d7b767a4453d83f361"><div class="ttname"><a href="classarmnn_1_1_mock_backend_profiling_service.html#a15a5e913e48840d7b767a4453d83f361">armnn::MockBackendProfilingService::Instance</a></div><div class="ttdeci">static MockBackendProfilingService & Instance()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8hpp_source.html#l00104">MockBackend.hpp:104</a></div></div> |
| 100 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a29c2c02a361c9d7028472e5d92cd4a54">armnn::LayerType::Output</a></div></div> |
| 101 | <div class="ttc" id="classarmnn_1_1_layer_html"><div class="ttname"><a href="classarmnn_1_1_layer.html">armnn::Layer</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00209">Layer.hpp:209</a></div></div> |
| 102 | <div class="ttc" id="classarmnn_1_1_subgraph_view_html_ac8ac9809196ec980b8472fbc8367697a"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#ac8ac9809196ec980b8472fbc8367697a">armnn::SubgraphView::GetLayers</a></div><div class="ttdeci">const Layers & GetLayers() const</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8cpp_source.html#l00158">SubgraphView.cpp:158</a></div></div> |
| 103 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_ada6d56575c0fe53cf23c7ae4610c6367"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#ada6d56575c0fe53cf23c7ae4610c6367">armnn::IBackendInternal::IBackendContextPtr</a></div><div class="ttdeci">std::unique_ptr< IBackendContext > IBackendContextPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00081">IBackendInternal.hpp:81</a></div></div> |
| 104 | <div class="ttc" id="classarmnn_1_1_subgraph_view_html_a74798938fdaeae75c8adfa4a7439e7f9"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">armnn::SubgraphView::Layers</a></div><div class="ttdeci">std::list< Layer * > Layers</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00040">SubgraphView.hpp:40</a></div></div> |
| 105 | <div class="ttc" id="classarmnn_1_1_graph_html_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &&... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.html#l00397">Graph.hpp:397</a></div></div> |
| 106 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a693b40e6b94e958836aeb0410ca186bd"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a></div><div class="ttdeci">std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00090">IBackendInternal.hpp:90</a></div></div> |
| 107 | <div class="ttc" id="classarmnn_1_1_subgraph_view_selector_html_a3730b0a6006f0d87f894a44e01869d90"><div class="ttname"><a href="classarmnn_1_1_subgraph_view_selector.html#a3730b0a6006f0d87f894a44e01869d90">armnn::SubgraphViewSelector::SelectSubgraphs</a></div><div class="ttdeci">static Subgraphs SelectSubgraphs(Graph &graph, const LayerSelectorFunction &selector)</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_selector_8cpp_source.html#l00251">SubgraphViewSelector.cpp:251</a></div></div> |
| 108 | <div class="ttc" id="classarmnn_1_1_optimization_views_html_a49800ad35ea869aa5569519760d3b339"><div class="ttname"><a href="classarmnn_1_1_optimization_views.html#a49800ad35ea869aa5569519760d3b339">armnn::OptimizationViews::GetGraph</a></div><div class="ttdeci">Graph & GetGraph()</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00059">OptimizationViews.hpp:59</a></div></div> |
| 109 | <div class="ttc" id="classarmnn_1_1_optimization_views_html_a57340147dcb1c0ae05fdf14ff7af8a01"><div class="ttname"><a href="classarmnn_1_1_optimization_views.html#a57340147dcb1c0ae05fdf14ff7af8a01">armnn::OptimizationViews::AddSubstitution</a></div><div class="ttdeci">void AddSubstitution(SubstitutionPair &&substitution)</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00034">OptimizationViews.hpp:34</a></div></div> |
| 110 | <div class="ttc" id="classarmnn_1_1_pre_compiled_layer_html"><div class="ttname"><a href="classarmnn_1_1_pre_compiled_layer.html">armnn::PreCompiledLayer</a></div><div class="ttdef"><b>Definition:</b> <a href="_pre_compiled_layer_8hpp_source.html#l00022">PreCompiledLayer.hpp:22</a></div></div> |
| 111 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a928c74de863a45a07986816d7c9ad68a"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a928c74de863a45a07986816d7c9ad68a">armnn::IBackendInternal::supported</a></div><div class="ttdeci">std::unique_ptr< ISubGraphConverter > supported</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00097">IBackendInternal.hpp:97</a></div></div> |
| 112 | <div class="ttc" id="classarmnn_1_1_subgraph_view_selector_html_aaf71a63dbbc776f8961b0f4fdb9da021"><div class="ttname"><a href="classarmnn_1_1_subgraph_view_selector.html#aaf71a63dbbc776f8961b0f4fdb9da021">armnn::SubgraphViewSelector::Subgraphs</a></div><div class="ttdeci">std::vector< SubgraphViewPtr > Subgraphs</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_selector_8hpp_source.html#l00025">SubgraphViewSelector.hpp:25</a></div></div> |
| 113 | <div class="ttc" id="classarmnn_1_1_subgraph_view_html"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html">armnn::SubgraphView</a></div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00023">SubgraphView.hpp:23</a></div></div> |
| 114 | <div class="ttc" id="classarmnn_1_1_backend_id_html"><div class="ttname"><a href="classarmnn_1_1_backend_id.html">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.html#l00075">BackendId.hpp:75</a></div></div> |
| 115 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a177af502214bbc8123fbb4a3c4f0a1b8"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a177af502214bbc8123fbb4a3c4f0a1b8">armnn::MockBackend::GetIdStatic</a></div><div class="ttdeci">static const BackendId & GetIdStatic()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00091">MockBackend.cpp:91</a></div></div> |
| 116 | <div class="ttc" id="classarmnn_1_1_layer_html_a3f6ad59212fa8a47c9265162fff8a274"><div class="ttname"><a href="classarmnn_1_1_layer.html#a3f6ad59212fa8a47c9265162fff8a274">armnn::Layer::SetBackendId</a></div><div class="ttdeci">void SetBackendId(const BackendId &id)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00264">Layer.hpp:264</a></div></div> |
| 117 | <div class="ttc" id="namespacearmnn_html_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.html#l00013">BackendRegistry.cpp:13</a></div></div> |
| 118 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a3c7ed3d210544740ecb3fa9c28d56c34"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a3c7ed3d210544740ecb3fa9c28d56c34">armnn::MockBackend::OptimizeSubgraphView</a></div><div class="ttdeci">OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph) const override</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00134">MockBackend.cpp:134</a></div></div> |
| 119 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a8e19e275c8162e34e6d8d10a9245dbc9"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a8e19e275c8162e34e6d8d10a9245dbc9">armnn::MockBackend::CreateWorkloadFactory</a></div><div class="ttdeci">IBackendInternal::IWorkloadFactoryPtr CreateWorkloadFactory(const IBackendInternal::IMemoryManagerSharedPtr &memoryManager=nullptr) const override</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00097">MockBackend.cpp:97</a></div></div> |
| 120 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a87acb43c72272d9db21c547d4f4996cb"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a87acb43c72272d9db21c547d4f4996cb">armnn::MockBackend::GetOptimizations</a></div><div class="ttdeci">IBackendInternal::Optimizations GetOptimizations() const override</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00123">MockBackend.cpp:123</a></div></div> |
| 121 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a801cf3170dc777aca3e6f926d1bd70a5"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a801cf3170dc777aca3e6f926d1bd70a5">armnn::MockBackend::CreateBackendContext</a></div><div class="ttdeci">IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const override</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00103">MockBackend.cpp:103</a></div></div> |
| 122 | <div class="ttc" id="_i_backend_profiling_context_8hpp_html"><div class="ttname"><a href="_i_backend_profiling_context_8hpp.html">IBackendProfilingContext.hpp</a></div></div> |
| 123 | <div class="ttc" id="namespacearmnn_html_a17955517b0d148f7ffdbffe8b46e41e0"><div class="ttname"><a href="namespacearmnn.html#a17955517b0d148f7ffdbffe8b46e41e0">armnn::MockBackendId</a></div><div class="ttdeci">constexpr const char * MockBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_id_8hpp_source.html#l00011">MockBackendId.hpp:11</a></div></div> |
| 124 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_aaece3a614f6691da8de8c7295cb1b07f"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#aaece3a614f6691da8de8c7295cb1b07f">armnn::IBackendInternal::IBackendProfilingContextPtr</a></div><div class="ttdeci">std::shared_ptr< armnn::profiling::IBackendProfilingContext > IBackendProfilingContextPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00083">IBackendInternal.hpp:83</a></div></div> |
| 125 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 126 | <div class="ttc" id="include_2armnn_2backends_2_i_backend_context_8hpp_html"><div class="ttname"><a href="include_2armnn_2backends_2_i_backend_context_8hpp.html">IBackendContext.hpp</a></div></div> |
| 127 | <div class="ttc" id="classarmnn_1_1_mock_layer_support_html"><div class="ttname"><a href="classarmnn_1_1_mock_layer_support.html">armnn::MockLayerSupport</a></div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8hpp_source.html#l00152">MockBackend.hpp:152</a></div></div> |
| 128 | <div class="ttc" id="_mock_backend_id_8hpp_html"><div class="ttname"><a href="_mock_backend_id_8hpp.html">MockBackendId.hpp</a></div></div> |
| 129 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a12bff6d51d63dac1375c89bc8415dc46"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a12bff6d51d63dac1375c89bc8415dc46">armnn::IBackendInternal::IMemoryManagerUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00089">IBackendInternal.hpp:89</a></div></div> |
| 130 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a">armnn::LayerType::Convolution2d</a></div></div> |
| 131 | <div class="ttc" id="_backend_registry_8hpp_html"><div class="ttname"><a href="_backend_registry_8hpp.html">BackendRegistry.hpp</a></div></div> |
| 132 | <div class="ttc" id="classarmnn_1_1_subgraph_view_html_a4684a457c7786484375f06e9ab2d2265"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">armnn::SubgraphView::SubgraphViewPtr</a></div><div class="ttdeci">std::unique_ptr< SubgraphView > SubgraphViewPtr</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00037">SubgraphView.hpp:37</a></div></div> |
| 133 | <div class="ttc" id="classarmnn_1_1_mock_backend_profiling_service_html_a3458b64cd6375e3842160a28ad6e2301"><div class="ttname"><a href="classarmnn_1_1_mock_backend_profiling_service.html#a3458b64cd6375e3842160a28ad6e2301">armnn::MockBackendProfilingService::SetProfilingContextPtr</a></div><div class="ttdeci">void SetProfilingContextPtr(std::shared_ptr< MockBackendProfilingContext > shared)</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8hpp_source.html#l00115">MockBackend.hpp:115</a></div></div> |
| 134 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_ac2480fbc4ae790e2e64f55d78b7f31a0"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#ac2480fbc4ae790e2e64f55d78b7f31a0">armnn::MockBackend::CreateBackendProfilingContext</a></div><div class="ttdeci">IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &creationOptions, IBackendProfilingPtr &backendProfiling) override</div><div class="ttdoc">Create context specifically used for profiling interaction from backends. </div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00108">MockBackend.cpp:108</a></div></div> |
| 135 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a93d4285a3ea5e4e3b35578484d889daa"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a93d4285a3ea5e4e3b35578484d889daa">armnn::MockBackend::GetLayerSupport</a></div><div class="ttdeci">IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00128">MockBackend.cpp:128</a></div></div> |
| 136 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a11fa919c11fe46aad613b2e960fcfe90"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a11fa919c11fe46aad613b2e960fcfe90">armnn::IBackendInternal::ILayerSupportSharedPtr</a></div><div class="ttdeci">std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00087">IBackendInternal.hpp:87</a></div></div> |
| 137 | <div class="ttc" id="classarmnn_1_1_mock_backend_html"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html">armnn::MockBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8hpp_source.html#l00124">MockBackend.hpp:124</a></div></div> |
| 138 | <div class="ttc" id="classarmnn_1_1_mock_backend_html_a93fcb3bff141d8c77b53466a44b58eee"><div class="ttname"><a href="classarmnn_1_1_mock_backend.html#a93fcb3bff141d8c77b53466a44b58eee">armnn::MockBackend::CreateMemoryManager</a></div><div class="ttdeci">IBackendInternal::IMemoryManagerUniquePtr CreateMemoryManager() const override</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00118">MockBackend.cpp:118</a></div></div> |
| 139 | <div class="ttc" id="structarmnn_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#l00041">IRuntime.hpp:41</a></div></div> |
| 140 | <div class="ttc" id="include_2armnn_2backends_2_i_memory_manager_8hpp_html"><div class="ttname"><a href="include_2armnn_2backends_2_i_memory_manager_8hpp.html">IMemoryManager.hpp</a></div></div> |
| 141 | <div class="ttc" id="classarmnn_1_1_backend_registry_html_a41895cd60f4b1bfd0b88571a8773ff1c"><div class="ttname"><a href="classarmnn_1_1_backend_registry.html#a41895cd60f4b1bfd0b88571a8773ff1c">armnn::BackendRegistry::Deregister</a></div><div class="ttdeci">void Deregister(const BackendId &id)</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.html#l00034">BackendRegistry.cpp:34</a></div></div> |
| 142 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#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.html#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 143 | <div class="ttc" id="classarmnn_1_1_mock_backend_initialiser_html_a196b5c64c6b7d52b16a9073d91302f71"><div class="ttname"><a href="classarmnn_1_1_mock_backend_initialiser.html#a196b5c64c6b7d52b16a9073d91302f71">armnn::MockBackendInitialiser::~MockBackendInitialiser</a></div><div class="ttdeci">~MockBackendInitialiser()</div><div class="ttdef"><b>Definition:</b> <a href="_mock_backend_8cpp_source.html#l00079">MockBackend.cpp:79</a></div></div> |
| 144 | <div class="ttc" id="classarmnn_1_1_optimization_views_html"><div class="ttname"><a href="classarmnn_1_1_optimization_views.html">armnn::OptimizationViews</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_optimization_views_8hpp_source.html#l00013">OptimizationViews.hpp:13</a></div></div> |
| 145 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a324118a6721dd6b8a9b9f4e327df2bf5">armnn::LayerType::Input</a></div></div> |
| 146 | <div class="ttc" id="structarmnn_1_1_pre_compiled_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_pre_compiled_descriptor.html">armnn::PreCompiledDescriptor</a></div><div class="ttdoc">A PreCompiledDescriptor for the PreCompiledLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01066">Descriptors.hpp:1066</a></div></div> |
| 147 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a34ab83489d1c5043b2b9b4a2ec13c481"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">armnn::IBackendInternal::IBackendProfilingPtr</a></div><div class="ttdeci">std::unique_ptr< armnn::profiling::IBackendProfiling > IBackendProfilingPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00084">IBackendInternal.hpp:84</a></div></div> |
| 148 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">armnn::LayerType</a></div><div class="ttdeci">LayerType</div><div class="ttdef"><b>Definition:</b> <a href="_internal_types_8hpp_source.html#l00014">InternalTypes.hpp:14</a></div></div> |
| 149 | <div class="ttc" id="classarmnn_1_1_backend_registry_html_a0318ffa738b798986c4347ea9fe5ab37"><div class="ttname"><a href="classarmnn_1_1_backend_registry.html#a0318ffa738b798986c4347ea9fe5ab37">armnn::BackendRegistry::Register</a></div><div class="ttdeci">void Register(const BackendId &id, FactoryFunction factory)</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.html#l00019">BackendRegistry.cpp:19</a></div></div> |
| 150 | </div><!-- fragment --></div><!-- contents --> |
| 151 | </div><!-- doc-content --> |
| 152 | <!-- start footer part --> |
| 153 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 154 | <ul> |
| 155 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.html">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.html">test</a></li><li class="navelem"><a class="el" href="_mock_backend_8cpp.html">MockBackend.cpp</a></li> |
| 156 | <li class="footer">Generated on Fri Mar 13 2020 16:06:57 for ArmNN by |
| 157 | <a href="http://www.doxygen.org/index.html"> |
| 158 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 159 | </ul> |
| 160 | </div> |
| 161 | </body> |
| 162 | </html> |