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/ExecuteNetwork/ExecuteNetwork.cpp Source File</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_execute_network_8cpp_source.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="headertitle"> |
| 84 | <div class="title">ExecuteNetwork.cpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="_execute_network_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "../NetworkExecutionUtils/NetworkExecutionUtils.hpp"</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="comment">// MAIN</span></div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="_execute_network_8cpp.html#ac0f2228420376f4db7e1274f2b41667c"> 9</a></span> <span class="keywordtype">int</span> <a class="code" href="_execute_network_8cpp.html#ac0f2228420376f4db7e1274f2b41667c">main</a>(<span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span>* argv[])</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="comment">// Configures logging for both the ARMNN library and this test program.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifdef NDEBUG</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</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="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</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="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>  <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="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  std::string testCasesFile;</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>  std::string modelFormat;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  std::string modelPath;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  std::string inputNames;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  std::string inputTensorShapes;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  std::string inputTensorDataFilePaths;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  std::string outputNames;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  std::string inputTypes;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  std::string outputTypes;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  std::string dynamicBackendsPath;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  std::string outputTensorFiles;</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">// external profiling parameters</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  std::string outgoingCaptureFile;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  std::string incomingCaptureFile;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  uint32_t counterCapturePeriod;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">double</span> thresholdTime = 0.0;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">size_t</span> subgraphId = 0;</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">"REQUIRED: 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>  po::options_description desc(<span class="stringliteral">"Options"</span>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  desc.add_options()</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  (<span class="stringliteral">"help"</span>, <span class="stringliteral">"Display usage information"</span>)</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  (<span class="stringliteral">"compute,c"</span>, po::value<std::vector<std::string>>()->multitoken()->required(),</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  backendsMessage.c_str())</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  (<span class="stringliteral">"test-cases,t"</span>, po::value(&testCasesFile), <span class="stringliteral">"Path to a CSV file containing test cases to run. "</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="stringliteral">"If set, further parameters -- with the exception of compute device and concurrency -- will be ignored, "</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="stringliteral">"as they are expected to be defined in the file for each test in particular."</span>)</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  (<span class="stringliteral">"concurrent,n"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="stringliteral">"Whether or not the test cases should be executed in parallel"</span>)</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  (<span class="stringliteral">"model-format,f"</span>, po::value(&modelFormat)->required(),</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="stringliteral">"armnn-binary, caffe-binary, caffe-text, onnx-binary, onnx-text, tflite-binary, tensorflow-binary or "</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="stringliteral">"tensorflow-text."</span>)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  (<span class="stringliteral">"model-path,m"</span>, po::value(&modelPath)->required(), <span class="stringliteral">"Path to model file, e.g. .armnn, .caffemodel, "</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="stringliteral">".prototxt, .tflite, .onnx"</span>)</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  (<span class="stringliteral">"dynamic-backends-path,b"</span>, po::value(&dynamicBackendsPath),</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="stringliteral">"Path where to load any available dynamic backend from. "</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="stringliteral">"If left empty (the default), dynamic backends will not be used."</span>)</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  (<span class="stringliteral">"input-name,i"</span>, po::value(&inputNames),</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="stringliteral">"Identifier of the input tensors in the network separated by comma."</span>)</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  (<span class="stringliteral">"subgraph-number,x"</span>, po::value<size_t>(&subgraphId)->default_value(0), <span class="stringliteral">"Id of the subgraph to be executed."</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="stringliteral">"Defaults to 0"</span>)</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  (<span class="stringliteral">"input-tensor-shape,s"</span>, po::value(&inputTensorShapes),</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="stringliteral">"The shape of the input tensors in the network as a flat array of integers separated by comma."</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="stringliteral">"Several shapes can be passed by separating them with a colon (:)."</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="stringliteral">"This parameter is optional, depending on the network."</span>)</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  (<span class="stringliteral">"input-tensor-data,d"</span>, po::value(&inputTensorDataFilePaths)->default_value(<span class="stringliteral">""</span>),</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="stringliteral">"Path to files containing the input data as a flat array separated by whitespace. "</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="stringliteral">"Several paths can be passed by separating them with a comma. If not specified, the network will be run "</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="stringliteral">"with dummy data (useful for profiling)."</span>)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  (<span class="stringliteral">"input-type,y"</span>,po::value(&inputTypes), <span class="stringliteral">"The type of the input tensors in the network separated by comma. "</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="stringliteral">"If unset, defaults to \"float\" for all defined inputs. "</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="stringliteral">"Accepted values (float, int or qasymm8)"</span>)</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  (<span class="stringliteral">"quantize-input,q"</span>,po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="stringliteral">"If this option is enabled, all float inputs will be quantized to qasymm8. "</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="stringliteral">"If unset, default to not quantized. "</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="stringliteral">"Accepted values (true or false)"</span>)</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  (<span class="stringliteral">"output-type,z"</span>,po::value(&outputTypes),</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="stringliteral">"The type of the output tensors in the network separated by comma. "</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="stringliteral">"If unset, defaults to \"float\" for all defined outputs. "</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="stringliteral">"Accepted values (float, int or qasymm8)."</span>)</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  (<span class="stringliteral">"output-name,o"</span>, po::value(&outputNames),</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="stringliteral">"Identifier of the output tensors in the network separated by comma."</span>)</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  (<span class="stringliteral">"write-outputs-to-file,w"</span>, po::value(&outputTensorFiles),</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="stringliteral">"Comma-separated list of output file paths keyed with the binding-id of the output slot. "</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="stringliteral">"If left empty (the default), the output tensors will not be written to a file."</span>)</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  (<span class="stringliteral">"event-based-profiling,e"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="stringliteral">"Enables built in profiler. If unset, defaults to off."</span>)</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  (<span class="stringliteral">"visualize-optimized-model,v"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="stringliteral">"Enables built optimized model visualizer. If unset, defaults to off."</span>)</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  (<span class="stringliteral">"fp16-turbo-mode,h"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>), <span class="stringliteral">"If this option is enabled, FP32 layers, "</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="stringliteral">"weights and biases will be converted to FP16 where the backend supports it"</span>)</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  (<span class="stringliteral">"threshold-time,r"</span>, po::value<double>(&thresholdTime)->default_value(0.0),</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="stringliteral">"Threshold time is the maximum allowed time for inference measured in milliseconds. If the actual "</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="stringliteral">"inference time is greater than the threshold time, the test will fail. By default, no threshold "</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="stringliteral">"time is used."</span>)</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  (<span class="stringliteral">"print-intermediate-layers,p"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="stringliteral">"If this option is enabled, the output of every graph layer will be printed."</span>)</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  (<span class="stringliteral">"enable-external-profiling,a"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="stringliteral">"If enabled external profiling will be switched on"</span>)</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  (<span class="stringliteral">"outgoing-capture-file,j"</span>, po::value(&outgoingCaptureFile),</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="stringliteral">"If specified the outgoing external profiling packets will be captured in this binary file"</span>)</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  (<span class="stringliteral">"incoming-capture-file,k"</span>, po::value(&incomingCaptureFile),</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="stringliteral">"If specified the incoming external profiling packets will be captured in this binary file"</span>)</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  (<span class="stringliteral">"file-only-external-profiling,g"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="stringliteral">"If enabled then the 'file-only' test mode of external profiling will be enabled"</span>)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  (<span class="stringliteral">"counter-capture-period,u"</span>, po::value<uint32_t>(&counterCapturePeriod)->default_value(150u),</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="stringliteral">"If profiling is enabled in 'file-only' mode this is the capture period that will be used in the test"</span>)</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  (<span class="stringliteral">"parse-unsupported"</span>, po::bool_switch()->default_value(<span class="keyword">false</span>),</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="stringliteral">"Add unsupported operators as stand-in layers (where supported by parser)"</span>);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception& e)</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// Coverity points out that default_value(...) can throw a bad_lexical_cast,</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// and that desc.add_options() can throw boost::io::too_few_args.</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="comment">// They really won't in any of these cases.</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Caught unexpected exception"</span>);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"Fatal internal error: "</span> << e.what();</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</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> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="comment">// Parses the command-line.</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  po::variables_map vm;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  {</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  po::store(po::parse_command_line(argc, argv, desc), vm);</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">if</span> (CheckOption(vm, <span class="stringliteral">"help"</span>) || argc <= 1)</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>  std::cout << <span class="stringliteral">"Executes a neural network model using the provided input tensor. "</span> << std::endl;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  std::cout << <span class="stringliteral">"Prints the resulting output tensor."</span> << std::endl;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  std::cout << std::endl;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  std::cout << desc << std::endl;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> EXIT_SUCCESS;</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> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  po::notify(vm);</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>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> po::error& e)</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  {</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  std::cerr << e.what() << std::endl << std::endl;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  std::cerr << desc << std::endl;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">// Get the value of the switch arguments.</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordtype">bool</span> concurrent = vm[<span class="stringliteral">"concurrent"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordtype">bool</span> enableProfiling = vm[<span class="stringliteral">"event-based-profiling"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordtype">bool</span> enableLayerDetails = vm[<span class="stringliteral">"visualize-optimized-model"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">bool</span> enableFp16TurboMode = vm[<span class="stringliteral">"fp16-turbo-mode"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">bool</span> quantizeInput = vm[<span class="stringliteral">"quantize-input"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">bool</span> printIntermediate = vm[<span class="stringliteral">"print-intermediate-layers"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">bool</span> enableExternalProfiling = vm[<span class="stringliteral">"enable-external-profiling"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordtype">bool</span> fileOnlyExternalProfiling = vm[<span class="stringliteral">"file-only-external-profiling"</span>].as<<span class="keywordtype">bool</span>>();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">bool</span> parseUnsupported = vm[<span class="stringliteral">"parse-unsupported"</span>].as<<span class="keywordtype">bool</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">// Check whether we have to load test cases from a file.</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (CheckOption(vm, <span class="stringliteral">"test-cases"</span>))</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="comment">// Check that the file exists.</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">if</span> (!boost::filesystem::exists(testCasesFile))</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>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"Given file \""</span> << testCasesFile << <span class="stringliteral">"\" does not exist"</span>;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  }</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">// Parse CSV file and extract test cases</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="classarmnn_utils_1_1_csv_reader.html">armnnUtils::CsvReader</a> reader;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  std::vector<armnnUtils::CsvRow> testCases = reader.<a class="code" href="classarmnn_utils_1_1_csv_reader.html#afe61638fbcc211b6164b563937c8dce1">ParseFile</a>(testCasesFile);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="comment">// Check that there is at least one test case to run</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span> (testCases.empty())</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="_logging_8hpp.html#a7b6ad073975f437ec38ca7d20154727f">ARMNN_LOG</a>(fatal) << <span class="stringliteral">"Given file \""</span> << testCasesFile << <span class="stringliteral">"\" has no test cases"</span>;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</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="comment">// Create runtime</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</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="l00185"></a><span class="lineno"> 185</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a2fe8c3eadf4f4f9c0c664a24a2a298f9">m_EnableGpuProfiling</a> = enableProfiling;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = dynamicBackendsPath;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a26d42007440bb01a1a6d0ab3b5a657ee">m_EnableProfiling</a> = enableExternalProfiling;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a36dd18e4f73d470e3234d72198aa5fef">m_IncomingCaptureFile</a> = incomingCaptureFile;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#aa0d6aa79d683bc79d20d4ddcf7db87db">m_OutgoingCaptureFile</a> = outgoingCaptureFile;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#ad8f8cb971cad412664cd7df58df7eb1e">m_FileOnly</a> = fileOnlyExternalProfiling;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a2239347f38747f993c324bdd8b1eb146">m_CapturePeriod</a> = counterCapturePeriod;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  std::shared_ptr<armnn::IRuntime> runtime(<a class="code" href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a>(options));</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">const</span> std::string executableName(<span class="stringliteral">"ExecuteNetwork"</span>);</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>  <span class="comment">// Check whether we need to run the test cases concurrently</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">if</span> (concurrent)</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>  std::vector<std::future<int>> results;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  results.reserve(testCases.size());</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>  <span class="comment">// Run each test case in its own thread</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& testCase : testCases)</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>  testCase.values.insert(testCase.values.begin(), executableName);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  results.push_back(std::async(std::launch::async, <a class="code" href="_network_execution_utils_8hpp.html#a31556a7bc4fe615f51dd68af510a9947">RunCsvTest</a>, std::cref(testCase), std::cref(runtime),</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  enableProfiling, enableFp16TurboMode, thresholdTime, printIntermediate,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  enableLayerDetails, parseUnsupported));</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="comment">// Check results</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& result : results)</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">if</span> (result.get() != EXIT_SUCCESS)</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>  <span class="keywordflow">return</span> EXIT_FAILURE;</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>  }</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  {</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="comment">// Run tests sequentially</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& testCase : testCases)</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  {</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  testCase.values.insert(testCase.values.begin(), executableName);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordflow">if</span> (<a class="code" href="_network_execution_utils_8hpp.html#a31556a7bc4fe615f51dd68af510a9947">RunCsvTest</a>(testCase, runtime, enableProfiling,</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  enableFp16TurboMode, thresholdTime, printIntermediate,</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  enableLayerDetails, parseUnsupported) != EXIT_SUCCESS)</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  {</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</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>  }</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="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> EXIT_SUCCESS;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">else</span> <span class="comment">// Run single test</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  {</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="comment">// Get the preferred order of compute devices. If none are specified, default to using CpuRef</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">const</span> std::string computeOption(<span class="stringliteral">"compute"</span>);</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  std::vector<std::string> computeDevicesAsStrings =</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  CheckOption(vm, computeOption.c_str()) ?</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  vm[computeOption].as<std::vector<std::string>>() :</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  std::vector<std::string>();</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  std::vector<armnn::BackendId> computeDevices(computeDevicesAsStrings.begin(), computeDevicesAsStrings.end());</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="comment">// Remove duplicates from the list of compute devices.</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  RemoveDuplicateDevices(computeDevices);</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">try</span></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>  CheckOptionDependencies(vm);</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> po::error& e)</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>  std::cerr << e.what() << std::endl << std::endl;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  std::cerr << desc << std::endl;</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordflow">return</span> EXIT_FAILURE;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  }</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="comment">// Create runtime</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</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="l00262"></a><span class="lineno"> 262</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a2fe8c3eadf4f4f9c0c664a24a2a298f9">m_EnableGpuProfiling</a> = enableProfiling;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = dynamicBackendsPath;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a26d42007440bb01a1a6d0ab3b5a657ee">m_EnableProfiling</a> = enableExternalProfiling;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a36dd18e4f73d470e3234d72198aa5fef">m_IncomingCaptureFile</a> = incomingCaptureFile;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#aa0d6aa79d683bc79d20d4ddcf7db87db">m_OutgoingCaptureFile</a> = outgoingCaptureFile;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#ad8f8cb971cad412664cd7df58df7eb1e">m_FileOnly</a> = fileOnlyExternalProfiling;</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">m_ProfilingOptions</a>.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a2239347f38747f993c324bdd8b1eb146">m_CapturePeriod</a> = counterCapturePeriod;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  std::shared_ptr<armnn::IRuntime> runtime(<a class="code" href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a>(options));</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">return</span> <a class="code" href="_network_execution_utils_8hpp.html#a47eeedd94b5db76d8f0d40f3b3e64fc4">RunTest</a>(modelFormat, inputTensorShapes, computeDevices, dynamicBackendsPath, modelPath, inputNames,</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  inputTensorDataFilePaths, inputTypes, quantizeInput, outputTypes, outputNames,</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  outputTensorFiles, enableProfiling, enableFp16TurboMode, thresholdTime, printIntermediate,</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  subgraphId, enableLayerDetails, parseUnsupported, runtime);</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  }</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> }</div><div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html_a2239347f38747f993c324bdd8b1eb146"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a2239347f38747f993c324bdd8b1eb146">armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_CapturePeriod</a></div><div class="ttdeci">uint32_t m_CapturePeriod</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00074">IRuntime.hpp:74</a></div></div> |
| 88 | <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> |
| 89 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html_a36dd18e4f73d470e3234d72198aa5fef"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a36dd18e4f73d470e3234d72198aa5fef">armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_IncomingCaptureFile</a></div><div class="ttdeci">std::string m_IncomingCaptureFile</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00072">IRuntime.hpp:72</a></div></div> |
| 90 | <div class="ttc" id="_execute_network_8cpp_html_ac0f2228420376f4db7e1274f2b41667c"><div class="ttname"><a href="_execute_network_8cpp.html#ac0f2228420376f4db7e1274f2b41667c">main</a></div><div class="ttdeci">int main(int argc, const char *argv[])</div><div class="ttdef"><b>Definition:</b> <a href="_execute_network_8cpp_source.html#l00009">ExecuteNetwork.cpp:9</a></div></div> |
| 91 | <div class="ttc" id="_network_execution_utils_8hpp_html_a31556a7bc4fe615f51dd68af510a9947"><div class="ttname"><a href="_network_execution_utils_8hpp.html#a31556a7bc4fe615f51dd68af510a9947">RunCsvTest</a></div><div class="ttdeci">int RunCsvTest(const armnnUtils::CsvRow &csvRow, const std::shared_ptr< armnn::IRuntime > &runtime, const bool enableProfiling, const bool enableFp16TurboMode, const double &thresholdTime, const bool printIntermediate, bool enableLayerDetails=false, bool parseUnuspported=false)</div><div class="ttdef"><b>Definition:</b> <a href="_network_execution_utils_8hpp_source.html#l00731">NetworkExecutionUtils.hpp:731</a></div></div> |
| 92 | <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> |
| 93 | <div class="ttc" id="_network_execution_utils_8hpp_html_a47eeedd94b5db76d8f0d40f3b3e64fc4"><div class="ttname"><a href="_network_execution_utils_8hpp.html#a47eeedd94b5db76d8f0d40f3b3e64fc4">RunTest</a></div><div class="ttdeci">int RunTest(const std::string &format, const std::string &inputTensorShapesStr, const vector< armnn::BackendId > &computeDevices, const std::string &dynamicBackendsPath, const std::string &path, const std::string &inputNames, const std::string &inputTensorDataFilePaths, const std::string &inputTypes, bool quantizeInput, const std::string &outputTypes, const std::string &outputNames, const std::string &outputTensorFiles, bool enableProfiling, bool enableFp16TurboMode, const double &thresholdTime, bool printIntermediate, const size_t subgraphId, bool enableLayerDetails=false, bool parseUnsupported=false, const std::shared_ptr< armnn::IRuntime > &runtime=nullptr)</div><div class="ttdef"><b>Definition:</b> <a href="_network_execution_utils_8hpp_source.html#l00520">NetworkExecutionUtils.hpp:520</a></div></div> |
| 94 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_html_a30412a91cadff138686eaeb12f5357cc"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.html#a30412a91cadff138686eaeb12f5357cc">armnn::IRuntime::CreationOptions::m_ProfilingOptions</a></div><div class="ttdeci">ExternalProfilingOptions m_ProfilingOptions</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00076">IRuntime.hpp:76</a></div></div> |
| 95 | <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> |
| 96 | <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> |
| 97 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html_a26d42007440bb01a1a6d0ab3b5a657ee"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a26d42007440bb01a1a6d0ab3b5a657ee">armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling</a></div><div class="ttdeci">bool m_EnableProfiling</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00070">IRuntime.hpp:70</a></div></div> |
| 98 | <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> |
| 99 | <div class="ttc" id="namespacearmnn_html_a93a3ba385cad27c4774e5fe64c025d3daa603905470e2a5b8c13e96b579ef0dba"><div class="ttname"><a href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3daa603905470e2a5b8c13e96b579ef0dba">armnn::LogSeverity::Debug</a></div></div> |
| 100 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html_ad8f8cb971cad412664cd7df58df7eb1e"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#ad8f8cb971cad412664cd7df58df7eb1e">armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_FileOnly</a></div><div class="ttdeci">bool m_FileOnly</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00073">IRuntime.hpp:73</a></div></div> |
| 101 | <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> |
| 102 | <div class="ttc" id="classarmnn_utils_1_1_csv_reader_html_afe61638fbcc211b6164b563937c8dce1"><div class="ttname"><a href="classarmnn_utils_1_1_csv_reader.html#afe61638fbcc211b6164b563937c8dce1">armnnUtils::CsvReader::ParseFile</a></div><div class="ttdeci">static std::vector< CsvRow > ParseFile(const std::string &csvFile)</div><div class="ttdef"><b>Definition:</b> <a href="_csv_reader_8cpp_source.html#l00032">CsvReader.cpp:32</a></div></div> |
| 103 | <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> |
| 104 | <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> |
| 105 | <div class="ttc" id="classarmnn_utils_1_1_csv_reader_html"><div class="ttname"><a href="classarmnn_utils_1_1_csv_reader.html">armnnUtils::CsvReader</a></div><div class="ttdef"><b>Definition:</b> <a href="_csv_reader_8hpp_source.html#l00018">CsvReader.hpp:18</a></div></div> |
| 106 | <div class="ttc" id="namespacearmnn_html_a93a3ba385cad27c4774e5fe64c025d3da4059b0251f66a18cb56f544728796875"><div class="ttname"><a href="namespacearmnn.html#a93a3ba385cad27c4774e5fe64c025d3da4059b0251f66a18cb56f544728796875">armnn::LogSeverity::Info</a></div></div> |
| 107 | <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> |
| 108 | <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> |
| 109 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html_aa0d6aa79d683bc79d20d4ddcf7db87db"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#aa0d6aa79d683bc79d20d4ddcf7db87db">armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_OutgoingCaptureFile</a></div><div class="ttdeci">std::string m_OutgoingCaptureFile</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00071">IRuntime.hpp:71</a></div></div> |
| 110 | </div><!-- fragment --></div><!-- contents --> |
| 111 | </div><!-- doc-content --> |
| 112 | <!-- start footer part --> |
| 113 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 114 | <ul> |
| 115 | <li class="navelem"><a class="el" href="dir_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li><li class="navelem"><a class="el" href="dir_3502d64799b714c597b8fa7662494b65.html">ExecuteNetwork</a></li><li class="navelem"><a class="el" href="_execute_network_8cpp.html">ExecuteNetwork.cpp</a></li> |
| 116 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 117 | <a href="http://www.doxygen.org/index.html"> |
| 118 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 119 | </ul> |
| 120 | </div> |
| 121 | </body> |
| 122 | </html> |