blob: 9f297d1d592f65dbc5ec04ce3ff3ce5b98987ec1 [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.11"/>
<title>mxnet: /work/mxnet/3rdparty/mshadow/mshadow/tensor_container.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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</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> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> </div>
<div class="headertitle">
<div class="title">tensor_container.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>tensor container that does memory allocation and resize like STL
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="tensor_8h_source.html">./tensor.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="3rdparty_2mshadow_2mshadow_2io_8h_source.html">./io.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tensor_container.h:</div>
<div class="dyncontent">
<div class="center"><img src="tensor__container_8h__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__container_8h" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__container_8h" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__container_8h">
<area shape="rect" id="node2" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="1650,109,1733,136"/>
<area shape="rect" id="node48" href="3rdparty_2mshadow_2mshadow_2io_8h.html" title="./io.h" alt="" coords="3011,184,3065,211"/>
<area shape="rect" id="node5" href="3rdparty_2mshadow_2mshadow_2base_8h.html" title="./base.h" alt="" coords="1324,423,1397,449"/>
<area shape="rect" id="node27" href="expression_8h.html" title="definitions of abstract expressions and expressions template " alt="" coords="1465,348,1576,375"/>
<area shape="rect" id="node28" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="1459,184,1598,211"/>
<area shape="rect" id="node30" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="2766,184,2870,211"/>
<area shape="rect" id="node31" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="1651,266,1790,293"/>
<area shape="rect" id="node46" href="tensor__cpu-inl_8h.html" title="implementation of CPU host code " alt="" coords="1075,348,1207,375"/>
<area shape="rect" id="node47" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="1190,184,1323,211"/>
<area shape="rect" id="node49" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="2895,184,2987,211"/>
<area shape="rect" id="node50" 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="1801,184,1934,211"/>
<area shape="rect" id="node23" href="half_8h.html" title="definition of half (float16) type. " alt="" coords="1666,497,1730,524"/>
<area shape="rect" id="node24" href="half2_8h.html" title="definition of vector float16, half2 type. " alt="" coords="1755,497,1828,524"/>
<area shape="rect" id="node25" href="bfloat_8h.html" title="definition of bfloat type. " alt="" coords="1852,497,1931,524"/>
<area shape="rect" id="node32" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="3260,266,3432,293"/>
<area shape="rect" id="node33" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="3456,259,3599,300"/>
<area shape="rect" id="node34" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="3623,266,3829,293"/>
<area shape="rect" id="node35" href="reshape_8h.html" title="support for reshape " alt="" coords="1865,266,2025,293"/>
<area shape="rect" id="node36" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="3854,266,4019,293"/>
<area shape="rect" id="node37" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="2049,266,2230,293"/>
<area shape="rect" id="node38" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="4043,259,4182,300"/>
<area shape="rect" id="node39" href="spatial__unpool_8h.html" title="support for unpool " alt="" coords="4206,259,4345,300"/>
<area shape="rect" id="node40" href="channel__pool_8h.html" title="support for chpool " alt="" coords="2918,259,3065,300"/>
<area shape="rect" id="node41" href="channel__unpool_8h.html" title="./extension/channel\l_unpool.h" alt="" coords="3089,259,3235,300"/>
<area shape="rect" id="node42" href="pad_8h.html" title="support for pad " alt="" coords="2255,266,2387,293"/>
<area shape="rect" id="node43" href="crop_8h.html" title="support for crop " alt="" coords="2411,266,2547,293"/>
<area shape="rect" id="node44" href="mirror_8h.html" title="support for mirror " alt="" coords="2571,266,2718,293"/>
<area shape="rect" id="node45" href="concat_8h.html" title="support for concatenation " alt="" coords="2743,266,2893,293"/>
</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="tensor__container_8h__dep__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__container_8hdep" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__container_8hdep" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__container_8hdep">
<area shape="rect" id="node2" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="4033,109,4241,151"/>
<area shape="rect" id="node33" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="4721,206,4940,247"/>
<area shape="rect" id="node3" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="3753,199,3937,255"/>
<area shape="rect" id="node26" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="3961,199,4164,255"/>
<area shape="rect" id="node27" href="tensor__cpu-inl_8h.html" title="implementation of CPU host code " alt="" coords="4087,303,4284,359"/>
<area shape="rect" id="node28" href="packet-inl_8h.html" title="Generic packet vectorization code. " alt="" coords="4263,206,4494,247"/>
<area shape="rect" id="node31" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="5,199,203,255"/>
<area shape="rect" id="node32" href="3rdparty_2mshadow_2mshadow_2io_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/io.h" alt="" coords="4519,206,4697,247"/>
<area shape="rect" id="node34" href="include_2mxnet_2base_8h.html" title="/work/mxnet/include\l/mxnet/base.h" alt="" coords="1069,206,1219,247"/>
<area shape="rect" id="node39" href="include_2mxnet_2op__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/op_attr_types.h" alt="" coords="575,518,745,559"/>
<area shape="rect" id="node4" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="3831,310,4062,351"/>
<area shape="rect" id="node5" href="implicit__gemm_8h.html" title="support for implicit GEMM operation " alt="" coords="6507,407,6725,463"/>
<area shape="rect" id="node6" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="5779,407,5997,463"/>
<area shape="rect" id="node7" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="6021,407,6240,463"/>
<area shape="rect" id="node8" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="6264,407,6483,463"/>
<area shape="rect" id="node9" href="reshape_8h.html" title="support for reshape " alt="" coords="1613,407,1832,463"/>
<area shape="rect" id="node10" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="1856,407,2075,463"/>
<area shape="rect" id="node11" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="2099,407,2317,463"/>
<area shape="rect" id="node12" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="2341,407,2560,463"/>
<area shape="rect" id="node13" href="spatial__unpool_8h.html" title="support for unpool " alt="" coords="2584,407,2803,463"/>
<area shape="rect" id="node14" href="channel__pool_8h.html" title="support for chpool " alt="" coords="2827,407,3045,463"/>
<area shape="rect" id="node15" href="channel__unpool_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/channel_unpool.h" alt="" coords="3069,407,3288,463"/>
<area shape="rect" id="node16" href="pad_8h.html" title="support for pad " alt="" coords="3312,414,3571,455"/>
<area shape="rect" id="node17" href="crop_8h.html" title="support for crop " alt="" coords="3595,407,3813,463"/>
<area shape="rect" id="node18" href="mirror_8h.html" title="support for mirror " alt="" coords="3837,407,4056,463"/>
<area shape="rect" id="node19" href="concat_8h.html" title="support for concatenation " alt="" coords="4080,407,4299,463"/>
<area shape="rect" id="node20" href="choose_8h.html" title="support for implicit array selection operation " alt="" coords="4323,407,4541,463"/>
<area shape="rect" id="node21" href="fill_8h.html" title="support for implicit array filling operation " alt="" coords="4565,407,4784,463"/>
<area shape="rect" id="node22" href="one__hot_8h.html" title="Create one&#45;hot indicator array based on the index. " alt="" coords="4808,407,5027,463"/>
<area shape="rect" id="node23" href="slice_8h.html" title="support for slice a certain dimension. " alt="" coords="5051,407,5269,463"/>
<area shape="rect" id="node24" href="slice__ex_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/slice_ex.h" alt="" coords="5293,407,5512,463"/>
<area shape="rect" id="node25" href="take_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/take.h" alt="" coords="5536,407,5755,463"/>
<area shape="rect" id="node29" href="plain-inl_8h.html" title="support of plain packet that use the plain datatype. " alt="" coords="4581,303,4779,359"/>
<area shape="rect" id="node30" href="sse-inl_8h.html" title="support of sse2 packet optimization of some operations " alt="" coords="4309,303,4507,359"/>
<area shape="rect" id="node35" href="packed__func_8h.html" title="Type&#45;erased function used across MXNET API. " alt="" coords="921,511,1092,567"/>
<area shape="rect" id="node36" href="engine_8h.html" title="Engine that schedules all the operations according to dependency. " alt="" coords="1013,310,1163,351"/>
<area shape="rect" id="node37" href="include_2mxnet_2ndarray_8h.html" title="/work/mxnet/include\l/mxnet/ndarray.h" alt="" coords="1201,414,1351,455"/>
<area shape="rect" id="node38" href="include_2mxnet_2executor_8h.html" title="/work/mxnet/include\l/mxnet/executor.h" alt="" coords="1288,704,1437,745"/>
<area shape="rect" id="node40" href="include_2mxnet_2operator_8h.html" title="/work/mxnet/include\l/mxnet/operator.h" alt="" coords="1064,615,1213,656"/>
<area shape="rect" id="node41" href="operator__util_8h.html" title="Utility functions and registries to help quickly build new operators. [Deprecated] Use the register f..." alt="" coords="986,704,1150,745"/>
<area shape="rect" id="node45" href="include_2mxnet_2io_8h.html" title="/work/mxnet/include\l/mxnet/io.h" alt="" coords="1339,518,1488,559"/>
<area shape="rect" id="node46" href="resource_8h.html" title="Global resource allocation handling. " alt="" coords="585,414,735,455"/>
<area shape="rect" id="node47" href="storage_8h.html" title="Storage manager across multiple devices. " alt="" coords="1288,310,1437,351"/>
<area shape="rect" id="node48" href="random__generator_8h.html" title="Parallel random number generator. " alt="" coords="379,310,581,351"/>
<area shape="rect" id="node49" href="rtc_8h.html" title="/work/mxnet/include\l/mxnet/rtc.h" alt="" coords="656,310,805,351"/>
<area shape="rect" id="node50" href="tensor__blob_8h.html" title="TBlob class that holds common representation of arbirary dimension tensor, can be used to transformed..." alt="" coords="830,310,989,351"/>
<area shape="rect" id="node44" href="utils_8h.html" title="Basic utilility functions. " alt="" coords="679,793,863,835"/>
<area shape="rect" id="node43" href="imperative_8h.html" title="/work/mxnet/include\l/mxnet/imperative.h" alt="" coords="695,704,846,745"/>
<area shape="rect" id="node42" href="include_2mxnet_2graph__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/graph_attr_types.h" alt="" coords="564,615,756,656"/>
</map>
</div>
</div>
<p><a href="tensor__container_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">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmshadow_1_1TensorContainer.html">mshadow::TensorContainer&lt; Device, dimension, DType &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">tensor container that does memory allocation and resize like STL, use it to save the lines of FreeSpace in class. Do not abuse it, efficiency can come from pre-allocation and no re-allocation <a href="classmshadow_1_1TensorContainer.html#details">More...</a><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="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>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>tensor container that does memory allocation and resize like STL </p>
<p>Copyright (c) 2014 by Contributors</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 Fri Sep 11 2020 03:38:04 for mxnet by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>