blob: 8ba6966aea3edb7594fab8436b00b425d37bd4b8 [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/tvm/nnvm/include/nnvm/tuple.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_d40daf7ef9783ad6669561b9a39523a5.html">tvm</a></li><li class="navelem"><a class="el" href="dir_59ab2d7405f48271a817356d16f4868c.html">nnvm</a></li><li class="navelem"><a class="el" href="dir_564b1b3930cee8f0cd6786ede046ff35.html">include</a></li><li class="navelem"><a class="el" href="dir_aadb892b7c99db7e2c3fc68a6c967545.html">nnvm</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="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">tuple.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Data structure Tuple and TShape to store dynamic sized shapes.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;vector&gt;</code><br />
<code>#include &lt;type_traits&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &quot;<a class="el" href="3rdparty_2tvm_2nnvm_2include_2nnvm_2base_8h_source.html">base.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tuple.h:</div>
<div class="dyncontent">
<div class="center"><img src="3rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8h__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8h" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8h" id="_2work_2mxnet_23rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8h">
<area shape="rect" id="node8" href="3rdparty_2tvm_2nnvm_2include_2nnvm_2base_8h.html" title="Configuration of nnvm as well as basic data structure. " alt="" coords="1057,109,1122,136"/>
<area shape="rect" id="node9" href="3rdparty_2dmlc-core_2include_2dmlc_2base_8h.html" title="dmlc/base.h" alt="" coords="1728,483,1829,509"/>
<area shape="rect" id="node13" href="common_8h.html" title="defines some common utility function. " alt="" coords="697,408,823,435"/>
<area shape="rect" id="node17" href="any_8h.html" title="Container to hold any data type. " alt="" coords="2591,333,2683,360"/>
<area shape="rect" id="node20" href="3rdparty_2dmlc-core_2include_2dmlc_2memory_8h.html" title="dmlc/memory.h" alt="" coords="445,333,568,360"/>
<area shape="rect" id="node24" href="3rdparty_2dmlc-core_2include_2dmlc_2registry_8h.html" title="dmlc/registry.h" alt="" coords="1030,184,1149,211"/>
<area shape="rect" id="node44" href="array__view_8h.html" title="Read only data structure to reference array. " alt="" coords="113,184,255,211"/>
<area shape="rect" id="node12" href="build__config__default_8h.html" title="Default detection logic for fopen64 and other symbols. May be overriden by CMake. ..." alt="" coords="1678,557,1879,584"/>
<area shape="rect" id="node22" href="thread__local_8h.html" title="Portable thread local storage. " alt="" coords="195,408,317,435"/>
<area shape="rect" id="node26" href="parameter_8h.html" title="Provide lightweight util to do parameter setup and checking. " alt="" coords="1856,259,1965,285"/>
<area shape="rect" id="node38" href="type__traits_8h.html" title="type traits information header " alt="" coords="2656,408,2768,435"/>
<area shape="rect" id="node35" href="json_8h.html" title="Lightweight JSON Reader/Writer that read save into C++ data structs. This includes STL composites and..." alt="" coords="1672,333,1741,360"/>
<area shape="rect" id="node41" href="optional_8h.html" title="Container to hold optional data. " alt="" coords="1347,333,1442,360"/>
<area shape="rect" id="node42" href="strtonum_8h.html" title="A faster implementation of strtof and strtod. " alt="" coords="2944,408,3045,435"/>
</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="3rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8h__dep__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8hdep" alt=""/></div>
<map name="_2work_2mxnet_23rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8hdep" id="_2work_2mxnet_23rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_8hdep">
<area shape="rect" id="node2" href="3rdparty_2tvm_2nnvm_2include_2nnvm_2graph__attr__types_8h.html" title="Data structures that can appear in graph attributes. " alt="" coords="113,109,299,165"/>
<area shape="rect" id="node26" href="3rdparty_2tvm_2nnvm_2include_2nnvm_2op__attr__types_8h.html" title="Data structures that can appear in operator attributes. " alt="" coords="323,109,508,165"/>
<area shape="rect" id="node3" href="include_2mxnet_2tuple_8h.html" title="Data structure Tuple and TShape to store dynamic sized shapes. " alt="" coords="338,213,493,255"/>
<area shape="rect" id="node16" href="utils_8h.html" title="Basic utilility functions. " alt="" coords="556,868,744,909"/>
<area shape="rect" id="node25" href="pass__functions_8h.html" title="Pass functions that simply redirect the calls to ApplyPass. " alt="" coords="5,303,191,359"/>
<area shape="rect" id="node4" href="include_2mxnet_2base_8h.html" title="/work/mxnet/include\l/mxnet/base.h" alt="" coords="969,310,1123,351"/>
<area shape="rect" id="node5" href="packed__func_8h.html" title="Type&#45;erased function used across MXNET API. " alt="" coords="1187,585,1361,641"/>
<area shape="rect" id="node8" href="engine_8h.html" title="Engine that schedules all the operations according to dependency. " alt="" coords="1109,407,1263,448"/>
<area shape="rect" id="node9" href="include_2mxnet_2ndarray_8h.html" title="/work/mxnet/include\l/mxnet/ndarray.h" alt="" coords="1363,496,1518,537"/>
<area shape="rect" id="node10" href="include_2mxnet_2executor_8h.html" title="/work/mxnet/include\l/mxnet/executor.h" alt="" coords="1487,779,1642,820"/>
<area shape="rect" id="node11" href="include_2mxnet_2op__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/op_attr_types.h" alt="" coords="773,593,946,634"/>
<area shape="rect" id="node12" href="include_2mxnet_2operator_8h.html" title="/work/mxnet/include\l/mxnet/operator.h" alt="" coords="906,689,1061,731"/>
<area shape="rect" id="node13" href="operator__util_8h.html" title="Utility functions and registries to help quickly build new operators. [Deprecated] Use the register f..." alt="" coords="688,779,855,820"/>
<area shape="rect" id="node18" href="include_2mxnet_2io_8h.html" title="/work/mxnet/include\l/mxnet/io.h" alt="" coords="1666,593,1821,634"/>
<area shape="rect" id="node20" href="resource_8h.html" title="Global resource allocation handling. " alt="" coords="855,496,1010,537"/>
<area shape="rect" id="node21" href="storage_8h.html" title="Storage manager across multiple devices. " alt="" coords="1389,407,1543,448"/>
<area shape="rect" id="node22" href="random__generator_8h.html" title="Parallel random number generator. " alt="" coords="418,407,621,448"/>
<area shape="rect" id="node23" href="rtc_8h.html" title="/work/mxnet/include\l/mxnet/rtc.h" alt="" coords="645,407,799,448"/>
<area shape="rect" id="node24" href="tensor__blob_8h.html" title="TBlob class that holds common representation of arbirary dimension tensor, can be used to transformed..." alt="" coords="823,407,983,448"/>
<area shape="rect" id="node6" href="include_2mxnet_2runtime_2registry_8h.html" title="/work/mxnet/include\l/mxnet/runtime/registry.h" alt="" coords="1186,689,1373,731"/>
<area shape="rect" id="node7" href="api__registry_8h.html" title="This file contains utilities related to the MXNet&#39;s global function registry. " alt="" coords="1200,779,1359,820"/>
<area shape="rect" id="node15" href="imperative_8h.html" title="/work/mxnet/include\l/mxnet/imperative.h" alt="" coords="879,779,1034,820"/>
<area shape="rect" id="node19" href="include_2mxnet_2kvstore_8h.html" title="/work/mxnet/include\l/mxnet/kvstore.h" alt="" coords="1386,593,1541,634"/>
<area shape="rect" id="node14" href="include_2mxnet_2graph__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/graph_attr_types.h" alt="" coords="637,689,831,731"/>
<area shape="rect" id="node17" href="exec__utils_8h.html" title="Common utility functions for executors. " alt="" coords="256,957,444,999"/>
</map>
</div>
</div>
<p><a href="3rdparty_2tvm_2nnvm_2include_2nnvm_2tuple_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="classnnvm_1_1Tuple.html">nnvm::Tuple&lt; ValueType &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A dynamic sized array data structure that is optimized for storing small number of elements with same type. <a href="classnnvm_1_1Tuple.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="classnnvm_1_1TShape.html">nnvm::TShape</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A Shape class that is used to represent shape of each tensor. <a href="classnnvm_1_1TShape.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstd_1_1hash_3_01nnvm_1_1Tuple_3_01T_01_4_01_4.html">std::hash&lt; nnvm::Tuple&lt; T &gt; &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">hash function for Tuple. <a href="structstd_1_1hash_3_01nnvm_1_1Tuple_3_01T_01_4_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstd_1_1hash_3_01nnvm_1_1TShape_01_4.html">std::hash&lt; nnvm::TShape &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">hash function for TShape. <a href="structstd_1_1hash_3_01nnvm_1_1TShape_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdmlc_1_1type__name__helper_3_01nnvm_1_1Tuple_3_01T_01_4_01_4.html">dmlc::type_name_helper&lt; nnvm::Tuple&lt; T &gt; &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:namespacennvm"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacennvm.html">nnvm</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacestd"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacestd.html">std</a></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>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a1742f4071051bd6949ef5f4f007a6e9a"><td class="memItemLeft" align="right" valign="top">typedef int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacennvm.html#a1742f4071051bd6949ef5f4f007a6e9a">nnvm::dim_t</a></td></tr>
<tr class="memdesc:a1742f4071051bd6949ef5f4f007a6e9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">data type to store dim size <a href="namespacennvm.html#a1742f4071051bd6949ef5f4f007a6e9a">More...</a><br /></td></tr>
<tr class="separator:a1742f4071051bd6949ef5f4f007a6e9a"><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:aeb3e89603b8701b127dd3671090196fd"><td class="memTemplParams" colspan="2">template&lt;typename SrcIter , typename DstIter &gt; </td></tr>
<tr class="memitem:aeb3e89603b8701b127dd3671090196fd"><td class="memTemplItemLeft" align="right" valign="top">DstIter&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacennvm.html#aeb3e89603b8701b127dd3671090196fd">nnvm::ShapeTypeCast</a> (const SrcIter begin, const SrcIter end, DstIter dst_begin)</td></tr>
<tr class="memdesc:aeb3e89603b8701b127dd3671090196fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">helper function to cast type of container elements <a href="namespacennvm.html#aeb3e89603b8701b127dd3671090196fd">More...</a><br /></td></tr>
<tr class="separator:aeb3e89603b8701b127dd3671090196fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f6163e61f55b40ecdc68b431b959f0a"><td class="memTemplParams" colspan="2">template&lt;typename SrcIter &gt; </td></tr>
<tr class="memitem:a5f6163e61f55b40ecdc68b431b959f0a"><td class="memTemplItemLeft" align="right" valign="top">TShape&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacennvm.html#a5f6163e61f55b40ecdc68b431b959f0a">nnvm::ShapeTypeCast</a> (const SrcIter begin, const SrcIter end)</td></tr>
<tr class="memdesc:a5f6163e61f55b40ecdc68b431b959f0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">helper function to transform a container to <a class="el" href="classnnvm_1_1TShape.html" title="A Shape class that is used to represent shape of each tensor. ">TShape</a> with type cast <a href="namespacennvm.html#a5f6163e61f55b40ecdc68b431b959f0a">More...</a><br /></td></tr>
<tr class="separator:a5f6163e61f55b40ecdc68b431b959f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d1d44f0e6e0f5ffec2f9080b62447db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a3d1d44f0e6e0f5ffec2f9080b62447db">dmlc::DMLC_DECLARE_TYPE_NAME</a> (optional&lt; <a class="el" href="classnnvm_1_1TShape.html">nnvm::TShape</a> &gt;, &quot;Shape or None&quot;)</td></tr>
<tr class="memdesc:a3d1d44f0e6e0f5ffec2f9080b62447db"><td class="mdescLeft">&#160;</td><td class="mdescRight">description for optional TShape <a href="namespacedmlc.html#a3d1d44f0e6e0f5ffec2f9080b62447db">More...</a><br /></td></tr>
<tr class="separator:a3d1d44f0e6e0f5ffec2f9080b62447db"><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>Data structure Tuple and TShape to store dynamic sized shapes. </p>
</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>