Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: ParserPrototxtFixture< TParser > Struct Template Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('structarmnn_utils_1_1_parser_prototxt_fixture.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="#pub-attribs">Public Attributes</a> | |
| 100 | <a href="structarmnn_utils_1_1_parser_prototxt_fixture-members.xhtml">List of all members</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">ParserPrototxtFixture< TParser > Struct Template Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | |
| 106 | <p><code>#include <<a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>></code></p> |
| 107 | <table class="memberdecls"> |
| 108 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 109 | Public Member Functions</h2></td></tr> |
| 110 | <tr class="memitem:a5c8880d78e094c184ccdbb5a32ec257a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5c8880d78e094c184ccdbb5a32ec257a">ParserPrototxtFixture</a> ()</td></tr> |
| 111 | <tr class="separator:a5c8880d78e094c184ccdbb5a32ec257a"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:ac3387a6894de9ea024d19391004a3b9f"><td class="memTemplParams" colspan="2">template<std::size_t NumOutputDimensions> </td></tr> |
| 113 | <tr class="memitem:ac3387a6894de9ea024d19391004a3b9f"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#ac3387a6894de9ea024d19391004a3b9f">RunTest</a> (const std::vector< float > &inputData, const std::vector< float > &expectedOutputData)</td></tr> |
| 114 | <tr class="memdesc:ac3387a6894de9ea024d19391004a3b9f"><td class="mdescLeft"> </td><td class="mdescRight">Executes the network with the given input tensor and checks the result against the given output tensor. <a href="#ac3387a6894de9ea024d19391004a3b9f">More...</a><br /></td></tr> |
| 115 | <tr class="separator:ac3387a6894de9ea024d19391004a3b9f"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a2f52e74218733c22d3605233ef985ad4"><td class="memTemplParams" colspan="2">template<std::size_t NumOutputDimensions> </td></tr> |
| 117 | <tr class="memitem:a2f52e74218733c22d3605233ef985ad4"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f52e74218733c22d3605233ef985ad4">RunComparisonTest</a> (const std::map< std::string, std::vector< float >> &inputData, const std::map< std::string, std::vector< uint8_t >> &expectedOutputData)</td></tr> |
| 118 | <tr class="memdesc:a2f52e74218733c22d3605233ef985ad4"><td class="mdescLeft"> </td><td class="mdescRight">Executes the network with the given input tensor and checks the result against the given output tensor. <a href="#a2f52e74218733c22d3605233ef985ad4">More...</a><br /></td></tr> |
| 119 | <tr class="separator:a2f52e74218733c22d3605233ef985ad4"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a99d60b479a3ce38c09a5663898bfc216"><td class="memTemplParams" colspan="2">template<std::size_t NumOutputDimensions, typename T = float> </td></tr> |
| 121 | <tr class="memitem:a99d60b479a3ce38c09a5663898bfc216"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a99d60b479a3ce38c09a5663898bfc216">RunTest</a> (const std::map< std::string, std::vector< float >> &inputData, const std::map< std::string, std::vector< T >> &expectedOutputData)</td></tr> |
| 122 | <tr class="memdesc:a99d60b479a3ce38c09a5663898bfc216"><td class="mdescLeft"> </td><td class="mdescRight">Executes the network with the given input tensors and checks the results against the given output tensors. <a href="#a99d60b479a3ce38c09a5663898bfc216">More...</a><br /></td></tr> |
| 123 | <tr class="separator:a99d60b479a3ce38c09a5663898bfc216"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr><td colspan="2"><div class="groupHeader"></div></td></tr> |
| 125 | <tr class="memitem:a2bb4ea256fbbf6d53068ca93bb4bc95c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2bb4ea256fbbf6d53068ca93bb4bc95c">SetupSingleInputSingleOutput</a> (const std::string &inputName, const std::string &outputName)</td></tr> |
| 126 | <tr class="memdesc:a2bb4ea256fbbf6d53068ca93bb4bc95c"><td class="mdescLeft"> </td><td class="mdescRight">Parses and loads the network defined by the m_Prototext string. <a href="#a2bb4ea256fbbf6d53068ca93bb4bc95c">More...</a><br /></td></tr> |
| 127 | <tr class="separator:a2bb4ea256fbbf6d53068ca93bb4bc95c"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a7c3ab4f16dbc19e127766bae14824a60"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a7c3ab4f16dbc19e127766bae14824a60">SetupSingleInputSingleOutput</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &inputTensorShape, const std::string &inputName, const std::string &outputName)</td></tr> |
| 129 | <tr class="separator:a7c3ab4f16dbc19e127766bae14824a60"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:aacdd35e3ab19837fb66d97ae6d14fce9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aacdd35e3ab19837fb66d97ae6d14fce9">SetupSingleInputSingleOutput</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &inputTensorShape, const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> &outputTensorShape, const std::string &inputName, const std::string &outputName)</td></tr> |
| 131 | <tr class="separator:aacdd35e3ab19837fb66d97ae6d14fce9"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a500efa02714545912d65fab4e48f2920"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a500efa02714545912d65fab4e48f2920">Setup</a> (const std::map< std::string, <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> > &inputShapes, const std::vector< std::string > &requestedOutputs)</td></tr> |
| 133 | <tr class="separator:a500efa02714545912d65fab4e48f2920"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a769404f2985a027a0d626fedfd4de1e9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">Setup</a> ()</td></tr> |
| 135 | <tr class="separator:a769404f2985a027a0d626fedfd4de1e9"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a831d13496f4d19677209c61edfa9eca5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a674efcf6cbdb9e831d653ff0e821fb38">armnn::IOptimizedNetworkPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a831d13496f4d19677209c61edfa9eca5">SetupOptimizedNetwork</a> (const std::map< std::string, <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> > &inputShapes, const std::vector< std::string > &requestedOutputs)</td></tr> |
| 137 | <tr class="separator:a831d13496f4d19677209c61edfa9eca5"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | </table><table class="memberdecls"> |
| 139 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> |
| 140 | Public Attributes</h2></td></tr> |
| 141 | <tr class="memitem:a5ca0f757171382fbf7fa5b05b447b024"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">m_Prototext</a></td></tr> |
| 142 | <tr class="separator:a5ca0f757171382fbf7fa5b05b447b024"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:a8d1364ba09a94795405d6f70c11a79b8"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< TParser, void(*)(TParser *parser)> </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a></td></tr> |
| 144 | <tr class="separator:a8d1364ba09a94795405d6f70c11a79b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:aefd699eb0838261fbe9770d511f63f24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a></td></tr> |
| 146 | <tr class="separator:aefd699eb0838261fbe9770d511f63f24"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr class="memitem:a0b81fa34e5ca505b9880755f702fafe7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">m_NetworkIdentifier</a></td></tr> |
| 148 | <tr class="separator:a0b81fa34e5ca505b9880755f702fafe7"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:a2da3f1bce243a9798902db85891fd733"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a></td></tr> |
| 150 | <tr class="memdesc:a2da3f1bce243a9798902db85891fd733"><td class="mdescLeft"> </td><td class="mdescRight">This will store the output shape so it don't need to be passed to the single-input-single-output overload of <a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#ac3387a6894de9ea024d19391004a3b9f" title="Executes the network with the given input tensor and checks the result against the given output tenso...">RunTest()</a>. <a href="#a2da3f1bce243a9798902db85891fd733">More...</a><br /></td></tr> |
| 151 | <tr class="separator:a2da3f1bce243a9798902db85891fd733"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr><td colspan="2"><div class="groupHeader"></div></td></tr> |
| 153 | <tr class="memitem:a2f8365158b7c75e43897fbe804b7fc4f"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">m_SingleInputName</a></td></tr> |
| 154 | <tr class="memdesc:a2f8365158b7c75e43897fbe804b7fc4f"><td class="mdescLeft"> </td><td class="mdescRight">If the single-input-single-output overload of <a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">Setup()</a> is called, these will store the input and output name so they don't need to be passed to the single-input-single-output overload of <a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#ac3387a6894de9ea024d19391004a3b9f" title="Executes the network with the given input tensor and checks the result against the given output tenso...">RunTest()</a>. <a href="#a2f8365158b7c75e43897fbe804b7fc4f">More...</a><br /></td></tr> |
| 155 | <tr class="separator:a2f8365158b7c75e43897fbe804b7fc4f"><td class="memSeparator" colspan="2"> </td></tr> |
| 156 | <tr class="memitem:add32b4d209a5b5d6ea6db94b9894ad75"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">m_SingleOutputName</a></td></tr> |
| 157 | <tr class="separator:add32b4d209a5b5d6ea6db94b9894ad75"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | </table> |
| 159 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 160 | <div class="textblock"><h3>template<typename TParser><br /> |
| 161 | struct armnnUtils::ParserPrototxtFixture< TParser ></h3> |
| 162 | |
| 163 | |
| 164 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00024">24</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 165 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 166 | <a id="a5c8880d78e094c184ccdbb5a32ec257a"></a> |
| 167 | <h2 class="memtitle"><span class="permalink"><a href="#a5c8880d78e094c184ccdbb5a32ec257a">◆ </a></span>ParserPrototxtFixture()</h2> |
| 168 | |
| 169 | <div class="memitem"> |
| 170 | <div class="memproto"> |
| 171 | <table class="mlabels"> |
| 172 | <tr> |
| 173 | <td class="mlabels-left"> |
| 174 | <table class="memname"> |
| 175 | <tr> |
| 176 | <td class="memname"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml">ParserPrototxtFixture</a> </td> |
| 177 | <td>(</td> |
| 178 | <td class="paramname"></td><td>)</td> |
| 179 | <td></td> |
| 180 | </tr> |
| 181 | </table> |
| 182 | </td> |
| 183 | <td class="mlabels-right"> |
| 184 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 185 | </tr> |
| 186 | </table> |
| 187 | </div><div class="memdoc"> |
| 188 | |
| 189 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00026">26</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 190 | <div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  : <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>(TParser::Create())</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  , <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>(<a class="code" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a>(<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a>()))</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  , <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">m_NetworkIdentifier</a>(-1)</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="ttc" id="classarmnn_1_1_i_runtime_xhtml_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml#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.xhtml#l00032">Runtime.cpp:32</a></div></div> |
| 191 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a8d1364ba09a94795405d6f70c11a79b8"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">armnnUtils::ParserPrototxtFixture::m_Parser</a></div><div class="ttdeci">std::unique_ptr< TParser, void(*)(TParser *parser)> m_Parser</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00069">ParserPrototxtFixture.hpp:69</a></div></div> |
| 192 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a0b81fa34e5ca505b9880755f702fafe7"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">armnnUtils::ParserPrototxtFixture::m_NetworkIdentifier</a></div><div class="ttdeci">armnn::NetworkId m_NetworkIdentifier</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00071">ParserPrototxtFixture.hpp:71</a></div></div> |
| 193 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_aefd699eb0838261fbe9770d511f63f24"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">armnnUtils::ParserPrototxtFixture::m_Runtime</a></div><div class="ttdeci">armnn::IRuntimePtr m_Runtime</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00070">ParserPrototxtFixture.hpp:70</a></div></div> |
| 194 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> |
| 195 | </div><!-- fragment --> |
| 196 | </div> |
| 197 | </div> |
| 198 | <h2 class="groupheader">Member Function Documentation</h2> |
| 199 | <a id="a2f52e74218733c22d3605233ef985ad4"></a> |
| 200 | <h2 class="memtitle"><span class="permalink"><a href="#a2f52e74218733c22d3605233ef985ad4">◆ </a></span>RunComparisonTest()</h2> |
| 201 | |
| 202 | <div class="memitem"> |
| 203 | <div class="memproto"> |
| 204 | <table class="memname"> |
| 205 | <tr> |
| 206 | <td class="memname">void RunComparisonTest </td> |
| 207 | <td>(</td> |
| 208 | <td class="paramtype">const std::map< std::string, std::vector< float >> & </td> |
| 209 | <td class="paramname"><em>inputData</em>, </td> |
| 210 | </tr> |
| 211 | <tr> |
| 212 | <td class="paramkey"></td> |
| 213 | <td></td> |
| 214 | <td class="paramtype">const std::map< std::string, std::vector< uint8_t >> & </td> |
| 215 | <td class="paramname"><em>expectedOutputData</em> </td> |
| 216 | </tr> |
| 217 | <tr> |
| 218 | <td></td> |
| 219 | <td>)</td> |
| 220 | <td></td><td></td> |
| 221 | </tr> |
| 222 | </table> |
| 223 | </div><div class="memdoc"> |
| 224 | |
| 225 | <p>Executes the network with the given input tensor and checks the result against the given output tensor. </p> |
| 226 | <p>Calls RunTest with output type of uint8_t for checking comparison operators. </p> |
| 227 | |
| 228 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00178">178</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 229 | |
| 230 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00026">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::ParserPrototxtFixture()</a>.</p> |
| 231 | <div class="fragment"><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>  RunTest<NumOutputDimensions, uint8_t>(inputData, expectedOutputData);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div></div><!-- fragment --> |
| 232 | </div> |
| 233 | </div> |
| 234 | <a id="ac3387a6894de9ea024d19391004a3b9f"></a> |
| 235 | <h2 class="memtitle"><span class="permalink"><a href="#ac3387a6894de9ea024d19391004a3b9f">◆ </a></span>RunTest() <span class="overload">[1/2]</span></h2> |
| 236 | |
| 237 | <div class="memitem"> |
| 238 | <div class="memproto"> |
| 239 | <table class="memname"> |
| 240 | <tr> |
| 241 | <td class="memname">void RunTest </td> |
| 242 | <td>(</td> |
| 243 | <td class="paramtype">const std::vector< float > & </td> |
| 244 | <td class="paramname"><em>inputData</em>, </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td class="paramkey"></td> |
| 248 | <td></td> |
| 249 | <td class="paramtype">const std::vector< float > & </td> |
| 250 | <td class="paramname"><em>expectedOutputData</em> </td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td></td> |
| 254 | <td>)</td> |
| 255 | <td></td><td></td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | <p>Executes the network with the given input tensor and checks the result against the given output tensor. </p> |
| 261 | <p>This overload assumes that the network has a single input and a single output. </p> |
| 262 | |
| 263 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00170">170</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 264 | |
| 265 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00026">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::ParserPrototxtFixture()</a>.</p> |
| 266 | <div class="fragment"><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> {</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  RunTest<NumOutputDimensions>({ { <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">m_SingleInputName</a>, inputData } }, { { <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">m_SingleOutputName</a>, expectedOutputData } });</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> }</div><div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a2f8365158b7c75e43897fbe804b7fc4f"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">armnnUtils::ParserPrototxtFixture::m_SingleInputName</a></div><div class="ttdeci">std::string m_SingleInputName</div><div class="ttdoc">If the single-input-single-output overload of Setup() is called, these will store the input and outpu...</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00076">ParserPrototxtFixture.hpp:76</a></div></div> |
| 267 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_add32b4d209a5b5d6ea6db94b9894ad75"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">armnnUtils::ParserPrototxtFixture::m_SingleOutputName</a></div><div class="ttdeci">std::string m_SingleOutputName</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00077">ParserPrototxtFixture.hpp:77</a></div></div> |
| 268 | </div><!-- fragment --> |
| 269 | </div> |
| 270 | </div> |
| 271 | <a id="a99d60b479a3ce38c09a5663898bfc216"></a> |
| 272 | <h2 class="memtitle"><span class="permalink"><a href="#a99d60b479a3ce38c09a5663898bfc216">◆ </a></span>RunTest() <span class="overload">[2/2]</span></h2> |
| 273 | |
| 274 | <div class="memitem"> |
| 275 | <div class="memproto"> |
| 276 | <table class="memname"> |
| 277 | <tr> |
| 278 | <td class="memname">void RunTest </td> |
| 279 | <td>(</td> |
| 280 | <td class="paramtype">const std::map< std::string, std::vector< float >> & </td> |
| 281 | <td class="paramname"><em>inputData</em>, </td> |
| 282 | </tr> |
| 283 | <tr> |
| 284 | <td class="paramkey"></td> |
| 285 | <td></td> |
| 286 | <td class="paramtype">const std::map< std::string, std::vector< T >> & </td> |
| 287 | <td class="paramname"><em>expectedOutputData</em> </td> |
| 288 | </tr> |
| 289 | <tr> |
| 290 | <td></td> |
| 291 | <td>)</td> |
| 292 | <td></td><td></td> |
| 293 | </tr> |
| 294 | </table> |
| 295 | </div><div class="memdoc"> |
| 296 | |
| 297 | <p>Executes the network with the given input tensors and checks the results against the given output tensors. </p> |
| 298 | <p>This overload supports multiple inputs and multiple outputs, identified by name. </p> |
| 299 | |
| 300 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00187">187</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 301 | <div class="fragment"><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">// Sets up the armnn input tensors from the given vectors.</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="namespacearmnn.xhtml#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a> inputTensors;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& it : inputData)</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>  <a class="code" href="namespacearmnn.xhtml#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> bindingInfo = <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>->GetNetworkInputBindingInfo(it.first);</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  inputTensors.push_back({ bindingInfo.first, <a class="code" href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a>(bindingInfo.second, it.second.data()) });</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  }</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="comment">// Allocates storage for the output tensors to be written to and sets up the armnn output tensors.</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  std::map<std::string, boost::multi_array<T, NumOutputDimensions>> outputStorage;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="namespacearmnn.xhtml#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a> outputTensors;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& it : expectedOutputData)</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  {</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="namespacearmnn.xhtml#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> bindingInfo = <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>->GetNetworkOutputBindingInfo(it.first);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  outputStorage.emplace(it.first, MakeTensor<T, NumOutputDimensions>(bindingInfo.second));</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  outputTensors.push_back(</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  { bindingInfo.first, <a class="code" href="classarmnn_1_1_tensor.xhtml">armnn::Tensor</a>(bindingInfo.second, outputStorage.at(it.first).data()) });</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> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>->EnqueueWorkload(<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">m_NetworkIdentifier</a>, inputTensors, outputTensors);</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">// Compares each output tensor to the expected values.</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& it : expectedOutputData)</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="namespacearmnn.xhtml#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> bindingInfo = <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>->GetNetworkOutputBindingInfo(it.first);</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">if</span> (bindingInfo.second.GetNumElements() != it.second.size())</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  boost::str(boost::format(<span class="stringliteral">"Output tensor %1% is expected to have %2% elements. "</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="stringliteral">"%3% elements supplied. %4%"</span>) %</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  it.first %</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  bindingInfo.second.GetNumElements() %</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  it.second.size() %</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</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> </div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="comment">// If the expected output shape is set, the output tensor checks will be carried out.</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a>.<a class="code" href="classarmnn_1_1_tensor_shape.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() != 0)</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> </div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">if</span> (bindingInfo.second.GetShape().GetNumDimensions() == NumOutputDimensions &&</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  bindingInfo.second.GetShape().GetNumDimensions() == <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a>.<a class="code" href="classarmnn_1_1_tensor_shape.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>())</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>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a>.<a class="code" href="classarmnn_1_1_tensor_shape.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); ++i)</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">if</span> (<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a>[i] != bindingInfo.second.GetShape()[i])</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">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  boost::str(boost::format(<span class="stringliteral">"Output tensor %1% is expected to have %2% shape. "</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="stringliteral">"%3% shape supplied. %4%"</span>) %</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  it.first %</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  bindingInfo.second.GetShape() %</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a> %</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  }</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  }</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  {</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  boost::str(boost::format(<span class="stringliteral">"Output tensor %1% is expected to have %2% dimensions. "</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="stringliteral">"%3% dimensions supplied. %4%"</span>) %</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  it.first %</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  bindingInfo.second.GetShape().GetNumDimensions() %</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  NumOutputDimensions %</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  }</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keyword">auto</span> outputExpected = MakeTensor<T, NumOutputDimensions>(bindingInfo.second, it.second);</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (std::is_same<T, uint8_t>::value)</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  {</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  BOOST_TEST(<a class="code" href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors</a>(outputExpected, outputStorage[it.first], <span class="keyword">true</span>));</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  }</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  BOOST_TEST(<a class="code" href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors</a>(outputExpected, outputStorage[it.first]));</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  }</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  }</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> }</div><div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a2da3f1bce243a9798902db85891fd733"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">armnnUtils::ParserPrototxtFixture::m_SingleOutputShape</a></div><div class="ttdeci">armnn::TensorShape m_SingleOutputShape</div><div class="ttdoc">This will store the output shape so it don&#39;t need to be passed to the single-input-single-output over...</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00082">ParserPrototxtFixture.hpp:82</a></div></div> |
| 302 | <div class="ttc" id="_tensor_helpers_8hpp_xhtml_a0b8fbb443d2cf34a41f6aaae934e3dcb"><div class="ttname"><a href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors</a></div><div class="ttdeci">boost::test_tools::predicate_result CompareTensors(const boost::multi_array< T, n > &a, const boost::multi_array< T, n > &b, bool compareBoolean=false)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_helpers_8hpp_source.xhtml#l00075">TensorHelpers.hpp:75</a></div></div> |
| 303 | <div class="ttc" id="namespacearmnn_xhtml_aa01bce88f89975a5a031db4cc8861527"><div class="ttname"><a href="namespacearmnn.xhtml#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00225">Tensor.hpp:225</a></div></div> |
| 304 | <div class="ttc" id="classarmnn_1_1_tensor_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor.xhtml">armnn::Tensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00191">Tensor.hpp:191</a></div></div> |
| 305 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a8d1364ba09a94795405d6f70c11a79b8"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">armnnUtils::ParserPrototxtFixture::m_Parser</a></div><div class="ttdeci">std::unique_ptr< TParser, void(*)(TParser *parser)> m_Parser</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00069">ParserPrototxtFixture.hpp:69</a></div></div> |
| 306 | <div class="ttc" id="classarmnn_1_1_const_tensor_xhtml"><div class="ttname"><a href="classarmnn_1_1_const_tensor.xhtml">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00199">Tensor.hpp:199</a></div></div> |
| 307 | <div class="ttc" id="namespacearmnn_xhtml_a8f091a512915d1cb29a4ebf13dfc53ea"><div class="ttname"><a href="namespacearmnn.xhtml#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00226">Tensor.hpp:226</a></div></div> |
| 308 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a0b81fa34e5ca505b9880755f702fafe7"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">armnnUtils::ParserPrototxtFixture::m_NetworkIdentifier</a></div><div class="ttdeci">armnn::NetworkId m_NetworkIdentifier</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00071">ParserPrototxtFixture.hpp:71</a></div></div> |
| 309 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 310 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_aefd699eb0838261fbe9770d511f63f24"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">armnnUtils::ParserPrototxtFixture::m_Runtime</a></div><div class="ttdeci">armnn::IRuntimePtr m_Runtime</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00070">ParserPrototxtFixture.hpp:70</a></div></div> |
| 311 | <div class="ttc" id="namespacearmnn_xhtml_a280670a263dc4fd40491f6d0a2737f44"><div class="ttname"><a href="namespacearmnn.xhtml#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a></div><div class="ttdeci">std::pair< armnn::LayerBindingId, armnn::TensorInfo > BindingPointInfo</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00146">Tensor.hpp:146</a></div></div> |
| 312 | <div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">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.xhtml#l00046">Exceptions.hpp:46</a></div></div> |
| 313 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00043">Tensor.hpp:43</a></div></div> |
| 314 | </div><!-- fragment --> |
| 315 | </div> |
| 316 | </div> |
| 317 | <a id="a500efa02714545912d65fab4e48f2920"></a> |
| 318 | <h2 class="memtitle"><span class="permalink"><a href="#a500efa02714545912d65fab4e48f2920">◆ </a></span>Setup() <span class="overload">[1/2]</span></h2> |
| 319 | |
| 320 | <div class="memitem"> |
| 321 | <div class="memproto"> |
| 322 | <table class="memname"> |
| 323 | <tr> |
| 324 | <td class="memname">void Setup </td> |
| 325 | <td>(</td> |
| 326 | <td class="paramtype">const std::map< std::string, <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> > & </td> |
| 327 | <td class="paramname"><em>inputShapes</em>, </td> |
| 328 | </tr> |
| 329 | <tr> |
| 330 | <td class="paramkey"></td> |
| 331 | <td></td> |
| 332 | <td class="paramtype">const std::vector< std::string > & </td> |
| 333 | <td class="paramname"><em>requestedOutputs</em> </td> |
| 334 | </tr> |
| 335 | <tr> |
| 336 | <td></td> |
| 337 | <td>)</td> |
| 338 | <td></td><td></td> |
| 339 | </tr> |
| 340 | </table> |
| 341 | </div><div class="memdoc"> |
| 342 | |
| 343 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00121">121</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 344 | <div class="fragment"><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::string errorMessage;</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.xhtml#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network =</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>->CreateNetworkFromString(<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">m_Prototext</a>.c_str(), inputShapes, requestedOutputs);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">auto</span> optimized = <a class="code" href="namespacearmnn.xhtml#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, { <a class="code" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a> }, <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>->GetDeviceSpec());</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a> ret = <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>->LoadNetwork(<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">m_NetworkIdentifier</a>, move(optimized), errorMessage);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span> (ret != <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70ba505a83f220c02df2f85c3810cd9ceb38">armnn::Status::Success</a>)</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(boost::str(</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  boost::format(<span class="stringliteral">"LoadNetwork failed with error: '%1%' %2%"</span>)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  % errorMessage</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  % <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64"><div class="ttname"><a href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a></div><div class="ttdoc">CPU Execution: Reference C++ kernels. </div></div> |
| 345 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a5ca0f757171382fbf7fa5b05b447b024"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">armnnUtils::ParserPrototxtFixture::m_Prototext</a></div><div class="ttdeci">std::string m_Prototext</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00068">ParserPrototxtFixture.hpp:68</a></div></div> |
| 346 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a8d1364ba09a94795405d6f70c11a79b8"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">armnnUtils::ParserPrototxtFixture::m_Parser</a></div><div class="ttdeci">std::unique_ptr< TParser, void(*)(TParser *parser)> m_Parser</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00069">ParserPrototxtFixture.hpp:69</a></div></div> |
| 347 | <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70ba505a83f220c02df2f85c3810cd9ceb38"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70ba505a83f220c02df2f85c3810cd9ceb38">armnn::Status::Success</a></div></div> |
| 348 | <div class="ttc" id="namespacearmnn_xhtml_a82e98ef05fd67036d1195ba17174d685"><div class="ttname"><a href="namespacearmnn.xhtml#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="ttdoc">Create an optimized version of the network. </div><div class="ttdef"><b>Definition:</b> <a href="_network_8cpp_source.xhtml#l00890">Network.cpp:890</a></div></div> |
| 349 | <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">enumeration </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00026">Types.hpp:26</a></div></div> |
| 350 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a0b81fa34e5ca505b9880755f702fafe7"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">armnnUtils::ParserPrototxtFixture::m_NetworkIdentifier</a></div><div class="ttdeci">armnn::NetworkId m_NetworkIdentifier</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00071">ParserPrototxtFixture.hpp:71</a></div></div> |
| 351 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 352 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_aefd699eb0838261fbe9770d511f63f24"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">armnnUtils::ParserPrototxtFixture::m_Runtime</a></div><div class="ttdeci">armnn::IRuntimePtr m_Runtime</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00070">ParserPrototxtFixture.hpp:70</a></div></div> |
| 353 | <div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">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.xhtml#l00046">Exceptions.hpp:46</a></div></div> |
| 354 | <div class="ttc" id="namespacearmnn_xhtml_ace74f6f9feb95a964a49d79458232703"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00101">INetwork.hpp:101</a></div></div> |
| 355 | </div><!-- fragment --> |
| 356 | </div> |
| 357 | </div> |
| 358 | <a id="a769404f2985a027a0d626fedfd4de1e9"></a> |
| 359 | <h2 class="memtitle"><span class="permalink"><a href="#a769404f2985a027a0d626fedfd4de1e9">◆ </a></span>Setup() <span class="overload">[2/2]</span></h2> |
| 360 | |
| 361 | <div class="memitem"> |
| 362 | <div class="memproto"> |
| 363 | <table class="memname"> |
| 364 | <tr> |
| 365 | <td class="memname">void Setup </td> |
| 366 | <td>(</td> |
| 367 | <td class="paramname"></td><td>)</td> |
| 368 | <td></td> |
| 369 | </tr> |
| 370 | </table> |
| 371 | </div><div class="memdoc"> |
| 372 | |
| 373 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00140">140</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 374 | |
| 375 | <p class="reference">Referenced by <a class="el" href="armnn_tf_parser_2test_2_minimum_8cpp_source.xhtml#l00067">BOOST_FIXTURE_TEST_CASE()</a>, <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00026">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::ParserPrototxtFixture()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00086">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupSingleInputSingleOutput()</a>.</p> |
| 376 | <div class="fragment"><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::string errorMessage;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="namespacearmnn.xhtml#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network =</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>->CreateNetworkFromString(<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">m_Prototext</a>.c_str());</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">auto</span> optimized = <a class="code" href="namespacearmnn.xhtml#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, { <a class="code" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a> }, <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>->GetDeviceSpec());</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a> ret = <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>->LoadNetwork(<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">m_NetworkIdentifier</a>, move(optimized), errorMessage);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (ret != <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70ba505a83f220c02df2f85c3810cd9ceb38">armnn::Status::Success</a>)</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="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.xhtml">armnn::Exception</a>(boost::str(</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  boost::format(<span class="stringliteral">"LoadNetwork failed with error: '%1%' %2%"</span>)</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  % errorMessage</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  % <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64"><div class="ttname"><a href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a></div><div class="ttdoc">CPU Execution: Reference C++ kernels. </div></div> |
| 377 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a5ca0f757171382fbf7fa5b05b447b024"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">armnnUtils::ParserPrototxtFixture::m_Prototext</a></div><div class="ttdeci">std::string m_Prototext</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00068">ParserPrototxtFixture.hpp:68</a></div></div> |
| 378 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a8d1364ba09a94795405d6f70c11a79b8"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">armnnUtils::ParserPrototxtFixture::m_Parser</a></div><div class="ttdeci">std::unique_ptr< TParser, void(*)(TParser *parser)> m_Parser</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00069">ParserPrototxtFixture.hpp:69</a></div></div> |
| 379 | <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70ba505a83f220c02df2f85c3810cd9ceb38"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70ba505a83f220c02df2f85c3810cd9ceb38">armnn::Status::Success</a></div></div> |
| 380 | <div class="ttc" id="namespacearmnn_xhtml_a82e98ef05fd67036d1195ba17174d685"><div class="ttname"><a href="namespacearmnn.xhtml#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="ttdoc">Create an optimized version of the network. </div><div class="ttdef"><b>Definition:</b> <a href="_network_8cpp_source.xhtml#l00890">Network.cpp:890</a></div></div> |
| 381 | <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">enumeration </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00026">Types.hpp:26</a></div></div> |
| 382 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a0b81fa34e5ca505b9880755f702fafe7"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a0b81fa34e5ca505b9880755f702fafe7">armnnUtils::ParserPrototxtFixture::m_NetworkIdentifier</a></div><div class="ttdeci">armnn::NetworkId m_NetworkIdentifier</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00071">ParserPrototxtFixture.hpp:71</a></div></div> |
| 383 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 384 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_aefd699eb0838261fbe9770d511f63f24"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">armnnUtils::ParserPrototxtFixture::m_Runtime</a></div><div class="ttdeci">armnn::IRuntimePtr m_Runtime</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00070">ParserPrototxtFixture.hpp:70</a></div></div> |
| 385 | <div class="ttc" id="classarmnn_1_1_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_exception.xhtml">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.xhtml#l00046">Exceptions.hpp:46</a></div></div> |
| 386 | <div class="ttc" id="namespacearmnn_xhtml_ace74f6f9feb95a964a49d79458232703"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00101">INetwork.hpp:101</a></div></div> |
| 387 | </div><!-- fragment --> |
| 388 | </div> |
| 389 | </div> |
| 390 | <a id="a831d13496f4d19677209c61edfa9eca5"></a> |
| 391 | <h2 class="memtitle"><span class="permalink"><a href="#a831d13496f4d19677209c61edfa9eca5">◆ </a></span>SetupOptimizedNetwork()</h2> |
| 392 | |
| 393 | <div class="memitem"> |
| 394 | <div class="memproto"> |
| 395 | <table class="memname"> |
| 396 | <tr> |
| 397 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a674efcf6cbdb9e831d653ff0e821fb38">armnn::IOptimizedNetworkPtr</a> SetupOptimizedNetwork </td> |
| 398 | <td>(</td> |
| 399 | <td class="paramtype">const std::map< std::string, <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> > & </td> |
| 400 | <td class="paramname"><em>inputShapes</em>, </td> |
| 401 | </tr> |
| 402 | <tr> |
| 403 | <td class="paramkey"></td> |
| 404 | <td></td> |
| 405 | <td class="paramtype">const std::vector< std::string > & </td> |
| 406 | <td class="paramname"><em>requestedOutputs</em> </td> |
| 407 | </tr> |
| 408 | <tr> |
| 409 | <td></td> |
| 410 | <td>)</td> |
| 411 | <td></td><td></td> |
| 412 | </tr> |
| 413 | </table> |
| 414 | </div><div class="memdoc"> |
| 415 | |
| 416 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00158">158</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 417 | |
| 418 | <p class="reference">Referenced by <a class="el" href="_assert_8cpp_source.xhtml#l00099">BOOST_FIXTURE_TEST_CASE()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00026">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::ParserPrototxtFixture()</a>.</p> |
| 419 | <div class="fragment"><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>  <a class="code" href="namespacearmnn.xhtml#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network =</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">m_Parser</a>->CreateNetworkFromString(<a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">m_Prototext</a>.c_str(), inputShapes, requestedOutputs);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">auto</span> optimized = <a class="code" href="namespacearmnn.xhtml#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, { <a class="code" href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a> }, <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">m_Runtime</a>->GetDeviceSpec());</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">return</span> optimized;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div><div class="ttc" id="namespacearmnn_xhtml_ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64"><div class="ttname"><a href="namespacearmnn.xhtml#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a></div><div class="ttdoc">CPU Execution: Reference C++ kernels. </div></div> |
| 420 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a5ca0f757171382fbf7fa5b05b447b024"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a5ca0f757171382fbf7fa5b05b447b024">armnnUtils::ParserPrototxtFixture::m_Prototext</a></div><div class="ttdeci">std::string m_Prototext</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00068">ParserPrototxtFixture.hpp:68</a></div></div> |
| 421 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a8d1364ba09a94795405d6f70c11a79b8"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a8d1364ba09a94795405d6f70c11a79b8">armnnUtils::ParserPrototxtFixture::m_Parser</a></div><div class="ttdeci">std::unique_ptr< TParser, void(*)(TParser *parser)> m_Parser</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00069">ParserPrototxtFixture.hpp:69</a></div></div> |
| 422 | <div class="ttc" id="namespacearmnn_xhtml_a82e98ef05fd67036d1195ba17174d685"><div class="ttname"><a href="namespacearmnn.xhtml#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="ttdoc">Create an optimized version of the network. </div><div class="ttdef"><b>Definition:</b> <a href="_network_8cpp_source.xhtml#l00890">Network.cpp:890</a></div></div> |
| 423 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_aefd699eb0838261fbe9770d511f63f24"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#aefd699eb0838261fbe9770d511f63f24">armnnUtils::ParserPrototxtFixture::m_Runtime</a></div><div class="ttdeci">armnn::IRuntimePtr m_Runtime</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00070">ParserPrototxtFixture.hpp:70</a></div></div> |
| 424 | <div class="ttc" id="namespacearmnn_xhtml_ace74f6f9feb95a964a49d79458232703"><div class="ttname"><a href="namespacearmnn.xhtml#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.xhtml#l00101">INetwork.hpp:101</a></div></div> |
| 425 | </div><!-- fragment --> |
| 426 | </div> |
| 427 | </div> |
| 428 | <a id="a2bb4ea256fbbf6d53068ca93bb4bc95c"></a> |
| 429 | <h2 class="memtitle"><span class="permalink"><a href="#a2bb4ea256fbbf6d53068ca93bb4bc95c">◆ </a></span>SetupSingleInputSingleOutput() <span class="overload">[1/3]</span></h2> |
| 430 | |
| 431 | <div class="memitem"> |
| 432 | <div class="memproto"> |
| 433 | <table class="memname"> |
| 434 | <tr> |
| 435 | <td class="memname">void SetupSingleInputSingleOutput </td> |
| 436 | <td>(</td> |
| 437 | <td class="paramtype">const std::string & </td> |
| 438 | <td class="paramname"><em>inputName</em>, </td> |
| 439 | </tr> |
| 440 | <tr> |
| 441 | <td class="paramkey"></td> |
| 442 | <td></td> |
| 443 | <td class="paramtype">const std::string & </td> |
| 444 | <td class="paramname"><em>outputName</em> </td> |
| 445 | </tr> |
| 446 | <tr> |
| 447 | <td></td> |
| 448 | <td>)</td> |
| 449 | <td></td><td></td> |
| 450 | </tr> |
| 451 | </table> |
| 452 | </div><div class="memdoc"> |
| 453 | |
| 454 | <p>Parses and loads the network defined by the m_Prototext string. </p> |
| 455 | |
| 456 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00086">86</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 457 | |
| 458 | <p class="reference">Referenced by <a class="el" href="_assert_8cpp_source.xhtml#l00093">BOOST_FIXTURE_TEST_CASE()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00026">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::ParserPrototxtFixture()</a>.</p> |
| 459 | <div class="fragment"><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> {</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">// Stores the input and output name so they don't need to be passed to the single-input-single-output RunTest().</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">m_SingleInputName</a> = inputName;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">m_SingleOutputName</a> = outputName;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">Setup</a>({ }, { outputName });</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> }</div><div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a2f8365158b7c75e43897fbe804b7fc4f"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">armnnUtils::ParserPrototxtFixture::m_SingleInputName</a></div><div class="ttdeci">std::string m_SingleInputName</div><div class="ttdoc">If the single-input-single-output overload of Setup() is called, these will store the input and outpu...</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00076">ParserPrototxtFixture.hpp:76</a></div></div> |
| 460 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_add32b4d209a5b5d6ea6db94b9894ad75"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">armnnUtils::ParserPrototxtFixture::m_SingleOutputName</a></div><div class="ttdeci">std::string m_SingleOutputName</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00077">ParserPrototxtFixture.hpp:77</a></div></div> |
| 461 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a769404f2985a027a0d626fedfd4de1e9"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">armnnUtils::ParserPrototxtFixture::Setup</a></div><div class="ttdeci">void Setup()</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00140">ParserPrototxtFixture.hpp:140</a></div></div> |
| 462 | </div><!-- fragment --> |
| 463 | </div> |
| 464 | </div> |
| 465 | <a id="a7c3ab4f16dbc19e127766bae14824a60"></a> |
| 466 | <h2 class="memtitle"><span class="permalink"><a href="#a7c3ab4f16dbc19e127766bae14824a60">◆ </a></span>SetupSingleInputSingleOutput() <span class="overload">[2/3]</span></h2> |
| 467 | |
| 468 | <div class="memitem"> |
| 469 | <div class="memproto"> |
| 470 | <table class="memname"> |
| 471 | <tr> |
| 472 | <td class="memname">void SetupSingleInputSingleOutput </td> |
| 473 | <td>(</td> |
| 474 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> & </td> |
| 475 | <td class="paramname"><em>inputTensorShape</em>, </td> |
| 476 | </tr> |
| 477 | <tr> |
| 478 | <td class="paramkey"></td> |
| 479 | <td></td> |
| 480 | <td class="paramtype">const std::string & </td> |
| 481 | <td class="paramname"><em>inputName</em>, </td> |
| 482 | </tr> |
| 483 | <tr> |
| 484 | <td class="paramkey"></td> |
| 485 | <td></td> |
| 486 | <td class="paramtype">const std::string & </td> |
| 487 | <td class="paramname"><em>outputName</em> </td> |
| 488 | </tr> |
| 489 | <tr> |
| 490 | <td></td> |
| 491 | <td>)</td> |
| 492 | <td></td><td></td> |
| 493 | </tr> |
| 494 | </table> |
| 495 | </div><div class="memdoc"> |
| 496 | |
| 497 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00096">96</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 498 | <div class="fragment"><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// Stores the input and output name so they don't need to be passed to the single-input-single-output RunTest().</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">m_SingleInputName</a> = inputName;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">m_SingleOutputName</a> = outputName;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">Setup</a>({ { inputName, inputTensorShape } }, { outputName });</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div><div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a2f8365158b7c75e43897fbe804b7fc4f"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">armnnUtils::ParserPrototxtFixture::m_SingleInputName</a></div><div class="ttdeci">std::string m_SingleInputName</div><div class="ttdoc">If the single-input-single-output overload of Setup() is called, these will store the input and outpu...</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00076">ParserPrototxtFixture.hpp:76</a></div></div> |
| 499 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_add32b4d209a5b5d6ea6db94b9894ad75"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">armnnUtils::ParserPrototxtFixture::m_SingleOutputName</a></div><div class="ttdeci">std::string m_SingleOutputName</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00077">ParserPrototxtFixture.hpp:77</a></div></div> |
| 500 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a769404f2985a027a0d626fedfd4de1e9"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">armnnUtils::ParserPrototxtFixture::Setup</a></div><div class="ttdeci">void Setup()</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00140">ParserPrototxtFixture.hpp:140</a></div></div> |
| 501 | </div><!-- fragment --> |
| 502 | </div> |
| 503 | </div> |
| 504 | <a id="aacdd35e3ab19837fb66d97ae6d14fce9"></a> |
| 505 | <h2 class="memtitle"><span class="permalink"><a href="#aacdd35e3ab19837fb66d97ae6d14fce9">◆ </a></span>SetupSingleInputSingleOutput() <span class="overload">[3/3]</span></h2> |
| 506 | |
| 507 | <div class="memitem"> |
| 508 | <div class="memproto"> |
| 509 | <table class="memname"> |
| 510 | <tr> |
| 511 | <td class="memname">void SetupSingleInputSingleOutput </td> |
| 512 | <td>(</td> |
| 513 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> & </td> |
| 514 | <td class="paramname"><em>inputTensorShape</em>, </td> |
| 515 | </tr> |
| 516 | <tr> |
| 517 | <td class="paramkey"></td> |
| 518 | <td></td> |
| 519 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> & </td> |
| 520 | <td class="paramname"><em>outputTensorShape</em>, </td> |
| 521 | </tr> |
| 522 | <tr> |
| 523 | <td class="paramkey"></td> |
| 524 | <td></td> |
| 525 | <td class="paramtype">const std::string & </td> |
| 526 | <td class="paramname"><em>inputName</em>, </td> |
| 527 | </tr> |
| 528 | <tr> |
| 529 | <td class="paramkey"></td> |
| 530 | <td></td> |
| 531 | <td class="paramtype">const std::string & </td> |
| 532 | <td class="paramname"><em>outputName</em> </td> |
| 533 | </tr> |
| 534 | <tr> |
| 535 | <td></td> |
| 536 | <td>)</td> |
| 537 | <td></td><td></td> |
| 538 | </tr> |
| 539 | </table> |
| 540 | </div><div class="memdoc"> |
| 541 | |
| 542 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00107">107</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 543 | <div class="fragment"><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>  <span class="comment">// Stores the input name, the output name and the output tensor shape</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">// so they don't need to be passed to the single-input-single-output RunTest().</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">m_SingleInputName</a> = inputName;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">m_SingleOutputName</a> = outputName;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">m_SingleOutputShape</a> = outputTensorShape;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">Setup</a>({ { inputName, inputTensorShape } }, { outputName });</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div><div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a2da3f1bce243a9798902db85891fd733"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2da3f1bce243a9798902db85891fd733">armnnUtils::ParserPrototxtFixture::m_SingleOutputShape</a></div><div class="ttdeci">armnn::TensorShape m_SingleOutputShape</div><div class="ttdoc">This will store the output shape so it don&#39;t need to be passed to the single-input-single-output over...</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00082">ParserPrototxtFixture.hpp:82</a></div></div> |
| 544 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a2f8365158b7c75e43897fbe804b7fc4f"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a2f8365158b7c75e43897fbe804b7fc4f">armnnUtils::ParserPrototxtFixture::m_SingleInputName</a></div><div class="ttdeci">std::string m_SingleInputName</div><div class="ttdoc">If the single-input-single-output overload of Setup() is called, these will store the input and outpu...</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00076">ParserPrototxtFixture.hpp:76</a></div></div> |
| 545 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_add32b4d209a5b5d6ea6db94b9894ad75"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#add32b4d209a5b5d6ea6db94b9894ad75">armnnUtils::ParserPrototxtFixture::m_SingleOutputName</a></div><div class="ttdeci">std::string m_SingleOutputName</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00077">ParserPrototxtFixture.hpp:77</a></div></div> |
| 546 | <div class="ttc" id="structarmnn_utils_1_1_parser_prototxt_fixture_xhtml_a769404f2985a027a0d626fedfd4de1e9"><div class="ttname"><a href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">armnnUtils::ParserPrototxtFixture::Setup</a></div><div class="ttdeci">void Setup()</div><div class="ttdef"><b>Definition:</b> <a href="_parser_prototxt_fixture_8hpp_source.xhtml#l00140">ParserPrototxtFixture.hpp:140</a></div></div> |
| 547 | </div><!-- fragment --> |
| 548 | </div> |
| 549 | </div> |
| 550 | <h2 class="groupheader">Member Data Documentation</h2> |
| 551 | <a id="a0b81fa34e5ca505b9880755f702fafe7"></a> |
| 552 | <h2 class="memtitle"><span class="permalink"><a href="#a0b81fa34e5ca505b9880755f702fafe7">◆ </a></span>m_NetworkIdentifier</h2> |
| 553 | |
| 554 | <div class="memitem"> |
| 555 | <div class="memproto"> |
| 556 | <table class="memname"> |
| 557 | <tr> |
| 558 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> m_NetworkIdentifier</td> |
| 559 | </tr> |
| 560 | </table> |
| 561 | </div><div class="memdoc"> |
| 562 | |
| 563 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00071">71</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 564 | |
| 565 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00187">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00121">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::Setup()</a>.</p> |
| 566 | |
| 567 | </div> |
| 568 | </div> |
| 569 | <a id="a8d1364ba09a94795405d6f70c11a79b8"></a> |
| 570 | <h2 class="memtitle"><span class="permalink"><a href="#a8d1364ba09a94795405d6f70c11a79b8">◆ </a></span>m_Parser</h2> |
| 571 | |
| 572 | <div class="memitem"> |
| 573 | <div class="memproto"> |
| 574 | <table class="memname"> |
| 575 | <tr> |
| 576 | <td class="memname">std::unique_ptr<TParser, void(*)(TParser* parser)> m_Parser</td> |
| 577 | </tr> |
| 578 | </table> |
| 579 | </div><div class="memdoc"> |
| 580 | |
| 581 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00069">69</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 582 | |
| 583 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00187">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest()</a>, <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00121">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::Setup()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00158">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupOptimizedNetwork()</a>.</p> |
| 584 | |
| 585 | </div> |
| 586 | </div> |
| 587 | <a id="a5ca0f757171382fbf7fa5b05b447b024"></a> |
| 588 | <h2 class="memtitle"><span class="permalink"><a href="#a5ca0f757171382fbf7fa5b05b447b024">◆ </a></span>m_Prototext</h2> |
| 589 | |
| 590 | <div class="memitem"> |
| 591 | <div class="memproto"> |
| 592 | <table class="memname"> |
| 593 | <tr> |
| 594 | <td class="memname">std::string m_Prototext</td> |
| 595 | </tr> |
| 596 | </table> |
| 597 | </div><div class="memdoc"> |
| 598 | |
| 599 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00068">68</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 600 | |
| 601 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00121">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::Setup()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00158">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupOptimizedNetwork()</a>.</p> |
| 602 | |
| 603 | </div> |
| 604 | </div> |
| 605 | <a id="aefd699eb0838261fbe9770d511f63f24"></a> |
| 606 | <h2 class="memtitle"><span class="permalink"><a href="#aefd699eb0838261fbe9770d511f63f24">◆ </a></span>m_Runtime</h2> |
| 607 | |
| 608 | <div class="memitem"> |
| 609 | <div class="memproto"> |
| 610 | <table class="memname"> |
| 611 | <tr> |
| 612 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a> m_Runtime</td> |
| 613 | </tr> |
| 614 | </table> |
| 615 | </div><div class="memdoc"> |
| 616 | |
| 617 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00070">70</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 618 | |
| 619 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00187">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest()</a>, <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00121">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::Setup()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00158">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupOptimizedNetwork()</a>.</p> |
| 620 | |
| 621 | </div> |
| 622 | </div> |
| 623 | <a id="a2f8365158b7c75e43897fbe804b7fc4f"></a> |
| 624 | <h2 class="memtitle"><span class="permalink"><a href="#a2f8365158b7c75e43897fbe804b7fc4f">◆ </a></span>m_SingleInputName</h2> |
| 625 | |
| 626 | <div class="memitem"> |
| 627 | <div class="memproto"> |
| 628 | <table class="memname"> |
| 629 | <tr> |
| 630 | <td class="memname">std::string m_SingleInputName</td> |
| 631 | </tr> |
| 632 | </table> |
| 633 | </div><div class="memdoc"> |
| 634 | |
| 635 | <p>If the single-input-single-output overload of <a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#a769404f2985a027a0d626fedfd4de1e9">Setup()</a> is called, these will store the input and output name so they don't need to be passed to the single-input-single-output overload of <a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#ac3387a6894de9ea024d19391004a3b9f" title="Executes the network with the given input tensor and checks the result against the given output tenso...">RunTest()</a>. </p> |
| 636 | |
| 637 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00076">76</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 638 | |
| 639 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00170">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00086">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupSingleInputSingleOutput()</a>.</p> |
| 640 | |
| 641 | </div> |
| 642 | </div> |
| 643 | <a id="add32b4d209a5b5d6ea6db94b9894ad75"></a> |
| 644 | <h2 class="memtitle"><span class="permalink"><a href="#add32b4d209a5b5d6ea6db94b9894ad75">◆ </a></span>m_SingleOutputName</h2> |
| 645 | |
| 646 | <div class="memitem"> |
| 647 | <div class="memproto"> |
| 648 | <table class="memname"> |
| 649 | <tr> |
| 650 | <td class="memname">std::string m_SingleOutputName</td> |
| 651 | </tr> |
| 652 | </table> |
| 653 | </div><div class="memdoc"> |
| 654 | |
| 655 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00077">77</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 656 | |
| 657 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00170">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00086">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupSingleInputSingleOutput()</a>.</p> |
| 658 | |
| 659 | </div> |
| 660 | </div> |
| 661 | <a id="a2da3f1bce243a9798902db85891fd733"></a> |
| 662 | <h2 class="memtitle"><span class="permalink"><a href="#a2da3f1bce243a9798902db85891fd733">◆ </a></span>m_SingleOutputShape</h2> |
| 663 | |
| 664 | <div class="memitem"> |
| 665 | <div class="memproto"> |
| 666 | <table class="memname"> |
| 667 | <tr> |
| 668 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a> m_SingleOutputShape</td> |
| 669 | </tr> |
| 670 | </table> |
| 671 | </div><div class="memdoc"> |
| 672 | |
| 673 | <p>This will store the output shape so it don't need to be passed to the single-input-single-output overload of <a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml#ac3387a6894de9ea024d19391004a3b9f" title="Executes the network with the given input tensor and checks the result against the given output tenso...">RunTest()</a>. </p> |
| 674 | |
| 675 | <p class="definition">Definition at line <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00082">82</a> of file <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>.</p> |
| 676 | |
| 677 | <p class="reference">Referenced by <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00187">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest()</a>, and <a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml#l00107">ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::SetupSingleInputSingleOutput()</a>.</p> |
| 678 | |
| 679 | </div> |
| 680 | </div> |
| 681 | <hr/>The documentation for this struct was generated from the following file:<ul> |
| 682 | <li>src/armnnUtils/<a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a></li> |
| 683 | </ul> |
| 684 | </div><!-- contents --> |
| 685 | </div><!-- doc-content --> |
| 686 | <!-- start footer part --> |
| 687 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 688 | <ul> |
| 689 | <li class="navelem"><a class="el" href="namespacearmnn_utils.xhtml">armnnUtils</a></li><li class="navelem"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.xhtml">ParserPrototxtFixture</a></li> |
| 690 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 691 | <a href="http://www.doxygen.org/index.html"> |
| 692 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 693 | </ul> |
| 694 | </div> |
| 695 | </body> |
| 696 | </html> |