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/armnn/test/UnitTests.hpp 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('_unit_tests_8hpp.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="#define-members">Macros</a> | |
| 99 | <a href="#func-members">Functions</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">UnitTests.hpp File Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | <div class="textblock"><code>#include <<a class="el" href="_logging_8hpp_source.xhtml">armnn/Logging.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="_utils_8hpp_source.xhtml">armnn/Utils.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="_ref_workload_factory_8hpp_source.xhtml">reference/RefWorkloadFactory.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_layer_tests_8hpp_source.xhtml">backendsCommon/test/LayerTests.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_workload_factory_helper_8hpp_source.xhtml">backendsCommon/test/WorkloadFactoryHelper.hpp</a>></code><br /> |
| 109 | <code>#include "<a class="el" href="_tensor_helpers_8hpp_source.xhtml">TensorHelpers.hpp</a>"</code><br /> |
| 110 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 111 | </div> |
| 112 | <p><a href="_unit_tests_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 113 | <table class="memberdecls"> |
| 114 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| 115 | Macros</h2></td></tr> |
| 116 | <tr class="memitem:a44ea827d997f1aa0e39d9a6d6675465c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#a44ea827d997f1aa0e39d9a6d6675465c">ARMNN_SIMPLE_TEST_CASE</a>(TestName, TestFunction)</td></tr> |
| 117 | <tr class="separator:a44ea827d997f1aa0e39d9a6d6675465c"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:ae6ce9102495fab6e3957f61281238e3d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#ae6ce9102495fab6e3957f61281238e3d">ARMNN_AUTO_TEST_CASE</a>(TestName, TestFunction, ...)</td></tr> |
| 119 | <tr class="separator:ae6ce9102495fab6e3957f61281238e3d"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a07e04849fc0700facf91fecce71ff733"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#a07e04849fc0700facf91fecce71ff733">ARMNN_COMPARE_REF_AUTO_TEST_CASE</a>(TestName, TestFunction, ...)</td></tr> |
| 121 | <tr class="separator:a07e04849fc0700facf91fecce71ff733"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:af2016edd458865d471fe1afc82b3c126"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#af2016edd458865d471fe1afc82b3c126">ARMNN_COMPARE_REF_FIXTURE_TEST_CASE</a>(TestName, Fixture, TestFunction, ...)</td></tr> |
| 123 | <tr class="separator:af2016edd458865d471fe1afc82b3c126"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | </table><table class="memberdecls"> |
| 125 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 126 | Functions</h2></td></tr> |
| 127 | <tr class="memitem:af9e4dd62da9266a1364032ada0267f9b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#af9e4dd62da9266a1364032ada0267f9b">ConfigureLoggingTest</a> ()</td></tr> |
| 128 | <tr class="separator:af9e4dd62da9266a1364032ada0267f9b"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:acbe506e0365feeed352effe52b1e4852"><td class="memTemplParams" colspan="2">template<typename T , std::size_t n> </td></tr> |
| 130 | <tr class="memitem:acbe506e0365feeed352effe52b1e4852"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#acbe506e0365feeed352effe52b1e4852">CompareTestResultIfSupported</a> (const std::string &testName, const <a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, n > &testResult)</td></tr> |
| 131 | <tr class="memdesc:acbe506e0365feeed352effe52b1e4852"><td class="mdescLeft"> </td><td class="mdescRight">Executes BOOST_TEST on <a class="el" href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors()</a> return value so that the predicate_result message is reported. <a href="#acbe506e0365feeed352effe52b1e4852">More...</a><br /></td></tr> |
| 132 | <tr class="separator:acbe506e0365feeed352effe52b1e4852"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a8d26216e495ef45a749c03e6c6edcd38"><td class="memTemplParams" colspan="2">template<typename T , std::size_t n> </td></tr> |
| 134 | <tr class="memitem:a8d26216e495ef45a749c03e6c6edcd38"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#a8d26216e495ef45a749c03e6c6edcd38">CompareTestResultIfSupported</a> (const std::string &testName, const std::vector< <a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, n >> &testResult)</td></tr> |
| 135 | <tr class="separator:a8d26216e495ef45a749c03e6c6edcd38"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a10075eca890bd829a87b914c5aa18cb3"><td class="memTemplParams" colspan="2">template<typename FactoryType , typename TFuncPtr , typename... Args> </td></tr> |
| 137 | <tr class="memitem:a10075eca890bd829a87b914c5aa18cb3"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#a10075eca890bd829a87b914c5aa18cb3">RunTestFunction</a> (const char *testName, TFuncPtr testFunction, Args... args)</td></tr> |
| 138 | <tr class="separator:a10075eca890bd829a87b914c5aa18cb3"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:a2d8f71b48349370e1d5c0a9b39e3d162"><td class="memTemplParams" colspan="2">template<typename FactoryType , typename TFuncPtr , typename... Args> </td></tr> |
| 140 | <tr class="memitem:a2d8f71b48349370e1d5c0a9b39e3d162"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_unit_tests_8hpp.xhtml#a2d8f71b48349370e1d5c0a9b39e3d162">CompareRefTestFunction</a> (const char *testName, TFuncPtr testFunction, Args... args)</td></tr> |
| 141 | <tr class="separator:a2d8f71b48349370e1d5c0a9b39e3d162"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | </table> |
| 143 | <h2 class="groupheader">Macro Definition Documentation</h2> |
| 144 | <a id="ae6ce9102495fab6e3957f61281238e3d"></a> |
| 145 | <h2 class="memtitle"><span class="permalink"><a href="#ae6ce9102495fab6e3957f61281238e3d">◆ </a></span>ARMNN_AUTO_TEST_CASE</h2> |
| 146 | |
| 147 | <div class="memitem"> |
| 148 | <div class="memproto"> |
| 149 | <table class="memname"> |
| 150 | <tr> |
| 151 | <td class="memname">#define ARMNN_AUTO_TEST_CASE</td> |
| 152 | <td>(</td> |
| 153 | <td class="paramtype"> </td> |
| 154 | <td class="paramname">TestName, </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td class="paramkey"></td> |
| 158 | <td></td> |
| 159 | <td class="paramtype"> </td> |
| 160 | <td class="paramname">TestFunction, </td> |
| 161 | </tr> |
| 162 | <tr> |
| 163 | <td class="paramkey"></td> |
| 164 | <td></td> |
| 165 | <td class="paramtype"> </td> |
| 166 | <td class="paramname"><em>...</em> </td> |
| 167 | </tr> |
| 168 | <tr> |
| 169 | <td></td> |
| 170 | <td>)</td> |
| 171 | <td></td><td></td> |
| 172 | </tr> |
| 173 | </table> |
| 174 | </div><div class="memdoc"> |
| 175 | <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(TestName) \</div><div class="line"> { \</div><div class="line"> RunTestFunction<FactoryType>(#TestName, &TestFunction, ##__VA_ARGS__); \</div><div class="line"> }</div><div class="ttc" id="namespacearmnn_xhtml_a10d15f3df1ab52b3b915a4be1dbf386b"><div class="ttname"><a href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">armnn::BOOST_AUTO_TEST_CASE</a></div><div class="ttdeci">BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)</div><div class="ttdef"><b>Definition:</b> <a href="_const_tensor_layer_visitor_8cpp_source.xhtml#l00170">ConstTensorLayerVisitor.cpp:170</a></div></div> |
| 176 | </div><!-- fragment --> |
| 177 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00081">81</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 178 | |
| 179 | </div> |
| 180 | </div> |
| 181 | <a id="a07e04849fc0700facf91fecce71ff733"></a> |
| 182 | <h2 class="memtitle"><span class="permalink"><a href="#a07e04849fc0700facf91fecce71ff733">◆ </a></span>ARMNN_COMPARE_REF_AUTO_TEST_CASE</h2> |
| 183 | |
| 184 | <div class="memitem"> |
| 185 | <div class="memproto"> |
| 186 | <table class="memname"> |
| 187 | <tr> |
| 188 | <td class="memname">#define ARMNN_COMPARE_REF_AUTO_TEST_CASE</td> |
| 189 | <td>(</td> |
| 190 | <td class="paramtype"> </td> |
| 191 | <td class="paramname">TestName, </td> |
| 192 | </tr> |
| 193 | <tr> |
| 194 | <td class="paramkey"></td> |
| 195 | <td></td> |
| 196 | <td class="paramtype"> </td> |
| 197 | <td class="paramname">TestFunction, </td> |
| 198 | </tr> |
| 199 | <tr> |
| 200 | <td class="paramkey"></td> |
| 201 | <td></td> |
| 202 | <td class="paramtype"> </td> |
| 203 | <td class="paramname"><em>...</em> </td> |
| 204 | </tr> |
| 205 | <tr> |
| 206 | <td></td> |
| 207 | <td>)</td> |
| 208 | <td></td><td></td> |
| 209 | </tr> |
| 210 | </table> |
| 211 | </div><div class="memdoc"> |
| 212 | <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(TestName) \</div><div class="line"> { \</div><div class="line"> CompareRefTestFunction<FactoryType>(#TestName, &TestFunction, ##__VA_ARGS__); \</div><div class="line"> }</div><div class="ttc" id="namespacearmnn_xhtml_a10d15f3df1ab52b3b915a4be1dbf386b"><div class="ttname"><a href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">armnn::BOOST_AUTO_TEST_CASE</a></div><div class="ttdeci">BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)</div><div class="ttdef"><b>Definition:</b> <a href="_const_tensor_layer_visitor_8cpp_source.xhtml#l00170">ConstTensorLayerVisitor.cpp:170</a></div></div> |
| 213 | </div><!-- fragment --> |
| 214 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00099">99</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 215 | |
| 216 | </div> |
| 217 | </div> |
| 218 | <a id="af2016edd458865d471fe1afc82b3c126"></a> |
| 219 | <h2 class="memtitle"><span class="permalink"><a href="#af2016edd458865d471fe1afc82b3c126">◆ </a></span>ARMNN_COMPARE_REF_FIXTURE_TEST_CASE</h2> |
| 220 | |
| 221 | <div class="memitem"> |
| 222 | <div class="memproto"> |
| 223 | <table class="memname"> |
| 224 | <tr> |
| 225 | <td class="memname">#define ARMNN_COMPARE_REF_FIXTURE_TEST_CASE</td> |
| 226 | <td>(</td> |
| 227 | <td class="paramtype"> </td> |
| 228 | <td class="paramname">TestName, </td> |
| 229 | </tr> |
| 230 | <tr> |
| 231 | <td class="paramkey"></td> |
| 232 | <td></td> |
| 233 | <td class="paramtype"> </td> |
| 234 | <td class="paramname">Fixture, </td> |
| 235 | </tr> |
| 236 | <tr> |
| 237 | <td class="paramkey"></td> |
| 238 | <td></td> |
| 239 | <td class="paramtype"> </td> |
| 240 | <td class="paramname">TestFunction, </td> |
| 241 | </tr> |
| 242 | <tr> |
| 243 | <td class="paramkey"></td> |
| 244 | <td></td> |
| 245 | <td class="paramtype"> </td> |
| 246 | <td class="paramname"><em>...</em> </td> |
| 247 | </tr> |
| 248 | <tr> |
| 249 | <td></td> |
| 250 | <td>)</td> |
| 251 | <td></td><td></td> |
| 252 | </tr> |
| 253 | </table> |
| 254 | </div><div class="memdoc"> |
| 255 | <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="_csv_reader_test_8cpp.xhtml#af91dc34fdeee4dc67fba22b2bfbfcd7f">BOOST_FIXTURE_TEST_CASE</a>(TestName, Fixture) \</div><div class="line"> { \</div><div class="line"> CompareRefTestFunction<FactoryType>(#TestName, &TestFunction, ##__VA_ARGS__); \</div><div class="line"> }</div><div class="ttc" id="_csv_reader_test_8cpp_xhtml_af91dc34fdeee4dc67fba22b2bfbfcd7f"><div class="ttname"><a href="_csv_reader_test_8cpp.xhtml#af91dc34fdeee4dc67fba22b2bfbfcd7f">BOOST_FIXTURE_TEST_CASE</a></div><div class="ttdeci">BOOST_FIXTURE_TEST_CASE(TestParseVector, TestHelper)</div><div class="ttdef"><b>Definition:</b> <a href="_csv_reader_test_8cpp_source.xhtml#l00083">CsvReaderTest.cpp:83</a></div></div> |
| 256 | </div><!-- fragment --> |
| 257 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00105">105</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 258 | |
| 259 | </div> |
| 260 | </div> |
| 261 | <a id="a44ea827d997f1aa0e39d9a6d6675465c"></a> |
| 262 | <h2 class="memtitle"><span class="permalink"><a href="#a44ea827d997f1aa0e39d9a6d6675465c">◆ </a></span>ARMNN_SIMPLE_TEST_CASE</h2> |
| 263 | |
| 264 | <div class="memitem"> |
| 265 | <div class="memproto"> |
| 266 | <table class="memname"> |
| 267 | <tr> |
| 268 | <td class="memname">#define ARMNN_SIMPLE_TEST_CASE</td> |
| 269 | <td>(</td> |
| 270 | <td class="paramtype"> </td> |
| 271 | <td class="paramname">TestName, </td> |
| 272 | </tr> |
| 273 | <tr> |
| 274 | <td class="paramkey"></td> |
| 275 | <td></td> |
| 276 | <td class="paramtype"> </td> |
| 277 | <td class="paramname">TestFunction </td> |
| 278 | </tr> |
| 279 | <tr> |
| 280 | <td></td> |
| 281 | <td>)</td> |
| 282 | <td></td><td></td> |
| 283 | </tr> |
| 284 | </table> |
| 285 | </div><div class="memdoc"> |
| 286 | <b>Value:</b><div class="fragment"><div class="line"><a class="code" href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(TestName) \</div><div class="line"> { \</div><div class="line"> TestFunction(); \</div><div class="line"> }</div><div class="ttc" id="namespacearmnn_xhtml_a10d15f3df1ab52b3b915a4be1dbf386b"><div class="ttname"><a href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">armnn::BOOST_AUTO_TEST_CASE</a></div><div class="ttdeci">BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)</div><div class="ttdef"><b>Definition:</b> <a href="_const_tensor_layer_visitor_8cpp_source.xhtml#l00170">ConstTensorLayerVisitor.cpp:170</a></div></div> |
| 287 | </div><!-- fragment --> |
| 288 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00075">75</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 289 | |
| 290 | </div> |
| 291 | </div> |
| 292 | <h2 class="groupheader">Function Documentation</h2> |
| 293 | <a id="a2d8f71b48349370e1d5c0a9b39e3d162"></a> |
| 294 | <h2 class="memtitle"><span class="permalink"><a href="#a2d8f71b48349370e1d5c0a9b39e3d162">◆ </a></span>CompareRefTestFunction()</h2> |
| 295 | |
| 296 | <div class="memitem"> |
| 297 | <div class="memproto"> |
| 298 | <table class="memname"> |
| 299 | <tr> |
| 300 | <td class="memname">void CompareRefTestFunction </td> |
| 301 | <td>(</td> |
| 302 | <td class="paramtype">const char * </td> |
| 303 | <td class="paramname"><em>testName</em>, </td> |
| 304 | </tr> |
| 305 | <tr> |
| 306 | <td class="paramkey"></td> |
| 307 | <td></td> |
| 308 | <td class="paramtype">TFuncPtr </td> |
| 309 | <td class="paramname"><em>testFunction</em>, </td> |
| 310 | </tr> |
| 311 | <tr> |
| 312 | <td class="paramkey"></td> |
| 313 | <td></td> |
| 314 | <td class="paramtype">Args... </td> |
| 315 | <td class="paramname"><em>args</em> </td> |
| 316 | </tr> |
| 317 | <tr> |
| 318 | <td></td> |
| 319 | <td>)</td> |
| 320 | <td></td><td></td> |
| 321 | </tr> |
| 322 | </table> |
| 323 | </div><div class="memdoc"> |
| 324 | |
| 325 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00088">88</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 326 | |
| 327 | <p class="reference">References <a class="el" href="_unit_tests_8hpp_source.xhtml#l00036">CompareTestResultIfSupported()</a>.</p> |
| 328 | <div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">auto</span> memoryManager = WorkloadFactoryHelper<FactoryType>::GetMemoryManager();</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="_cl_layer_tests_8cpp.xhtml#a255d08081b372809a176b588529296aa">FactoryType</a> workloadFactory = WorkloadFactoryHelper<FactoryType>::GetFactory(memoryManager);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classarmnn_1_1_ref_workload_factory.xhtml">armnn::RefWorkloadFactory</a> refWorkloadFactory;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">auto</span> testResult = (*testFunction)(workloadFactory, memoryManager, refWorkloadFactory, args...);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="_unit_tests_8hpp.xhtml#acbe506e0365feeed352effe52b1e4852">CompareTestResultIfSupported</a>(testName, testResult);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div><div class="ttc" id="_unit_tests_8hpp_xhtml_acbe506e0365feeed352effe52b1e4852"><div class="ttname"><a href="_unit_tests_8hpp.xhtml#acbe506e0365feeed352effe52b1e4852">CompareTestResultIfSupported</a></div><div class="ttdeci">void CompareTestResultIfSupported(const std::string &testName, const LayerTestResult< T, n > &testResult)</div><div class="ttdoc">Executes BOOST_TEST on CompareTensors() return value so that the predicate_result message is reported...</div><div class="ttdef"><b>Definition:</b> <a href="_unit_tests_8hpp_source.xhtml#l00036">UnitTests.hpp:36</a></div></div> |
| 329 | <div class="ttc" id="classarmnn_1_1_ref_workload_factory_xhtml"><div class="ttname"><a href="classarmnn_1_1_ref_workload_factory.xhtml">armnn::RefWorkloadFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_ref_workload_factory_8hpp_source.xhtml#l00030">RefWorkloadFactory.hpp:30</a></div></div> |
| 330 | <div class="ttc" id="_cl_layer_tests_8cpp_xhtml_a255d08081b372809a176b588529296aa"><div class="ttname"><a href="_cl_layer_tests_8cpp.xhtml#a255d08081b372809a176b588529296aa">FactoryType</a></div><div class="ttdeci">ClWorkloadFactory FactoryType</div><div class="ttdef"><b>Definition:</b> <a href="_cl_layer_tests_8cpp_source.xhtml#l00031">ClLayerTests.cpp:31</a></div></div> |
| 331 | </div><!-- fragment --> |
| 332 | </div> |
| 333 | </div> |
| 334 | <a id="acbe506e0365feeed352effe52b1e4852"></a> |
| 335 | <h2 class="memtitle"><span class="permalink"><a href="#acbe506e0365feeed352effe52b1e4852">◆ </a></span>CompareTestResultIfSupported() <span class="overload">[1/2]</span></h2> |
| 336 | |
| 337 | <div class="memitem"> |
| 338 | <div class="memproto"> |
| 339 | <table class="memname"> |
| 340 | <tr> |
| 341 | <td class="memname">void CompareTestResultIfSupported </td> |
| 342 | <td>(</td> |
| 343 | <td class="paramtype">const std::string & </td> |
| 344 | <td class="paramname"><em>testName</em>, </td> |
| 345 | </tr> |
| 346 | <tr> |
| 347 | <td class="paramkey"></td> |
| 348 | <td></td> |
| 349 | <td class="paramtype">const <a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, n > & </td> |
| 350 | <td class="paramname"><em>testResult</em> </td> |
| 351 | </tr> |
| 352 | <tr> |
| 353 | <td></td> |
| 354 | <td>)</td> |
| 355 | <td></td><td></td> |
| 356 | </tr> |
| 357 | </table> |
| 358 | </div><div class="memdoc"> |
| 359 | |
| 360 | <p>Executes BOOST_TEST on <a class="el" href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors()</a> return value so that the predicate_result message is reported. </p> |
| 361 | <p>If the test reports itself as not supported then the tensors are not compared. Additionally this checks that the supportedness reported by the test matches the name of the test. Unsupported tests must be 'tagged' by including "UNSUPPORTED" in their name. This is useful because it clarifies that the feature being tested is not actually supported (a passed test with the name of a feature would imply that feature was supported). If support is added for a feature, the test case will fail because the name incorrectly contains UNSUPPORTED. If support is removed for a feature, the test case will fail because the name doesn't contain UNSUPPORTED. </p> |
| 362 | |
| 363 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00036">36</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 364 | |
| 365 | <p class="reference">References <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00043">LayerTestResult< T, n >::compareBoolean</a>, <a class="el" href="_tensor_helpers_8hpp_source.xhtml#l00075">CompareTensors()</a>, <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00040">LayerTestResult< T, n >::output</a>, <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00041">LayerTestResult< T, n >::outputExpected</a>, and <a class="el" href="_layer_test_result_8hpp_source.xhtml#l00042">LayerTestResult< T, n >::supported</a>.</p> |
| 366 | |
| 367 | <p class="reference">Referenced by <a class="el" href="_unit_tests_8hpp_source.xhtml#l00088">CompareRefTestFunction()</a>, and <a class="el" href="_unit_tests_8hpp_source.xhtml#l00063">RunTestFunction()</a>.</p> |
| 368 | <div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">bool</span> testNameIndicatesUnsupported = testName.find(<span class="stringliteral">"UNSUPPORTED"</span>) != std::string::npos;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  BOOST_CHECK_MESSAGE(testNameIndicatesUnsupported != testResult.<a class="code" href="struct_layer_test_result.xhtml#a23a6c8147ba9825335d1d6246c11d675">supported</a>,</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="stringliteral">"The test name does not match the supportedness it is reporting"</span>);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">if</span> (testResult.<a class="code" href="struct_layer_test_result.xhtml#a23a6c8147ba9825335d1d6246c11d675">supported</a>)</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  BOOST_TEST(<a class="code" href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors</a>(testResult.<a class="code" href="struct_layer_test_result.xhtml#ac9d44d346bb7c89f7a7aa31d2bee947f">output</a>, testResult.<a class="code" href="struct_layer_test_result.xhtml#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a>, testResult.<a class="code" href="struct_layer_test_result.xhtml#acf486f22af9761356425ade095f8a7fe">compareBoolean</a>));</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div><div class="ttc" id="struct_layer_test_result_xhtml_acf486f22af9761356425ade095f8a7fe"><div class="ttname"><a href="struct_layer_test_result.xhtml#acf486f22af9761356425ade095f8a7fe">LayerTestResult::compareBoolean</a></div><div class="ttdeci">bool compareBoolean</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.xhtml#l00043">LayerTestResult.hpp:43</a></div></div> |
| 369 | <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> |
| 370 | <div class="ttc" id="struct_layer_test_result_xhtml_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.xhtml#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.xhtml#l00041">LayerTestResult.hpp:41</a></div></div> |
| 371 | <div class="ttc" id="struct_layer_test_result_xhtml_ac9d44d346bb7c89f7a7aa31d2bee947f"><div class="ttname"><a href="struct_layer_test_result.xhtml#ac9d44d346bb7c89f7a7aa31d2bee947f">LayerTestResult::output</a></div><div class="ttdeci">boost::multi_array< T, n > output</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.xhtml#l00040">LayerTestResult.hpp:40</a></div></div> |
| 372 | <div class="ttc" id="struct_layer_test_result_xhtml_a23a6c8147ba9825335d1d6246c11d675"><div class="ttname"><a href="struct_layer_test_result.xhtml#a23a6c8147ba9825335d1d6246c11d675">LayerTestResult::supported</a></div><div class="ttdeci">bool supported</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.xhtml#l00042">LayerTestResult.hpp:42</a></div></div> |
| 373 | </div><!-- fragment --> |
| 374 | </div> |
| 375 | </div> |
| 376 | <a id="a8d26216e495ef45a749c03e6c6edcd38"></a> |
| 377 | <h2 class="memtitle"><span class="permalink"><a href="#a8d26216e495ef45a749c03e6c6edcd38">◆ </a></span>CompareTestResultIfSupported() <span class="overload">[2/2]</span></h2> |
| 378 | |
| 379 | <div class="memitem"> |
| 380 | <div class="memproto"> |
| 381 | <table class="memname"> |
| 382 | <tr> |
| 383 | <td class="memname">void CompareTestResultIfSupported </td> |
| 384 | <td>(</td> |
| 385 | <td class="paramtype">const std::string & </td> |
| 386 | <td class="paramname"><em>testName</em>, </td> |
| 387 | </tr> |
| 388 | <tr> |
| 389 | <td class="paramkey"></td> |
| 390 | <td></td> |
| 391 | <td class="paramtype">const std::vector< <a class="el" href="struct_layer_test_result.xhtml">LayerTestResult</a>< T, n >> & </td> |
| 392 | <td class="paramname"><em>testResult</em> </td> |
| 393 | </tr> |
| 394 | <tr> |
| 395 | <td></td> |
| 396 | <td>)</td> |
| 397 | <td></td><td></td> |
| 398 | </tr> |
| 399 | </table> |
| 400 | </div><div class="memdoc"> |
| 401 | |
| 402 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00048">48</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 403 | |
| 404 | <p class="reference">References <a class="el" href="_tensor_helpers_8hpp_source.xhtml#l00075">CompareTensors()</a>.</p> |
| 405 | <div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">bool</span> testNameIndicatesUnsupported = testName.find(<span class="stringliteral">"UNSUPPORTED"</span>) != std::string::npos;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < testResult.size(); ++i)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  BOOST_CHECK_MESSAGE(testNameIndicatesUnsupported != testResult[i].<a class="code" href="namespacearmnn.xhtml#a02847c99a2acae3b267615479f93ab55">supported</a>,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="stringliteral">"The test name does not match the supportedness it is reporting"</span>);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span> (testResult[i].<a class="code" href="namespacearmnn.xhtml#a02847c99a2acae3b267615479f93ab55">supported</a>)</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  BOOST_TEST(<a class="code" href="_tensor_helpers_8hpp.xhtml#a0b8fbb443d2cf34a41f6aaae934e3dcb">CompareTensors</a>(testResult[i].output, testResult[i].outputExpected));</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a02847c99a2acae3b267615479f93ab55"><div class="ttname"><a href="namespacearmnn.xhtml#a02847c99a2acae3b267615479f93ab55">armnn::supported</a></div><div class="ttdeci">ISubgraphViewConverter supported</div><div class="ttdef"><b>Definition:</b> <a href="_i_subgraph_view_converter_8hpp_source.xhtml#l00031">ISubgraphViewConverter.hpp:31</a></div></div> |
| 406 | <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> |
| 407 | </div><!-- fragment --> |
| 408 | </div> |
| 409 | </div> |
| 410 | <a id="af9e4dd62da9266a1364032ada0267f9b"></a> |
| 411 | <h2 class="memtitle"><span class="permalink"><a href="#af9e4dd62da9266a1364032ada0267f9b">◆ </a></span>ConfigureLoggingTest()</h2> |
| 412 | |
| 413 | <div class="memitem"> |
| 414 | <div class="memproto"> |
| 415 | <table class="mlabels"> |
| 416 | <tr> |
| 417 | <td class="mlabels-left"> |
| 418 | <table class="memname"> |
| 419 | <tr> |
| 420 | <td class="memname">void ConfigureLoggingTest </td> |
| 421 | <td>(</td> |
| 422 | <td class="paramname"></td><td>)</td> |
| 423 | <td></td> |
| 424 | </tr> |
| 425 | </table> |
| 426 | </td> |
| 427 | <td class="mlabels-right"> |
| 428 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 429 | </tr> |
| 430 | </table> |
| 431 | </div><div class="memdoc"> |
| 432 | |
| 433 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00015">15</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 434 | |
| 435 | <p class="reference">References <a class="el" href="_utils_8cpp_source.xhtml#l00010">armnn::ConfigureLogging()</a>, and <a class="el" href="namespacearmnn.xhtml#a93a3ba385cad27c4774e5fe64c025d3da882384ec38ce8d9582b57e70861730e4">armnn::Fatal</a>.</p> |
| 436 | <div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="comment">// Configures logging for both the ARMNN library and this test program.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="namespacearmnn.xhtml#aa59f7a819c3e29d10ffc41e5c0616872">armnn::ConfigureLogging</a>(<span class="keyword">true</span>, <span class="keyword">true</span>, <a class="code" href="namespacearmnn.xhtml#a93a3ba385cad27c4774e5fe64c025d3da882384ec38ce8d9582b57e70861730e4">armnn::LogSeverity::Fatal</a>);</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> }</div><div class="ttc" id="namespacearmnn_xhtml_aa59f7a819c3e29d10ffc41e5c0616872"><div class="ttname"><a href="namespacearmnn.xhtml#aa59f7a819c3e29d10ffc41e5c0616872">armnn::ConfigureLogging</a></div><div class="ttdeci">void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSeverity severity)</div><div class="ttdoc">Configures the logging behaviour of the ARMNN library. </div><div class="ttdef"><b>Definition:</b> <a href="_utils_8cpp_source.xhtml#l00010">Utils.cpp:10</a></div></div> |
| 437 | <div class="ttc" id="namespacearmnn_xhtml_a93a3ba385cad27c4774e5fe64c025d3da882384ec38ce8d9582b57e70861730e4"><div class="ttname"><a href="namespacearmnn.xhtml#a93a3ba385cad27c4774e5fe64c025d3da882384ec38ce8d9582b57e70861730e4">armnn::LogSeverity::Fatal</a></div></div> |
| 438 | </div><!-- fragment --> |
| 439 | </div> |
| 440 | </div> |
| 441 | <a id="a10075eca890bd829a87b914c5aa18cb3"></a> |
| 442 | <h2 class="memtitle"><span class="permalink"><a href="#a10075eca890bd829a87b914c5aa18cb3">◆ </a></span>RunTestFunction()</h2> |
| 443 | |
| 444 | <div class="memitem"> |
| 445 | <div class="memproto"> |
| 446 | <table class="memname"> |
| 447 | <tr> |
| 448 | <td class="memname">void RunTestFunction </td> |
| 449 | <td>(</td> |
| 450 | <td class="paramtype">const char * </td> |
| 451 | <td class="paramname"><em>testName</em>, </td> |
| 452 | </tr> |
| 453 | <tr> |
| 454 | <td class="paramkey"></td> |
| 455 | <td></td> |
| 456 | <td class="paramtype">TFuncPtr </td> |
| 457 | <td class="paramname"><em>testFunction</em>, </td> |
| 458 | </tr> |
| 459 | <tr> |
| 460 | <td class="paramkey"></td> |
| 461 | <td></td> |
| 462 | <td class="paramtype">Args... </td> |
| 463 | <td class="paramname"><em>args</em> </td> |
| 464 | </tr> |
| 465 | <tr> |
| 466 | <td></td> |
| 467 | <td>)</td> |
| 468 | <td></td><td></td> |
| 469 | </tr> |
| 470 | </table> |
| 471 | </div><div class="memdoc"> |
| 472 | |
| 473 | <p class="definition">Definition at line <a class="el" href="_unit_tests_8hpp_source.xhtml#l00063">63</a> of file <a class="el" href="_unit_tests_8hpp_source.xhtml">UnitTests.hpp</a>.</p> |
| 474 | |
| 475 | <p class="reference">References <a class="el" href="_unit_tests_8hpp_source.xhtml#l00036">CompareTestResultIfSupported()</a>, <a class="el" href="_profiling_8cpp_source.xhtml#l00487">ProfilerManager::GetInstance()</a>, and <a class="el" href="_profiling_8cpp_source.xhtml#l00494">ProfilerManager::RegisterProfiler()</a>.</p> |
| 476 | <div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  std::unique_ptr<armnn::Profiler> profiler = std::make_unique<armnn::Profiler>();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classarmnn_1_1_profiler_manager.xhtml#a93857080c2523bf3395e7aa7e6024d5c">armnn::ProfilerManager::GetInstance</a>().<a class="code" href="classarmnn_1_1_profiler_manager.xhtml#a029a40ab5d837b3d4f5d3900ceb6a8f9">RegisterProfiler</a>(profiler.get());</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">auto</span> memoryManager = WorkloadFactoryHelper<FactoryType>::GetMemoryManager();</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="_cl_layer_tests_8cpp.xhtml#a255d08081b372809a176b588529296aa">FactoryType</a> workloadFactory = WorkloadFactoryHelper<FactoryType>::GetFactory(memoryManager);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">auto</span> testResult = (*testFunction)(workloadFactory, memoryManager, args...);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="_unit_tests_8hpp.xhtml#acbe506e0365feeed352effe52b1e4852">CompareTestResultIfSupported</a>(testName, testResult);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> }</div><div class="ttc" id="classarmnn_1_1_profiler_manager_xhtml_a029a40ab5d837b3d4f5d3900ceb6a8f9"><div class="ttname"><a href="classarmnn_1_1_profiler_manager.xhtml#a029a40ab5d837b3d4f5d3900ceb6a8f9">armnn::ProfilerManager::RegisterProfiler</a></div><div class="ttdeci">void RegisterProfiler(Profiler *profiler)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_8cpp_source.xhtml#l00494">Profiling.cpp:494</a></div></div> |
| 477 | <div class="ttc" id="classarmnn_1_1_profiler_manager_xhtml_a93857080c2523bf3395e7aa7e6024d5c"><div class="ttname"><a href="classarmnn_1_1_profiler_manager.xhtml#a93857080c2523bf3395e7aa7e6024d5c">armnn::ProfilerManager::GetInstance</a></div><div class="ttdeci">static ProfilerManager & GetInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_8cpp_source.xhtml#l00487">Profiling.cpp:487</a></div></div> |
| 478 | <div class="ttc" id="_unit_tests_8hpp_xhtml_acbe506e0365feeed352effe52b1e4852"><div class="ttname"><a href="_unit_tests_8hpp.xhtml#acbe506e0365feeed352effe52b1e4852">CompareTestResultIfSupported</a></div><div class="ttdeci">void CompareTestResultIfSupported(const std::string &testName, const LayerTestResult< T, n > &testResult)</div><div class="ttdoc">Executes BOOST_TEST on CompareTensors() return value so that the predicate_result message is reported...</div><div class="ttdef"><b>Definition:</b> <a href="_unit_tests_8hpp_source.xhtml#l00036">UnitTests.hpp:36</a></div></div> |
| 479 | <div class="ttc" id="_cl_layer_tests_8cpp_xhtml_a255d08081b372809a176b588529296aa"><div class="ttname"><a href="_cl_layer_tests_8cpp.xhtml#a255d08081b372809a176b588529296aa">FactoryType</a></div><div class="ttdeci">ClWorkloadFactory FactoryType</div><div class="ttdef"><b>Definition:</b> <a href="_cl_layer_tests_8cpp_source.xhtml#l00031">ClLayerTests.cpp:31</a></div></div> |
| 480 | </div><!-- fragment --> |
| 481 | </div> |
| 482 | </div> |
| 483 | </div><!-- contents --> |
| 484 | </div><!-- doc-content --> |
| 485 | <!-- start footer part --> |
| 486 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 487 | <ul> |
| 488 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="dir_9d86fd1fbecbedf5bdb69c7e7235fe5f.xhtml">test</a></li><li class="navelem"><a class="el" href="_unit_tests_8hpp.xhtml">UnitTests.hpp</a></li> |
| 489 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 490 | <a href="http://www.doxygen.org/index.html"> |
| 491 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 492 | </ul> |
| 493 | </div> |
| 494 | </body> |
| 495 | </html> |