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/armnn/test/TensorTest.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('_tensor_test_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="#namespaces">Namespaces</a> | |
| 85 | <a href="#func-members">Functions</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">TensorTest.cpp File Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | <div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br /> |
| 91 | <code>#include <<a class="el" href="_tensor_8hpp_source.html">armnn/Tensor.hpp</a>></code><br /> |
| 92 | </div> |
| 93 | <p><a href="_tensor_test_8cpp_source.html">Go to the source code of this file.</a></p> |
| 94 | <table class="memberdecls"> |
| 95 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> |
| 96 | Namespaces</h2></td></tr> |
| 97 | <tr class="memitem:namespacearmnn"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.html">armnn</a></td></tr> |
| 98 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 99 | </table><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:abe311824d11bad4e6f93c8f94a721052"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.html#abe311824d11bad4e6f93c8f94a721052">boost_test_print_type</a> (std::ostream &ostr, const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &right)</td></tr> |
| 103 | <tr class="separator:abe311824d11bad4e6f93c8f94a721052"><td class="memSeparator" colspan="2"> </td></tr> |
| 104 | <tr class="memitem:af676ec7e9534bd6e6ac3072a2c0403f4"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.html#af676ec7e9534bd6e6ac3072a2c0403f4">boost_test_print_type</a> (std::ostream &ostr, const <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> &shape)</td></tr> |
| 105 | <tr class="separator:af676ec7e9534bd6e6ac3072a2c0403f4"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:ab7e46ed88187c63506b21f45abbabb13"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#ab7e46ed88187c63506b21f45abbabb13">BOOST_FIXTURE_TEST_CASE</a> (ConstructShapeUsingListInitialization, TensorInfoFixture)</td></tr> |
| 107 | <tr class="separator:ab7e46ed88187c63506b21f45abbabb13"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a37f7ffb280c544fe70e212e24fc5c2a7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#a37f7ffb280c544fe70e212e24fc5c2a7">BOOST_FIXTURE_TEST_CASE</a> (ConstructTensorInfo, TensorInfoFixture)</td></tr> |
| 109 | <tr class="separator:a37f7ffb280c544fe70e212e24fc5c2a7"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a3370241e4a543440e79a3d1842fe6f9f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#a3370241e4a543440e79a3d1842fe6f9f">BOOST_FIXTURE_TEST_CASE</a> (CopyConstructTensorInfo, TensorInfoFixture)</td></tr> |
| 111 | <tr class="separator:a3370241e4a543440e79a3d1842fe6f9f"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a8ff9749fd66d314c3c2bbef1eca00f09"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#a8ff9749fd66d314c3c2bbef1eca00f09">BOOST_FIXTURE_TEST_CASE</a> (TensorInfoEquality, TensorInfoFixture)</td></tr> |
| 113 | <tr class="separator:a8ff9749fd66d314c3c2bbef1eca00f09"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:aa2d0d8c3d827fec2b96ff3ae2389550e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#aa2d0d8c3d827fec2b96ff3ae2389550e">BOOST_FIXTURE_TEST_CASE</a> (TensorInfoInequality, TensorInfoFixture)</td></tr> |
| 115 | <tr class="separator:aa2d0d8c3d827fec2b96ff3ae2389550e"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a0c4119e76379387b984dbbbf998f2925"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#a0c4119e76379387b984dbbbf998f2925">BOOST_FIXTURE_TEST_CASE</a> (TensorInfoAssignmentOperator, TensorInfoFixture)</td></tr> |
| 117 | <tr class="separator:a0c4119e76379387b984dbbbf998f2925"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:ad80e179ec400af9d2547f172f3ca05f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#ad80e179ec400af9d2547f172f3ca05f3">CheckTensor</a> (const <a class="el" href="classarmnn_1_1_const_tensor.html">ConstTensor</a> &t)</td></tr> |
| 119 | <tr class="separator:ad80e179ec400af9d2547f172f3ca05f3"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:aa08fb9adf6eaf05fd4a3698880c1c292"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#aa08fb9adf6eaf05fd4a3698880c1c292">BOOST_AUTO_TEST_CASE</a> (TensorVsConstTensor)</td></tr> |
| 121 | <tr class="separator:aa08fb9adf6eaf05fd4a3698880c1c292"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a67f451b173e1cea17e907085cb967184"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#a67f451b173e1cea17e907085cb967184">BOOST_AUTO_TEST_CASE</a> (ModifyTensorInfo)</td></tr> |
| 123 | <tr class="separator:a67f451b173e1cea17e907085cb967184"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a60cf24873ff60e391417efc873e9c55e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#a60cf24873ff60e391417efc873e9c55e">BOOST_AUTO_TEST_CASE</a> (TensorShapeOperatorBrackets)</td></tr> |
| 125 | <tr class="separator:a60cf24873ff60e391417efc873e9c55e"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:ad842127d839c39ea39e3c0f3ac219728"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_test_8cpp.html#ad842127d839c39ea39e3c0f3ac219728">BOOST_AUTO_TEST_CASE</a> (TensorInfoPerAxisQuantization)</td></tr> |
| 127 | <tr class="separator:ad842127d839c39ea39e3c0f3ac219728"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | </table> |
| 129 | <h2 class="groupheader">Function Documentation</h2> |
| 130 | <a id="aa08fb9adf6eaf05fd4a3698880c1c292"></a> |
| 131 | <h2 class="memtitle"><span class="permalink"><a href="#aa08fb9adf6eaf05fd4a3698880c1c292">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/4]</span></h2> |
| 132 | |
| 133 | <div class="memitem"> |
| 134 | <div class="memproto"> |
| 135 | <table class="memname"> |
| 136 | <tr> |
| 137 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 138 | <td>(</td> |
| 139 | <td class="paramtype">TensorVsConstTensor </td> |
| 140 | <td class="paramname"></td><td>)</td> |
| 141 | <td></td> |
| 142 | </tr> |
| 143 | </table> |
| 144 | </div><div class="memdoc"> |
| 145 | |
| 146 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00105">105</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 147 | |
| 148 | <p class="reference">References <a class="el" href="_tensor_test_8cpp_source.html#l00100">CheckTensor()</a>.</p> |
| 149 | <div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">int</span> mutableDatum = 2;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> immutableDatum = 3;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classarmnn_1_1_tensor.html">armnn::Tensor</a> uninitializedTensor;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> uninitializedTensor2;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  uninitializedTensor2 = uninitializedTensor;</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>  <a class="code" href="classarmnn_1_1_tensor.html">armnn::Tensor</a> t(<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(), &mutableDatum);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> ct(<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(), &immutableDatum);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// Checks that both Tensor and ConstTensor can be passed as a ConstTensor.</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="_tensor_test_8cpp.html#ad80e179ec400af9d2547f172f3ca05f3">CheckTensor</a>(t);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="_tensor_test_8cpp.html#ad80e179ec400af9d2547f172f3ca05f3">CheckTensor</a>(ct);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div><div class="ttc" id="classarmnn_1_1_const_tensor_html"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00199">Tensor.hpp:199</a></div></div> |
| 150 | <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> |
| 151 | <div class="ttc" id="classarmnn_1_1_tensor_html"><div class="ttname"><a href="classarmnn_1_1_tensor.html">armnn::Tensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00191">Tensor.hpp:191</a></div></div> |
| 152 | <div class="ttc" id="_tensor_test_8cpp_html_ad80e179ec400af9d2547f172f3ca05f3"><div class="ttname"><a href="_tensor_test_8cpp.html#ad80e179ec400af9d2547f172f3ca05f3">CheckTensor</a></div><div class="ttdeci">void CheckTensor(const ConstTensor &t)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_test_8cpp_source.html#l00100">TensorTest.cpp:100</a></div></div> |
| 153 | </div><!-- fragment --> |
| 154 | </div> |
| 155 | </div> |
| 156 | <a id="a67f451b173e1cea17e907085cb967184"></a> |
| 157 | <h2 class="memtitle"><span class="permalink"><a href="#a67f451b173e1cea17e907085cb967184">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/4]</span></h2> |
| 158 | |
| 159 | <div class="memitem"> |
| 160 | <div class="memproto"> |
| 161 | <table class="memname"> |
| 162 | <tr> |
| 163 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 164 | <td>(</td> |
| 165 | <td class="paramtype">ModifyTensorInfo </td> |
| 166 | <td class="paramname"></td><td>)</td> |
| 167 | <td></td> |
| 168 | </tr> |
| 169 | </table> |
| 170 | </div><div class="memdoc"> |
| 171 | |
| 172 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00123">123</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 173 | |
| 174 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_tensor_8cpp_source.html#l00264">TensorInfo::GetQuantizationOffset()</a>, <a class="el" href="_tensor_8cpp_source.html#l00247">TensorInfo::GetQuantizationScale()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::info</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, <a class="el" href="_tensor_8hpp_source.html#l00096">TensorInfo::SetDataType()</a>, <a class="el" href="_tensor_8cpp_source.html#l00275">TensorInfo::SetQuantizationOffset()</a>, <a class="el" href="_tensor_8cpp_source.html#l00259">TensorInfo::SetQuantizationScale()</a>, and <a class="el" href="_tensor_8hpp_source.html#l00090">TensorInfo::SetShape()</a>.</p> |
| 175 | <div class="fragment"><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  info.<a class="code" href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">SetShape</a>({ 5, 6, 7, 8 });</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  BOOST_TEST((info.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>() == <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>({ 5, 6, 7, 8 })));</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  info.<a class="code" href="classarmnn_1_1_tensor_info.html#a71975fcec1464d639f1a78f73164d1bd">SetDataType</a>(DataType::QAsymmU8);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  BOOST_TEST((info.<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == DataType::QAsymmU8));</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  info.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(10.0f);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  BOOST_TEST(info.<a class="code" href="classarmnn_1_1_tensor_info.html#a047ca888c43bd7fb5702853bf72410d0">GetQuantizationScale</a>() == 10.0f);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  info.<a class="code" href="classarmnn_1_1_tensor_info.html#a63cbc581012c957f9d68d224ddc3e43c">SetQuantizationOffset</a>(5);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  BOOST_TEST(info.<a class="code" href="classarmnn_1_1_tensor_info.html#a770b51078da02f44a819e9f95d8058b5">GetQuantizationOffset</a>() == 5);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html_a770b51078da02f44a819e9f95d8058b5"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a770b51078da02f44a819e9f95d8058b5">armnn::TensorInfo::GetQuantizationOffset</a></div><div class="ttdeci">int32_t GetQuantizationOffset() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00264">Tensor.cpp:264</a></div></div> |
| 176 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 177 | <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> |
| 178 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a685739c4eb65a580e075282cfe6787d6"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">armnn::TensorInfo::SetQuantizationScale</a></div><div class="ttdeci">void SetQuantizationScale(float scale)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00259">Tensor.cpp:259</a></div></div> |
| 179 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a71975fcec1464d639f1a78f73164d1bd"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a71975fcec1464d639f1a78f73164d1bd">armnn::TensorInfo::SetDataType</a></div><div class="ttdeci">void SetDataType(DataType type)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00096">Tensor.hpp:96</a></div></div> |
| 180 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_abe8889e8150beef5fd204b2d87b49298"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">armnn::TensorInfo::SetShape</a></div><div class="ttdeci">void SetShape(const TensorShape &newShape)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00090">Tensor.hpp:90</a></div></div> |
| 181 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 182 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">armnn::TensorInfo::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00095">Tensor.hpp:95</a></div></div> |
| 183 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a63cbc581012c957f9d68d224ddc3e43c"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a63cbc581012c957f9d68d224ddc3e43c">armnn::TensorInfo::SetQuantizationOffset</a></div><div class="ttdeci">void SetQuantizationOffset(int32_t offset)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00275">Tensor.cpp:275</a></div></div> |
| 184 | <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> |
| 185 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a047ca888c43bd7fb5702853bf72410d0"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a047ca888c43bd7fb5702853bf72410d0">armnn::TensorInfo::GetQuantizationScale</a></div><div class="ttdeci">float GetQuantizationScale() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00247">Tensor.cpp:247</a></div></div> |
| 186 | </div><!-- fragment --> |
| 187 | </div> |
| 188 | </div> |
| 189 | <a id="a60cf24873ff60e391417efc873e9c55e"></a> |
| 190 | <h2 class="memtitle"><span class="permalink"><a href="#a60cf24873ff60e391417efc873e9c55e">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[3/4]</span></h2> |
| 191 | |
| 192 | <div class="memitem"> |
| 193 | <div class="memproto"> |
| 194 | <table class="memname"> |
| 195 | <tr> |
| 196 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 197 | <td>(</td> |
| 198 | <td class="paramtype">TensorShapeOperatorBrackets </td> |
| 199 | <td class="paramname"></td><td>)</td> |
| 200 | <td></td> |
| 201 | </tr> |
| 202 | </table> |
| 203 | </div><div class="memdoc"> |
| 204 | |
| 205 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00136">136</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 206 | <div class="fragment"><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> {</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> shape({0,1,2,3});</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// Checks version of operator[] which returns an unsigned int.</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  BOOST_TEST(shape[2] == 2);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// Checks the version of operator[] which returns a reference.</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  shape[2] = 20;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  BOOST_TEST(shape[2] == 20);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 207 | </div><!-- fragment --> |
| 208 | </div> |
| 209 | </div> |
| 210 | <a id="ad842127d839c39ea39e3c0f3ac219728"></a> |
| 211 | <h2 class="memtitle"><span class="permalink"><a href="#ad842127d839c39ea39e3c0f3ac219728">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[4/4]</span></h2> |
| 212 | |
| 213 | <div class="memitem"> |
| 214 | <div class="memproto"> |
| 215 | <table class="memname"> |
| 216 | <tr> |
| 217 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 218 | <td>(</td> |
| 219 | <td class="paramtype">TensorInfoPerAxisQuantization </td> |
| 220 | <td class="paramname"></td><td>)</td> |
| 221 | <td></td> |
| 222 | </tr> |
| 223 | </table> |
| 224 | </div><div class="memdoc"> |
| 225 | |
| 226 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00146">146</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 227 | |
| 228 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, and <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p> |
| 229 | <div class="fragment"><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">// Old constructor</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> tensorInfo0({ 1, 1 }, DataType::Float32, 2.0f, 1);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!tensorInfo0.HasMultipleQuantizationScales());</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.GetQuantizationScale() == 2.0f);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.GetQuantizationOffset() == 1);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.GetQuantizationScales()[0] == 2.0f);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!tensorInfo0.GetQuantizationDim().has_value());</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">// Set per-axis quantization scales</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  std::vector<float> perAxisScales{ 3.0f, 4.0f };</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  tensorInfo0.SetQuantizationScales(perAxisScales);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.HasMultipleQuantizationScales());</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.GetQuantizationScales() == perAxisScales);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="comment">// Set per-tensor quantization scale</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  tensorInfo0.SetQuantizationScale(5.0f);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!tensorInfo0.HasMultipleQuantizationScales());</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.GetQuantizationScales()[0] == 5.0f);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="comment">// Set quantization offset</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  tensorInfo0.SetQuantizationDim(<a class="code" href="classarmnn_1_1_optional.html">Optional<unsigned int></a>(1));</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo0.GetQuantizationDim().value() == 1);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// New constructor</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  perAxisScales = { 6.0f, 7.0f };</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> tensorInfo1({ 1, 1 }, DataType::Float32, perAxisScales, 1);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo1.HasMultipleQuantizationScales());</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo1.GetQuantizationOffset() == 0);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo1.GetQuantizationScales() == perAxisScales);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(tensorInfo1.GetQuantizationDim().value() == 1);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> }</div><div class="ttc" id="classarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional< unsigned int ></a></div></div> |
| 230 | <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> |
| 231 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 232 | </div><!-- fragment --> |
| 233 | </div> |
| 234 | </div> |
| 235 | <a id="ab7e46ed88187c63506b21f45abbabb13"></a> |
| 236 | <h2 class="memtitle"><span class="permalink"><a href="#ab7e46ed88187c63506b21f45abbabb13">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[1/6]</span></h2> |
| 237 | |
| 238 | <div class="memitem"> |
| 239 | <div class="memproto"> |
| 240 | <table class="memname"> |
| 241 | <tr> |
| 242 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 243 | <td>(</td> |
| 244 | <td class="paramtype">ConstructShapeUsingListInitialization </td> |
| 245 | <td class="paramname">, </td> |
| 246 | </tr> |
| 247 | <tr> |
| 248 | <td class="paramkey"></td> |
| 249 | <td></td> |
| 250 | <td class="paramtype">TensorInfoFixture </td> |
| 251 | <td class="paramname"> </td> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td></td> |
| 255 | <td>)</td> |
| 256 | <td></td><td></td> |
| 257 | </tr> |
| 258 | </table> |
| 259 | </div><div class="memdoc"> |
| 260 | |
| 261 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00053">53</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 262 | <div class="fragment"><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>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> listInitializedShape{ 6, 7, 8, 9 };</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  BOOST_TEST(listInitializedShape == m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>());</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 263 | <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> |
| 264 | </div><!-- fragment --> |
| 265 | </div> |
| 266 | </div> |
| 267 | <a id="a37f7ffb280c544fe70e212e24fc5c2a7"></a> |
| 268 | <h2 class="memtitle"><span class="permalink"><a href="#a37f7ffb280c544fe70e212e24fc5c2a7">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[2/6]</span></h2> |
| 269 | |
| 270 | <div class="memitem"> |
| 271 | <div class="memproto"> |
| 272 | <table class="memname"> |
| 273 | <tr> |
| 274 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 275 | <td>(</td> |
| 276 | <td class="paramtype">ConstructTensorInfo </td> |
| 277 | <td class="paramname">, </td> |
| 278 | </tr> |
| 279 | <tr> |
| 280 | <td class="paramkey"></td> |
| 281 | <td></td> |
| 282 | <td class="paramtype">TensorInfoFixture </td> |
| 283 | <td class="paramname"> </td> |
| 284 | </tr> |
| 285 | <tr> |
| 286 | <td></td> |
| 287 | <td>)</td> |
| 288 | <td></td><td></td> |
| 289 | </tr> |
| 290 | </table> |
| 291 | </div><div class="memdoc"> |
| 292 | |
| 293 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00059">59</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 294 | <div class="fragment"><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>  BOOST_TEST(m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() == 4);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  BOOST_TEST(m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[0] == 6); <span class="comment">// <= Outer most</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  BOOST_TEST(m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[1] == 7);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  BOOST_TEST(m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[2] == 8);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  BOOST_TEST(m_TensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[3] == 9); <span class="comment">// <= Inner most</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorInfo::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00092">Tensor.hpp:92</a></div></div> |
| 295 | <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> |
| 296 | </div><!-- fragment --> |
| 297 | </div> |
| 298 | </div> |
| 299 | <a id="a3370241e4a543440e79a3d1842fe6f9f"></a> |
| 300 | <h2 class="memtitle"><span class="permalink"><a href="#a3370241e4a543440e79a3d1842fe6f9f">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[3/6]</span></h2> |
| 301 | |
| 302 | <div class="memitem"> |
| 303 | <div class="memproto"> |
| 304 | <table class="memname"> |
| 305 | <tr> |
| 306 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 307 | <td>(</td> |
| 308 | <td class="paramtype">CopyConstructTensorInfo </td> |
| 309 | <td class="paramname">, </td> |
| 310 | </tr> |
| 311 | <tr> |
| 312 | <td class="paramkey"></td> |
| 313 | <td></td> |
| 314 | <td class="paramtype">TensorInfoFixture </td> |
| 315 | <td class="paramname"> </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="_tensor_test_8cpp_source.html#l00068">68</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 326 | <div class="fragment"><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> copyConstructed(m_TensorInfo);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  BOOST_TEST(copyConstructed.GetNumDimensions() == 4);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  BOOST_TEST(copyConstructed.GetShape()[0] == 6);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  BOOST_TEST(copyConstructed.GetShape()[1] == 7);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  BOOST_TEST(copyConstructed.GetShape()[2] == 8);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  BOOST_TEST(copyConstructed.GetShape()[3] == 9);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> }</div><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> |
| 327 | </div><!-- fragment --> |
| 328 | </div> |
| 329 | </div> |
| 330 | <a id="a8ff9749fd66d314c3c2bbef1eca00f09"></a> |
| 331 | <h2 class="memtitle"><span class="permalink"><a href="#a8ff9749fd66d314c3c2bbef1eca00f09">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[4/6]</span></h2> |
| 332 | |
| 333 | <div class="memitem"> |
| 334 | <div class="memproto"> |
| 335 | <table class="memname"> |
| 336 | <tr> |
| 337 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 338 | <td>(</td> |
| 339 | <td class="paramtype">TensorInfoEquality </td> |
| 340 | <td class="paramname">, </td> |
| 341 | </tr> |
| 342 | <tr> |
| 343 | <td class="paramkey"></td> |
| 344 | <td></td> |
| 345 | <td class="paramtype">TensorInfoFixture </td> |
| 346 | <td class="paramname"> </td> |
| 347 | </tr> |
| 348 | <tr> |
| 349 | <td></td> |
| 350 | <td>)</td> |
| 351 | <td></td><td></td> |
| 352 | </tr> |
| 353 | </table> |
| 354 | </div><div class="memdoc"> |
| 355 | |
| 356 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00078">78</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 357 | <div class="fragment"><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> copyConstructed(m_TensorInfo);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  BOOST_TEST(copyConstructed == m_TensorInfo);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> }</div><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> |
| 358 | </div><!-- fragment --> |
| 359 | </div> |
| 360 | </div> |
| 361 | <a id="aa2d0d8c3d827fec2b96ff3ae2389550e"></a> |
| 362 | <h2 class="memtitle"><span class="permalink"><a href="#aa2d0d8c3d827fec2b96ff3ae2389550e">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[5/6]</span></h2> |
| 363 | |
| 364 | <div class="memitem"> |
| 365 | <div class="memproto"> |
| 366 | <table class="memname"> |
| 367 | <tr> |
| 368 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 369 | <td>(</td> |
| 370 | <td class="paramtype">TensorInfoInequality </td> |
| 371 | <td class="paramname">, </td> |
| 372 | </tr> |
| 373 | <tr> |
| 374 | <td class="paramkey"></td> |
| 375 | <td></td> |
| 376 | <td class="paramtype">TensorInfoFixture </td> |
| 377 | <td class="paramname"> </td> |
| 378 | </tr> |
| 379 | <tr> |
| 380 | <td></td> |
| 381 | <td>)</td> |
| 382 | <td></td><td></td> |
| 383 | </tr> |
| 384 | </table> |
| 385 | </div><div class="memdoc"> |
| 386 | |
| 387 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00084">84</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 388 | |
| 389 | <p class="reference">References <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>.</p> |
| 390 | <div class="fragment"><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> other;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sizes[] = {2,3,4,5};</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  other = <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(4, sizes, DataType::Float32);</div><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>  BOOST_TEST(other != m_TensorInfo);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> }</div><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> |
| 391 | </div><!-- fragment --> |
| 392 | </div> |
| 393 | </div> |
| 394 | <a id="a0c4119e76379387b984dbbbf998f2925"></a> |
| 395 | <h2 class="memtitle"><span class="permalink"><a href="#a0c4119e76379387b984dbbbf998f2925">◆ </a></span>BOOST_FIXTURE_TEST_CASE() <span class="overload">[6/6]</span></h2> |
| 396 | |
| 397 | <div class="memitem"> |
| 398 | <div class="memproto"> |
| 399 | <table class="memname"> |
| 400 | <tr> |
| 401 | <td class="memname">BOOST_FIXTURE_TEST_CASE </td> |
| 402 | <td>(</td> |
| 403 | <td class="paramtype">TensorInfoAssignmentOperator </td> |
| 404 | <td class="paramname">, </td> |
| 405 | </tr> |
| 406 | <tr> |
| 407 | <td class="paramkey"></td> |
| 408 | <td></td> |
| 409 | <td class="paramtype">TensorInfoFixture </td> |
| 410 | <td class="paramname"> </td> |
| 411 | </tr> |
| 412 | <tr> |
| 413 | <td></td> |
| 414 | <td>)</td> |
| 415 | <td></td><td></td> |
| 416 | </tr> |
| 417 | </table> |
| 418 | </div><div class="memdoc"> |
| 419 | |
| 420 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00093">93</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 421 | <div class="fragment"><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>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> copy;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  copy = m_TensorInfo;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  BOOST_TEST(copy == m_TensorInfo);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> }</div><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> |
| 422 | </div><!-- fragment --> |
| 423 | </div> |
| 424 | </div> |
| 425 | <a id="ad80e179ec400af9d2547f172f3ca05f3"></a> |
| 426 | <h2 class="memtitle"><span class="permalink"><a href="#ad80e179ec400af9d2547f172f3ca05f3">◆ </a></span>CheckTensor()</h2> |
| 427 | |
| 428 | <div class="memitem"> |
| 429 | <div class="memproto"> |
| 430 | <table class="memname"> |
| 431 | <tr> |
| 432 | <td class="memname">void CheckTensor </td> |
| 433 | <td>(</td> |
| 434 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">ConstTensor</a> & </td> |
| 435 | <td class="paramname"><em>t</em></td><td>)</td> |
| 436 | <td></td> |
| 437 | </tr> |
| 438 | </table> |
| 439 | </div><div class="memdoc"> |
| 440 | |
| 441 | <p class="definition">Definition at line <a class="el" href="_tensor_test_8cpp_source.html#l00100">100</a> of file <a class="el" href="_tensor_test_8cpp_source.html">TensorTest.cpp</a>.</p> |
| 442 | |
| 443 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00167">BaseTensor< MemoryType >::GetInfo()</a>.</p> |
| 444 | |
| 445 | <p class="reference">Referenced by <a class="el" href="_tensor_test_8cpp_source.html#l00105">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 446 | <div class="fragment"><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  t.<a class="code" href="classarmnn_1_1_base_tensor.html#a8aeddebdcf02e1832b22203c08a6b678">GetInfo</a>();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div><div class="ttc" id="classarmnn_1_1_base_tensor_html_a8aeddebdcf02e1832b22203c08a6b678"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#a8aeddebdcf02e1832b22203c08a6b678">armnn::BaseTensor::GetInfo</a></div><div class="ttdeci">const TensorInfo & GetInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00167">Tensor.hpp:167</a></div></div> |
| 447 | </div><!-- fragment --> |
| 448 | </div> |
| 449 | </div> |
| 450 | </div><!-- contents --> |
| 451 | </div><!-- doc-content --> |
| 452 | <!-- start footer part --> |
| 453 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 454 | <ul> |
| 455 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.html">armnn</a></li><li class="navelem"><a class="el" href="dir_9d86fd1fbecbedf5bdb69c7e7235fe5f.html">test</a></li><li class="navelem"><a class="el" href="_tensor_test_8cpp.html">TensorTest.cpp</a></li> |
| 456 | <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by |
| 457 | <a href="http://www.doxygen.org/index.html"> |
| 458 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 459 | </ul> |
| 460 | </div> |
| 461 | </body> |
| 462 | </html> |