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: tests/InferenceModel.hpp 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('_inference_model_8hpp_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">InferenceModel.hpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="_inference_model_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><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">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="_arm_n_n_8hpp.html">armnn/ArmNN.hpp</a>></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="code" href="_backend_registry_8hpp.html">armnn/BackendRegistry.hpp</a>></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#if defined(ARMNN_SERIALIZER)</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="_i_deserializer_8hpp.html">armnnDeserializer/IDeserializer.hpp</a>"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#if defined(ARMNN_TF_LITE_PARSER)</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="_i_tf_lite_parser_8hpp.html">armnnTfLiteParser/ITfLiteParser.hpp</a>></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#if defined(ARMNN_ONNX_PARSER)</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="_i_onnx_parser_8hpp.html">armnnOnnxParser/IOnnxParser.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="_heap_profiling_8hpp.html">HeapProfiling.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="_tensor_i_o_utils_8hpp.html">TensorIOUtils.hpp</a>></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> <span class="preprocessor">#include <boost/algorithm/string/join.hpp></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <boost/exception/exception.hpp></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <boost/exception/diagnostic_information.hpp></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <boost/format.hpp></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <boost/program_options.hpp></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <boost/filesystem.hpp></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <boost/lexical_cast.hpp></span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <boost/variant.hpp></span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <chrono></span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <iterator></span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <fstream></span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <map></span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include <type_traits></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> <span class="keyword">namespace</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> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> CheckRequestedBackendsAreValid(<span class="keyword">const</span> std::vector<armnn::BackendId>& backendIds,</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classarmnn_1_1_optional.html">armnn::Optional<std::string&></a> invalidBackendIds = <a class="code" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>())</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="keywordflow">if</span> (backendIds.empty())</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</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>  <a class="code" href="namespacearmnn.html#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a> validBackendIds = <a class="code" href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a>().<a class="code" href="classarmnn_1_1_backend_registry.html#a570cb1835ec73000a7954ba75257904f">GetBackendIds</a>();</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">bool</span> allValid = <span class="keyword">true</span>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& backendId : backendIds)</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (std::find(validBackendIds.begin(), validBackendIds.end(), backendId) == validBackendIds.end())</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>  allValid = <span class="keyword">false</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">if</span> (invalidBackendIds)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">if</span> (!invalidBackendIds.value().empty())</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>  invalidBackendIds.value() += <span class="stringliteral">", "</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>  invalidBackendIds.value() += backendId;</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"> 70</span>  }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> allValid;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</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> } <span class="comment">// anonymous namespace</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="namespace_inference_model_internal.html"> 76</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_inference_model_internal.html">InferenceModelInternal</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"><a class="line" href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9"> 78</a></span> <span class="keyword">using</span> <a class="code" href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> = <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</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"><a class="line" href="namespace_inference_model_internal.html#a6e713a319588c57fc854bc478f5ee13a"> 80</a></span> <span class="keyword">using</span> <a class="code" href="namespace_inference_model_internal.html#a6e713a319588c57fc854bc478f5ee13a">QuantizationParams</a> = std::pair<float,int32_t>;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html"> 82</a></span> <span class="keyword">struct </span><a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> {</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980"> 84</a></span>  std::string <a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0"> 85</a></span>  std::vector<std::string> <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#ad69aa6b4967ce55ee4a915c52c71bf2e"> 86</a></span>  std::vector<armnn::TensorShape> <a class="code" href="struct_inference_model_internal_1_1_params.html#ad69aa6b4967ce55ee4a915c52c71bf2e">m_InputShapes</a>;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc"> 87</a></span>  std::vector<std::string> <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#a2d54e6252c1c9a0e29f7706ba03b2b74"> 88</a></span>  std::vector<armnn::BackendId> <a class="code" href="struct_inference_model_internal_1_1_params.html#a2d54e6252c1c9a0e29f7706ba03b2b74">m_ComputeDevices</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#ae43cf4b5df0068ee6a9151c98947248b"> 89</a></span>  std::string <a class="code" href="struct_inference_model_internal_1_1_params.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a>;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62"> 90</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62">m_SubgraphId</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#a6bf2f586c403977d31c7d32d371918cf"> 91</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#a6bf2f586c403977d31c7d32d371918cf">m_IsModelBinary</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#aaae50a6c0f73e4c210c2e4331c439482"> 92</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#aaae50a6c0f73e4c210c2e4331c439482">m_VisualizePostOptimizationModel</a>;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#a513151623e8d448951a0b94ad1946fbe"> 93</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#a513151623e8d448951a0b94ad1946fbe">m_EnableFp16TurboMode</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#acde2af8cbbd224a9f94e509ca538a775"> 94</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#acde2af8cbbd224a9f94e509ca538a775">m_PrintIntermediateLayers</a>;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="struct_inference_model_internal_1_1_params.html#a5c7f0c083da98e7b6e9ba79d2fcd985d"> 95</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#a5c7f0c083da98e7b6e9ba79d2fcd985d">m_ParseUnsupported</a>;</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="struct_inference_model_internal_1_1_params.html#a7974597e9d3c848fd265d9445f7cf8cb"> 97</a></span>  <a class="code" href="struct_inference_model_internal_1_1_params.html#a7974597e9d3c848fd265d9445f7cf8cb">Params</a>()</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  : m_ComputeDevices{}</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62">m_SubgraphId</a>(0)</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#a6bf2f586c403977d31c7d32d371918cf">m_IsModelBinary</a>(<span class="keyword">true</span>)</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#aaae50a6c0f73e4c210c2e4331c439482">m_VisualizePostOptimizationModel</a>(<span class="keyword">false</span>)</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#a513151623e8d448951a0b94ad1946fbe">m_EnableFp16TurboMode</a>(<span class="keyword">false</span>)</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#acde2af8cbbd224a9f94e509ca538a775">m_PrintIntermediateLayers</a>(<span class="keyword">false</span>)</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#a5c7f0c083da98e7b6e9ba79d2fcd985d">m_ParseUnsupported</a>(<span class="keyword">false</span>)</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> };</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> } <span class="comment">// namespace InferenceModelInternal</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">template</span> <<span class="keyword">typename</span> IParser></div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="struct_create_network_impl.html"> 111</a></span> <span class="keyword">struct </span><a class="code" href="struct_create_network_impl.html">CreateNetworkImpl</a></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> <span class="keyword">public</span>:</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="struct_create_network_impl.html#a2e61c7404108440828ef7a45f310e229"> 114</a></span>  <span class="keyword">using</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a> = <a class="code" href="struct_inference_model_internal_1_1_params.html">InferenceModelInternal::Params</a>;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="struct_create_network_impl.html#a4cbece5e7793be85f9a1e8a0ab9e02f8"> 116</a></span>  <span class="keyword">static</span> <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> <a class="code" href="struct_create_network_impl.html#a4cbece5e7793be85f9a1e8a0ab9e02f8">Create</a>(<span class="keyword">const</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a>& params,</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  std::vector<armnn::BindingPointInfo>& inputBindings,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  std::vector<armnn::BindingPointInfo>& outputBindings)</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">const</span> std::string& modelPath = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</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>  <span class="comment">// Create a network from a file on disk</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">auto</span> parser(IParser::Create());</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  std::map<std::string, armnn::TensorShape> inputShapes;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">if</span> (!params.<a class="code" href="struct_inference_model_internal_1_1_params.html#ad69aa6b4967ce55ee4a915c52c71bf2e">m_InputShapes</a>.empty())</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> numInputShapes = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#ad69aa6b4967ce55ee4a915c52c71bf2e">m_InputShapes</a>.size();</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> numInputBindings = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>.size();</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span> (numInputShapes < numInputBindings)</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(boost::str(boost::format(</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="stringliteral">"Not every input has its tensor shape specified: expected=%1%, got=%2%"</span>)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  % numInputBindings % numInputShapes));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < numInputShapes; i++)</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>  inputShapes[params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>[i]] = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#ad69aa6b4967ce55ee4a915c52c71bf2e">m_InputShapes</a>[i];</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</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> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  std::vector<std::string> requestedOutputs = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network{<span class="keyword">nullptr</span>, [](<a class="code" href="classarmnn_1_1_i_network.html">armnn::INetwork</a> *){}};</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a>(<span class="stringliteral">"Parsing"</span>);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">// Handle text and binary input differently by calling the corresponding parser function</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  network = (params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a6bf2f586c403977d31c7d32d371918cf">m_IsModelBinary</a> ?</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  parser->CreateNetworkFromBinaryFile(modelPath.c_str(), inputShapes, requestedOutputs) :</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  parser->CreateNetworkFromTextFile(modelPath.c_str(), inputShapes, requestedOutputs));</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> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& inputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>)</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  {</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  inputBindings.push_back(parser->GetNetworkInputBindingInfo(inputLayerName));</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& outputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>)</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  {</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  outputBindings.push_back(parser->GetNetworkOutputBindingInfo(outputLayerName));</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span> network;</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> };</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="preprocessor">#if defined(ARMNN_SERIALIZER)</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">struct </span><a class="code" href="struct_create_network_impl.html">CreateNetworkImpl</a><armnnDeserializer::IDeserializer></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> <span class="keyword">public</span>:</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">using</span> IParser = <a class="code" href="classarmnn_deserializer_1_1_i_deserializer.html">armnnDeserializer::IDeserializer</a>;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">using</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a> = <a class="code" href="struct_inference_model_internal_1_1_params.html">InferenceModelInternal::Params</a>;</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="keyword">static</span> <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> Create(<span class="keyword">const</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a>& params,</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  std::vector<armnn::BindingPointInfo>& inputBindings,</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  std::vector<armnn::BindingPointInfo>& outputBindings)</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  {</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">auto</span> parser(IParser::Create());</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  BOOST_ASSERT(parser);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network{<span class="keyword">nullptr</span>, [](<a class="code" href="classarmnn_1_1_i_network.html">armnn::INetwork</a> *){}};</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>  {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a>(<span class="stringliteral">"Parsing"</span>);</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  boost::system::error_code errorCode;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  boost::filesystem::path pathToFile(params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a>);</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">if</span> (!boost::filesystem::exists(pathToFile, errorCode))</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  {</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_file_not_found_exception.html">armnn::FileNotFoundException</a>(boost::str(</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  boost::format(<span class="stringliteral">"Cannot find the file (%1%) errorCode: %2% %3%"</span>) %</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a> %</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  errorCode %</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  std::ifstream file(params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a>, std::ios::binary);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  network = parser->CreateNetworkFromBinary(file);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> subgraphId = boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62">m_SubgraphId</a>);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& inputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>)</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>  <a class="code" href="structarmnn_deserializer_1_1_binding_point_info.html">armnnDeserializer::BindingPointInfo</a> inputBinding =</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  parser->GetNetworkInputBindingInfo(subgraphId, inputLayerName);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  inputBindings.push_back(std::make_pair(inputBinding.<a class="code" href="structarmnn_deserializer_1_1_binding_point_info.html#a663b3104ec65e4e08b5e37fb42942087">m_BindingId</a>, inputBinding.<a class="code" href="structarmnn_deserializer_1_1_binding_point_info.html#aa308d10e76e29f09e44a933a2d091a79">m_TensorInfo</a>));</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> </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& outputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>)</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>  <a class="code" href="structarmnn_deserializer_1_1_binding_point_info.html">armnnDeserializer::BindingPointInfo</a> outputBinding =</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  parser->GetNetworkOutputBindingInfo(subgraphId, outputLayerName);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  outputBindings.push_back(std::make_pair(outputBinding.<a class="code" href="structarmnn_deserializer_1_1_binding_point_info.html#a663b3104ec65e4e08b5e37fb42942087">m_BindingId</a>, outputBinding.<a class="code" href="structarmnn_deserializer_1_1_binding_point_info.html#aa308d10e76e29f09e44a933a2d091a79">m_TensorInfo</a>));</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  }</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">return</span> network;</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="preprocessor">#endif</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="preprocessor">#if defined(ARMNN_TF_LITE_PARSER)</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="keyword">struct </span><a class="code" href="struct_create_network_impl.html">CreateNetworkImpl</a><armnnTfLiteParser::ITfLiteParser></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> {</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keyword">using</span> IParser = <a class="code" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.html">armnnTfLiteParser::ITfLiteParser</a>;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keyword">using</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a> = <a class="code" href="struct_inference_model_internal_1_1_params.html">InferenceModelInternal::Params</a>;</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>  <span class="keyword">static</span> <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> Create(<span class="keyword">const</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a>& params,</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  std::vector<armnn::BindingPointInfo>& inputBindings,</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  std::vector<armnn::BindingPointInfo>& outputBindings)</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>  <span class="keyword">const</span> std::string& modelPath = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a>;</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">// Create a network from a file on disk</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  IParser::TfLiteParserOptions <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  options.m_StandInLayerForUnsupported = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a5c7f0c083da98e7b6e9ba79d2fcd985d">m_ParseUnsupported</a>;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">auto</span> parser(IParser::Create(options));</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network{<span class="keyword">nullptr</span>, [](<a class="code" href="classarmnn_1_1_i_network.html">armnn::INetwork</a> *){}};</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  {</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a>(<span class="stringliteral">"Parsing"</span>);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  network = parser->CreateNetworkFromBinaryFile(modelPath.c_str());</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="keywordflow">for</span> (<span class="keyword">const</span> std::string& inputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>)</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  {</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> inputBinding =</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  parser->GetNetworkInputBindingInfo(params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62">m_SubgraphId</a>, inputLayerName);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  inputBindings.push_back(inputBinding);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  }</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& outputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>)</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> outputBinding =</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  parser->GetNetworkOutputBindingInfo(params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62">m_SubgraphId</a>, outputLayerName);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  outputBindings.push_back(outputBinding);</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  }</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>  <span class="keywordflow">return</span> network;</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> };</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="preprocessor">#endif</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="preprocessor">#if defined(ARMNN_ONNX_PARSER)</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="keyword">struct </span><a class="code" href="struct_create_network_impl.html">CreateNetworkImpl</a><armnnOnnxParser::IOnnxParser></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> {</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keyword">using</span> IParser = <a class="code" href="classarmnn_onnx_parser_1_1_i_onnx_parser.html">armnnOnnxParser::IOnnxParser</a>;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keyword">using</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a> = <a class="code" href="struct_inference_model_internal_1_1_params.html">InferenceModelInternal::Params</a>;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">using</span> <a class="code" href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> = <a class="code" href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9">InferenceModelInternal::BindingPointInfo</a>;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">static</span> <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> Create(<span class="keyword">const</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a>& params,</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  std::vector<BindingPointInfo>& inputBindings,</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  std::vector<BindingPointInfo>& outputBindings)</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  {</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">const</span> std::string& modelPath = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a>;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="comment">// Create a network from a file on disk</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keyword">auto</span> parser(IParser::Create());</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network{<span class="keyword">nullptr</span>, [](<a class="code" href="classarmnn_1_1_i_network.html">armnn::INetwork</a> *){}};</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  {</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a>(<span class="stringliteral">"Parsing"</span>);</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  network = (params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a6bf2f586c403977d31c7d32d371918cf">m_IsModelBinary</a> ?</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  parser->CreateNetworkFromBinaryFile(modelPath.c_str()) :</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  parser->CreateNetworkFromTextFile(modelPath.c_str()));</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  }</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& inputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>)</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  {</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <a class="code" href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> inputBinding = parser->GetNetworkInputBindingInfo(inputLayerName);</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  inputBindings.push_back(inputBinding);</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  }</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> std::string& outputLayerName : params.<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>)</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  {</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> outputBinding = parser->GetNetworkOutputBindingInfo(outputLayerName);</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  outputBindings.push_back(outputBinding);</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  }</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span> </div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">return</span> network;</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span> };</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="keyword">template</span> <<span class="keyword">typename</span> IParser, <span class="keyword">typename</span> TDataType></div><div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="class_inference_model.html"> 316</a></span> <span class="keyword">class </span><a class="code" href="class_inference_model.html">InferenceModel</a></div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span> {</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="class_inference_model.html#af6964b8f91085191c5228d1a67db4523"> 319</a></span>  <span class="keyword">using</span> <a class="code" href="class_inference_model.html#af6964b8f91085191c5228d1a67db4523">DataType</a> = TDataType;</div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="class_inference_model.html#a2e61c7404108440828ef7a45f310e229"> 320</a></span>  <span class="keyword">using</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a> = <a class="code" href="struct_inference_model_internal_1_1_params.html">InferenceModelInternal::Params</a>;</div><div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="class_inference_model.html#ae3ca0528045df8958ce5dcdf9d1af041"> 321</a></span>  <span class="keyword">using</span> <a class="code" href="class_inference_model.html#ae3ca0528045df8958ce5dcdf9d1af041">QuantizationParams</a> = <a class="code" href="namespace_inference_model_internal.html#a6e713a319588c57fc854bc478f5ee13a">InferenceModelInternal::QuantizationParams</a>;</div><div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="class_inference_model.html#a9eb69ebdaf4ceb8014e7c8a540266100"> 322</a></span>  <span class="keyword">using</span> <a class="code" href="class_inference_model.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a> = boost::variant<std::vector<float>, std::vector<int>, std::vector<unsigned char>>;</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html"> 324</a></span>  <span class="keyword">struct </span><a class="code" href="struct_inference_model_1_1_command_line_options.html">CommandLineOptions</a></div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  {</div><div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#a2c0d69e50a4269073a6ce52c55a1a9bb"> 326</a></span>  std::string <a class="code" href="struct_inference_model_1_1_command_line_options.html#a2c0d69e50a4269073a6ce52c55a1a9bb">m_ModelDir</a>;</div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#a2b6e92b247e830ff78d04266ff130a92"> 327</a></span>  std::vector<std::string> <a class="code" href="struct_inference_model_1_1_command_line_options.html#a2b6e92b247e830ff78d04266ff130a92">m_ComputeDevices</a>;</div><div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#ae43cf4b5df0068ee6a9151c98947248b"> 328</a></span>  std::string <a class="code" href="struct_inference_model_1_1_command_line_options.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a>;</div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#aaae50a6c0f73e4c210c2e4331c439482"> 329</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_1_1_command_line_options.html#aaae50a6c0f73e4c210c2e4331c439482">m_VisualizePostOptimizationModel</a>;</div><div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#a513151623e8d448951a0b94ad1946fbe"> 330</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_inference_model_1_1_command_line_options.html#a513151623e8d448951a0b94ad1946fbe">m_EnableFp16TurboMode</a>;</div><div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#a237e6ca9811ae2195fbe8f30aa696e5b"> 331</a></span>  std::string <a class="code" href="struct_inference_model_1_1_command_line_options.html#a237e6ca9811ae2195fbe8f30aa696e5b">m_Labels</a>;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="struct_inference_model_1_1_command_line_options.html#a56f7be77245196289f2bf0cce1dca31c"> 333</a></span>  std::vector<armnn::BackendId> <a class="code" href="struct_inference_model_1_1_command_line_options.html#a56f7be77245196289f2bf0cce1dca31c">GetComputeDevicesAsBackendIds</a>()</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  {</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  std::vector<armnn::BackendId> backendIds;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  std::copy(m_ComputeDevices.begin(), m_ComputeDevices.end(), std::back_inserter(backendIds));</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordflow">return</span> backendIds;</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  }</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  };</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span> </div><div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="class_inference_model.html#afdd8d34e58b7a2dbf29e30d228c475a3"> 341</a></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_inference_model.html#afdd8d34e58b7a2dbf29e30d228c475a3">AddCommandLineOptions</a>(boost::program_options::options_description& desc, <a class="code" href="struct_inference_model_1_1_command_line_options.html">CommandLineOptions</a>& <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>)</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  {</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keyword">namespace </span>po = boost::program_options;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keyword">const</span> std::vector<std::string> defaultComputes = { <span class="stringliteral">"CpuAcc"</span>, <span class="stringliteral">"CpuRef"</span> };</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">const</span> std::string backendsMessage = <span class="stringliteral">"Which device to run layers on by default. Possible choices: "</span></div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  + <a class="code" href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a>().<a class="code" href="classarmnn_1_1_backend_registry.html#ae1de2f7ca1db17f45f97155e239b8b45">GetBackendIdsAsString</a>();</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  desc.add_options()</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  (<span class="stringliteral">"model-dir,m"</span>, po::value<std::string>(&options.<a class="code" href="struct_inference_model_1_1_command_line_options.html#a2c0d69e50a4269073a6ce52c55a1a9bb">m_ModelDir</a>)->required(),</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="stringliteral">"Path to directory containing model files (.caffemodel/.prototxt/.tflite)"</span>)</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  (<span class="stringliteral">"compute,c"</span>, po::value<std::vector<std::string>>(&options.<a class="code" href="struct_inference_model_1_1_command_line_options.html#a2b6e92b247e830ff78d04266ff130a92">m_ComputeDevices</a>)-></div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  default_value(defaultComputes, boost::algorithm::join(defaultComputes, <span class="stringliteral">", "</span>))-></div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  multitoken(), backendsMessage.c_str())</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  (<span class="stringliteral">"dynamic-backends-path,b"</span>, po::value(&options.<a class="code" href="struct_inference_model_1_1_command_line_options.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a>),</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="stringliteral">"Path where to load any available dynamic backend from. "</span></div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="stringliteral">"If left empty (the default), dynamic backends will not be used."</span>)</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  (<span class="stringliteral">"labels,l"</span>, po::value<std::string>(&options.<a class="code" href="struct_inference_model_1_1_command_line_options.html#a237e6ca9811ae2195fbe8f30aa696e5b">m_Labels</a>),</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="stringliteral">"Text file containing one image filename - correct label pair per line, "</span></div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="stringliteral">"used to test the accuracy of the network."</span>)</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  (<span class="stringliteral">"visualize-optimized-model,v"</span>,</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  po::value<bool>(&options.<a class="code" href="struct_inference_model_1_1_command_line_options.html#aaae50a6c0f73e4c210c2e4331c439482">m_VisualizePostOptimizationModel</a>)->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="stringliteral">"Produce a dot file useful for visualizing the graph post optimization."</span></div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="stringliteral">"The file will have the same name as the model with the .dot extention."</span>)</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  (<span class="stringliteral">"fp16-turbo-mode"</span>, po::value<bool>(&options.<a class="code" href="struct_inference_model_1_1_command_line_options.html#a513151623e8d448951a0b94ad1946fbe">m_EnableFp16TurboMode</a>)->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="stringliteral">"If this option is enabled FP32 layers, weights and biases will be converted "</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="stringliteral">"to FP16 where the backend supports it."</span>);</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  }</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span> </div><div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="class_inference_model.html#a5a211a676b879363f0c5001698a14c50"> 371</a></span>  <a class="code" href="class_inference_model.html#a5a211a676b879363f0c5001698a14c50">InferenceModel</a>(<span class="keyword">const</span> <a class="code" href="struct_inference_model_internal_1_1_params.html">Params</a>& params,</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordtype">bool</span> enableProfiling,</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keyword">const</span> std::string& dynamicBackendsPath,</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keyword">const</span> std::shared_ptr<armnn::IRuntime>& runtime = <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  : <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#affc4c5e8c0f3e0fac268deec9b481941">m_EnableProfiling</a>(enableProfiling)</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  , <a class="code" href="struct_inference_model_internal_1_1_params.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a>(dynamicBackendsPath)</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keywordflow">if</span> (runtime)</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  {</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  m_Runtime = runtime;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  }</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  {</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">armnn::IRuntime::CreationOptions</a> <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a2fe8c3eadf4f4f9c0c664a24a2a298f9">m_EnableGpuProfiling</a> = <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#affc4c5e8c0f3e0fac268deec9b481941">m_EnableProfiling</a>;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = <a class="code" href="struct_inference_model_internal_1_1_params.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a>;</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  m_Runtime = std::move(<a class="code" href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a>(options));</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  }</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  std::string invalidBackends;</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">if</span> (!CheckRequestedBackendsAreValid(params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a2d54e6252c1c9a0e29f7706ba03b2b74">m_ComputeDevices</a>, <a class="code" href="classarmnn_1_1_optional.html">armnn::Optional<std::string&></a>(invalidBackends)))</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  {</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(<span class="stringliteral">"Some backend IDs are invalid: "</span> + invalidBackends);</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  }</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> </div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network = <a class="code" href="struct_create_network_impl.html#a4cbece5e7793be85f9a1e8a0ab9e02f8">CreateNetworkImpl<IParser>::Create</a>(params, <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>, <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>);</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">armnn::IOptimizedNetworkPtr</a> optNet{<span class="keyword">nullptr</span>, [](<a class="code" href="classarmnn_1_1_i_optimized_network.html">armnn::IOptimizedNetwork</a>*){}};</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  {</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a>(<span class="stringliteral">"Optimizing"</span>);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <a class="code" href="structarmnn_1_1_optimizer_options.html">armnn::OptimizerOptions</a> <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  options.<a class="code" href="structarmnn_1_1_optimizer_options.html#a6e1a42622ca43dafc7ba8e684c016eb4">m_ReduceFp32ToFp16</a> = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a513151623e8d448951a0b94ad1946fbe">m_EnableFp16TurboMode</a>;</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  options.<a class="code" href="structarmnn_1_1_optimizer_options.html#a69eb14082d40fa0a3cff50457344a5e0">m_Debug</a> = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#acde2af8cbbd224a9f94e509ca538a775">m_PrintIntermediateLayers</a>;</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  optNet = <a class="code" href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">armnn::Optimize</a>(*network, params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a2d54e6252c1c9a0e29f7706ba03b2b74">m_ComputeDevices</a>, m_Runtime->GetDeviceSpec(), <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>);</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">if</span> (!optNet)</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  {</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(<span class="stringliteral">"Optimize returned nullptr"</span>);</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  }</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  }</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span> </div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">if</span> (params.<a class="code" href="struct_inference_model_internal_1_1_params.html#aaae50a6c0f73e4c210c2e4331c439482">m_VisualizePostOptimizationModel</a>)</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  {</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  boost::filesystem::path filename = params.<a class="code" href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">m_ModelPath</a>;</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  filename.replace_extension(<span class="stringliteral">"dot"</span>);</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  std::fstream file(filename.c_str(), std::ios_base::out);</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  optNet->SerializeToDot(file);</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  }</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span> </div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a> ret;</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  {</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <a class="code" href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a>(<span class="stringliteral">"LoadNetwork"</span>);</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  ret = m_Runtime->LoadNetwork(m_NetworkIdentifier, std::move(optNet));</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  }</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  <span class="keywordflow">if</span> (ret == <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Status::Failure</a>)</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  {</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(<span class="stringliteral">"IRuntime::LoadNetwork failed"</span>);</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  }</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  }</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span> </div><div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="class_inference_model.html#a262185c43532d5728c4bd7890f3b2235"> 433</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_inference_model.html#a262185c43532d5728c4bd7890f3b2235">CheckInputIndexIsValid</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputIndex)<span class="keyword"> const</span></div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="keywordflow">if</span> (<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>.size() < inputIndex + 1)</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  {</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(boost::str(boost::format(<span class="stringliteral">"Input index out of range: %1%"</span>) % inputIndex));</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  }</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  }</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> </div><div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="class_inference_model.html#a72a6db08ffca660ece7c2d86e2a14daa"> 441</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_inference_model.html#a72a6db08ffca660ece7c2d86e2a14daa">CheckOutputIndexIsValid</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputIndex)<span class="keyword"> const</span></div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">if</span> (<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>.size() < outputIndex + 1)</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  {</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(boost::str(boost::format(<span class="stringliteral">"Output index out of range: %1%"</span>) % outputIndex));</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  }</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  }</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span> </div><div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="class_inference_model.html#a679e4b22a845c8d7f58f6ca6a5df625f"> 449</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_inference_model.html#a679e4b22a845c8d7f58f6ca6a5df625f">GetInputSize</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputIndex = 0u)<span class="keyword"> const</span></div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  CheckInputIndexIsValid(inputIndex);</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keywordflow">return</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>[inputIndex].second.GetNumElements();</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  }</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span> </div><div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="class_inference_model.html#a8282dddf88e0deb3c414235e20a6cb2c"> 455</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_inference_model.html#a8282dddf88e0deb3c414235e20a6cb2c">GetOutputSize</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputIndex = 0u)<span class="keyword"> const</span></div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  CheckOutputIndexIsValid(outputIndex);</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <span class="keywordflow">return</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>[outputIndex].second.GetNumElements();</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  }</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> </div><div class="line"><a name="l00461"></a><span class="lineno"><a class="line" href="class_inference_model.html#a7af4f6c4d5f8720a6ea093a825722227"> 461</a></span>  std::chrono::duration<double, std::milli> <a class="code" href="class_inference_model.html#a7af4f6c4d5f8720a6ea093a825722227">Run</a>(</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="keyword">const</span> std::vector<TContainer>& inputContainers,</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  std::vector<TContainer>& outputContainers)</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  {</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < outputContainers.size(); ++i)</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  {</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> expectedOutputDataSize = GetOutputSize(i);</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span> </div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  boost::apply_visitor([expectedOutputDataSize, i](<span class="keyword">auto</span>&& value)</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  {</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> actualOutputDataSize = boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(value.size());</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="keywordflow">if</span> (actualOutputDataSize < expectedOutputDataSize)</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  {</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputIndex = boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(i);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  boost::str(boost::format(<span class="stringliteral">"Not enough data for output #%1%: expected "</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="stringliteral">"%2% elements, got %3%"</span>) % outputIndex % expectedOutputDataSize % actualOutputDataSize));</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  }</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  },</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  outputContainers[i]);</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  }</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> </div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  std::shared_ptr<armnn::IProfiler> profiler = m_Runtime->GetProfiler(m_NetworkIdentifier);</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">if</span> (profiler)</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  {</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  profiler->EnableProfiling(<a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#affc4c5e8c0f3e0fac268deec9b481941">m_EnableProfiling</a>);</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  }</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span> </div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="comment">// Start timer to record inference time in EnqueueWorkload (in milliseconds)</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <span class="keyword">const</span> <span class="keyword">auto</span> start_time = GetCurrentTime();</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a> ret = m_Runtime->EnqueueWorkload(m_NetworkIdentifier,</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <a class="code" href="namespacearmnn_utils.html#ad5310a199d4969927169ed084b1f6c28">MakeInputTensors</a>(inputContainers),</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <a class="code" href="namespacearmnn_utils.html#ad4efd5a7fa660df5246466d83517220d">MakeOutputTensors</a>(outputContainers));</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> </div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <span class="keyword">const</span> <span class="keyword">auto</span> end_time = GetCurrentTime();</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span> </div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="comment">// if profiling is enabled print out the results</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <span class="keywordflow">if</span> (profiler && profiler->IsProfilingEnabled())</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  {</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  profiler->Print(std::cout);</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  }</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keywordflow">if</span> (ret == <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Status::Failure</a>)</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  {</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(<span class="stringliteral">"IRuntime::EnqueueWorkload failed"</span>);</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  }</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  {</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="keywordflow">return</span> std::chrono::duration<double, std::milli>(end_time - start_time);</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  }</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  }</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div><div class="line"><a name="l00514"></a><span class="lineno"><a class="line" href="class_inference_model.html#a9a28e0c17604e5a945409f994c020212"> 514</a></span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a>& <a class="code" href="class_inference_model.html#a9a28e0c17604e5a945409f994c020212">GetInputBindingInfo</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputIndex = 0u)<span class="keyword"> const</span></div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  CheckInputIndexIsValid(inputIndex);</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <span class="keywordflow">return</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>[inputIndex];</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  }</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span> </div><div class="line"><a name="l00520"></a><span class="lineno"><a class="line" href="class_inference_model.html#a0e0f3330fc1e6c1fa1d99d731490c483"> 520</a></span>  <span class="keyword">const</span> std::vector<armnn::BindingPointInfo>& <a class="code" href="class_inference_model.html#a0e0f3330fc1e6c1fa1d99d731490c483">GetInputBindingInfos</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="keywordflow">return</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  }</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span> </div><div class="line"><a name="l00525"></a><span class="lineno"><a class="line" href="class_inference_model.html#a325f1c17b5ff2153cae944e3c62820a2"> 525</a></span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a>& <a class="code" href="class_inference_model.html#a325f1c17b5ff2153cae944e3c62820a2">GetOutputBindingInfo</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputIndex = 0u)<span class="keyword"> const</span></div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  CheckOutputIndexIsValid(outputIndex);</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>[outputIndex];</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  }</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span> </div><div class="line"><a name="l00531"></a><span class="lineno"><a class="line" href="class_inference_model.html#ac0b73049e00e7013f5cc6ae7fcaedcd4"> 531</a></span>  <span class="keyword">const</span> std::vector<armnn::BindingPointInfo>& <a class="code" href="class_inference_model.html#ac0b73049e00e7013f5cc6ae7fcaedcd4">GetOutputBindingInfos</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordflow">return</span> <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  }</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div><div class="line"><a name="l00536"></a><span class="lineno"><a class="line" href="class_inference_model.html#a1a09727b3f781272e702516fffb7d97f"> 536</a></span>  <a class="code" href="class_inference_model.html#ae3ca0528045df8958ce5dcdf9d1af041">QuantizationParams</a> <a class="code" href="class_inference_model.html#a1a09727b3f781272e702516fffb7d97f">GetQuantizationParams</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputIndex = 0u)<span class="keyword"> const</span></div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  CheckOutputIndexIsValid(outputIndex);</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordflow">return</span> std::make_pair(<a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>[outputIndex].second.GetQuantizationScale(),</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>[outputIndex].second.GetQuantizationOffset());</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  }</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span> </div><div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="class_inference_model.html#a066580d185559e2efdcb6cedd1709b9c"> 543</a></span>  <a class="code" href="class_inference_model.html#ae3ca0528045df8958ce5dcdf9d1af041">QuantizationParams</a> <a class="code" href="class_inference_model.html#a066580d185559e2efdcb6cedd1709b9c">GetInputQuantizationParams</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputIndex = 0u)<span class="keyword"> const</span></div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  CheckInputIndexIsValid(inputIndex);</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <span class="keywordflow">return</span> std::make_pair(<a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>[inputIndex].second.GetQuantizationScale(),</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>[inputIndex].second.GetQuantizationOffset());</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  }</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span> </div><div class="line"><a name="l00550"></a><span class="lineno"><a class="line" href="class_inference_model.html#ade1a8545be49b1c10e724ea8536907c7"> 550</a></span>  std::vector<QuantizationParams> <a class="code" href="class_inference_model.html#ade1a8545be49b1c10e724ea8536907c7">GetAllQuantizationParams</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  std::vector<QuantizationParams> quantizationParams;</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0u; i < <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>.size(); i++)</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  {</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  quantizationParams.push_back(GetQuantizationParams(i));</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  }</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="keywordflow">return</span> quantizationParams;</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  }</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> </div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <a class="code" href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> m_NetworkIdentifier;</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  std::shared_ptr<armnn::IRuntime> m_Runtime;</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span> </div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  std::vector<armnn::BindingPointInfo> <a class="code" href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">m_InputBindings</a>;</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  std::vector<armnn::BindingPointInfo> <a class="code" href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">m_OutputBindings</a>;</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordtype">bool</span> <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#affc4c5e8c0f3e0fac268deec9b481941">m_EnableProfiling</a>;</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  std::string <a class="code" href="struct_inference_model_internal_1_1_params.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a>;</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span> </div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keyword">template</span><<span class="keyword">typename</span> TContainer></div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <a class="code" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a> <a class="code" href="namespacearmnn_utils.html#ad5310a199d4969927169ed084b1f6c28">MakeInputTensors</a>(<span class="keyword">const</span> std::vector<TContainer>& inputDataContainers)</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  {</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_utils.html#ad5310a199d4969927169ed084b1f6c28">armnnUtils::MakeInputTensors</a>(m_InputBindings, inputDataContainers);</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  }</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span> </div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keyword">template</span><<span class="keyword">typename</span> TContainer></div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <a class="code" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a> <a class="code" href="namespacearmnn_utils.html#ad4efd5a7fa660df5246466d83517220d">MakeOutputTensors</a>(std::vector<TContainer>& outputDataContainers)</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  {</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_utils.html#ad4efd5a7fa660df5246466d83517220d">armnnUtils::MakeOutputTensors</a>(m_OutputBindings, outputDataContainers);</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  }</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> </div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  std::chrono::high_resolution_clock::time_point GetCurrentTime()</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  {</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="keywordflow">return</span> std::chrono::high_resolution_clock::now();</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  }</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span> </div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  std::chrono::duration<double, std::milli> GetTimeDuration(</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  std::chrono::high_resolution_clock::time_point& start_time,</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  std::chrono::high_resolution_clock::time_point& end_time)</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  {</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <span class="keywordflow">return</span> std::chrono::duration<double, std::milli>(end_time - start_time);</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  }</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span> </div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span> };</div><div class="ttc" id="_i_onnx_parser_8hpp_html"><div class="ttname"><a href="_i_onnx_parser_8hpp.html">IOnnxParser.hpp</a></div></div> |
| 88 | <div class="ttc" id="namespacearmnn_utils_html_ad4efd5a7fa660df5246466d83517220d"><div class="ttname"><a href="namespacearmnn_utils.html#ad4efd5a7fa660df5246466d83517220d">armnnUtils::MakeOutputTensors</a></div><div class="ttdeci">armnn::OutputTensors MakeOutputTensors(const std::vector< armnn::BindingPointInfo > &outputBindings, std::vector< TContainer > &outputDataContainers)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_i_o_utils_8hpp_source.html#l00056">TensorIOUtils.hpp:56</a></div></div> |
| 89 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html">InferenceModelInternal::Params</a></div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00082">InferenceModel.hpp:82</a></div></div> |
| 90 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a4fa312cf0d60fbd3988a7c76ab8e2980"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a4fa312cf0d60fbd3988a7c76ab8e2980">InferenceModelInternal::Params::m_ModelPath</a></div><div class="ttdeci">std::string m_ModelPath</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00084">InferenceModel.hpp:84</a></div></div> |
| 91 | <div class="ttc" id="namespacearmnn_html_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00026">Types.hpp:26</a></div></div> |
| 92 | <div class="ttc" id="class_inference_model_html_a72a6db08ffca660ece7c2d86e2a14daa"><div class="ttname"><a href="class_inference_model.html#a72a6db08ffca660ece7c2d86e2a14daa">InferenceModel::CheckOutputIndexIsValid</a></div><div class="ttdeci">void CheckOutputIndexIsValid(unsigned int outputIndex) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00441">InferenceModel.hpp:441</a></div></div> |
| 93 | <div class="ttc" id="classarmnn_1_1_backend_registry_html_ae1de2f7ca1db17f45f97155e239b8b45"><div class="ttname"><a href="classarmnn_1_1_backend_registry.html#ae1de2f7ca1db17f45f97155e239b8b45">armnn::BackendRegistry::GetBackendIdsAsString</a></div><div class="ttdeci">std::string GetBackendIdsAsString() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.html#l00076">BackendRegistry.cpp:76</a></div></div> |
| 94 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_aaae50a6c0f73e4c210c2e4331c439482"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#aaae50a6c0f73e4c210c2e4331c439482">InferenceModelInternal::Params::m_VisualizePostOptimizationModel</a></div><div class="ttdeci">bool m_VisualizePostOptimizationModel</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00092">InferenceModel.hpp:92</a></div></div> |
| 95 | <div class="ttc" id="namespacearmnn_html_a8f091a512915d1cb29a4ebf13dfc53ea"><div class="ttname"><a href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00226">Tensor.hpp:226</a></div></div> |
| 96 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_a513151623e8d448951a0b94ad1946fbe"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#a513151623e8d448951a0b94ad1946fbe">InferenceModel::CommandLineOptions::m_EnableFp16TurboMode</a></div><div class="ttdeci">bool m_EnableFp16TurboMode</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00330">InferenceModel.hpp:330</a></div></div> |
| 97 | <div class="ttc" id="namespacearmnn_html_a82e98ef05fd67036d1195ba17174d685"><div class="ttname"><a href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">armnn::Optimize</a></div><div class="ttdeci">IOptimizedNetworkPtr Optimize(const INetwork &network, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptions &options=OptimizerOptions(), Optional< std::vector< std::string > &> messages=EmptyOptional())</div><div class="ttdef"><b>Definition:</b> <a href="_network_8cpp_source.html#l00807">Network.cpp:807</a></div></div> |
| 98 | <div class="ttc" id="class_inference_model_html"><div class="ttname"><a href="class_inference_model.html">InferenceModel</a></div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00316">InferenceModel.hpp:316</a></div></div> |
| 99 | <div class="ttc" id="class_inference_model_html_a679e4b22a845c8d7f58f6ca6a5df625f"><div class="ttname"><a href="class_inference_model.html#a679e4b22a845c8d7f58f6ca6a5df625f">InferenceModel::GetInputSize</a></div><div class="ttdeci">unsigned int GetInputSize(unsigned int inputIndex=0u) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00449">InferenceModel.hpp:449</a></div></div> |
| 100 | <div class="ttc" id="class_inference_model_html_a0e0f3330fc1e6c1fa1d99d731490c483"><div class="ttname"><a href="class_inference_model.html#a0e0f3330fc1e6c1fa1d99d731490c483">InferenceModel::GetInputBindingInfos</a></div><div class="ttdeci">const std::vector< armnn::BindingPointInfo > & GetInputBindingInfos() const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00520">InferenceModel.hpp:520</a></div></div> |
| 101 | <div class="ttc" id="classarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00270">Optional.hpp:270</a></div></div> |
| 102 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_aaae50a6c0f73e4c210c2e4331c439482"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#aaae50a6c0f73e4c210c2e4331c439482">InferenceModel::CommandLineOptions::m_VisualizePostOptimizationModel</a></div><div class="ttdeci">bool m_VisualizePostOptimizationModel</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00329">InferenceModel.hpp:329</a></div></div> |
| 103 | <div class="ttc" id="structarmnn_1_1_optimizer_options_html_a69eb14082d40fa0a3cff50457344a5e0"><div class="ttname"><a href="structarmnn_1_1_optimizer_options.html#a69eb14082d40fa0a3cff50457344a5e0">armnn::OptimizerOptions::m_Debug</a></div><div class="ttdeci">bool m_Debug</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00576">INetwork.hpp:576</a></div></div> |
| 104 | <div class="ttc" id="namespace_inference_model_internal_html_a9084adbf804022c874039ad40d1939e9"><div class="ttname"><a href="namespace_inference_model_internal.html#a9084adbf804022c874039ad40d1939e9">InferenceModelInternal::BindingPointInfo</a></div><div class="ttdeci">armnn::BindingPointInfo BindingPointInfo</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00078">InferenceModel.hpp:78</a></div></div> |
| 105 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a2d4582aa74998c397bd064ae73745b62"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a2d4582aa74998c397bd064ae73745b62">InferenceModelInternal::Params::m_SubgraphId</a></div><div class="ttdeci">size_t m_SubgraphId</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00090">InferenceModel.hpp:90</a></div></div> |
| 106 | <div class="ttc" id="_arm_n_n_8hpp_html"><div class="ttname"><a href="_arm_n_n_8hpp.html">ArmNN.hpp</a></div></div> |
| 107 | <div class="ttc" id="namespacearmnn_html_a280670a263dc4fd40491f6d0a2737f44"><div class="ttname"><a href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a></div><div class="ttdeci">std::pair< armnn::LayerBindingId, armnn::TensorInfo > BindingPointInfo</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00146">Tensor.hpp:146</a></div></div> |
| 108 | <div class="ttc" id="class_inference_model_html_a325f1c17b5ff2153cae944e3c62820a2"><div class="ttname"><a href="class_inference_model.html#a325f1c17b5ff2153cae944e3c62820a2">InferenceModel::GetOutputBindingInfo</a></div><div class="ttdeci">const armnn::BindingPointInfo & GetOutputBindingInfo(unsigned int outputIndex=0u) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00525">InferenceModel.hpp:525</a></div></div> |
| 109 | <div class="ttc" id="namespacearmnn_utils_html_ad5310a199d4969927169ed084b1f6c28"><div class="ttname"><a href="namespacearmnn_utils.html#ad5310a199d4969927169ed084b1f6c28">armnnUtils::MakeInputTensors</a></div><div class="ttdeci">armnn::InputTensors MakeInputTensors(const std::vector< armnn::BindingPointInfo > &inputBindings, const std::vector< TContainer > &inputDataContainers)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_i_o_utils_8hpp_source.html#l00017">TensorIOUtils.hpp:17</a></div></div> |
| 110 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_a2c0d69e50a4269073a6ce52c55a1a9bb"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#a2c0d69e50a4269073a6ce52c55a1a9bb">InferenceModel::CommandLineOptions::m_ModelDir</a></div><div class="ttdeci">std::string m_ModelDir</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00326">InferenceModel.hpp:326</a></div></div> |
| 111 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_a237e6ca9811ae2195fbe8f30aa696e5b"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#a237e6ca9811ae2195fbe8f30aa696e5b">InferenceModel::CommandLineOptions::m_Labels</a></div><div class="ttdeci">std::string m_Labels</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00331">InferenceModel.hpp:331</a></div></div> |
| 112 | <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div> |
| 113 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_a56f7be77245196289f2bf0cce1dca31c"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#a56f7be77245196289f2bf0cce1dca31c">InferenceModel::CommandLineOptions::GetComputeDevicesAsBackendIds</a></div><div class="ttdeci">std::vector< armnn::BackendId > GetComputeDevicesAsBackendIds()</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00333">InferenceModel.hpp:333</a></div></div> |
| 114 | <div class="ttc" id="namespace_inference_model_internal_html_a6e713a319588c57fc854bc478f5ee13a"><div class="ttname"><a href="namespace_inference_model_internal.html#a6e713a319588c57fc854bc478f5ee13a">InferenceModelInternal::QuantizationParams</a></div><div class="ttdeci">std::pair< float, int32_t > QuantizationParams</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00080">InferenceModel.hpp:80</a></div></div> |
| 115 | <div class="ttc" id="class_inference_model_html_a262185c43532d5728c4bd7890f3b2235"><div class="ttname"><a href="class_inference_model.html#a262185c43532d5728c4bd7890f3b2235">InferenceModel::CheckInputIndexIsValid</a></div><div class="ttdeci">void CheckInputIndexIsValid(unsigned int inputIndex) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00433">InferenceModel.hpp:433</a></div></div> |
| 116 | <div class="ttc" id="class_inference_model_html_a7af4f6c4d5f8720a6ea093a825722227"><div class="ttname"><a href="class_inference_model.html#a7af4f6c4d5f8720a6ea093a825722227">InferenceModel::Run</a></div><div class="ttdeci">std::chrono::duration< double, std::milli > Run(const std::vector< TContainer > &inputContainers, std::vector< TContainer > &outputContainers)</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00461">InferenceModel.hpp:461</a></div></div> |
| 117 | <div class="ttc" id="structarmnn_deserializer_1_1_binding_point_info_html"><div class="ttname"><a href="structarmnn_deserializer_1_1_binding_point_info.html">armnnDeserializer::BindingPointInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_deserializer_8hpp_source.html#l00018">IDeserializer.hpp:18</a></div></div> |
| 118 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_aad2ac35d4cb83ee4da9fad5fbcb907e0"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#aad2ac35d4cb83ee4da9fad5fbcb907e0">InferenceModelInternal::Params::m_InputBindings</a></div><div class="ttdeci">std::vector< std::string > m_InputBindings</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00085">InferenceModel.hpp:85</a></div></div> |
| 119 | <div class="ttc" id="_i_deserializer_8hpp_html"><div class="ttname"><a href="_i_deserializer_8hpp.html">IDeserializer.hpp</a></div></div> |
| 120 | <div class="ttc" id="class_inference_model_html_ade1a8545be49b1c10e724ea8536907c7"><div class="ttname"><a href="class_inference_model.html#ade1a8545be49b1c10e724ea8536907c7">InferenceModel::GetAllQuantizationParams</a></div><div class="ttdeci">std::vector< QuantizationParams > GetAllQuantizationParams() const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00550">InferenceModel.hpp:550</a></div></div> |
| 121 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_a2b6e92b247e830ff78d04266ff130a92"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#a2b6e92b247e830ff78d04266ff130a92">InferenceModel::CommandLineOptions::m_ComputeDevices</a></div><div class="ttdeci">std::vector< std::string > m_ComputeDevices</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00327">InferenceModel.hpp:327</a></div></div> |
| 122 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a5c7f0c083da98e7b6e9ba79d2fcd985d"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a5c7f0c083da98e7b6e9ba79d2fcd985d">InferenceModelInternal::Params::m_ParseUnsupported</a></div><div class="ttdeci">bool m_ParseUnsupported</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00095">InferenceModel.hpp:95</a></div></div> |
| 123 | <div class="ttc" id="_i_tf_lite_parser_8hpp_html"><div class="ttname"><a href="_i_tf_lite_parser_8hpp.html">ITfLiteParser.hpp</a></div></div> |
| 124 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a7974597e9d3c848fd265d9445f7cf8cb"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a7974597e9d3c848fd265d9445f7cf8cb">InferenceModelInternal::Params::Params</a></div><div class="ttdeci">Params()</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00097">InferenceModel.hpp:97</a></div></div> |
| 125 | <div class="ttc" id="class_inference_model_html_ac0b73049e00e7013f5cc6ae7fcaedcd4"><div class="ttname"><a href="class_inference_model.html#ac0b73049e00e7013f5cc6ae7fcaedcd4">InferenceModel::GetOutputBindingInfos</a></div><div class="ttdeci">const std::vector< armnn::BindingPointInfo > & GetOutputBindingInfos() const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00531">InferenceModel.hpp:531</a></div></div> |
| 126 | <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> |
| 127 | <div class="ttc" id="classarmnn_1_1_backend_registry_html_a570cb1835ec73000a7954ba75257904f"><div class="ttname"><a href="classarmnn_1_1_backend_registry.html#a570cb1835ec73000a7954ba75257904f">armnn::BackendRegistry::GetBackendIds</a></div><div class="ttdeci">BackendIdSet GetBackendIds() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.html#l00066">BackendRegistry.cpp:66</a></div></div> |
| 128 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_acde2af8cbbd224a9f94e509ca538a775"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#acde2af8cbbd224a9f94e509ca538a775">InferenceModelInternal::Params::m_PrintIntermediateLayers</a></div><div class="ttdeci">bool m_PrintIntermediateLayers</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00094">InferenceModel.hpp:94</a></div></div> |
| 129 | <div class="ttc" id="classarmnn_1_1_i_network_html"><div class="ttname"><a href="classarmnn_1_1_i_network.html">armnn::INetwork</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00089">INetwork.hpp:89</a></div></div> |
| 130 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a2d54e6252c1c9a0e29f7706ba03b2b74"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a2d54e6252c1c9a0e29f7706ba03b2b74">InferenceModelInternal::Params::m_ComputeDevices</a></div><div class="ttdeci">std::vector< armnn::BackendId > m_ComputeDevices</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00088">InferenceModel.hpp:88</a></div></div> |
| 131 | <div class="ttc" id="namespace_inference_model_internal_html"><div class="ttname"><a href="namespace_inference_model_internal.html">InferenceModelInternal</a></div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00076">InferenceModel.hpp:76</a></div></div> |
| 132 | <div class="ttc" id="class_inference_model_html_a5a211a676b879363f0c5001698a14c50"><div class="ttname"><a href="class_inference_model.html#a5a211a676b879363f0c5001698a14c50">InferenceModel::InferenceModel</a></div><div class="ttdeci">InferenceModel(const Params &params, bool enableProfiling, const std::string &dynamicBackendsPath, const std::shared_ptr< armnn::IRuntime > &runtime=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00371">InferenceModel.hpp:371</a></div></div> |
| 133 | <div class="ttc" id="class_inference_model_html_a1a09727b3f781272e702516fffb7d97f"><div class="ttname"><a href="class_inference_model.html#a1a09727b3f781272e702516fffb7d97f">InferenceModel::GetQuantizationParams</a></div><div class="ttdeci">QuantizationParams GetQuantizationParams(unsigned int outputIndex=0u) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00536">InferenceModel.hpp:536</a></div></div> |
| 134 | <div class="ttc" id="namespacearmnn_html_aa01bce88f89975a5a031db4cc8861527"><div class="ttname"><a href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00225">Tensor.hpp:225</a></div></div> |
| 135 | <div class="ttc" id="class_inference_model_html_a9a28e0c17604e5a945409f994c020212"><div class="ttname"><a href="class_inference_model.html#a9a28e0c17604e5a945409f994c020212">InferenceModel::GetInputBindingInfo</a></div><div class="ttdeci">const armnn::BindingPointInfo & GetInputBindingInfo(unsigned int inputIndex=0u) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00514">InferenceModel.hpp:514</a></div></div> |
| 136 | <div class="ttc" id="_heap_profiling_8hpp_html_aeeb927880fc4ffc2eea754a67d884a53"><div class="ttname"><a href="_heap_profiling_8hpp.html#aeeb927880fc4ffc2eea754a67d884a53">ARMNN_SCOPED_HEAP_PROFILING</a></div><div class="ttdeci">#define ARMNN_SCOPED_HEAP_PROFILING(TAG)</div><div class="ttdef"><b>Definition:</b> <a href="_heap_profiling_8hpp_source.html#l00045">HeapProfiling.hpp:45</a></div></div> |
| 137 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_affc4c5e8c0f3e0fac268deec9b481941"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#affc4c5e8c0f3e0fac268deec9b481941">m_EnableProfiling</a></div><div class="ttdeci">options m_EnableProfiling</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.html#l00046">FileOnlyProfilingDecoratorTests.cpp:46</a></div></div> |
| 138 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_html_a2fe8c3eadf4f4f9c0c664a24a2a298f9"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a2fe8c3eadf4f4f9c0c664a24a2a298f9">armnn::IRuntime::CreationOptions::m_EnableGpuProfiling</a></div><div class="ttdeci">bool m_EnableGpuProfiling</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00054">IRuntime.hpp:54</a></div></div> |
| 139 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a513151623e8d448951a0b94ad1946fbe"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a513151623e8d448951a0b94ad1946fbe">InferenceModelInternal::Params::m_EnableFp16TurboMode</a></div><div class="ttdeci">bool m_EnableFp16TurboMode</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00093">InferenceModel.hpp:93</a></div></div> |
| 140 | <div class="ttc" id="structarmnn_1_1_empty_optional_html"><div class="ttname"><a href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00032">Optional.hpp:32</a></div></div> |
| 141 | <div class="ttc" id="class_inference_model_html_a066580d185559e2efdcb6cedd1709b9c"><div class="ttname"><a href="class_inference_model.html#a066580d185559e2efdcb6cedd1709b9c">InferenceModel::GetInputQuantizationParams</a></div><div class="ttdeci">QuantizationParams GetInputQuantizationParams(unsigned int inputIndex=0u) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00543">InferenceModel.hpp:543</a></div></div> |
| 142 | <div class="ttc" id="classarmnn_1_1_exception_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00046">Exceptions.hpp:46</a></div></div> |
| 143 | <div class="ttc" id="namespacearmnn_html_ace74f6f9feb95a964a49d79458232703"><div class="ttname"><a href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a></div><div class="ttdeci">std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00085">INetwork.hpp:85</a></div></div> |
| 144 | <div class="ttc" id="structarmnn_1_1_optimizer_options_html"><div class="ttname"><a href="structarmnn_1_1_optimizer_options.html">armnn::OptimizerOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00560">INetwork.hpp:560</a></div></div> |
| 145 | <div class="ttc" id="classarmnn_1_1_i_runtime_html_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00032">Runtime.cpp:32</a></div></div> |
| 146 | <div class="ttc" id="class_inference_model_html_af6964b8f91085191c5228d1a67db4523"><div class="ttname"><a href="class_inference_model.html#af6964b8f91085191c5228d1a67db4523">InferenceModel::DataType</a></div><div class="ttdeci">TDataType DataType</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00319">InferenceModel.hpp:319</a></div></div> |
| 147 | <div class="ttc" id="_tensor_i_o_utils_8hpp_html"><div class="ttname"><a href="_tensor_i_o_utils_8hpp.html">TensorIOUtils.hpp</a></div></div> |
| 148 | <div class="ttc" id="namespacearmnn_html_a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086"><div class="ttname"><a href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Status::Failure</a></div></div> |
| 149 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html#ae43cf4b5df0068ee6a9151c98947248b">InferenceModel::CommandLineOptions::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00328">InferenceModel.hpp:328</a></div></div> |
| 150 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#ae43cf4b5df0068ee6a9151c98947248b">InferenceModelInternal::Params::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00089">InferenceModel.hpp:89</a></div></div> |
| 151 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_a6bf2f586c403977d31c7d32d371918cf"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#a6bf2f586c403977d31c7d32d371918cf">InferenceModelInternal::Params::m_IsModelBinary</a></div><div class="ttdeci">bool m_IsModelBinary</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00091">InferenceModel.hpp:91</a></div></div> |
| 152 | <div class="ttc" id="_backend_registry_8hpp_html"><div class="ttname"><a href="_backend_registry_8hpp.html">BackendRegistry.hpp</a></div></div> |
| 153 | <div class="ttc" id="struct_create_network_impl_html_a4cbece5e7793be85f9a1e8a0ab9e02f8"><div class="ttname"><a href="struct_create_network_impl.html#a4cbece5e7793be85f9a1e8a0ab9e02f8">CreateNetworkImpl::Create</a></div><div class="ttdeci">static armnn::INetworkPtr Create(const Params &params, std::vector< armnn::BindingPointInfo > &inputBindings, std::vector< armnn::BindingPointInfo > &outputBindings)</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00116">InferenceModel.hpp:116</a></div></div> |
| 154 | <div class="ttc" id="class_inference_model_html_afdd8d34e58b7a2dbf29e30d228c475a3"><div class="ttname"><a href="class_inference_model.html#afdd8d34e58b7a2dbf29e30d228c475a3">InferenceModel::AddCommandLineOptions</a></div><div class="ttdeci">static void AddCommandLineOptions(boost::program_options::options_description &desc, CommandLineOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00341">InferenceModel.hpp:341</a></div></div> |
| 155 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_html_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.html#ae43cf4b5df0068ee6a9151c98947248b">armnn::IRuntime::CreationOptions::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00058">IRuntime.hpp:58</a></div></div> |
| 156 | <div class="ttc" id="classarmnn_deserializer_1_1_i_deserializer_html"><div class="ttname"><a href="classarmnn_deserializer_1_1_i_deserializer.html">armnnDeserializer::IDeserializer</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_deserializer_8hpp_source.html#l00027">IDeserializer.hpp:27</a></div></div> |
| 157 | <div class="ttc" id="namespacearmnn_html_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.html#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.html#l00191">BackendId.hpp:191</a></div></div> |
| 158 | <div class="ttc" id="classarmnn_1_1_i_optimized_network_html"><div class="ttname"><a href="classarmnn_1_1_i_optimized_network.html">armnn::IOptimizedNetwork</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00546">INetwork.hpp:546</a></div></div> |
| 159 | <div class="ttc" id="structarmnn_deserializer_1_1_binding_point_info_html_aa308d10e76e29f09e44a933a2d091a79"><div class="ttname"><a href="structarmnn_deserializer_1_1_binding_point_info.html#aa308d10e76e29f09e44a933a2d091a79">armnnDeserializer::BindingPointInfo::m_TensorInfo</a></div><div class="ttdeci">armnn::TensorInfo m_TensorInfo</div><div class="ttdef"><b>Definition:</b> <a href="_i_deserializer_8hpp_source.html#l00021">IDeserializer.hpp:21</a></div></div> |
| 160 | <div class="ttc" id="namespacearmnn_html_a674efcf6cbdb9e831d653ff0e821fb38"><div class="ttname"><a href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">armnn::IOptimizedNetworkPtr</a></div><div class="ttdeci">std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00544">INetwork.hpp:544</a></div></div> |
| 161 | <div class="ttc" id="_heap_profiling_8hpp_html"><div class="ttname"><a href="_heap_profiling_8hpp.html">HeapProfiling.hpp</a></div></div> |
| 162 | <div class="ttc" id="class_inference_model_html_a8282dddf88e0deb3c414235e20a6cb2c"><div class="ttname"><a href="class_inference_model.html#a8282dddf88e0deb3c414235e20a6cb2c">InferenceModel::GetOutputSize</a></div><div class="ttdeci">unsigned int GetOutputSize(unsigned int outputIndex=0u) const</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00455">InferenceModel.hpp:455</a></div></div> |
| 163 | <div class="ttc" id="classarmnn_onnx_parser_1_1_i_onnx_parser_html"><div class="ttname"><a href="classarmnn_onnx_parser_1_1_i_onnx_parser.html">armnnOnnxParser::IOnnxParser</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_onnx_parser_8hpp_source.html#l00022">IOnnxParser.hpp:22</a></div></div> |
| 164 | <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> |
| 165 | <div class="ttc" id="structarmnn_deserializer_1_1_binding_point_info_html_a663b3104ec65e4e08b5e37fb42942087"><div class="ttname"><a href="structarmnn_deserializer_1_1_binding_point_info.html#a663b3104ec65e4e08b5e37fb42942087">armnnDeserializer::BindingPointInfo::m_BindingId</a></div><div class="ttdeci">armnn::LayerBindingId m_BindingId</div><div class="ttdef"><b>Definition:</b> <a href="_i_deserializer_8hpp_source.html#l00020">IDeserializer.hpp:20</a></div></div> |
| 166 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_abeacb4ed1ca9256ee0e8aea73185a0cc"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#abeacb4ed1ca9256ee0e8aea73185a0cc">InferenceModelInternal::Params::m_OutputBindings</a></div><div class="ttdeci">std::vector< std::string > m_OutputBindings</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00087">InferenceModel.hpp:87</a></div></div> |
| 167 | <div class="ttc" id="struct_create_network_impl_html"><div class="ttname"><a href="struct_create_network_impl.html">CreateNetworkImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00111">InferenceModel.hpp:111</a></div></div> |
| 168 | <div class="ttc" id="classarmnn_1_1_file_not_found_exception_html"><div class="ttname"><a href="classarmnn_1_1_file_not_found_exception.html">armnn::FileNotFoundException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00086">Exceptions.hpp:86</a></div></div> |
| 169 | <div class="ttc" id="struct_inference_model_internal_1_1_params_html_ad69aa6b4967ce55ee4a915c52c71bf2e"><div class="ttname"><a href="struct_inference_model_internal_1_1_params.html#ad69aa6b4967ce55ee4a915c52c71bf2e">InferenceModelInternal::Params::m_InputShapes</a></div><div class="ttdeci">std::vector< armnn::TensorShape > m_InputShapes</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00086">InferenceModel.hpp:86</a></div></div> |
| 170 | <div class="ttc" id="class_inference_model_html_a9eb69ebdaf4ceb8014e7c8a540266100"><div class="ttname"><a href="class_inference_model.html#a9eb69ebdaf4ceb8014e7c8a540266100">InferenceModel::TContainer</a></div><div class="ttdeci">boost::variant< std::vector< float >, std::vector< int >, std::vector< unsigned char > > TContainer</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00322">InferenceModel.hpp:322</a></div></div> |
| 171 | <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> |
| 172 | <div class="ttc" id="struct_inference_model_1_1_command_line_options_html"><div class="ttname"><a href="struct_inference_model_1_1_command_line_options.html">InferenceModel::CommandLineOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00324">InferenceModel.hpp:324</a></div></div> |
| 173 | <div class="ttc" id="namespacearmnn_html_a83015160d8c67d5d77735eb0d4033d9a"><div class="ttname"><a href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a></div><div class="ttdeci">int NetworkId</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00019">IRuntime.hpp:19</a></div></div> |
| 174 | <div class="ttc" id="class_inference_model_html_ae3ca0528045df8958ce5dcdf9d1af041"><div class="ttname"><a href="class_inference_model.html#ae3ca0528045df8958ce5dcdf9d1af041">InferenceModel::QuantizationParams</a></div><div class="ttdeci">InferenceModelInternal::QuantizationParams QuantizationParams</div><div class="ttdef"><b>Definition:</b> <a href="_inference_model_8hpp_source.html#l00321">InferenceModel.hpp:321</a></div></div> |
| 175 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser_html"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.html">armnnTfLiteParser::ITfLiteParser</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_tf_lite_parser_8hpp_source.html#l00025">ITfLiteParser.hpp:25</a></div></div> |
| 176 | <div class="ttc" id="structarmnn_1_1_optimizer_options_html_a6e1a42622ca43dafc7ba8e684c016eb4"><div class="ttname"><a href="structarmnn_1_1_optimizer_options.html#a6e1a42622ca43dafc7ba8e684c016eb4">armnn::OptimizerOptions::m_ReduceFp32ToFp16</a></div><div class="ttdeci">bool m_ReduceFp32ToFp16</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00573">INetwork.hpp:573</a></div></div> |
| 177 | </div><!-- fragment --></div><!-- contents --> |
| 178 | </div><!-- doc-content --> |
| 179 | <!-- start footer part --> |
| 180 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 181 | <ul> |
| 182 | <li class="navelem"><a class="el" href="dir_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li><li class="navelem"><a class="el" href="_inference_model_8hpp.html">InferenceModel.hpp</a></li> |
| 183 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 184 | <a href="http://www.doxygen.org/index.html"> |
| 185 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 186 | </ul> |
| 187 | </div> |
| 188 | </body> |
| 189 | </html> |