blob: 715505c7bf37f9a8fef895430d06cf4838fafd6e [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/tensor_cpu-inl.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> </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">tensor_cpu-inl.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>implementation of CPU host code
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cstring&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &quot;<a class="el" href="3rdparty_2mshadow_2mshadow_2base_8h_source.html">./base.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tensor_8h_source.html">./tensor.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="packet-inl_8h_source.html">./packet-inl.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="dot__engine-inl_8h_source.html">./dot_engine-inl.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tensor_cpu-inl.h:</div>
<div class="dyncontent">
<div class="center"><img src="tensor__cpu-inl_8h__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__cpu-inl_8h" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__cpu-inl_8h" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__cpu-inl_8h">
<area shape="rect" id="node6" href="3rdparty_2mshadow_2mshadow_2base_8h.html" title="./base.h" alt="" coords="1113,661,1187,688"/>
<area shape="rect" id="node30" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="1142,109,1225,136"/>
<area shape="rect" id="node37" href="dot__engine-inl_8h.html" title="definitions of how Matrix Multiplications can be evaluated " alt="" coords="951,348,1085,375"/>
<area shape="rect" id="node39" href="packet-inl_8h.html" title="Generic packet vectorization code. " alt="" coords="1199,512,1309,539"/>
<area shape="rect" id="node24" href="half_8h.html" title="definition of half (float16) type. " alt="" coords="1113,736,1179,763"/>
<area shape="rect" id="node26" href="half2_8h.html" title="definition of vector float16, half2 type. " alt="" coords="1203,736,1278,763"/>
<area shape="rect" id="node28" href="bfloat_8h.html" title="definition of bfloat type. " alt="" coords="1303,736,1381,763"/>
<area shape="rect" id="node32" href="expression_8h.html" title="definitions of abstract expressions and expressions template " alt="" coords="1501,587,1615,613"/>
<area shape="rect" id="node33" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="2085,184,2225,211"/>
<area shape="rect" id="node35" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="1665,184,1771,211"/>
<area shape="rect" id="node36" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="2295,266,2437,293"/>
<area shape="rect" id="node46" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="639,184,773,211"/>
<area shape="rect" id="node47" href="3rdparty_2mshadow_2mshadow_2io_8h.html" title="./io.h" alt="" coords="1204,348,1259,375"/>
<area shape="rect" id="node48" href="tensor__container_8h.html" title="tensor container that does memory allocation and resize like STL " alt="" coords="995,266,1145,293"/>
<area shape="rect" id="node49" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="1137,184,1229,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="900,184,1037,211"/>
<area shape="rect" id="node38" href="implicit__gemm_8h.html" title="support for implicit GEMM operation " alt="" coords="1385,423,1531,464"/>
<area shape="rect" id="node43" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="1539,266,1713,293"/>
<area shape="rect" id="node44" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="1737,259,1883,300"/>
<area shape="rect" id="node45" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="1907,266,2118,293"/>
<area shape="rect" id="node41" href="plain-inl_8h.html" title="support of plain packet that use the plain datatype. " alt="" coords="1089,587,1224,613"/>
<area shape="rect" id="node42" href="sse-inl_8h.html" title="support of sse2 packet optimization of some operations " alt="" coords="1249,587,1374,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="tensor__cpu-inl_8h__dep__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__cpu-inl_8hdep" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__cpu-inl_8hdep" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2tensor__cpu-inl_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="2597,109,2809,151"/>
<area shape="rect" id="node3" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="2803,199,2993,255"/>
<area shape="rect" id="node26" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="6101,199,6308,255"/>
<area shape="rect" id="node27" href="packet-inl_8h.html" title="Generic packet vectorization code. " alt="" coords="1907,206,2145,247"/>
<area shape="rect" id="node30" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="2377,199,2579,255"/>
<area shape="rect" id="node31" href="3rdparty_2mshadow_2mshadow_2io_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/io.h" alt="" coords="2169,206,2353,247"/>
<area shape="rect" id="node32" href="tensor__container_8h.html" title="tensor container that does memory allocation and resize like STL " alt="" coords="2328,303,2529,359"/>
<area shape="rect" id="node33" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="5,414,228,455"/>
<area shape="rect" id="node34" href="include_2mxnet_2base_8h.html" title="/work/mxnet/include\l/mxnet/base.h" alt="" coords="5922,206,6077,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="5681,518,5854,559"/>
<area shape="rect" id="node4" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="2765,310,3001,351"/>
<area shape="rect" id="node5" href="implicit__gemm_8h.html" title="support for implicit GEMM operation " alt="" coords="251,407,475,463"/>
<area shape="rect" id="node6" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="4259,407,4483,463"/>
<area shape="rect" id="node7" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="4507,407,4731,463"/>
<area shape="rect" id="node8" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="4755,407,4979,463"/>
<area shape="rect" id="node9" href="reshape_8h.html" title="support for reshape " alt="" coords="5003,407,5227,463"/>
<area shape="rect" id="node10" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="5251,407,5475,463"/>
<area shape="rect" id="node11" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="499,407,723,463"/>
<area shape="rect" id="node12" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="747,407,971,463"/>
<area shape="rect" id="node13" href="spatial__unpool_8h.html" title="support for unpool " alt="" coords="995,407,1219,463"/>
<area shape="rect" id="node14" href="channel__pool_8h.html" title="support for chpool " alt="" coords="1243,407,1467,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="1491,407,1715,463"/>
<area shape="rect" id="node16" href="pad_8h.html" title="support for pad " alt="" coords="1739,414,2003,455"/>
<area shape="rect" id="node17" href="crop_8h.html" title="support for crop " alt="" coords="2027,407,2251,463"/>
<area shape="rect" id="node18" href="mirror_8h.html" title="support for mirror " alt="" coords="2275,407,2499,463"/>
<area shape="rect" id="node19" href="concat_8h.html" title="support for concatenation " alt="" coords="2523,407,2747,463"/>
<area shape="rect" id="node20" href="choose_8h.html" title="support for implicit array selection operation " alt="" coords="2771,407,2995,463"/>
<area shape="rect" id="node21" href="fill_8h.html" title="support for implicit array filling operation " alt="" coords="3019,407,3243,463"/>
<area shape="rect" id="node22" href="one__hot_8h.html" title="Create one&#45;hot indicator array based on the index. " alt="" coords="3267,407,3491,463"/>
<area shape="rect" id="node23" href="slice_8h.html" title="support for slice a certain dimension. " alt="" coords="3515,407,3739,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="3763,407,3987,463"/>
<area shape="rect" id="node25" href="take_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/take.h" alt="" coords="4011,407,4235,463"/>
<area shape="rect" id="node28" href="plain-inl_8h.html" title="support of plain packet that use the plain datatype. " alt="" coords="1696,303,1900,359"/>
<area shape="rect" id="node29" href="sse-inl_8h.html" title="support of sse2 packet optimization of some operations " alt="" coords="1924,303,2128,359"/>
<area shape="rect" id="node35" href="packed__func_8h.html" title="Type&#45;erased function used across MXNET API. " alt="" coords="6571,511,6745,567"/>
<area shape="rect" id="node36" href="engine_8h.html" title="Engine that schedules all the operations according to dependency. " alt="" coords="5979,310,6134,351"/>
<area shape="rect" id="node37" href="include_2mxnet_2ndarray_8h.html" title="/work/mxnet/include\l/mxnet/ndarray.h" alt="" coords="6209,414,6363,455"/>
<area shape="rect" id="node38" href="include_2mxnet_2executor_8h.html" title="/work/mxnet/include\l/mxnet/executor.h" alt="" coords="6373,704,6527,745"/>
<area shape="rect" id="node40" href="include_2mxnet_2operator_8h.html" title="/work/mxnet/include\l/mxnet/operator.h" alt="" coords="5863,615,6018,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="5504,704,5671,745"/>
<area shape="rect" id="node45" href="include_2mxnet_2io_8h.html" title="/work/mxnet/include\l/mxnet/io.h" alt="" coords="6093,518,6247,559"/>
<area shape="rect" id="node46" href="resource_8h.html" title="Global resource allocation handling. " alt="" coords="5699,414,5854,455"/>
<area shape="rect" id="node47" href="storage_8h.html" title="Storage manager across multiple devices. " alt="" coords="6259,310,6414,351"/>
<area shape="rect" id="node48" href="random__generator_8h.html" title="Parallel random number generator. " alt="" coords="5651,310,5854,351"/>
<area shape="rect" id="node49" href="rtc_8h.html" title="/work/mxnet/include\l/mxnet/rtc.h" alt="" coords="6438,310,6593,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="6617,310,6777,351"/>
<area shape="rect" id="node44" href="utils_8h.html" title="Basic utilility functions. " alt="" coords="5732,793,5920,835"/>
<area shape="rect" id="node43" href="imperative_8h.html" title="/work/mxnet/include\l/mxnet/imperative.h" alt="" coords="5749,704,5903,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="5594,615,5789,656"/>
</map>
</div>
</div>
<p><a href="tensor__cpu-inl_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_1MapExpCPUEngine.html">mshadow::MapExpCPUEngine&lt; pass_check, Saver, R, dim, DType, E, etype &gt;</a></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_1MapExpCPUEngine_3_01true_00_01SV_00_01Tensor_3_01cpu_00_01dim_00_01DType_01_4_01d6b33847e15ac0b561110aa3bff3f62.html">mshadow::MapExpCPUEngine&lt; true, SV, Tensor&lt; cpu, dim, DType &gt;, dim, DType, E, etype &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>
</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:a8c62e9096998333b078c8b8f744061ad"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a8c62e9096998333b078c8b8f744061ad"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a8c62e9096998333b078c8b8f744061ad">mshadow::InitTensorEngine&lt; cpu &gt;</a> (int dev_id)</td></tr>
<tr class="separator:a8c62e9096998333b078c8b8f744061ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0884cf8a1d05a9d631cdf82ef3ebc567"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a0884cf8a1d05a9d631cdf82ef3ebc567"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a0884cf8a1d05a9d631cdf82ef3ebc567">mshadow::ShutdownTensorEngine&lt; cpu &gt;</a> (void)</td></tr>
<tr class="separator:a0884cf8a1d05a9d631cdf82ef3ebc567"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f9d916c81866abceed494cd622cd3e2"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a2f9d916c81866abceed494cd622cd3e2"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a2f9d916c81866abceed494cd622cd3e2">mshadow::SetDevice&lt; cpu &gt;</a> (int devid)</td></tr>
<tr class="separator:a2f9d916c81866abceed494cd622cd3e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad46c65f82d888517bc8e372fd49d8011"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:ad46c65f82d888517bc8e372fd49d8011"><td class="memTemplItemLeft" align="right" valign="top">Stream&lt; cpu &gt; *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ad46c65f82d888517bc8e372fd49d8011">mshadow::NewStream&lt; cpu &gt;</a> (bool create_blas_handle, bool create_dnn_handle, int dev_id)</td></tr>
<tr class="separator:ad46c65f82d888517bc8e372fd49d8011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9573b40e55fb2e885db8b594f4168efc"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a9573b40e55fb2e885db8b594f4168efc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a9573b40e55fb2e885db8b594f4168efc">mshadow::DeleteStream&lt; cpu &gt;</a> (Stream&lt; cpu &gt; *stream)</td></tr>
<tr class="separator:a9573b40e55fb2e885db8b594f4168efc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10717da9e107e05150e6fb6d79103b34"><td class="memTemplParams" colspan="2">template&lt;int ndim&gt; </td></tr>
<tr class="memitem:a10717da9e107e05150e6fb6d79103b34"><td class="memTemplItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a10717da9e107e05150e6fb6d79103b34">mshadow::operator&lt;&lt;</a> (std::ostream &amp;os, const Shape&lt; ndim &gt; &amp;shape)</td></tr>
<tr class="memdesc:a10717da9e107e05150e6fb6d79103b34"><td class="mdescLeft">&#160;</td><td class="mdescRight">allow string printing of the shape <a href="namespacemshadow.html#a10717da9e107e05150e6fb6d79103b34">More...</a><br /></td></tr>
<tr class="separator:a10717da9e107e05150e6fb6d79103b34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d4e86f18ce66c1b7073537647bd4374"><td class="memTemplParams" colspan="2">template&lt;typename xpu &gt; </td></tr>
<tr class="memitem:a1d4e86f18ce66c1b7073537647bd4374"><td class="memTemplItemLeft" align="right" valign="top">void *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a1d4e86f18ce66c1b7073537647bd4374">mshadow::AllocHost_</a> (size_t size)</td></tr>
<tr class="separator:a1d4e86f18ce66c1b7073537647bd4374"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c3517f91f3bb35d9867fa7a42665ec3"><td class="memTemplParams" colspan="2">template&lt;typename xpu &gt; </td></tr>
<tr class="memitem:a4c3517f91f3bb35d9867fa7a42665ec3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a4c3517f91f3bb35d9867fa7a42665ec3">mshadow::FreeHost_</a> (void *dptr)</td></tr>
<tr class="separator:a4c3517f91f3bb35d9867fa7a42665ec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a750a8961eda58a98116726e462545e6c"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a750a8961eda58a98116726e462545e6c"><td class="memTemplItemLeft" align="right" valign="top">void *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a750a8961eda58a98116726e462545e6c">mshadow::AllocHost_&lt; cpu &gt;</a> (size_t size)</td></tr>
<tr class="separator:a750a8961eda58a98116726e462545e6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a508edd8f1985757d0562b1e951666340"><td class="memTemplParams" colspan="2">template&lt;&gt; </td></tr>
<tr class="memitem:a508edd8f1985757d0562b1e951666340"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a508edd8f1985757d0562b1e951666340">mshadow::FreeHost_&lt; cpu &gt;</a> (void *dptr)</td></tr>
<tr class="separator:a508edd8f1985757d0562b1e951666340"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0eacae3492e97f53fcd2f210bf9c645"><td class="memTemplParams" colspan="2">template&lt;typename xpu , int dim, typename DType &gt; </td></tr>
<tr class="memitem:ad0eacae3492e97f53fcd2f210bf9c645"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ad0eacae3492e97f53fcd2f210bf9c645">mshadow::AllocHost</a> (Tensor&lt; cpu, dim, DType &gt; *obj)</td></tr>
<tr class="separator:ad0eacae3492e97f53fcd2f210bf9c645"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dc5b2a49c44364a6f3c8cca386aff12"><td class="memTemplParams" colspan="2">template&lt;typename xpu , int dim, typename DType &gt; </td></tr>
<tr class="memitem:a6dc5b2a49c44364a6f3c8cca386aff12"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a6dc5b2a49c44364a6f3c8cca386aff12">mshadow::FreeHost</a> (Tensor&lt; cpu, dim, DType &gt; *obj)</td></tr>
<tr class="separator:a6dc5b2a49c44364a6f3c8cca386aff12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef49c3cef522198322017315341ac689"><td class="memTemplParams" colspan="2">template&lt;int dim, typename DType &gt; </td></tr>
<tr class="memitem:aef49c3cef522198322017315341ac689"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#aef49c3cef522198322017315341ac689">mshadow::AllocSpace</a> (Tensor&lt; cpu, dim, DType &gt; *obj, bool pad=<a class="el" href="3rdparty_2mshadow_2mshadow_2base_8h.html#a72d4e933c0003ccdc01b5d5f054dcf39">MSHADOW_ALLOC_PAD</a>)</td></tr>
<tr class="memdesc:aef49c3cef522198322017315341ac689"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/CPU: allocate space for CTensor, according to the shape in the obj this function is responsible to set the stride_ in each obj.shape. <a href="namespacemshadow.html#aef49c3cef522198322017315341ac689">More...</a><br /></td></tr>
<tr class="separator:aef49c3cef522198322017315341ac689"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f19232d4c6ea393abccc5288675d345"><td class="memTemplParams" colspan="2">template&lt;typename Device , typename DType , int dim&gt; </td></tr>
<tr class="memitem:a3f19232d4c6ea393abccc5288675d345"><td class="memTemplItemLeft" align="right" valign="top">Tensor&lt; Device, dim, DType &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a3f19232d4c6ea393abccc5288675d345">mshadow::NewTensor</a> (const Shape&lt; dim &gt; &amp;shape, DType initv, bool pad=<a class="el" href="3rdparty_2mshadow_2mshadow_2base_8h.html#a72d4e933c0003ccdc01b5d5f054dcf39">MSHADOW_ALLOC_PAD</a>, Stream&lt; Device &gt; *stream=NULL)</td></tr>
<tr class="memdesc:a3f19232d4c6ea393abccc5288675d345"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: short cut to allocate and initialize a <a class="el" href="structmshadow_1_1Tensor.html" title="general tensor ">Tensor</a>. <a href="namespacemshadow.html#a3f19232d4c6ea393abccc5288675d345">More...</a><br /></td></tr>
<tr class="separator:a3f19232d4c6ea393abccc5288675d345"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e8485c882dab873525b4b241e5db7ab"><td class="memTemplParams" colspan="2">template&lt;int dim, typename DType &gt; </td></tr>
<tr class="memitem:a3e8485c882dab873525b4b241e5db7ab"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a3e8485c882dab873525b4b241e5db7ab">mshadow::FreeSpace</a> (Tensor&lt; cpu, dim, DType &gt; *obj)</td></tr>
<tr class="memdesc:a3e8485c882dab873525b4b241e5db7ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: free the space of tensor, will set obj.dptr to NULL. <a href="namespacemshadow.html#a3e8485c882dab873525b4b241e5db7ab">More...</a><br /></td></tr>
<tr class="separator:a3e8485c882dab873525b4b241e5db7ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0435f827863555e4ed19bbc0cc81fa39"><td class="memTemplParams" colspan="2">template&lt;int dim, typename DType &gt; </td></tr>
<tr class="memitem:a0435f827863555e4ed19bbc0cc81fa39"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a0435f827863555e4ed19bbc0cc81fa39">mshadow::Copy</a> (Tensor&lt; cpu, dim, DType &gt; dst, const Tensor&lt; cpu, dim, DType &gt; &amp;src, Stream&lt; cpu &gt; *stream=NULL)</td></tr>
<tr class="memdesc:a0435f827863555e4ed19bbc0cc81fa39"><td class="mdescLeft">&#160;</td><td class="mdescRight">copy data from one tensor to another, with same shape <a href="namespacemshadow.html#a0435f827863555e4ed19bbc0cc81fa39">More...</a><br /></td></tr>
<tr class="separator:a0435f827863555e4ed19bbc0cc81fa39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4d36332af8c5202ecc95adf4b00cdf2"><td class="memTemplParams" colspan="2">template&lt;typename Saver , typename R , int dim, typename DType , typename E &gt; </td></tr>
<tr class="memitem:ad4d36332af8c5202ecc95adf4b00cdf2"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ad4d36332af8c5202ecc95adf4b00cdf2">mshadow::MapPlan</a> (TRValue&lt; R, cpu, dim, DType &gt; *dst, const expr::Plan&lt; E, DType &gt; &amp;plan)</td></tr>
<tr class="separator:ad4d36332af8c5202ecc95adf4b00cdf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bdc2c62fd5dcee696cadd2351bf85e2"><td class="memTemplParams" colspan="2">template&lt;typename Saver , typename R , int dim, typename DType , typename E , int etype&gt; </td></tr>
<tr class="memitem:a4bdc2c62fd5dcee696cadd2351bf85e2"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a4bdc2c62fd5dcee696cadd2351bf85e2">mshadow::MapExp</a> (TRValue&lt; R, cpu, dim, DType &gt; *dst, const expr::Exp&lt; E, DType, etype &gt; &amp;exp)</td></tr>
<tr class="memdesc:a4bdc2c62fd5dcee696cadd2351bf85e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: map a expression to a tensor, this function calls MapPlan. <a href="namespacemshadow.html#a4bdc2c62fd5dcee696cadd2351bf85e2">More...</a><br /></td></tr>
<tr class="separator:a4bdc2c62fd5dcee696cadd2351bf85e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1734eb7939fe9627de46d62494fe9dc"><td class="memTemplParams" colspan="2">template&lt;typename Saver , typename Reducer , typename R , typename DType , typename E , int etype&gt; </td></tr>
<tr class="memitem:ae1734eb7939fe9627de46d62494fe9dc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ae1734eb7939fe9627de46d62494fe9dc">mshadow::MapReduceKeepLowest</a> (TRValue&lt; R, cpu, 1, DType &gt; *dst, const expr::Exp&lt; E, DType, etype &gt; &amp;exp, DType scale=1)</td></tr>
<tr class="memdesc:ae1734eb7939fe9627de46d62494fe9dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: map a expression, do reduction to 1D <a class="el" href="structmshadow_1_1Tensor.html" title="general tensor ">Tensor</a> in lowest dimension (dimension 0) <a href="namespacemshadow.html#ae1734eb7939fe9627de46d62494fe9dc">More...</a><br /></td></tr>
<tr class="separator:ae1734eb7939fe9627de46d62494fe9dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fce5c2df842439cc7d2d7a90e2cf7d4"><td class="memTemplParams" colspan="2">template&lt;typename Saver , typename Reducer , int dimkeep, typename R , typename DType , typename E , int etype&gt; </td></tr>
<tr class="memitem:a5fce5c2df842439cc7d2d7a90e2cf7d4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a5fce5c2df842439cc7d2d7a90e2cf7d4">mshadow::MapReduceKeepHighDim</a> (TRValue&lt; R, cpu, 1, DType &gt; *dst, const expr::Exp&lt; E, DType, etype &gt; &amp;exp, DType scale=1)</td></tr>
<tr class="memdesc:a5fce5c2df842439cc7d2d7a90e2cf7d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: map a expression, do reduction to 1D <a class="el" href="structmshadow_1_1Tensor.html" title="general tensor ">Tensor</a> in third dimension (dimension 2) <a href="namespacemshadow.html#a5fce5c2df842439cc7d2d7a90e2cf7d4">More...</a><br /></td></tr>
<tr class="separator:a5fce5c2df842439cc7d2d7a90e2cf7d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a486ba25ad6f51106014450c1e745e767"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a486ba25ad6f51106014450c1e745e767"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a486ba25ad6f51106014450c1e745e767">mshadow::Softmax</a> (Tensor&lt; cpu, 1, DType &gt; dst, const Tensor&lt; cpu, 1, DType &gt; &amp;energy)</td></tr>
<tr class="separator:a486ba25ad6f51106014450c1e745e767"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3409c8a836e7dab83bec25556164261c"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a3409c8a836e7dab83bec25556164261c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a3409c8a836e7dab83bec25556164261c">mshadow::SoftmaxGrad</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 2, DType &gt; &amp;src, const Tensor&lt; cpu, 1, DType &gt; &amp;label)</td></tr>
<tr class="memdesc:a3409c8a836e7dab83bec25556164261c"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: softmax gradient. <a href="namespacemshadow.html#a3409c8a836e7dab83bec25556164261c">More...</a><br /></td></tr>
<tr class="separator:a3409c8a836e7dab83bec25556164261c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fb3739d11e671f9809458cf6ada1e64"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a4fb3739d11e671f9809458cf6ada1e64"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a4fb3739d11e671f9809458cf6ada1e64">mshadow::SmoothSoftmaxGrad</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 2, DType &gt; &amp;src, const Tensor&lt; cpu, 1, DType &gt; &amp;label, const float alpha)</td></tr>
<tr class="separator:a4fb3739d11e671f9809458cf6ada1e64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97d3ff90dd86faf3c79c382591af5705"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a97d3ff90dd86faf3c79c382591af5705"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a97d3ff90dd86faf3c79c382591af5705">mshadow::SoftmaxGrad</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 2, DType &gt; &amp;src, const Tensor&lt; cpu, 1, DType &gt; &amp;label, const DType &amp;ignore_label)</td></tr>
<tr class="separator:a97d3ff90dd86faf3c79c382591af5705"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ef141e66ac481f9da39b79eb282c12b"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a8ef141e66ac481f9da39b79eb282c12b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a8ef141e66ac481f9da39b79eb282c12b">mshadow::SmoothSoftmaxGrad</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 2, DType &gt; &amp;src, const Tensor&lt; cpu, 1, DType &gt; &amp;label, const DType &amp;ignore_label, const float alpha)</td></tr>
<tr class="separator:a8ef141e66ac481f9da39b79eb282c12b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aac2d8b75f24039748627bf7bafb6f5"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a4aac2d8b75f24039748627bf7bafb6f5"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a4aac2d8b75f24039748627bf7bafb6f5">mshadow::SoftmaxGrad</a> (Tensor&lt; cpu, 3, DType &gt; dst, const Tensor&lt; cpu, 3, DType &gt; &amp;src, const Tensor&lt; cpu, 2, DType &gt; &amp;label)</td></tr>
<tr class="separator:a4aac2d8b75f24039748627bf7bafb6f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0166cbd7c6f70d858cfc1a030e8b5f69"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a0166cbd7c6f70d858cfc1a030e8b5f69"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a0166cbd7c6f70d858cfc1a030e8b5f69">mshadow::SmoothSoftmaxGrad</a> (Tensor&lt; cpu, 3, DType &gt; dst, const Tensor&lt; cpu, 3, DType &gt; &amp;src, const Tensor&lt; cpu, 2, DType &gt; &amp;label, const float alpha)</td></tr>
<tr class="separator:a0166cbd7c6f70d858cfc1a030e8b5f69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ed2e28641a53c3bb04442be23e52a6a"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a8ed2e28641a53c3bb04442be23e52a6a"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a8ed2e28641a53c3bb04442be23e52a6a">mshadow::SoftmaxGrad</a> (Tensor&lt; cpu, 3, DType &gt; dst, const Tensor&lt; cpu, 3, DType &gt; &amp;src, const Tensor&lt; cpu, 2, DType &gt; &amp;label, const DType &amp;ignore_label)</td></tr>
<tr class="separator:a8ed2e28641a53c3bb04442be23e52a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f0ff988f790390404f31fe2a68c8b1b"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a2f0ff988f790390404f31fe2a68c8b1b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a2f0ff988f790390404f31fe2a68c8b1b">mshadow::SmoothSoftmaxGrad</a> (Tensor&lt; cpu, 3, DType &gt; dst, const Tensor&lt; cpu, 3, DType &gt; &amp;src, const Tensor&lt; cpu, 2, DType &gt; &amp;label, const DType &amp;ignore_label, const float alpha)</td></tr>
<tr class="separator:a2f0ff988f790390404f31fe2a68c8b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75161ef5ed964dcf6518e3a7e59e6fb6"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:a75161ef5ed964dcf6518e3a7e59e6fb6"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a75161ef5ed964dcf6518e3a7e59e6fb6">mshadow::Softmax</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 2, DType &gt; &amp;energy)</td></tr>
<tr class="memdesc:a75161ef5ed964dcf6518e3a7e59e6fb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: normalize softmax: dst[i][j] = exp(energy[i][j]) /(sum_j exp(energy[i][j])) <a href="namespacemshadow.html#a75161ef5ed964dcf6518e3a7e59e6fb6">More...</a><br /></td></tr>
<tr class="separator:a75161ef5ed964dcf6518e3a7e59e6fb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1994dc1386e8430061c65b15e574430"><td class="memTemplParams" colspan="2">template&lt;typename DType &gt; </td></tr>
<tr class="memitem:ae1994dc1386e8430061c65b15e574430"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ae1994dc1386e8430061c65b15e574430">mshadow::Softmax</a> (Tensor&lt; cpu, 3, DType &gt; dst, const Tensor&lt; cpu, 3, DType &gt; &amp;energy)</td></tr>
<tr class="separator:ae1994dc1386e8430061c65b15e574430"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a802d44c652195053e87b63881c7d4d1c"><td class="memTemplParams" colspan="2">template&lt;bool clip = true, typename IndexType , typename DType &gt; </td></tr>
<tr class="memitem:a802d44c652195053e87b63881c7d4d1c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a802d44c652195053e87b63881c7d4d1c">mshadow::AddTakeGrad</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 1, IndexType &gt; &amp;index, const Tensor&lt; cpu, 2, DType &gt; &amp;src)</td></tr>
<tr class="memdesc:a802d44c652195053e87b63881c7d4d1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: Gradient accumulate of embedding matrix. dst[index[i]] += src[i] Called when the featuredim of src is much larger than the batchsize. <a href="namespacemshadow.html#a802d44c652195053e87b63881c7d4d1c">More...</a><br /></td></tr>
<tr class="separator:a802d44c652195053e87b63881c7d4d1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2320213151030353ae90f92a0da808d"><td class="memTemplParams" colspan="2">template&lt;typename IndexType , typename DType &gt; </td></tr>
<tr class="memitem:ad2320213151030353ae90f92a0da808d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ad2320213151030353ae90f92a0da808d">mshadow::AddTakeGradLargeBatch</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 1, IndexType &gt; &amp;sorted, const Tensor&lt; cpu, 1, IndexType &gt; &amp;index, const Tensor&lt; cpu, 2, DType &gt; &amp;src)</td></tr>
<tr class="memdesc:ad2320213151030353ae90f92a0da808d"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: Gradient accumulate of embedding matrix. dst[sorted[i]] += src[index[i]] Called when the batchsize of src is larger than the featuredim. <a href="namespacemshadow.html#ad2320213151030353ae90f92a0da808d">More...</a><br /></td></tr>
<tr class="separator:ad2320213151030353ae90f92a0da808d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77348ebaaac4581773b4fe78448c8fa6"><td class="memTemplParams" colspan="2">template&lt;typename IndexType , typename DType &gt; </td></tr>
<tr class="memitem:a77348ebaaac4581773b4fe78448c8fa6"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a77348ebaaac4581773b4fe78448c8fa6">mshadow::IndexFill</a> (Tensor&lt; cpu, 2, DType &gt; dst, const Tensor&lt; cpu, 1, IndexType &gt; &amp;index, const Tensor&lt; cpu, 2, DType &gt; &amp;src)</td></tr>
<tr class="memdesc:a77348ebaaac4581773b4fe78448c8fa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: Fill the values of the destination matrix to specific rows in the source matrix. dst[index[i]] = src[i] Will use atomicAdd in the inner implementation and the result may not be deterministic. <a href="namespacemshadow.html#a77348ebaaac4581773b4fe78448c8fa6">More...</a><br /></td></tr>
<tr class="separator:a77348ebaaac4581773b4fe78448c8fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3476fdf7d39add6f57beddafbc1b9625"><td class="memTemplParams" colspan="2">template&lt;typename KDType , typename VDType &gt; </td></tr>
<tr class="memitem:a3476fdf7d39add6f57beddafbc1b9625"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a3476fdf7d39add6f57beddafbc1b9625">mshadow::SortByKey</a> (Tensor&lt; cpu, 1, KDType &gt; keys, Tensor&lt; cpu, 1, VDType &gt; values, bool is_ascend=true)</td></tr>
<tr class="memdesc:a3476fdf7d39add6f57beddafbc1b9625"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: Sort key-value pairs stored in separate places. (Stable sort is performed!) <a href="namespacemshadow.html#a3476fdf7d39add6f57beddafbc1b9625">More...</a><br /></td></tr>
<tr class="separator:a3476fdf7d39add6f57beddafbc1b9625"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f080439f035e05501cc7f202e58c0e"><td class="memTemplParams" colspan="2">template&lt;typename Device , typename VDType , typename SDType &gt; </td></tr>
<tr class="memitem:ab3f080439f035e05501cc7f202e58c0e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ab3f080439f035e05501cc7f202e58c0e">mshadow::VectorizedSort</a> (Tensor&lt; Device, 1, VDType &gt; values, Tensor&lt; Device, 1, SDType &gt; segments)</td></tr>
<tr class="memdesc:ab3f080439f035e05501cc7f202e58c0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: Sort the keys within each segment. (Stable sort is performed!) Segments is defined as an ascending ordered vector like [0, 0, 0, 1, 1, 2, 3, 3, 3,...] We sort separately the keys labeled by 0 and 1, 2, 3, etc. Currently only supports sorting in ascending order !! <a href="namespacemshadow.html#ab3f080439f035e05501cc7f202e58c0e">More...</a><br /></td></tr>
<tr class="separator:ab3f080439f035e05501cc7f202e58c0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4c4674a33dfb486802427058375a055"><td class="memTemplParams" colspan="2">template&lt;typename Device , typename DType &gt; </td></tr>
<tr class="memitem:ad4c4674a33dfb486802427058375a055"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ad4c4674a33dfb486802427058375a055">mshadow::VectorDot</a> (Tensor&lt; Device, 1, DType &gt; dst, const Tensor&lt; Device, 1, DType &gt; &amp;lhs, const Tensor&lt; Device, 1, DType &gt; &amp;rhs)</td></tr>
<tr class="memdesc:ad4c4674a33dfb486802427058375a055"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: 1 dimension vector dot. <a href="namespacemshadow.html#ad4c4674a33dfb486802427058375a055">More...</a><br /></td></tr>
<tr class="separator:ad4c4674a33dfb486802427058375a055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04a223d0f4e8af8c3f504bb5d324ad43"><td class="memTemplParams" colspan="2">template&lt;bool transpose_left, bool transpose_right, typename Device , typename DType &gt; </td></tr>
<tr class="memitem:a04a223d0f4e8af8c3f504bb5d324ad43"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a04a223d0f4e8af8c3f504bb5d324ad43">mshadow::BatchGEMM</a> (Tensor&lt; Device, 3, DType &gt; dst, const Tensor&lt; Device, 3, DType &gt; &amp;lhs, const Tensor&lt; Device, 3, DType &gt; &amp;rhs, DType alpha, DType beta, Tensor&lt; Device, 1, DType *&gt; workspace)</td></tr>
<tr class="memdesc:a04a223d0f4e8af8c3f504bb5d324ad43"><td class="mdescLeft">&#160;</td><td class="mdescRight">CPU/GPU: dst = alpha * op(lhs) op(rhs) + beta * dst. <a href="namespacemshadow.html#a04a223d0f4e8af8c3f504bb5d324ad43">More...</a><br /></td></tr>
<tr class="separator:a04a223d0f4e8af8c3f504bb5d324ad43"><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>implementation of CPU host code </p>
<dl class="section author"><dt>Author</dt><dd>Bing Xu, 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: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>