blob: e31b00243dce5d8ae2d0176bcbf32eb8cecea92e [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mxnet: /work/mxnet/3rdparty/mshadow/mshadow/extension/spatial_unpool.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mxnet
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_3e48ced36faa4eaa1b41f6d960bf0edb.html">mshadow</a></li><li class="navelem"><a class="el" href="dir_00b035bb2ad81894e6ad291054ea5f82.html">mshadow</a></li><li class="navelem"><a class="el" href="dir_9bd2a322a448ef0abedd860cb1ca3721.html">extension</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">spatial_unpool.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>support for unpool
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;algorithm&gt;</code><br />
<code>#include &quot;<a class="el" href="extension_8h_source.html">../extension.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for spatial_unpool.h:</div>
<div class="dyncontent">
<div class="center"><img src="spatial__unpool_8h__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2extension_2spatial__unpool_8h" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2extension_2spatial__unpool_8h" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2extension_2spatial__unpool_8h">
<area shape="rect" id="node3" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="2639,109,2750,136"/>
<area shape="rect" id="node4" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="4289,191,4431,218"/>
<area shape="rect" id="node17" href="implicit__gemm_8h.html" title="support for implicit GEMM operation " alt="" coords="4452,497,4599,539"/>
<area shape="rect" id="node23" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="390,191,565,218"/>
<area shape="rect" id="node24" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="589,184,734,225"/>
<area shape="rect" id="node25" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="1543,191,1753,218"/>
<area shape="rect" id="node26" href="reshape_8h.html" title="support for reshape " alt="" coords="957,191,1120,218"/>
<area shape="rect" id="node27" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="3956,273,4127,300"/>
<area shape="rect" id="node28" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="1335,191,1518,218"/>
<area shape="rect" id="node29" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="1777,184,1919,225"/>
<area shape="rect" id="node30" href="channel__pool_8h.html" title="support for chpool " alt="" coords="43,184,192,225"/>
<area shape="rect" id="node31" href="channel__unpool_8h.html" title="./extension/channel\l_unpool.h" alt="" coords="216,184,365,225"/>
<area shape="rect" id="node32" href="pad_8h.html" title="support for pad " alt="" coords="1943,191,2078,218"/>
<area shape="rect" id="node33" href="crop_8h.html" title="support for crop " alt="" coords="2103,191,2241,218"/>
<area shape="rect" id="node34" href="mirror_8h.html" title="support for mirror " alt="" coords="2265,191,2415,218"/>
<area shape="rect" id="node35" href="concat_8h.html" title="support for concatenation " alt="" coords="2439,191,2593,218"/>
<area shape="rect" id="node36" href="choose_8h.html" title="support for implicit array selection operation " alt="" coords="2617,191,2773,218"/>
<area shape="rect" id="node37" href="fill_8h.html" title="support for implicit array filling operation " alt="" coords="2797,191,2923,218"/>
<area shape="rect" id="node38" href="one__hot_8h.html" title="Create one&#45;hot indicator array based on the index. " alt="" coords="2948,191,3111,218"/>
<area shape="rect" id="node39" href="slice_8h.html" title="support for slice a certain dimension. " alt="" coords="3135,191,3275,218"/>
<area shape="rect" id="node40" href="slice__ex_8h.html" title="./extension/slice_ex.h" alt="" coords="3300,191,3463,218"/>
<area shape="rect" id="node41" href="take_8h.html" title="./extension/take.h" alt="" coords="3487,191,3625,218"/>
<area shape="rect" id="node42" href="take__grad_8h.html" title="./extension/take_grad.h" alt="" coords="3650,191,3825,218"/>
<area shape="rect" id="node43" href="reduce__with__axis_8h.html" title="./extension/reduce\l_with_axis.h" alt="" coords="3849,184,3991,225"/>
<area shape="rect" id="node44" href="broadcast__with__axis_8h.html" title="./extension/broadcast\l_with_axis.h" alt="" coords="4611,184,4773,225"/>
<area shape="rect" id="node45" href="spatial__upsampling__nearest_8h.html" title="./extension/spatial\l_upsampling_nearest.h" alt="" coords="4091,184,4264,225"/>
<area shape="rect" id="node46" href="transpose_8h.html" title="support for transpose " alt="" coords="758,191,933,218"/>
<area shape="rect" id="node47" href="flip_8h.html" title="support for flip a certain dimension. " alt="" coords="4456,191,4587,218"/>
<area shape="rect" id="node48" href="complex_8h.html" title="support for complex operations " alt="" coords="1145,191,1311,218"/>
<area shape="rect" id="node49" href="range_8h.html" title="support generating a range vector " alt="" coords="4797,191,4944,218"/>
<area shape="rect" id="node50" href="mask_8h.html" title="./extension/mask.h" alt="" coords="4968,191,5115,218"/>
<area shape="rect" id="node7" href="expression_8h.html" title="definitions of abstract expressions and expressions template " alt="" coords="4615,661,4729,688"/>
<area shape="rect" id="node10" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="5121,273,5204,300"/>
<area shape="rect" id="node16" href="dot__engine-inl_8h.html" title="definitions of how Matrix Multiplications can be evaluated " alt="" coords="4629,423,4763,449"/>
<area shape="rect" id="node8" href="3rdparty_2mshadow_2mshadow_2base_8h.html" title="./base.h" alt="" coords="5033,736,5106,763"/>
<area shape="rect" id="node12" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="5635,587,5775,613"/>
<area shape="rect" id="node13" href="tensor__cpu-inl_8h.html" title="implementation of CPU host code " alt="" coords="4727,348,4862,375"/>
<area shape="rect" id="node18" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="5470,348,5605,375"/>
<area shape="rect" id="node19" href="3rdparty_2mshadow_2mshadow_2io_8h.html" title="./io.h" alt="" coords="5042,505,5097,531"/>
<area shape="rect" id="node20" href="tensor__container_8h.html" title="tensor container that does memory allocation and resize like STL " alt="" coords="5285,423,5435,449"/>
<area shape="rect" id="node21" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="5117,348,5209,375"/>
<area shape="rect" id="node22" href="expr__scalar-inl_8h.html" title="definitions of operators in expression with respect to scalar this file will be included several time..." alt="" coords="5233,348,5370,375"/>
<area shape="rect" id="node15" href="packet-inl_8h.html" title="Generic packet vectorization code. " alt="" coords="4708,587,4815,613"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="spatial__unpool_8h__dep__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2extension_2spatial__unpool_8hdep" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2extension_2spatial__unpool_8hdep" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2extension_2spatial__unpool_8hdep">
<area shape="rect" id="node2" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="4315,109,4551,151"/>
<area shape="rect" id="node3" href="implicit__gemm_8h.html" title="support for implicit GEMM operation " alt="" coords="781,199,1005,255"/>
<area shape="rect" id="node6" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="792,511,1004,552"/>
<area shape="rect" id="node23" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="1181,199,1405,255"/>
<area shape="rect" id="node24" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="1429,199,1653,255"/>
<area shape="rect" id="node25" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="1677,199,1901,255"/>
<area shape="rect" id="node26" href="reshape_8h.html" title="support for reshape " alt="" coords="1925,199,2149,255"/>
<area shape="rect" id="node27" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="2173,199,2397,255"/>
<area shape="rect" id="node28" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="2421,199,2645,255"/>
<area shape="rect" id="node29" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="2669,199,2893,255"/>
<area shape="rect" id="node30" href="channel__pool_8h.html" title="support for chpool " alt="" coords="2917,199,3141,255"/>
<area shape="rect" id="node31" href="channel__unpool_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/channel_unpool.h" alt="" coords="3165,199,3389,255"/>
<area shape="rect" id="node32" href="pad_8h.html" title="support for pad " alt="" coords="3413,206,3677,247"/>
<area shape="rect" id="node33" href="crop_8h.html" title="support for crop " alt="" coords="3701,199,3925,255"/>
<area shape="rect" id="node34" href="mirror_8h.html" title="support for mirror " alt="" coords="3949,199,4173,255"/>
<area shape="rect" id="node35" href="concat_8h.html" title="support for concatenation " alt="" coords="4197,199,4421,255"/>
<area shape="rect" id="node36" href="choose_8h.html" title="support for implicit array selection operation " alt="" coords="4445,199,4669,255"/>
<area shape="rect" id="node37" href="fill_8h.html" title="support for implicit array filling operation " alt="" coords="4693,199,4917,255"/>
<area shape="rect" id="node38" href="one__hot_8h.html" title="Create one&#45;hot indicator array based on the index. " alt="" coords="4941,199,5165,255"/>
<area shape="rect" id="node39" href="slice_8h.html" title="support for slice a certain dimension. " alt="" coords="5189,199,5413,255"/>
<area shape="rect" id="node40" href="slice__ex_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/slice_ex.h" alt="" coords="5437,199,5661,255"/>
<area shape="rect" id="node41" href="take_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/take.h" alt="" coords="5685,199,5909,255"/>
<area shape="rect" id="node42" href="take__grad_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/take_grad.h" alt="" coords="5933,199,6157,255"/>
<area shape="rect" id="node43" href="reduce__with__axis_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/reduce_with_axis.h" alt="" coords="6181,199,6405,255"/>
<area shape="rect" id="node44" href="broadcast__with__axis_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/broadcast_with_axis.h" alt="" coords="6429,199,6653,255"/>
<area shape="rect" id="node45" href="spatial__upsampling__nearest_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/spatial_upsampling_nearest.h" alt="" coords="6677,199,6901,255"/>
<area shape="rect" id="node46" href="transpose_8h.html" title="support for transpose " alt="" coords="6925,199,7149,255"/>
<area shape="rect" id="node47" href="flip_8h.html" title="support for flip a certain dimension. " alt="" coords="7173,199,7397,255"/>
<area shape="rect" id="node48" href="complex_8h.html" title="support for complex operations " alt="" coords="7421,199,7645,255"/>
<area shape="rect" id="node49" href="range_8h.html" title="support generating a range vector " alt="" coords="7669,199,7893,255"/>
<area shape="rect" id="node50" href="mask_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/mask.h" alt="" coords="7917,199,8141,255"/>
<area shape="rect" id="node4" href="dot__engine-inl_8h.html" title="definitions of how Matrix Multiplications can be evaluated " alt="" coords="807,303,989,359"/>
<area shape="rect" id="node5" href="tensor__cpu-inl_8h.html" title="implementation of CPU host code " alt="" coords="797,407,999,463"/>
<area shape="rect" id="node7" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="1409,600,1598,656"/>
<area shape="rect" id="node8" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="1177,600,1384,656"/>
<area shape="rect" id="node9" href="packet-inl_8h.html" title="Generic packet vectorization code. " alt="" coords="102,607,339,649"/>
<area shape="rect" id="node12" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="364,600,565,656"/>
<area shape="rect" id="node13" href="3rdparty_2mshadow_2mshadow_2io_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/io.h" alt="" coords="590,607,774,649"/>
<area shape="rect" id="node14" href="tensor__container_8h.html" title="tensor container that does memory allocation and resize like STL " alt="" coords="588,704,789,760"/>
<area shape="rect" id="node15" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="643,808,865,849"/>
<area shape="rect" id="node16" href="include_2mxnet_2base_8h.html" title="/work/mxnet/include\l/mxnet/base.h" alt="" coords="947,607,1102,649"/>
<area shape="rect" id="node21" href="include_2mxnet_2op__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/op_attr_types.h" alt="" coords="1310,905,1483,946"/>
<area shape="rect" id="node10" href="plain-inl_8h.html" title="support of plain packet that use the plain datatype. " alt="" coords="233,704,437,760"/>
<area shape="rect" id="node11" href="sse-inl_8h.html" title="support of sse2 packet optimization of some operations " alt="" coords="5,704,209,760"/>
<area shape="rect" id="node17" href="packed__func_8h.html" title="Type&#45;erased function used across MXNET API. " alt="" coords="1080,897,1255,953"/>
<area shape="rect" id="node18" href="engine_8h.html" title="Engine that schedules all the operations according to dependency. " alt="" coords="1169,711,1323,753"/>
<area shape="rect" id="node19" href="include_2mxnet_2ndarray_8h.html" title="/work/mxnet/include\l/mxnet/ndarray.h" alt="" coords="1054,808,1209,849"/>
<area shape="rect" id="node20" href="include_2mxnet_2executor_8h.html" title="/work/mxnet/include\l/mxnet/executor.h" alt="" coords="841,905,995,946"/>
<area shape="rect" id="node22" href="storage_8h.html" title="Storage manager across multiple devices. " alt="" coords="939,711,1094,753"/>
</map>
</div>
</div>
<p><a href="spatial__unpool_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1UnPoolingExp.html">mshadow::expr::UnPoolingExp&lt; Reducer, SrcExp, DType, srcdim &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">unpooling expr reverse operation of pooling, used to pass gradient back <a href="structmshadow_1_1expr_1_1UnPoolingExp.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1Plan_3_01UnPoolingExp_3_01Reducer_00_01SrcExp_00_01DType_00_01srcdim_01_4_00_01DType_01_4.html">mshadow::expr::Plan&lt; UnPoolingExp&lt; Reducer, SrcExp, DType, srcdim &gt;, DType &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacemshadow"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemshadow.html">mshadow</a></td></tr>
<tr class="memdesc:namespacemshadow"><td class="mdescLeft">&#160;</td><td class="mdescRight">overloaded + operator between half_t and bf16_t <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacemshadow_1_1expr"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemshadow_1_1expr.html">mshadow::expr</a></td></tr>
<tr class="memdesc:namespacemshadow_1_1expr"><td class="mdescLeft">&#160;</td><td class="mdescRight">namespace for abstract expressions and expressions template, have no dependency on <a class="el" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d...">tensor.h</a>, These data structure takes no charge in computations, they are only used to define operations and represent expression in a symbolic way <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a97ebe62780c3f35287a9d91eca852326"><td class="memTemplParams" colspan="2">template&lt;typename Reducer , typename SrcExp , typename DType , int etype&gt; </td></tr>
<tr class="memitem:a97ebe62780c3f35287a9d91eca852326"><td class="memTemplItemLeft" align="right" valign="top">UnPoolingExp&lt; Reducer, SrcExp, DType, ExpInfo&lt; SrcExp &gt;::kDim &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow_1_1expr.html#a97ebe62780c3f35287a9d91eca852326">mshadow::expr::unpool</a> (const Exp&lt; SrcExp, DType, etype &gt; &amp;data_src, const Exp&lt; SrcExp, DType, etype &gt; &amp;data_pooled, const Exp&lt; SrcExp, DType, etype &gt; &amp;grad_pooled, index_t ksize_y, index_t ksize_x, index_t kstride_y, index_t kstride_x)</td></tr>
<tr class="memdesc:a97ebe62780c3f35287a9d91eca852326"><td class="mdescLeft">&#160;</td><td class="mdescRight">unpooling gradient for 4D, backprop gradient value back, revserse operation of pooling, same as unpooling, but allows unequal size of kernel <a href="namespacemshadow_1_1expr.html#a97ebe62780c3f35287a9d91eca852326">More...</a><br /></td></tr>
<tr class="separator:a97ebe62780c3f35287a9d91eca852326"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>support for unpool </p>
<dl class="section author"><dt>Author</dt><dd>Tianqi Chen </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 5 2023 00:58:42 for mxnet by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>