Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: src/armnnCaffeParser/test/TestInputs.cpp File Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_test_inputs_8cpp.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#func-members">Functions</a> </div> |
| 85 | <div class="headertitle"> |
| 86 | <div class="title">TestInputs.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br /> |
| 90 | <code>#include "<a class="el" href="_i_caffe_parser_8hpp_source.html">armnnCaffeParser/ICaffeParser.hpp</a>"</code><br /> |
| 91 | <code>#include "<a class="el" href="_i_runtime_8hpp_source.html">armnn/IRuntime.hpp</a>"</code><br /> |
| 92 | <code>#include "<a class="el" href="_i_network_8hpp_source.html">armnn/INetwork.hpp</a>"</code><br /> |
| 93 | <code>#include "<a class="el" href="_exceptions_8hpp_source.html">armnn/Exceptions.hpp</a>"</code><br /> |
| 94 | <code>#include "<a class="el" href="_tensor_helpers_8hpp_source.html">test/TensorHelpers.hpp</a>"</code><br /> |
| 95 | <code>#include <string></code><br /> |
| 96 | <code>#include "<a class="el" href="_parser_prototxt_fixture_8hpp_source.html">ParserPrototxtFixture.hpp</a>"</code><br /> |
| 97 | </div> |
| 98 | <p><a href="_test_inputs_8cpp_source.html">Go to the source code of this file.</a></p> |
| 99 | <table class="memberdecls"> |
| 100 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 101 | Functions</h2></td></tr> |
| 102 | <tr class="memitem:adcdb40b9138ac9b00e08ee5ba4721c0f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_test_inputs_8cpp.html#adcdb40b9138ac9b00e08ee5ba4721c0f">BOOST_AUTO_TEST_CASE</a> (InputShapes)</td></tr> |
| 103 | <tr class="separator:adcdb40b9138ac9b00e08ee5ba4721c0f"><td class="memSeparator" colspan="2"> </td></tr> |
| 104 | </table> |
| 105 | <h2 class="groupheader">Function Documentation</h2> |
| 106 | <a id="adcdb40b9138ac9b00e08ee5ba4721c0f"></a> |
| 107 | <h2 class="memtitle"><span class="permalink"><a href="#adcdb40b9138ac9b00e08ee5ba4721c0f">◆ </a></span>BOOST_AUTO_TEST_CASE()</h2> |
| 108 | |
| 109 | <div class="memitem"> |
| 110 | <div class="memproto"> |
| 111 | <table class="memname"> |
| 112 | <tr> |
| 113 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 114 | <td>(</td> |
| 115 | <td class="paramtype">InputShapes </td> |
| 116 | <td class="paramname"></td><td>)</td> |
| 117 | <td></td> |
| 118 | </tr> |
| 119 | </table> |
| 120 | </div><div class="memdoc"> |
| 121 | |
| 122 | <p class="definition">Definition at line <a class="el" href="_test_inputs_8cpp_source.html#l00020">20</a> of file <a class="el" href="_test_inputs_8cpp_source.html">TestInputs.cpp</a>.</p> |
| 123 | |
| 124 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::CpuRef</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l00264">ICaffeParser::Create()</a>, <a class="el" href="_runtime_8cpp_source.html#l00032">IRuntime::Create()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_network_8cpp_source.html#l00807">armnn::Optimize()</a>, and <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00045">options</a>.</p> |
| 125 | <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  std::string explicitInput = <span class="stringliteral">"name: \"Minimal\"\n"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="stringliteral">"layer {\n"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="stringliteral">" name: \"data\"\n"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="stringliteral">" type: \"Input\"\n"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="stringliteral">" top: \"data\"\n"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="stringliteral">" input_param { shape: { dim: 1 dim: 2 dim: 3 dim: 4 } }\n"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="stringliteral">"}"</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  std::string implicitInput = <span class="stringliteral">"name: \"Minimal\"\n"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="stringliteral">"input: \"data\" \n"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="stringliteral">"input_dim: 1 \n"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="stringliteral">"input_dim: 2 \n"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="stringliteral">"input_dim: 3 \n"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="stringliteral">"input_dim: 4 \n"</span>;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  std::string implicitInputNoShape = <span class="stringliteral">"name: \"Minimal\"\n"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="stringliteral">"input: \"data\" \n"</span>;</div><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>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.html">armnn::IRuntime::CreationOptions</a> <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="namespacearmnn.html#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a> runtime(<a class="code" href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a>(options));</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="namespacearmnn_caffe_parser.html#a33c76910f1980ffaa41c22e0151cce2a">armnnCaffeParser::ICaffeParserPtr</a> parser(<a class="code" href="classarmnn_caffe_parser_1_1_i_caffe_parser.html#abd42446e41480b0cc9df7ce06af412e3">armnnCaffeParser::ICaffeParser::Create</a>());</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> network(<span class="keyword">nullptr</span>, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a> netId;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="comment">// Check everything works normally</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  std::vector<armnn::BackendId> backends = {<a class="code" href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a>};</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  network = parser->CreateNetworkFromString(explicitInput.c_str(), {}, { <span class="stringliteral">"data"</span> });</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  BOOST_TEST(network.get());</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  runtime->LoadNetwork(netId, <a class="code" href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, backends, runtime->GetDeviceSpec()));</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnnCaffeParser::BindingPointInfo</a> inputBindingInfo = parser->GetNetworkInputBindingInfo(<span class="stringliteral">"data"</span>);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo = inputBindingInfo.second;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  BOOST_TEST((inputTensorInfo == runtime->GetInputTensorInfo(netId, inputBindingInfo.first)));</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[0] == 1);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[1] == 2);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[2] == 3);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[3] == 4);</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="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// Checks everything works with implicit input.</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  network = parser->CreateNetworkFromString(implicitInput.c_str(), {}, { <span class="stringliteral">"data"</span> });</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  BOOST_TEST(network.get());</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  runtime->LoadNetwork(netId, <a class="code" href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, backends, runtime->GetDeviceSpec()));</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnnCaffeParser::BindingPointInfo</a> inputBindingInfo = parser->GetNetworkInputBindingInfo(<span class="stringliteral">"data"</span>);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo = inputBindingInfo.second;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  BOOST_TEST((inputTensorInfo == runtime->GetInputTensorInfo(netId, inputBindingInfo.first)));</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>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[0] == 1);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[1] == 2);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[2] == 3);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[3] == 4);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// Checks everything works with implicit and passing shape.</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  network = parser->CreateNetworkFromString(implicitInput.c_str(), { {<span class="stringliteral">"data"</span>, { 2, 2, 3, 4 } } }, { <span class="stringliteral">"data"</span> });</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  BOOST_TEST(network.get());</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  runtime->LoadNetwork(netId, <a class="code" href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, backends, runtime->GetDeviceSpec()));</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnnCaffeParser::BindingPointInfo</a> inputBindingInfo = parser->GetNetworkInputBindingInfo(<span class="stringliteral">"data"</span>);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo = inputBindingInfo.second;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  BOOST_TEST((inputTensorInfo == runtime->GetInputTensorInfo(netId, inputBindingInfo.first)));</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[0] == 2);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[1] == 2);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[2] == 3);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[3] == 4);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// Checks everything works with implicit (no shape) and passing shape.</span></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>  network = parser->CreateNetworkFromString(implicitInputNoShape.c_str(), {{<span class="stringliteral">"data"</span>, {2, 2, 3, 4} }}, { <span class="stringliteral">"data"</span> });</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  BOOST_TEST(network.get());</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  runtime->LoadNetwork(netId, <a class="code" href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">Optimize</a>(*network, backends, runtime->GetDeviceSpec()));</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnnCaffeParser::BindingPointInfo</a> inputBindingInfo = parser->GetNetworkInputBindingInfo(<span class="stringliteral">"data"</span>);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo = inputBindingInfo.second;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  BOOST_TEST((inputTensorInfo == runtime->GetInputTensorInfo(netId, inputBindingInfo.first)));</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[0] == 2);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[1] == 2);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[2] == 3);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  BOOST_TEST(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[3] == 4);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">// Checks exception on incompatible shapes.</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  BOOST_CHECK_THROW(parser->CreateNetworkFromString(implicitInput.c_str(), {{<span class="stringliteral">"data"</span>,{ 2, 2, 3, 2 }}}, {<span class="stringliteral">"data"</span>}),</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="comment">// Checks exception when no shape available.</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  BOOST_CHECK_THROW(parser->CreateNetworkFromString(implicitInputNoShape.c_str(), {}, { <span class="stringliteral">"data"</span> }),</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> }</div><div class="ttc" id="namespacearmnn_html_a82e98ef05fd67036d1195ba17174d685"><div class="ttname"><a href="namespacearmnn.html#a82e98ef05fd67036d1195ba17174d685">armnn::Optimize</a></div><div class="ttdeci">IOptimizedNetworkPtr Optimize(const INetwork &network, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptions &options=OptimizerOptions(), Optional< std::vector< std::string > &> messages=EmptyOptional())</div><div class="ttdef"><b>Definition:</b> <a href="_network_8cpp_source.html#l00807">Network.cpp:807</a></div></div> |
| 126 | <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 127 | <div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 128 | <div class="ttc" id="namespacearmnn_html_a280670a263dc4fd40491f6d0a2737f44"><div class="ttname"><a href="namespacearmnn.html#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.html#l00146">Tensor.hpp:146</a></div></div> |
| 129 | <div class="ttc" id="namespacearmnn_caffe_parser_html_a33c76910f1980ffaa41c22e0151cce2a"><div class="ttname"><a href="namespacearmnn_caffe_parser.html#a33c76910f1980ffaa41c22e0151cce2a">armnnCaffeParser::ICaffeParserPtr</a></div><div class="ttdeci">std::unique_ptr< ICaffeParser, void(*)(ICaffeParser *parser)> ICaffeParserPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_caffe_parser_8hpp_source.html#l00022">ICaffeParser.hpp:22</a></div></div> |
| 130 | <div class="ttc" id="classarmnn_caffe_parser_1_1_i_caffe_parser_html_abd42446e41480b0cc9df7ce06af412e3"><div class="ttname"><a href="classarmnn_caffe_parser_1_1_i_caffe_parser.html#abd42446e41480b0cc9df7ce06af412e3">armnnCaffeParser::ICaffeParser::Create</a></div><div class="ttdeci">static ICaffeParserPtr Create()</div><div class="ttdef"><b>Definition:</b> <a href="_caffe_parser_8cpp_source.html#l00264">CaffeParser.cpp:264</a></div></div> |
| 131 | <div class="ttc" id="namespacearmnn_html_ace74f6f9feb95a964a49d79458232703"><div class="ttname"><a href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a></div><div class="ttdeci">std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_network_8hpp_source.html#l00085">INetwork.hpp:85</a></div></div> |
| 132 | <div class="ttc" id="namespacearmnn_html_ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64"><div class="ttname"><a href="namespacearmnn.html#ae2f04a162585c0a5222a537efd5456aea83c2c4e9b658ccafbcbe6309c5d84c64">armnn::Compute::CpuRef</a></div><div class="ttdoc">CPU Execution: Reference C++ kernels. </div></div> |
| 133 | <div class="ttc" id="classarmnn_1_1_i_runtime_html_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.html#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.html#l00032">Runtime.cpp:32</a></div></div> |
| 134 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_html"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.html">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00041">IRuntime.hpp:41</a></div></div> |
| 135 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.html#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 136 | <div class="ttc" id="namespacearmnn_html_a83015160d8c67d5d77735eb0d4033d9a"><div class="ttname"><a href="namespacearmnn.html#a83015160d8c67d5d77735eb0d4033d9a">armnn::NetworkId</a></div><div class="ttdeci">int NetworkId</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00019">IRuntime.hpp:19</a></div></div> |
| 137 | <div class="ttc" id="namespacearmnn_html_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.html#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00024">IRuntime.hpp:24</a></div></div> |
| 138 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div> |
| 139 | </div><!-- fragment --> |
| 140 | </div> |
| 141 | </div> |
| 142 | </div><!-- contents --> |
| 143 | </div><!-- doc-content --> |
| 144 | <!-- start footer part --> |
| 145 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 146 | <ul> |
| 147 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_04760fd1fb320650b591e359d321263b.html">armnnCaffeParser</a></li><li class="navelem"><a class="el" href="dir_895bac71a5ab2f3f201ab1eda13a633d.html">test</a></li><li class="navelem"><a class="el" href="_test_inputs_8cpp.html">TestInputs.cpp</a></li> |
| 148 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 149 | <a href="http://www.doxygen.org/index.html"> |
| 150 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 151 | </ul> |
| 152 | </div> |
| 153 | </body> |
| 154 | </html> |