blob: e5f226cc87858e854f779fb97876f4b476b1e411 [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: mshadow::expr::ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt; Struct Template 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="namespacemshadow.html">mshadow</a></li><li class="navelem"><a class="el" href="namespacemshadow_1_1expr.html">expr</a></li><li class="navelem"><a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">ReshapeExp</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structmshadow_1_1expr_1_1ReshapeExp-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">mshadow::expr::ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt; Struct Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>reshape the content to another shape input: Tensor&lt;Device,dimsrc&gt;: ishape output: Tensor&lt;Device,dimdst&gt; ishape.Size() == oshape.Size()
<a href="structmshadow_1_1expr_1_1ReshapeExp.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="reshape_8h_source.html">reshape.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for mshadow::expr::ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="structmshadow_1_1expr_1_1ReshapeExp__inherit__graph.png" border="0" usemap="#mshadow_1_1expr_1_1ReshapeExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimsrc_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="mshadow_1_1expr_1_1ReshapeExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimsrc_01_4_inherit__map" id="mshadow_1_1expr_1_1ReshapeExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimsrc_01_4_inherit__map">
<area shape="rect" id="node2" href="structmshadow_1_1expr_1_1MakeTensorExp.html" title="{mshadow::expr::MakeTensor\lExp\&lt; ReshapeExp\&lt; SrcExp,\l DType, dimdst, dimsrc \&gt;\l, SrcExp, dimdst, DType \&gt;\n|+ shape_\l|+ real_self()\l}" alt="" coords="18,204,225,325"/>
<area shape="rect" id="node3" href="structmshadow_1_1expr_1_1Exp.html" title="{mshadow::expr::Exp\l\&lt; MakeTensorExp\&lt; ReshapeExp\l\&lt; SrcExp, DType, dimdst,\l dimsrc \&gt;, SrcExp, dim, DType\l \&gt;, DType, type::kChainer \&gt;\n||+ self()\l+ ptrself()\l}" alt="" coords="5,5,237,156"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for mshadow::expr::ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="structmshadow_1_1expr_1_1ReshapeExp__coll__graph.png" border="0" usemap="#mshadow_1_1expr_1_1ReshapeExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimsrc_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="mshadow_1_1expr_1_1ReshapeExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimsrc_01_4_coll__map" id="mshadow_1_1expr_1_1ReshapeExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimsrc_01_4_coll__map">
<area shape="rect" id="node2" href="structmshadow_1_1expr_1_1MakeTensorExp.html" title="{mshadow::expr::MakeTensor\lExp\&lt; ReshapeExp\&lt; SrcExp,\l DType, dimdst, dimsrc \&gt;\l, SrcExp, dimdst, DType \&gt;\n||+ real_self()\l}" alt="" coords="134,336,341,457"/>
<area shape="rect" id="node3" href="structmshadow_1_1expr_1_1Exp.html" title="{mshadow::expr::Exp\l\&lt; MakeTensorExp\&lt; ReshapeExp\l\&lt; SrcExp, DType, dimdst,\l dimsrc \&gt;, SrcExp, dim, DType\l \&gt;, DType, type::kChainer \&gt;\n||+ self()\l+ ptrself()\l}" alt="" coords="5,64,237,215"/>
<area shape="rect" id="node4" href="structmshadow_1_1Shape.html" title="{mshadow::Shape\&lt; dim \&gt;\n|+ shape_\l+ kDimension\l+ kSubdim\l|+ Shape()\l+ Shape()\l+ operator[]()\l+ operator[]()\l+ operator==()\l+ operator!=()\l+ FlatTo1D()\l+ FlatTo2D()\l+ Size()\l+ ProdShape()\l+ SubShape()\l+ Slice()\l}" alt="" coords="261,5,448,273"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afffb19f1a7fea9ed82e1c6c79bb2ae29"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html#afffb19f1a7fea9ed82e1c6c79bb2ae29">ReshapeExp</a> (const SrcExp &amp;src, <a class="el" href="structmshadow_1_1Shape.html">Shape</a>&lt; dimdst &gt; shape)</td></tr>
<tr class="memdesc:afffb19f1a7fea9ed82e1c6c79bb2ae29"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor <a href="#afffb19f1a7fea9ed82e1c6c79bb2ae29">More...</a><br /></td></tr>
<tr class="separator:afffb19f1a7fea9ed82e1c6c79bb2ae29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structmshadow_1_1expr_1_1MakeTensorExp"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structmshadow_1_1expr_1_1MakeTensorExp')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="structmshadow_1_1expr_1_1MakeTensorExp.html">mshadow::expr::MakeTensorExp&lt; ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt;, SrcExp, dimdst, DType &gt;</a></td></tr>
<tr class="memitem:adf83aad5be17b50320bfcc6430244439 inherit pub_methods_structmshadow_1_1expr_1_1MakeTensorExp"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">ReshapeExp</a>&lt; SrcExp, DType, dimdst, dimsrc &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1MakeTensorExp.html#adf83aad5be17b50320bfcc6430244439">real_self</a> (void) const</td></tr>
<tr class="memdesc:adf83aad5be17b50320bfcc6430244439 inherit pub_methods_structmshadow_1_1expr_1_1MakeTensorExp"><td class="mdescLeft">&#160;</td><td class="mdescRight">true self of subtype <a href="structmshadow_1_1expr_1_1MakeTensorExp.html#adf83aad5be17b50320bfcc6430244439">More...</a><br /></td></tr>
<tr class="separator:adf83aad5be17b50320bfcc6430244439 inherit pub_methods_structmshadow_1_1expr_1_1MakeTensorExp"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structmshadow_1_1expr_1_1Exp"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structmshadow_1_1expr_1_1Exp')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="structmshadow_1_1expr_1_1Exp.html">mshadow::expr::Exp&lt; MakeTensorExp&lt; ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt;, SrcExp, dim, DType &gt;, DType, type::kChainer &gt;</a></td></tr>
<tr class="memitem:adb7e4afd0baed78d66cff87de0a6621f inherit pub_methods_structmshadow_1_1expr_1_1Exp"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structmshadow_1_1expr_1_1MakeTensorExp.html">MakeTensorExp</a>&lt; <a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">ReshapeExp</a>&lt; SrcExp, DType, dimdst, dimsrc &gt;, SrcExp, dim, DType &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">self</a> (void) const</td></tr>
<tr class="separator:adb7e4afd0baed78d66cff87de0a6621f inherit pub_methods_structmshadow_1_1expr_1_1Exp"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6f23b53ba2fc3c2b594cf2ddfba5b22 inherit pub_methods_structmshadow_1_1expr_1_1Exp"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmshadow_1_1expr_1_1MakeTensorExp.html">MakeTensorExp</a>&lt; <a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">ReshapeExp</a>&lt; SrcExp, DType, dimdst, dimsrc &gt;, SrcExp, dim, DType &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1Exp.html#ad6f23b53ba2fc3c2b594cf2ddfba5b22">ptrself</a> (void)</td></tr>
<tr class="separator:ad6f23b53ba2fc3c2b594cf2ddfba5b22 inherit pub_methods_structmshadow_1_1expr_1_1Exp"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad312a72438da382c8122fa6747b896fa"><td class="memItemLeft" align="right" valign="top">const SrcExp &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html#ad312a72438da382c8122fa6747b896fa">src_</a></td></tr>
<tr class="memdesc:ad312a72438da382c8122fa6747b896fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">source expression <a href="#ad312a72438da382c8122fa6747b896fa">More...</a><br /></td></tr>
<tr class="separator:ad312a72438da382c8122fa6747b896fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5baedf65a93e073525f7ecfba579b70c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html#a5baedf65a93e073525f7ecfba579b70c">ishapex_</a></td></tr>
<tr class="memdesc:a5baedf65a93e073525f7ecfba579b70c"><td class="mdescLeft">&#160;</td><td class="mdescRight">smallest dimension of input <a href="#a5baedf65a93e073525f7ecfba579b70c">More...</a><br /></td></tr>
<tr class="separator:a5baedf65a93e073525f7ecfba579b70c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_structmshadow_1_1expr_1_1MakeTensorExp"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_structmshadow_1_1expr_1_1MakeTensorExp')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="structmshadow_1_1expr_1_1MakeTensorExp.html">mshadow::expr::MakeTensorExp&lt; ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt;, SrcExp, dimdst, DType &gt;</a></td></tr>
<tr class="memitem:a2a2f9b6b828035ea38bfb8620db42a82 inherit pub_attribs_structmshadow_1_1expr_1_1MakeTensorExp"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmshadow_1_1Shape.html">Shape</a>&lt; dim &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">shape_</a></td></tr>
<tr class="memdesc:a2a2f9b6b828035ea38bfb8620db42a82 inherit pub_attribs_structmshadow_1_1expr_1_1MakeTensorExp"><td class="mdescLeft">&#160;</td><td class="mdescRight">the shape of this expression <a href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">More...</a><br /></td></tr>
<tr class="separator:a2a2f9b6b828035ea38bfb8620db42a82 inherit pub_attribs_structmshadow_1_1expr_1_1MakeTensorExp"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename SrcExp, typename DType, int dimdst, int dimsrc&gt;<br />
struct mshadow::expr::ReshapeExp&lt; SrcExp, DType, dimdst, dimsrc &gt;</h3>
<p>reshape the content to another shape input: Tensor&lt;Device,dimsrc&gt;: ishape output: Tensor&lt;Device,dimdst&gt; ishape.Size() == oshape.Size() </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">SrcExp</td><td>source expression </td></tr>
<tr><td class="paramname">dimdst</td><td>target dimension </td></tr>
<tr><td class="paramname">dimsrc</td><td>source dimension </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="afffb19f1a7fea9ed82e1c6c79bb2ae29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afffb19f1a7fea9ed82e1c6c79bb2ae29">&#9670;&nbsp;</a></span>ReshapeExp()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename SrcExp, typename DType, int dimdst, int dimsrc&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">mshadow::expr::ReshapeExp</a>&lt; SrcExp, DType, dimdst, dimsrc &gt;::<a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">ReshapeExp</a> </td>
<td>(</td>
<td class="paramtype">const SrcExp &amp;&#160;</td>
<td class="paramname"><em>src</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structmshadow_1_1Shape.html">Shape</a>&lt; dimdst &gt;&#160;</td>
<td class="paramname"><em>shape</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>constructor </p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a5baedf65a93e073525f7ecfba579b70c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5baedf65a93e073525f7ecfba579b70c">&#9670;&nbsp;</a></span>ishapex_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename SrcExp, typename DType, int dimdst, int dimsrc&gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> <a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">mshadow::expr::ReshapeExp</a>&lt; SrcExp, DType, dimdst, dimsrc &gt;::ishapex_</td>
</tr>
</table>
</div><div class="memdoc">
<p>smallest dimension of input </p>
</div>
</div>
<a id="ad312a72438da382c8122fa6747b896fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad312a72438da382c8122fa6747b896fa">&#9670;&nbsp;</a></span>src_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename SrcExp, typename DType, int dimdst, int dimsrc&gt; </div>
<table class="memname">
<tr>
<td class="memname">const SrcExp&amp; <a class="el" href="structmshadow_1_1expr_1_1ReshapeExp.html">mshadow::expr::ReshapeExp</a>&lt; SrcExp, DType, dimdst, dimsrc &gt;::src_</td>
</tr>
</table>
</div><div class="memdoc">
<p>source expression </p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>/work/mxnet/3rdparty/mshadow/mshadow/extension/<a class="el" href="reshape_8h_source.html">reshape.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 5 2023 00:58:43 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>