blob: e7c2f370ef366a8216c08ae9c053a6800d167530 [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/include/mxnet/tensor_blob.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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_1143c7affb9ebd026cb6818dd282def7.html">mxnet</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> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">tensor_blob.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>TBlob class that holds common representation of arbirary dimension tensor, can be used to transformed to normal fixed dimenson tensor.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;dmlc/logging.h&gt;</code><br />
<code>#include &lt;<a class="el" href="json_8h_source.html">dmlc/json.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="dlpack_8h_source.html">dlpack/dlpack.h</a>&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &quot;<a class="el" href="include_2mxnet_2base_8h_source.html">./base.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tensor_blob.h:</div>
<div class="dyncontent">
<div class="center"><img src="tensor__blob_8h__incl.png" border="0" usemap="#_2work_2mxnet_2include_2mxnet_2tensor__blob_8h" alt=""/></div>
<map name="_2work_2mxnet_2include_2mxnet_2tensor__blob_8h" id="_2work_2mxnet_2include_2mxnet_2tensor__blob_8h">
<area shape="rect" id="node3" href="json_8h.html" title="Lightweight JSON Reader/Writer that read save into C++ data structs. This includes STL composites and..." alt="" coords="1737,319,1835,345"/>
<area shape="rect" id="node23" href="dlpack_8h.html" title="The common header of DLPack. " alt="" coords="685,95,809,121"/>
<area shape="rect" id="node26" href="include_2mxnet_2base_8h.html" title="./base.h" alt="" coords="1836,95,1909,121"/>
<area shape="rect" id="node13" href="3rdparty_2dmlc-core_2include_2dmlc_2base_8h.html" title="./base.h" alt="" coords="3003,468,3076,495"/>
<area shape="rect" id="node18" href="type__traits_8h.html" title="type traits information header " alt="" coords="2415,393,2527,420"/>
<area shape="rect" id="node16" href="build__config__default_8h.html" title="Default detection logic for fopen64 and other symbols. May be overriden by CMake. ..." alt="" coords="2765,543,2967,569"/>
<area shape="rect" id="node27" href="3rdparty_2dmlc-core_2include_2dmlc_2io_8h.html" title="dmlc/io.h" alt="" coords="975,244,1058,271"/>
<area shape="rect" id="node35" href="parameter_8h.html" title="Provide lightweight util to do parameter setup and checking. " alt="" coords="2160,244,2297,271"/>
<area shape="rect" id="node45" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="1529,244,1670,271"/>
<area shape="rect" id="node47" href="op_8h.html" title="Operator information structor. " alt="" coords="1745,169,1835,196"/>
<area shape="rect" id="node48" href="symbolic_8h.html" title="Symbolic graph construction API. " alt="" coords="403,319,537,345"/>
<area shape="rect" id="node49" href="libinfo_8h.html" title="get features of the MXNet library at runtime " alt="" coords="3446,244,3521,271"/>
<area shape="rect" id="node50" href="include_2mxnet_2tuple_8h.html" title="Data structure Tuple and TShape to store dynamic sized shapes. " alt="" coords="1166,319,1233,345"/>
<area shape="rect" id="node33" href="serializer_8h.html" title="serializer template class that helps serialization. This file do not need to be directly used by most..." alt="" coords="1358,319,1459,345"/>
<area shape="rect" id="node43" href="optional_8h.html" title="Container to hold optional data. " alt="" coords="2113,319,2208,345"/>
<area shape="rect" id="node44" href="strtonum_8h.html" title="A faster implementation of strtof and strtod. " alt="" coords="3169,319,3270,345"/>
<area shape="rect" id="node46" href="3rdparty_2mshadow_2mshadow_2base_8h.html" title="./base.h" alt="" coords="3020,319,3093,345"/>
</map>
</div>
</div>
<p><a href="tensor__blob_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="classmxnet_1_1TBlob.html">mxnet::TBlob</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">tensor blob class that can be used to hold tensor of any dimension, any device and any data type, This is a weak type that can be used to transfer data through interface <a class="el" href="classmxnet_1_1TBlob.html" title="tensor blob class that can be used to hold tensor of any dimension, any device and any data type...">TBlob</a> itself doesn't involve any arithmetic operations, but it can be converted to tensor of fixed dimension for further operations <a href="classmxnet_1_1TBlob.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">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1parameter_1_1FieldEntry_3_01mxnet_1_1TShape_01_4.html">dmlc::parameter::FieldEntry&lt; mxnet::TShape &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:namespacemxnet"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemxnet.html">mxnet</a></td></tr>
<tr class="memdesc:namespacemxnet"><td class="mdescLeft">&#160;</td><td class="mdescRight">namespace of mxnet <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacedmlc"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html">dmlc</a></td></tr>
<tr class="memdesc:namespacedmlc"><td class="mdescLeft">&#160;</td><td class="mdescRight">namespace for dmlc <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacedmlc_1_1parameter"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc_1_1parameter.html">dmlc::parameter</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="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a89fdf041b602fe0f1c53e54b95fd307a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a89fdf041b602fe0f1c53e54b95fd307a">dmlc::DMLC_DECLARE_TYPE_NAME</a> (<a class="el" href="classmxnet_1_1TShape.html">mxnet::TShape</a>, &quot;Shape(tuple)&quot;)</td></tr>
<tr class="separator:a89fdf041b602fe0f1c53e54b95fd307a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0485ee6e692bef63cb547d847e45380"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#ad0485ee6e692bef63cb547d847e45380">dmlc::DMLC_DECLARE_TYPE_NAME</a> (<a class="el" href="classmxnet_1_1Tuple.html">mxnet::Tuple</a>&lt; int &gt;, &quot;Shape(tuple)&quot;)</td></tr>
<tr class="separator:ad0485ee6e692bef63cb547d847e45380"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39e4e0c16d2b7e74398790a56d1063ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a39e4e0c16d2b7e74398790a56d1063ac">dmlc::DMLC_DECLARE_TYPE_NAME</a> (<a class="el" href="classmxnet_1_1Tuple.html">mxnet::Tuple</a>&lt; <a class="el" href="classdmlc_1_1optional.html">dmlc::optional</a>&lt; int &gt;&gt;, &quot;Shape(tuple)&quot;)</td></tr>
<tr class="separator:a39e4e0c16d2b7e74398790a56d1063ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a707f733f60ff1d7592676e9835af2277"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a707f733f60ff1d7592676e9835af2277">dmlc::DMLC_DECLARE_TYPE_NAME</a> (<a class="el" href="classnnvm_1_1Tuple.html">nnvm::Tuple</a>&lt; int &gt;, &quot;Shape(tuple)&quot;)</td></tr>
<tr class="separator:a707f733f60ff1d7592676e9835af2277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a136a79c5af9aa9662eda4d4894a59e7f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a136a79c5af9aa9662eda4d4894a59e7f">dmlc::DMLC_DECLARE_TYPE_NAME</a> (<a class="el" href="classnnvm_1_1Tuple.html">nnvm::Tuple</a>&lt; <a class="el" href="classdmlc_1_1optional.html">dmlc::optional</a>&lt; int &gt;&gt;, &quot;Shape(tuple)&quot;)</td></tr>
<tr class="separator:a136a79c5af9aa9662eda4d4894a59e7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a512ee02aece77cb0bf39b6e2ded77686"><td class="memItemLeft" align="right" valign="top">constexpr const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemxnet.html#a512ee02aece77cb0bf39b6e2ded77686">mxnet::kCPU</a> = <a class="el" href="lib__api_8h.html#a49db572e18d84c47738fc746568fb573ab736fabc9e37c2acf3b09b88fdc65c9e">kDLCPU</a></td></tr>
<tr class="separator:a512ee02aece77cb0bf39b6e2ded77686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43ebce8ff01c0bee0dddb4417ea1239d"><td class="memItemLeft" align="right" valign="top">constexpr const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemxnet.html#a43ebce8ff01c0bee0dddb4417ea1239d">mxnet::kGPU</a> = <a class="el" href="lib__api_8h.html#a49db572e18d84c47738fc746568fb573ae04bfdcc919948d170b2ba26da09e680">kDLGPU</a></td></tr>
<tr class="separator:a43ebce8ff01c0bee0dddb4417ea1239d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab96d1eea6c8d006db2b33bbdf9d90bd2"><td class="memItemLeft" align="right" valign="top">constexpr const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemxnet.html#ab96d1eea6c8d006db2b33bbdf9d90bd2">mxnet::kTVMNDArrayTypeCode</a> = 19</td></tr>
<tr class="separator:ab96d1eea6c8d006db2b33bbdf9d90bd2"><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>TBlob class that holds common representation of arbirary dimension tensor, can be used to transformed to normal fixed dimenson tensor. </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: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>