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/backends/backendsCommon/test/DepthToSpaceEndToEndTestImpl.hpp 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('_depth_to_space_end_to_end_test_impl_8hpp.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">DepthToSpaceEndToEndTestImpl.hpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include <<a class="el" href="_resolve_type_8hpp_source.html">ResolveType.hpp</a>></code><br /> |
| 90 | <code>#include <<a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>></code><br /> |
| 91 | <code>#include <<a class="el" href="_data_layout_utils_8hpp_source.html">backendsCommon/test/DataLayoutUtils.hpp</a>></code><br /> |
| 92 | </div> |
| 93 | <p><a href="_depth_to_space_end_to_end_test_impl_8hpp_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="func-members"></a> |
| 96 | Functions</h2></td></tr> |
| 97 | <tr class="memitem:a210d03c5b3eb0ba7aade5dc2ebe8c42f"><td class="memTemplParams" colspan="2">template<armnn::DataType ArmnnType> </td></tr> |
| 98 | <tr class="memitem:a210d03c5b3eb0ba7aade5dc2ebe8c42f"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_depth_to_space_end_to_end_test_impl_8hpp.html#a210d03c5b3eb0ba7aade5dc2ebe8c42f">DepthToSpaceEndToEnd</a> (const std::vector< <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> > &<a class="el" href="_ref_end_to_end_tests_8cpp.html#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr> |
| 99 | <tr class="separator:a210d03c5b3eb0ba7aade5dc2ebe8c42f"><td class="memSeparator" colspan="2"> </td></tr> |
| 100 | </table> |
| 101 | <h2 class="groupheader">Function Documentation</h2> |
| 102 | <a id="a210d03c5b3eb0ba7aade5dc2ebe8c42f"></a> |
| 103 | <h2 class="memtitle"><span class="permalink"><a href="#a210d03c5b3eb0ba7aade5dc2ebe8c42f">◆ </a></span>DepthToSpaceEndToEnd()</h2> |
| 104 | |
| 105 | <div class="memitem"> |
| 106 | <div class="memproto"> |
| 107 | <table class="memname"> |
| 108 | <tr> |
| 109 | <td class="memname">void DepthToSpaceEndToEnd </td> |
| 110 | <td>(</td> |
| 111 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> > & </td> |
| 112 | <td class="paramname"><em>defaultBackends</em>, </td> |
| 113 | </tr> |
| 114 | <tr> |
| 115 | <td class="paramkey"></td> |
| 116 | <td></td> |
| 117 | <td class="paramtype"><a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> |
| 118 | <td class="paramname"><em>dataLayout</em> </td> |
| 119 | </tr> |
| 120 | <tr> |
| 121 | <td></td> |
| 122 | <td>)</td> |
| 123 | <td></td><td></td> |
| 124 | </tr> |
| 125 | </table> |
| 126 | </div><div class="memdoc"> |
| 127 | |
| 128 | <p class="definition">Definition at line <a class="el" href="_depth_to_space_end_to_end_test_impl_8hpp_source.html#l00081">81</a> of file <a class="el" href="_depth_to_space_end_to_end_test_impl_8hpp_source.html">DepthToSpaceEndToEndTestImpl.hpp</a>.</p> |
| 129 | |
| 130 | <p class="reference">References <a class="el" href="_cl_end_to_end_tests_8cpp_source.html#l00025">defaultBackends</a>.</p> |
| 131 | <div class="fragment"><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><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_shape.html">TensorShape</a> inputShape = { 2, 2, 2, 4 };</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> outputShape = { 2, 4, 4, 1 };</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  std::vector<float> inputData =</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  1.f, 2.f, 3.f, 4.f,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  5.f, 6.f, 7.f, 8.f,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  9.f, 10.f, 11.f, 12.f,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  13.f, 14.f, 15.f, 16.f,</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  17.f, 18.f, 19.f, 20.f,</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  21.f, 22.f, 23.f, 24.f,</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  25.f, 26.f, 27.f, 28.f,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  29.f, 30.f, 31.f, 32.f</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  };</div><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>  std::vector<float> expectedOutputData =</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  1.f, 2.f, 5.f, 6.f,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  3.f, 4.f, 7.f, 8.f,</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  9.f, 10.f, 13.f, 14.f,</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  11.f, 12.f, 15.f, 16.f,</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>  17.f, 18.f, 21.f, 22.f,</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  19.f, 20.f, 23.f, 24.f,</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  25.f, 26.f, 29.f, 30.f,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  27.f, 28.f, 31.f, 32.f</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>  DepthToSpaceEndToEndImpl<ArmnnType>(<a class="code" href="_cl_end_to_end_tests_8cpp.html#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a>,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="namespacearmnn.html#a3647f60510bc8ddaced01c51b0ee8714">DepthToSpaceDescriptor</a>(2, dataLayout),</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  inputShape,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  outputShape,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  inputData,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  expectedOutputData);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div><div class="ttc" id="namespacearmnn_html_a3647f60510bc8ddaced01c51b0ee8714"><div class="ttname"><a href="namespacearmnn.html#a3647f60510bc8ddaced01c51b0ee8714">armnn::DepthToSpaceDescriptor</a></div><div class="ttdeci">SpaceToDepthDescriptor DepthToSpaceDescriptor</div><div class="ttdoc">A DepthToSpaceDescriptor for the DepthToSpaceLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00834">Descriptors.hpp:834</a></div></div> |
| 132 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 133 | <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> |
| 134 | <div class="ttc" id="_cl_end_to_end_tests_8cpp_html_ab59caffe2ee6be46c08766c055420f17"><div class="ttname"><a href="_cl_end_to_end_tests_8cpp.html#ab59caffe2ee6be46c08766c055420f17">defaultBackends</a></div><div class="ttdeci">std::vector< armnn::BackendId > defaultBackends</div><div class="ttdef"><b>Definition:</b> <a href="_cl_end_to_end_tests_8cpp_source.html#l00025">ClEndToEndTests.cpp:25</a></div></div> |
| 135 | </div><!-- fragment --> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div><!-- contents --> |
| 139 | </div><!-- doc-content --> |
| 140 | <!-- start footer part --> |
| 141 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 142 | <ul> |
| 143 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.html">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.html">test</a></li><li class="navelem"><a class="el" href="_depth_to_space_end_to_end_test_impl_8hpp.html">DepthToSpaceEndToEndTestImpl.hpp</a></li> |
| 144 | <li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by |
| 145 | <a href="http://www.doxygen.org/index.html"> |
| 146 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 147 | </ul> |
| 148 | </div> |
| 149 | </body> |
| 150 | </html> |