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/MultipleNetworksCifar10/MultipleNetworksCifar10.cpp File Reference</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('_multiple_networks_cifar10_8cpp.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="summary"> |
| 84 | <a href="#func-members">Functions</a> </div> |
| 85 | <div class="headertitle"> |
| 86 | <div class="title">MultipleNetworksCifar10.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include <iostream></code><br /> |
| 90 | <code>#include <chrono></code><br /> |
| 91 | <code>#include <vector></code><br /> |
| 92 | <code>#include <array></code><br /> |
| 93 | <code>#include "<a class="el" href="_arm_n_n_8hpp_source.html">armnn/ArmNN.hpp</a>"</code><br /> |
| 94 | <code>#include "<a class="el" href="_utils_8hpp_source.html">armnn/Utils.hpp</a>"</code><br /> |
| 95 | <code>#include "<a class="el" href="_i_network_8hpp_source.html">armnn/INetwork.hpp</a>"</code><br /> |
| 96 | <code>#include "<a class="el" href="_i_caffe_parser_8hpp_source.html">armnnCaffeParser/ICaffeParser.hpp</a>"</code><br /> |
| 97 | <code>#include "<a class="el" href="_cifar10_database_8hpp_source.html">../Cifar10Database.hpp</a>"</code><br /> |
| 98 | <code>#include "<a class="el" href="_inference_test_8hpp_source.html">../InferenceTest.hpp</a>"</code><br /> |
| 99 | <code>#include "<a class="el" href="_inference_model_8hpp_source.html">../InferenceModel.hpp</a>"</code><br /> |
| 100 | </div> |
| 101 | <p><a href="_multiple_networks_cifar10_8cpp_source.html">Go to the source code of this file.</a></p> |
| 102 | <table class="memberdecls"> |
| 103 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 104 | Functions</h2></td></tr> |
| 105 | <tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="_multiple_networks_cifar10_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr> |
| 106 | <tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | </table> |
| 108 | <h2 class="groupheader">Function Documentation</h2> |
| 109 | <a id="a0ddf1224851353fc92bfbff6f499fa97"></a> |
| 110 | <h2 class="memtitle"><span class="permalink"><a href="#a0ddf1224851353fc92bfbff6f499fa97">◆ </a></span>main()</h2> |
| 111 | |
| 112 | <div class="memitem"> |
| 113 | <div class="memproto"> |
| 114 | <table class="memname"> |
| 115 | <tr> |
| 116 | <td class="memname">int main </td> |
| 117 | <td>(</td> |
| 118 | <td class="paramtype">int </td> |
| 119 | <td class="paramname"><em>argc</em>, </td> |
| 120 | </tr> |
| 121 | <tr> |
| 122 | <td class="paramkey"></td> |
| 123 | <td></td> |
| 124 | <td class="paramtype">char * </td> |
| 125 | <td class="paramname"><em>argv</em>[] </td> |
| 126 | </tr> |
| 127 | <tr> |
| 128 | <td></td> |
| 129 | <td>)</td> |
| 130 | <td></td><td></td> |
| 131 | </tr> |
| 132 | </table> |
| 133 | </div><div class="memdoc"> |
| 134 | |
| 135 | <p class="definition">Definition at line <a class="el" href="_multiple_networks_cifar10_8cpp_source.html#l00022">22</a> of file <a class="el" href="_multiple_networks_cifar10_8cpp_source.html">MultipleNetworksCifar10.cpp</a>.</p> |
| 136 | |
| 137 | <p class="reference">References <a class="el" href="_logging_8hpp_source.html#l00163">ARMNN_LOG</a>, <a class="el" href="_backend_registry_8cpp_source.html#l00013">armnn::BackendRegistryInstance()</a>, <a class="el" href="_utils_8cpp_source.html#l00010">armnn::ConfigureLogging()</a>, <a class="el" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1">armnn::CpuAcc</a>, <a class="el" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::CpuRef</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l00264">ICaffeParser::Create()</a>, <a class="el" href="_runtime_8cpp_source.html#l00032">IRuntime::Create()</a>, <a class="el" href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3daa603905470e2a5b8c13e96b579ef0dba">armnn::Debug</a>, <a class="el" href="_cl_end_to_end_tests_8cpp_source.html#l00025">defaultBackends</a>, <a class="el" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Failure</a>, <a class="el" href="_backend_registry_8cpp_source.html#l00076">BackendRegistry::GetBackendIdsAsString()</a>, <a class="el" href="_cifar10_database_8cpp_source.html#l00020">Cifar10Database::GetTestCaseData()</a>, <a class="el" href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3da4059b0251f66a18cb56f544728796875">armnn::Info</a>, <a class="el" href="_tensor_i_o_utils_8hpp_source.html#l00017">armnnUtils::MakeInputTensors()</a>, <a class="el" href="_tensor_i_o_utils_8hpp_source.html#l00056">armnnUtils::MakeOutputTensors()</a>, <a class="el" href="_network_8cpp_source.html#l00807">armnn::Optimize()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00045">options</a>, <a class="el" href="_inference_test_8cpp_source.html#l00092">armnn::test::ValidateDirectory()</a>, and <a class="el" href="_exceptions_8cpp_source.html#l00032">Exception::what()</a>.</p> |
| 138 | <div class="fragment"><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">#ifdef NDEBUG</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3d">armnn::LogSeverity</a> level = <a class="code" href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3da4059b0251f66a18cb56f544728796875">armnn::LogSeverity::Info</a>;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3d">armnn::LogSeverity</a> level = <a class="code" href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3daa603905470e2a5b8c13e96b579ef0dba">armnn::LogSeverity::Debug</a>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// Configures logging for both the ARMNN library and this test program.</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="namespacearmnn.html#aa59f7a819c3e29d10ffc41e5c0616872">armnn::ConfigureLogging</a>(<span class="keyword">true</span>, <span class="keyword">true</span>, level);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">namespace </span>po = boost::program_options;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  std::vector<armnn::BackendId> computeDevice;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  std::vector<armnn::BackendId> <a class="code" href="_cl_end_to_end_tests_8cpp.html#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a> = {<a class="code" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1">armnn::Compute::CpuAcc</a>, <a class="code" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a>};</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  std::string modelDir;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  std::string dataDir;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</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="l00042"></a><span class="lineno"> 42</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="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  po::options_description desc(<span class="stringliteral">"Options"</span>);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// Adds generic options needed for all inference tests.</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  desc.add_options()</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  (<span class="stringliteral">"help"</span>, <span class="stringliteral">"Display help messages"</span>)</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  (<span class="stringliteral">"model-dir,m"</span>, po::value<std::string>(&modelDir)->required(),</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="stringliteral">"Path to directory containing the Cifar10 model file"</span>)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  (<span class="stringliteral">"compute,c"</span>, po::value<std::vector<armnn::BackendId>>(&computeDevice)->default_value(defaultBackends),</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  backendsMessage.c_str())</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  (<span class="stringliteral">"data-dir,d"</span>, po::value<std::string>(&dataDir)->required(),</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="stringliteral">"Path to directory containing the Cifar10 test data"</span>);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception& e)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// Coverity points out that default_value(...) can throw a bad_lexical_cast,</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// and that desc.add_options() can throw boost::io::too_few_args.</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// They really won't in any of these cases.</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Caught unexpected exception"</span>);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  std::cerr << <span class="stringliteral">"Fatal internal error: "</span> << e.what() << std::endl;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</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>  po::variables_map vm;</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>  <span class="keywordflow">try</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>  po::store(po::parse_command_line(argc, argv, desc), vm);</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>  <span class="keywordflow">if</span> (vm.count(<span class="stringliteral">"help"</span>))</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  std::cout << desc << std::endl;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  po::notify(vm);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">catch</span> (po::error& e)</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  std::cerr << e.what() << std::endl << std::endl;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  std::cerr << desc << std::endl;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespacearmnn_1_1test.html#a8a678fb3a8864e31aeb77f857ae6fc43">ValidateDirectory</a>(modelDir))</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">string</span> modelPath = modelDir + <span class="stringliteral">"cifar10_full_iter_60000.caffemodel"</span>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// Create runtime</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">// This will also load dynamic backend in case that the dynamic backend path is specified</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</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="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="namespacearmnn.html#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a> runtime(<a class="code" href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a>(options));</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// Check if the requested backend are all valid</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  std::string invalidBackends;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span> (!CheckRequestedBackendsAreValid(computeDevice, <a class="code" href="classarmnn_1_1_optional.html">armnn::Optional<std::string&></a>(invalidBackends)))</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"The list of preferred devices contains invalid backend IDs: "</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  << invalidBackends;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</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">// Loads networks.</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a> status;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">struct </span>Net</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  Net(<a class="code" href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> netId,</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">const</span> std::pair<armnn::LayerBindingId, armnn::TensorInfo>& in,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">const</span> std::pair<armnn::LayerBindingId, armnn::TensorInfo>& out)</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  : m_Network(netId)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  , m_InputBindingInfo(in)</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  , m_OutputBindingInfo(out)</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {}</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>  <a class="code" href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> m_Network;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  std::pair<armnn::LayerBindingId, armnn::TensorInfo> m_InputBindingInfo;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  std::pair<armnn::LayerBindingId, armnn::TensorInfo> m_OutputBindingInfo;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  };</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  std::vector<Net> networks;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="namespacearmnn_caffe_parser.html#a33c76910f1980ffaa41c22e0151cce2a">armnnCaffeParser::ICaffeParserPtr</a> parser(<a class="code" href="classarmnn_caffe_parser_1_1_i_caffe_parser.html#abd42446e41480b0cc9df7ce06af412e3">armnnCaffeParser::ICaffeParser::Create</a>());</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">int</span> networksCount = 4;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < networksCount; ++i)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="comment">// Creates a network from a file on the disk.</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network = parser->CreateNetworkFromBinaryFile(modelPath.c_str(), {}, { <span class="stringliteral">"prob"</span> });</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// Optimizes the network.</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="namespacearmnn.html#a674efcf6cbdb9e831d653ff0e821fb38">armnn::IOptimizedNetworkPtr</a> optimizedNet(<span class="keyword">nullptr</span>, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  {</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  optimizedNet = <a class="code" href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">armnn::Optimize</a>(*network, computeDevice, runtime->GetDeviceSpec());</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">catch</span> (<a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>& e)</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>  std::stringstream message;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  message << <span class="stringliteral">"armnn::Exception ("</span><<e.<a class="code" href="classarmnn_1_1_exception.html#abf843cbb29dec939d0731e491bab6f70">what</a>()<<<span class="stringliteral">") caught from optimize."</span>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << message.str();</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> 1;</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> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">// Loads the network into the runtime.</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> networkId;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  status = runtime->LoadNetwork(networkId, std::move(optimizedNet));</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">if</span> (status == <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Status::Failure</a>)</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>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"armnn::IRuntime: Failed to load network"</span>;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">return</span> 1;</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> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  networks.emplace_back(networkId,</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  parser->GetNetworkInputBindingInfo(<span class="stringliteral">"data"</span>),</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  parser->GetNetworkOutputBindingInfo(<span class="stringliteral">"prob"</span>));</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> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="comment">// Loads a test case and tests inference.</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (!<a class="code" href="namespacearmnn_1_1test.html#a8a678fb3a8864e31aeb77f857ae6fc43">ValidateDirectory</a>(dataDir))</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  {</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">return</span> 1;</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>  <a class="code" href="class_cifar10_database.html">Cifar10Database</a> cifar10(dataDir);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < 3; ++i)</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// Loads test case data (including image data).</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  std::unique_ptr<Cifar10Database::TTestCaseData> testCaseData = cifar10.GetTestCaseData(i);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="comment">// Tests inference.</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  std::vector<TContainer> outputs;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  outputs.reserve(networksCount);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = 0; j < networksCount; ++j)</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>  outputs.push_back(std::vector<float>(10));</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  }</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>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> k = 0; k < networksCount; ++k)</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>  std::vector<armnn::BindingPointInfo> inputBindings = { networks[k].m_InputBindingInfo };</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  std::vector<armnn::BindingPointInfo> outputBindings = { networks[k].m_OutputBindingInfo };</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>  std::vector<TContainer> inputDataContainers = { testCaseData->m_InputImage };</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  std::vector<TContainer> outputDataContainers = { outputs[k] };</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  status = runtime->EnqueueWorkload(networks[k].m_Network,</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="code" href="namespacearmnn_utils.html#ad5310a199d4969927169ed084b1f6c28">armnnUtils::MakeInputTensors</a>(inputBindings, inputDataContainers),</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="namespacearmnn_utils.html#ad4efd5a7fa660df5246466d83517220d">armnnUtils::MakeOutputTensors</a>(outputBindings, outputDataContainers));</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">if</span> (status == <a class="code" href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Status::Failure</a>)</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  {</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"armnn::IRuntime: Failed to enqueue workload"</span>;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  }</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> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="comment">// Compares outputs.</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  std::vector<float> output0 = boost::get<std::vector<float>>(outputs[0]);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> k = 1; k < networksCount; ++k)</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  std::vector<float> outputK = boost::get<std::vector<float>>(outputs[k]);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">if</span> (!std::equal(output0.begin(), output0.end(), outputK.begin(), outputK.end()))</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(error) << <span class="stringliteral">"Multiple networks inference failed!"</span>;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  }</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>  }</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(info) << <span class="stringliteral">"Multiple networks inference ran successfully!"</span>;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">return</span> 0;</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">catch</span> (<a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a> <span class="keyword">const</span>& e)</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>  <span class="comment">// Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">// exception of type std::length_error.</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="comment">// Using stderr instead in this context as there is no point in nesting try-catch blocks here.</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  std::cerr << <span class="stringliteral">"Armnn Error: "</span> << e.<a class="code" href="classarmnn_1_1_exception.html#abf843cbb29dec939d0731e491bab6f70">what</a>() << std::endl;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception& e)</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  {</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="comment">// Coverity fix: various boost exceptions can be thrown by methods called by this test.</span></div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  std::cerr << <span class="stringliteral">"WARNING: MultipleNetworksCifar10: An error has occurred when running the "</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="stringliteral">"multiple networks inference tests: "</span> << e.what() << std::endl;</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> }</div><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> |
| 139 | <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> |
| 140 | <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> |
| 141 | <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> |
| 142 | <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> |
| 143 | <div class="ttc" id="namespacearmnn_html_aa59f7a819c3e29d10ffc41e5c0616872"><div class="ttname"><a href="namespacearmnn.html#aa59f7a819c3e29d10ffc41e5c0616872">armnn::ConfigureLogging</a></div><div class="ttdeci">void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSeverity severity)</div><div class="ttdef"><b>Definition:</b> <a href="_utils_8cpp_source.html#l00010">Utils.cpp:10</a></div></div> |
| 144 | <div class="ttc" id="namespacearmnn_caffe_parser_html_a33c76910f1980ffaa41c22e0151cce2a"><div class="ttname"><a href="namespacearmnn_caffe_parser.html#a33c76910f1980ffaa41c22e0151cce2a">armnnCaffeParser::ICaffeParserPtr</a></div><div class="ttdeci">std::unique_ptr< ICaffeParser, void(*)(ICaffeParser *parser)> ICaffeParserPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_caffe_parser_8hpp_source.html#l00022">ICaffeParser.hpp:22</a></div></div> |
| 145 | <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> |
| 146 | <div class="ttc" id="classarmnn_caffe_parser_1_1_i_caffe_parser_html_abd42446e41480b0cc9df7ce06af412e3"><div class="ttname"><a href="classarmnn_caffe_parser_1_1_i_caffe_parser.html#abd42446e41480b0cc9df7ce06af412e3">armnnCaffeParser::ICaffeParser::Create</a></div><div class="ttdeci">static ICaffeParserPtr Create()</div><div class="ttdef"><b>Definition:</b> <a href="_caffe_parser_8cpp_source.html#l00264">CaffeParser.cpp:264</a></div></div> |
| 147 | <div class="ttc" id="_logging_8hpp_html_a7b6ad073975f437ec38ca7d20154727f"><div class="ttname"><a href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a></div><div class="ttdeci">#define ARMNN_LOG(severity)</div><div class="ttdef"><b>Definition:</b> <a href="_logging_8hpp_source.html#l00163">Logging.hpp:163</a></div></div> |
| 148 | <div class="ttc" id="classarmnn_1_1_exception_html_abf843cbb29dec939d0731e491bab6f70"><div class="ttname"><a href="classarmnn_1_1_exception.html#abf843cbb29dec939d0731e491bab6f70">armnn::Exception::what</a></div><div class="ttdeci">virtual const char * what() const noexcept override</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8cpp_source.html#l00032">Exceptions.cpp:32</a></div></div> |
| 149 | <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> |
| 150 | <div class="ttc" id="class_cifar10_database_html"><div class="ttname"><a href="class_cifar10_database.html">Cifar10Database</a></div><div class="ttdef"><b>Definition:</b> <a href="_cifar10_database_8hpp_source.html#l00012">Cifar10Database.hpp:12</a></div></div> |
| 151 | <div class="ttc" id="namespacearmnn_html_a93a3ba385cad27c4774e5fe64c025d3daa603905470e2a5b8c13e96b579ef0dba"><div class="ttname"><a href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3daa603905470e2a5b8c13e96b579ef0dba">armnn::LogSeverity::Debug</a></div></div> |
| 152 | <div class="ttc" id="namespacearmnn_html_a93a3ba385cad27c4774e5fe64c025d3d"><div class="ttname"><a href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3d">armnn::LogSeverity</a></div><div class="ttdeci">LogSeverity</div><div class="ttdef"><b>Definition:</b> <a href="_utils_8hpp_source.html#l00012">Utils.hpp:12</a></div></div> |
| 153 | <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> |
| 154 | <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> |
| 155 | <div class="ttc" id="namespacearmnn_html_ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64"><div class="ttname"><a href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a></div><div class="ttdoc">CPU Execution: Reference C++ kernels. </div></div> |
| 156 | <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> |
| 157 | <div class="ttc" id="namespacearmnn_html_a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086"><div class="ttname"><a href="namespacearmnn.html#a67a0db04d321a74b7e7fcfd3f1a3f70bae139a585510a502bbf1841cf589f5086">armnn::Status::Failure</a></div></div> |
| 158 | <div class="ttc" id="namespacearmnn_html_ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1"><div class="ttname"><a href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea39f8662ca778258e9c6a14f26fec5ec1">armnn::Compute::CpuAcc</a></div><div class="ttdoc">CPU Execution: NEON: ArmCompute. </div></div> |
| 159 | <div class="ttc" id="namespacearmnn_html_a93a3ba385cad27c4774e5fe64c025d3da4059b0251f66a18cb56f544728796875"><div class="ttname"><a href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3da4059b0251f66a18cb56f544728796875">armnn::LogSeverity::Info</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="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> |
| 162 | <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> |
| 163 | <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> |
| 164 | <div class="ttc" id="namespacearmnn_html_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.html#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00024">IRuntime.hpp:24</a></div></div> |
| 165 | <div class="ttc" id="_cl_end_to_end_tests_8cpp_html_ab59caffe2ee6be46c08766c055420f17"><div class="ttname"><a href="_cl_end_to_end_tests_8cpp.html#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a></div><div class="ttdeci">std::vector< armnn::BackendId > defaultBackends</div><div class="ttdef"><b>Definition:</b> <a href="_cl_end_to_end_tests_8cpp_source.html#l00025">ClEndToEndTests.cpp:25</a></div></div> |
| 166 | <div class="ttc" id="namespacearmnn_1_1test_html_a8a678fb3a8864e31aeb77f857ae6fc43"><div class="ttname"><a href="namespacearmnn_1_1test.html#a8a678fb3a8864e31aeb77f857ae6fc43">armnn::test::ValidateDirectory</a></div><div class="ttdeci">bool ValidateDirectory(std::string &dir)</div><div class="ttdef"><b>Definition:</b> <a href="_inference_test_8cpp_source.html#l00092">InferenceTest.cpp:92</a></div></div> |
| 167 | </div><!-- fragment --> |
| 168 | </div> |
| 169 | </div> |
| 170 | </div><!-- contents --> |
| 171 | </div><!-- doc-content --> |
| 172 | <!-- start footer part --> |
| 173 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 174 | <ul> |
| 175 | <li class="navelem"><a class="el" href="dir_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li><li class="navelem"><a class="el" href="dir_bea2aaa5ee1b83ed83ac6ec2539c5ff9.html">MultipleNetworksCifar10</a></li><li class="navelem"><a class="el" href="_multiple_networks_cifar10_8cpp.html">MultipleNetworksCifar10.cpp</a></li> |
| 176 | <li class="footer">Generated on Fri Mar 13 2020 16:07:01 for ArmNN by |
| 177 | <a href="http://www.doxygen.org/index.html"> |
| 178 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 179 | </ul> |
| 180 | </div> |
| 181 | </body> |
| 182 | </html> |