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: src/armnnTfParser/test/TestDependencies.cpp File 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('_test_dependencies_8cpp.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="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">TestDependencies.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br /> |
| 104 | <code>#include "<a class="el" href="_i_tf_parser_8hpp_source.xhtml">armnnTfParser/ITfParser.hpp</a>"</code><br /> |
| 105 | <code>#include "<a class="el" href="_parser_prototxt_fixture_8hpp_source.xhtml">ParserPrototxtFixture.hpp</a>"</code><br /> |
| 106 | </div> |
| 107 | <p><a href="_test_dependencies_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 108 | <table class="memberdecls"> |
| 109 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 110 | Functions</h2></td></tr> |
| 111 | <tr class="memitem:a64c9c9e6a66e55bcb1deecfff7793fd1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_test_dependencies_8cpp.xhtml#a64c9c9e6a66e55bcb1deecfff7793fd1">BOOST_FIXTURE_TEST_CASE</a> (RediscoveredDependencies, RediscoveredDependenciesFixture)</td></tr> |
| 112 | <tr class="separator:a64c9c9e6a66e55bcb1deecfff7793fd1"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:afdf3505a3289794a0c15d764343bfa2f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_test_dependencies_8cpp.xhtml#afdf3505a3289794a0c15d764343bfa2f">BOOST_AUTO_TEST_CASE</a> (SimpleCycle)</td></tr> |
| 114 | <tr class="separator:afdf3505a3289794a0c15d764343bfa2f"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a549bbef9e3ef8485b3936026f9b1c586"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_test_dependencies_8cpp.xhtml#a549bbef9e3ef8485b3936026f9b1c586">BOOST_AUTO_TEST_CASE</a> (SingleNodeCycle)</td></tr> |
| 116 | <tr class="separator:a549bbef9e3ef8485b3936026f9b1c586"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a8c5f97c76a7b00b63d915315583a9634"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_test_dependencies_8cpp.xhtml#a8c5f97c76a7b00b63d915315583a9634">BOOST_AUTO_TEST_CASE</a> (ComplexCycle)</td></tr> |
| 118 | <tr class="separator:a8c5f97c76a7b00b63d915315583a9634"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a22ab2542baa07554aea2836269a428b5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_test_dependencies_8cpp.xhtml#a22ab2542baa07554aea2836269a428b5">BOOST_AUTO_TEST_CASE</a> (InvalidInput)</td></tr> |
| 120 | <tr class="separator:a22ab2542baa07554aea2836269a428b5"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | </table> |
| 122 | <h2 class="groupheader">Function Documentation</h2> |
| 123 | <a id="afdf3505a3289794a0c15d764343bfa2f"></a> |
| 124 | <h2 class="memtitle"><span class="permalink"><a href="#afdf3505a3289794a0c15d764343bfa2f">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/4]</span></h2> |
| 125 | |
| 126 | <div class="memitem"> |
| 127 | <div class="memproto"> |
| 128 | <table class="memname"> |
| 129 | <tr> |
| 130 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 131 | <td>(</td> |
| 132 | <td class="paramtype">SimpleCycle </td> |
| 133 | <td class="paramname"></td><td>)</td> |
| 134 | <td></td> |
| 135 | </tr> |
| 136 | </table> |
| 137 | </div><div class="memdoc"> |
| 138 | |
| 139 | <p class="definition">Definition at line <a class="el" href="_test_dependencies_8cpp_source.xhtml#l00124">124</a> of file <a class="el" href="_test_dependencies_8cpp_source.xhtml">TestDependencies.cpp</a>.</p> |
| 140 | |
| 141 | <p class="reference">References <a class="el" href="_tf_parser_8cpp_source.xhtml#l00395">ITfParser::Create()</a>.</p> |
| 142 | <div class="fragment"><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> {</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* prototext = R<span class="stringliteral">"(</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="stringliteral">node {</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="stringliteral"> name: "r1"</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="stringliteral"> input: "r2"</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="stringliteral">}</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="stringliteral">node {</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="stringliteral"> name: "r2"</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="stringliteral"> input: "r1"</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="stringliteral">}</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="stringliteral"> )";</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="stringliteral"> <a class="code" href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a> parser = <a class="code" href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a>();</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="stringliteral"> BOOST_CHECK_THROW(parser->CreateNetworkFromString(prototext, {}, { </span><span class="stringliteral">"r2"</span> }), <a class="code" href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a>);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> }</div><div class="ttc" id="namespacearmnn_tf_parser_xhtml_af7cec8b9a69e02f18a5de38502675d94"><div class="ttname"><a href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a></div><div class="ttdeci">std::unique_ptr< ITfParser, void(*)(ITfParser *parser)> ITfParserPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_tf_parser_8hpp_source.xhtml#l00022">ITfParser.hpp:22</a></div></div> |
| 143 | <div class="ttc" id="classarmnn_tf_parser_1_1_i_tf_parser_xhtml_a6abaf60481f0791c686ed3b97818bd0c"><div class="ttname"><a href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a></div><div class="ttdeci">static ITfParserPtr Create()</div><div class="ttdef"><b>Definition:</b> <a href="_tf_parser_8cpp_source.xhtml#l00395">TfParser.cpp:395</a></div></div> |
| 144 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 145 | </div><!-- fragment --> |
| 146 | </div> |
| 147 | </div> |
| 148 | <a id="a549bbef9e3ef8485b3936026f9b1c586"></a> |
| 149 | <h2 class="memtitle"><span class="permalink"><a href="#a549bbef9e3ef8485b3936026f9b1c586">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/4]</span></h2> |
| 150 | |
| 151 | <div class="memitem"> |
| 152 | <div class="memproto"> |
| 153 | <table class="memname"> |
| 154 | <tr> |
| 155 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 156 | <td>(</td> |
| 157 | <td class="paramtype">SingleNodeCycle </td> |
| 158 | <td class="paramname"></td><td>)</td> |
| 159 | <td></td> |
| 160 | </tr> |
| 161 | </table> |
| 162 | </div><div class="memdoc"> |
| 163 | |
| 164 | <p class="definition">Definition at line <a class="el" href="_test_dependencies_8cpp_source.xhtml#l00155">155</a> of file <a class="el" href="_test_dependencies_8cpp_source.xhtml">TestDependencies.cpp</a>.</p> |
| 165 | |
| 166 | <p class="reference">References <a class="el" href="_tf_parser_8cpp_source.xhtml#l00395">ITfParser::Create()</a>.</p> |
| 167 | <div class="fragment"><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* prototext = R<span class="stringliteral">"(</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="stringliteral">node {</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="stringliteral"> name: "r1"</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="stringliteral"> input: "r1"</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="stringliteral">}</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="stringliteral"> )";</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="stringliteral"> <a class="code" href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a> parser = <a class="code" href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a>();</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="stringliteral"> BOOST_CHECK_THROW(parser->CreateNetworkFromString(prototext, {}, { </span><span class="stringliteral">"r1"</span> }), <a class="code" href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a>);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div><div class="ttc" id="namespacearmnn_tf_parser_xhtml_af7cec8b9a69e02f18a5de38502675d94"><div class="ttname"><a href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a></div><div class="ttdeci">std::unique_ptr< ITfParser, void(*)(ITfParser *parser)> ITfParserPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_tf_parser_8hpp_source.xhtml#l00022">ITfParser.hpp:22</a></div></div> |
| 168 | <div class="ttc" id="classarmnn_tf_parser_1_1_i_tf_parser_xhtml_a6abaf60481f0791c686ed3b97818bd0c"><div class="ttname"><a href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a></div><div class="ttdeci">static ITfParserPtr Create()</div><div class="ttdef"><b>Definition:</b> <a href="_tf_parser_8cpp_source.xhtml#l00395">TfParser.cpp:395</a></div></div> |
| 169 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 170 | </div><!-- fragment --> |
| 171 | </div> |
| 172 | </div> |
| 173 | <a id="a8c5f97c76a7b00b63d915315583a9634"></a> |
| 174 | <h2 class="memtitle"><span class="permalink"><a href="#a8c5f97c76a7b00b63d915315583a9634">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[3/4]</span></h2> |
| 175 | |
| 176 | <div class="memitem"> |
| 177 | <div class="memproto"> |
| 178 | <table class="memname"> |
| 179 | <tr> |
| 180 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 181 | <td>(</td> |
| 182 | <td class="paramtype">ComplexCycle </td> |
| 183 | <td class="paramname"></td><td>)</td> |
| 184 | <td></td> |
| 185 | </tr> |
| 186 | </table> |
| 187 | </div><div class="memdoc"> |
| 188 | |
| 189 | <p class="definition">Definition at line <a class="el" href="_test_dependencies_8cpp_source.xhtml#l00185">185</a> of file <a class="el" href="_test_dependencies_8cpp_source.xhtml">TestDependencies.cpp</a>.</p> |
| 190 | |
| 191 | <p class="reference">References <a class="el" href="_tf_parser_8cpp_source.xhtml#l00395">ITfParser::Create()</a>.</p> |
| 192 | <div class="fragment"><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="comment">// Input = tf.placeholder(tf.float32, 1, "input")</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="comment">// Add2 = tf.nn.relu(input, add1, "add2") // This line won't actually run in TF, because add1 is not yet defined</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">// Relu1 = tf.nn.relu(relu0, "relu1")</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">// Relu2 = tf.nn.relu(relu0, "relu2")</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="comment">// Relu3 = tf.nn.relu(relu2, "relu3")</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="comment">// Add1 = tf.add(relu1, relu3, "add1")</span></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* prototext = R<span class="stringliteral">"(</span></div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="stringliteral"> node {</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="stringliteral"> name: "input"</span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="stringliteral"> op: "Placeholder"</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="stringliteral"> key: "dtype"</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="stringliteral"> key: "shape"</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="stringliteral"> shape {</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="stringliteral"> dim {</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="stringliteral"> size: 1</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="stringliteral"> node {</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="stringliteral"> name: "add2"</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="stringliteral"> op: "Add"</span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="stringliteral"> input: "input"</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="stringliteral"> input: "add1"</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="stringliteral"> node {</span></div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="stringliteral"> name: "relu1"</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="stringliteral"> input: "add2"</span></div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="stringliteral"> node {</span></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="stringliteral"> name: "relu2"</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="stringliteral"> input: "add2"</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="stringliteral"> node {</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="stringliteral"> name: "relu3"</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="stringliteral"> input: "relu2"</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="stringliteral"> node {</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="stringliteral"> name: "add1"</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="stringliteral"> op: "Add"</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="stringliteral"> input: "relu1"</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="stringliteral"> input: "relu3"</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="stringliteral"> )";</span></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="stringliteral"> <a class="code" href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a> parser = <a class="code" href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a>();</span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="stringliteral"> BOOST_CHECK_THROW(parser->CreateNetworkFromString(prototext, {}, { </span><span class="stringliteral">"add1"</span> }), <a class="code" href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a>);</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> }</div><div class="ttc" id="namespacearmnn_tf_parser_xhtml_af7cec8b9a69e02f18a5de38502675d94"><div class="ttname"><a href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a></div><div class="ttdeci">std::unique_ptr< ITfParser, void(*)(ITfParser *parser)> ITfParserPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_tf_parser_8hpp_source.xhtml#l00022">ITfParser.hpp:22</a></div></div> |
| 193 | <div class="ttc" id="classarmnn_tf_parser_1_1_i_tf_parser_xhtml_a6abaf60481f0791c686ed3b97818bd0c"><div class="ttname"><a href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a></div><div class="ttdeci">static ITfParserPtr Create()</div><div class="ttdef"><b>Definition:</b> <a href="_tf_parser_8cpp_source.xhtml#l00395">TfParser.cpp:395</a></div></div> |
| 194 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 195 | </div><!-- fragment --> |
| 196 | </div> |
| 197 | </div> |
| 198 | <a id="a22ab2542baa07554aea2836269a428b5"></a> |
| 199 | <h2 class="memtitle"><span class="permalink"><a href="#a22ab2542baa07554aea2836269a428b5">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[4/4]</span></h2> |
| 200 | |
| 201 | <div class="memitem"> |
| 202 | <div class="memproto"> |
| 203 | <table class="memname"> |
| 204 | <tr> |
| 205 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 206 | <td>(</td> |
| 207 | <td class="paramtype">InvalidInput </td> |
| 208 | <td class="paramname"></td><td>)</td> |
| 209 | <td></td> |
| 210 | </tr> |
| 211 | </table> |
| 212 | </div><div class="memdoc"> |
| 213 | |
| 214 | <p class="definition">Definition at line <a class="el" href="_test_dependencies_8cpp_source.xhtml#l00277">277</a> of file <a class="el" href="_test_dependencies_8cpp_source.xhtml">TestDependencies.cpp</a>.</p> |
| 215 | |
| 216 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, and <a class="el" href="_tf_parser_8cpp_source.xhtml#l00395">ITfParser::Create()</a>.</p> |
| 217 | <div class="fragment"><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> {</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* prototext = R<span class="stringliteral">"(</span></div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="stringliteral">node {</span></div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="stringliteral"> name: "r1"</span></div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="stringliteral"> op: "Relu"</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="stringliteral"> input: "a-node-that-does-not-exist"</span></div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="stringliteral"> attr {</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="stringliteral"> key: "T"</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="stringliteral"> value {</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="stringliteral"> type: DT_FLOAT</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="stringliteral"> }</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="stringliteral">}</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="stringliteral"> )";</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="stringliteral"> <a class="code" href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a> parser = <a class="code" href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a>();</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="stringliteral"> BOOST_CHECK_THROW(parser->CreateNetworkFromString(prototext, {}, { </span><span class="stringliteral">"r1"</span> }), <a class="code" href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a>);</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> }</div><div class="ttc" id="namespacearmnn_tf_parser_xhtml_af7cec8b9a69e02f18a5de38502675d94"><div class="ttname"><a href="namespacearmnn_tf_parser.xhtml#af7cec8b9a69e02f18a5de38502675d94">armnnTfParser::ITfParserPtr</a></div><div class="ttdeci">std::unique_ptr< ITfParser, void(*)(ITfParser *parser)> ITfParserPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_tf_parser_8hpp_source.xhtml#l00022">ITfParser.hpp:22</a></div></div> |
| 218 | <div class="ttc" id="classarmnn_tf_parser_1_1_i_tf_parser_xhtml_a6abaf60481f0791c686ed3b97818bd0c"><div class="ttname"><a href="classarmnn_tf_parser_1_1_i_tf_parser.xhtml#a6abaf60481f0791c686ed3b97818bd0c">armnnTfParser::ITfParser::Create</a></div><div class="ttdeci">static ITfParserPtr Create()</div><div class="ttdef"><b>Definition:</b> <a href="_tf_parser_8cpp_source.xhtml#l00395">TfParser.cpp:395</a></div></div> |
| 219 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 220 | </div><!-- fragment --> |
| 221 | </div> |
| 222 | </div> |
| 223 | <a id="a64c9c9e6a66e55bcb1deecfff7793fd1"></a> |
| 224 | <h2 class="memtitle"><span class="permalink"><a href="#a64c9c9e6a66e55bcb1deecfff7793fd1">◆ </a></span>BOOST_FIXTURE_TEST_CASE()</h2> |
| 225 | |
| 226 | <div class="memitem"> |
| 227 | <div class="memproto"> |
| 228 | <table class="memname"> |
| 229 | <tr> |
| 230 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 231 | <td>(</td> |
| 232 | <td class="paramtype">RediscoveredDependencies </td> |
| 233 | <td class="paramname">, </td> |
| 234 | </tr> |
| 235 | <tr> |
| 236 | <td class="paramkey"></td> |
| 237 | <td></td> |
| 238 | <td class="paramtype">RediscoveredDependenciesFixture </td> |
| 239 | <td class="paramname"> </td> |
| 240 | </tr> |
| 241 | <tr> |
| 242 | <td></td> |
| 243 | <td>)</td> |
| 244 | <td></td><td></td> |
| 245 | </tr> |
| 246 | </table> |
| 247 | </div><div class="memdoc"> |
| 248 | |
| 249 | <p class="definition">Definition at line <a class="el" href="_test_dependencies_8cpp_source.xhtml#l00117">117</a> of file <a class="el" href="_test_dependencies_8cpp_source.xhtml">TestDependencies.cpp</a>.</p> |
| 250 | <div class="fragment"><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  RunTest<1>({1}, {2});</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> }</div></div><!-- fragment --> |
| 251 | </div> |
| 252 | </div> |
| 253 | </div><!-- contents --> |
| 254 | </div><!-- doc-content --> |
| 255 | <!-- start footer part --> |
| 256 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 257 | <ul> |
| 258 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_50aba35e23cba3c8856f8642cc06d5dc.xhtml">armnnTfParser</a></li><li class="navelem"><a class="el" href="dir_4ccaefd65a1feacebd3c00536508ef51.xhtml">test</a></li><li class="navelem"><a class="el" href="_test_dependencies_8cpp.xhtml">TestDependencies.cpp</a></li> |
| 259 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 260 | <a href="http://www.doxygen.org/index.html"> |
| 261 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 262 | </ul> |
| 263 | </div> |
| 264 | </body> |
| 265 | </html> |