blob: abd8d3644ac4b9b4788d11b08156dc08124ee14e [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: nnvm::Symbol Class 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="namespacennvm.html">nnvm</a></li><li class="navelem"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classnnvm_1_1Symbol-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">nnvm::Symbol Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> is help class used to represent the operator node in <a class="el" href="classnnvm_1_1Graph.html" title="Symbolic computation graph. This is the intermediate representation for optimization pass...">Graph</a>.
<a href="classnnvm_1_1Symbol.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="symbolic_8h_source.html">symbolic.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for nnvm::Symbol:</div>
<div class="dyncontent">
<div class="center"><img src="classnnvm_1_1Symbol__coll__graph.png" border="0" usemap="#nnvm_1_1Symbol_coll__map" alt="Collaboration graph"/></div>
<map name="nnvm_1_1Symbol_coll__map" id="nnvm_1_1Symbol_coll__map">
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5c3e1cd05b0c8ded96089dd5a5084b65"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65">ListAttrOption</a> { <a class="el" href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65a276e33da54d3709ceffd6488c32887ea">kRecursive</a> = 0,
<a class="el" href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65a501178e6b2c2f071eb66b2c89c0350e0">kShallow</a> = 1
}<tr class="memdesc:a5c3e1cd05b0c8ded96089dd5a5084b65"><td class="mdescLeft">&#160;</td><td class="mdescRight">option passed to ListAttr <a href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a5c3e1cd05b0c8ded96089dd5a5084b65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa67db17bfcc319dc42fbe3735a12340e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">ListInputOption</a> { <a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340ea7befb74f517857a375cbbef311c75ca0">kAll</a> = 0,
<a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340eaf8cc6abf2439fac5caddc634ff2f31b3">kReadOnlyArgs</a> = 1,
<a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340ea04c779ddbed8e8ad5ebe9d36b2244773">kAuxiliaryStates</a> = 2
}<tr class="memdesc:aa67db17bfcc319dc42fbe3735a12340e"><td class="mdescLeft">&#160;</td><td class="mdescRight">option passed to ListInputNames <a href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:aa67db17bfcc319dc42fbe3735a12340e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aab5f34332f492dc4403b0592e1f44edf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#aab5f34332f492dc4403b0592e1f44edf">Copy</a> () const</td></tr>
<tr class="memdesc:aab5f34332f492dc4403b0592e1f44edf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the symbol. <a href="#aab5f34332f492dc4403b0592e1f44edf">More...</a><br /></td></tr>
<tr class="separator:aab5f34332f492dc4403b0592e1f44edf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb0bfea2aee49b66e3dd16261b172477"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#afb0bfea2aee49b66e3dd16261b172477">Print</a> (std::ostream &amp;os) const</td></tr>
<tr class="memdesc:afb0bfea2aee49b66e3dd16261b172477"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the symbol info to output stream. <a href="#afb0bfea2aee49b66e3dd16261b172477">More...</a><br /></td></tr>
<tr class="separator:afb0bfea2aee49b66e3dd16261b172477"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf38c7b5a215fcbb59118ae147e6dfea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#aaf38c7b5a215fcbb59118ae147e6dfea">operator[]</a> (size_t index) const</td></tr>
<tr class="memdesc:aaf38c7b5a215fcbb59118ae147e6dfea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the index-th element from the returned tuple. <a href="#aaf38c7b5a215fcbb59118ae147e6dfea">More...</a><br /></td></tr>
<tr class="separator:aaf38c7b5a215fcbb59118ae147e6dfea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95ce0b1c5b066ab7af293076bd6a74b1"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="namespacennvm.html#a573897937ff3b88f0014feabb8e44a92">ObjectPtr</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a95ce0b1c5b066ab7af293076bd6a74b1">ListInputs</a> (<a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">ListInputOption</a> option) const</td></tr>
<tr class="memdesc:a95ce0b1c5b066ab7af293076bd6a74b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">List the input variable nodes. <a href="#a95ce0b1c5b066ab7af293076bd6a74b1">More...</a><br /></td></tr>
<tr class="separator:a95ce0b1c5b066ab7af293076bd6a74b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a730cd4e3b7558befeac3e317ded8909e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a730cd4e3b7558befeac3e317ded8909e">ListInputNames</a> (<a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">ListInputOption</a> option) const</td></tr>
<tr class="memdesc:a730cd4e3b7558befeac3e317ded8909e"><td class="mdescLeft">&#160;</td><td class="mdescRight">List the input names. <a href="#a730cd4e3b7558befeac3e317ded8909e">More...</a><br /></td></tr>
<tr class="separator:a730cd4e3b7558befeac3e317ded8909e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf7332090922dca7a5ef6008946911ab"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#adf7332090922dca7a5ef6008946911ab">ListOutputNames</a> () const</td></tr>
<tr class="memdesc:adf7332090922dca7a5ef6008946911ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">List the names of outputs for this symbol. <a href="#adf7332090922dca7a5ef6008946911ab">More...</a><br /></td></tr>
<tr class="separator:adf7332090922dca7a5ef6008946911ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7093c25b97938e452bd8c50e9517d015"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a7093c25b97938e452bd8c50e9517d015">Compose</a> (const <a class="el" href="classdmlc_1_1array__view.html">array_view</a>&lt; const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;args, const std::unordered_map&lt; std::string, const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;kwargs, const std::string &amp;name)</td></tr>
<tr class="memdesc:a7093c25b97938e452bd8c50e9517d015"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compose the symbol with arguments, this changes the current symbol. The kwargs passed in can be in-complete,. <a href="#a7093c25b97938e452bd8c50e9517d015">More...</a><br /></td></tr>
<tr class="separator:a7093c25b97938e452bd8c50e9517d015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aabb1b9bb33e390d23dddca9ebe0e84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a1aabb1b9bb33e390d23dddca9ebe0e84">operator()</a> (const <a class="el" href="classdmlc_1_1array__view.html">array_view</a>&lt; const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;args, const std::unordered_map&lt; std::string, const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;kwargs, const std::string &amp;name) const</td></tr>
<tr class="memdesc:a1aabb1b9bb33e390d23dddca9ebe0e84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply the symbol as a function, compose with arguments. <a href="#a1aabb1b9bb33e390d23dddca9ebe0e84">More...</a><br /></td></tr>
<tr class="separator:a1aabb1b9bb33e390d23dddca9ebe0e84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12b3cb331bbedf99b72933e492da01c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a12b3cb331bbedf99b72933e492da01c0">AddControlDeps</a> (const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> &amp;src)</td></tr>
<tr class="memdesc:a12b3cb331bbedf99b72933e492da01c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add control flow dependencies to the operators in symbols. <a href="#a12b3cb331bbedf99b72933e492da01c0">More...</a><br /></td></tr>
<tr class="separator:a12b3cb331bbedf99b72933e492da01c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2f59ad4beed7047ada3139a24042185"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#ab2f59ad4beed7047ada3139a24042185">GetInternals</a> () const</td></tr>
<tr class="separator:ab2f59ad4beed7047ada3139a24042185"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81bbcbce526312f502f04a4b416f0fd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a81bbcbce526312f502f04a4b416f0fd9">GetChildren</a> () const</td></tr>
<tr class="separator:a81bbcbce526312f502f04a4b416f0fd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b1a772a70703aebca928ad728b9ca14"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a0b1a772a70703aebca928ad728b9ca14">SetAttrs</a> (const std::vector&lt; std::pair&lt; std::string, std::string &gt; &gt; &amp;attrs)</td></tr>
<tr class="memdesc:a0b1a772a70703aebca928ad728b9ca14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set additional attributes to current node. <a href="#a0b1a772a70703aebca928ad728b9ca14">More...</a><br /></td></tr>
<tr class="separator:a0b1a772a70703aebca928ad728b9ca14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17ba91bc2b83bd0edaa9939fee304342"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a17ba91bc2b83bd0edaa9939fee304342">GetAttr</a> (const std::string &amp;key, std::string *out) const</td></tr>
<tr class="memdesc:a17ba91bc2b83bd0edaa9939fee304342"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get attributes from the symbol. <a href="#a17ba91bc2b83bd0edaa9939fee304342">More...</a><br /></td></tr>
<tr class="separator:a17ba91bc2b83bd0edaa9939fee304342"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fa922ae372577356fa09191cc8d9b1b"><td class="memItemLeft" align="right" valign="top">std::unordered_map&lt; std::string, std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a3fa922ae372577356fa09191cc8d9b1b">ListAttrs</a> (<a class="el" href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65">ListAttrOption</a> option) const</td></tr>
<tr class="memdesc:a3fa922ae372577356fa09191cc8d9b1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get attribute dictionary from the symbol. <a href="#a3fa922ae372577356fa09191cc8d9b1b">More...</a><br /></td></tr>
<tr class="separator:a3fa922ae372577356fa09191cc8d9b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7216f75a7b367bf6ef80c2aac6087ad1"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::tuple&lt; std::string, std::string, std::string &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#a7216f75a7b367bf6ef80c2aac6087ad1">ListAttrsRecursive</a> () const</td></tr>
<tr class="memdesc:a7216f75a7b367bf6ef80c2aac6087ad1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get attribute dictionary from the symbol and all children. <a href="#a7216f75a7b367bf6ef80c2aac6087ad1">More...</a><br /></td></tr>
<tr class="separator:a7216f75a7b367bf6ef80c2aac6087ad1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ad68fe3762d1c142468006009a313a257"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#ad68fe3762d1c142468006009a313a257">CreateFunctor</a> (const <a class="el" href="classnnvm_1_1Op.html">Op</a> *op, std::unordered_map&lt; std::string, std::string &gt; attrs)</td></tr>
<tr class="memdesc:ad68fe3762d1c142468006009a313a257"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create symbolic functor(AtomicSymbol) by given operator and attributes. <a href="#ad68fe3762d1c142468006009a313a257">More...</a><br /></td></tr>
<tr class="separator:ad68fe3762d1c142468006009a313a257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6de1c6d975cd700df7b4ba226ebd1cf"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#ac6de1c6d975cd700df7b4ba226ebd1cf">CreateFunctor</a> (const <a class="el" href="structnnvm_1_1NodeAttrs.html">NodeAttrs</a> &amp;attrs)</td></tr>
<tr class="memdesc:ac6de1c6d975cd700df7b4ba226ebd1cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create symbolic functor(AtomicSymbol) by given node attributes. <a href="#ac6de1c6d975cd700df7b4ba226ebd1cf">More...</a><br /></td></tr>
<tr class="separator:ac6de1c6d975cd700df7b4ba226ebd1cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5c2dec39caca4c736b3e3bdc2b1152c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#ab5c2dec39caca4c736b3e3bdc2b1152c">CreateVariable</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:ab5c2dec39caca4c736b3e3bdc2b1152c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create symbol node representing variable. <a href="#ab5c2dec39caca4c736b3e3bdc2b1152c">More...</a><br /></td></tr>
<tr class="separator:ab5c2dec39caca4c736b3e3bdc2b1152c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7cbc81fa9d1d1336b89d3bee3200e9b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#aa7cbc81fa9d1d1336b89d3bee3200e9b">CreateGroup</a> (const std::vector&lt; <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> &gt; &amp;symbols)</td></tr>
<tr class="memdesc:aa7cbc81fa9d1d1336b89d3bee3200e9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create equivalence of symbol by grouping the symbols together. <a href="#aa7cbc81fa9d1d1336b89d3bee3200e9b">More...</a><br /></td></tr>
<tr class="separator:aa7cbc81fa9d1d1336b89d3bee3200e9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ae274e2f7479e0d90cefd3a4481c9cbf2"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="structnnvm_1_1NodeEntry.html">NodeEntry</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1Symbol.html#ae274e2f7479e0d90cefd3a4481c9cbf2">outputs</a></td></tr>
<tr class="memdesc:ae274e2f7479e0d90cefd3a4481c9cbf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">output entries contained in the symbol <a href="#ae274e2f7479e0d90cefd3a4481c9cbf2">More...</a><br /></td></tr>
<tr class="separator:ae274e2f7479e0d90cefd3a4481c9cbf2"><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><a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> is help class used to represent the operator node in <a class="el" href="classnnvm_1_1Graph.html" title="Symbolic computation graph. This is the intermediate representation for optimization pass...">Graph</a>. </p>
<p><a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> acts as an interface for building graphs from different components like Variable, Functor and Group. <a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> is also exported to python front-end (while <a class="el" href="classnnvm_1_1Graph.html" title="Symbolic computation graph. This is the intermediate representation for optimization pass...">Graph</a> is not) to enable quick test and deployment. Conceptually, symbol is the final operation of a graph and thus including all the information required (the graph) to evaluate its output value. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a5c3e1cd05b0c8ded96089dd5a5084b65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c3e1cd05b0c8ded96089dd5a5084b65">&#9670;&nbsp;</a></span>ListAttrOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65">nnvm::Symbol::ListAttrOption</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>option passed to ListAttr </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a5c3e1cd05b0c8ded96089dd5a5084b65a276e33da54d3709ceffd6488c32887ea"></a>kRecursive&#160;</td><td class="fielddoc"><p>recursively list all attributes </p>
</td></tr>
<tr><td class="fieldname"><a id="a5c3e1cd05b0c8ded96089dd5a5084b65a501178e6b2c2f071eb66b2c89c0350e0"></a>kShallow&#160;</td><td class="fielddoc"><p>only list attributes in current node </p>
</td></tr>
</table>
</div>
</div>
<a id="aa67db17bfcc319dc42fbe3735a12340e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa67db17bfcc319dc42fbe3735a12340e">&#9670;&nbsp;</a></span>ListInputOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">nnvm::Symbol::ListInputOption</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>option passed to ListInputNames </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa67db17bfcc319dc42fbe3735a12340ea7befb74f517857a375cbbef311c75ca0"></a>kAll&#160;</td><td class="fielddoc"><p>list all the arguments </p>
</td></tr>
<tr><td class="fieldname"><a id="aa67db17bfcc319dc42fbe3735a12340eaf8cc6abf2439fac5caddc634ff2f31b3"></a>kReadOnlyArgs&#160;</td><td class="fielddoc"><p>list only read only arguments </p>
</td></tr>
<tr><td class="fieldname"><a id="aa67db17bfcc319dc42fbe3735a12340ea04c779ddbed8e8ad5ebe9d36b2244773"></a>kAuxiliaryStates&#160;</td><td class="fielddoc"><p>List auxiliary states that can be mutated by the graph. This excludes the ReadOnly arguments. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a12b3cb331bbedf99b72933e492da01c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12b3cb331bbedf99b72933e492da01c0">&#9670;&nbsp;</a></span>AddControlDeps()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void nnvm::Symbol::AddControlDeps </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> &amp;&#160;</td>
<td class="paramname"><em>src</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add control flow dependencies to the operators in symbols. </p>
<p>For grouped symbol, an error will be raised. This mutates current symbolic <a class="el" href="classnnvm_1_1Node.html" title="Node represents an operation in a computation graph. ">Node</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>The symbols to depend on. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7093c25b97938e452bd8c50e9517d015"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7093c25b97938e452bd8c50e9517d015">&#9670;&nbsp;</a></span>Compose()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void nnvm::Symbol::Compose </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classdmlc_1_1array__view.html">array_view</a>&lt; const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;&#160;</td>
<td class="paramname"><em>args</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::unordered_map&lt; std::string, const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;&#160;</td>
<td class="paramname"><em>kwargs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compose the symbol with arguments, this changes the current symbol. The kwargs passed in can be in-complete,. </p>
<p>The rest of the symbols will remain the same name.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">args</td><td>Positional arguments. </td></tr>
<tr><td class="paramname">kwargs</td><td>Keyword arguments for the symbol. </td></tr>
<tr><td class="paramname">name</td><td>Name of returned symbol. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="aab5f34332f492dc4403b0592e1f44edf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab5f34332f492dc4403b0592e1f44edf">&#9670;&nbsp;</a></span>Copy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::Copy </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the symbol. </p>
<dl class="section return"><dt>Returns</dt><dd>A deep copy of this symbol. </dd></dl>
</div>
</div>
<a id="ad68fe3762d1c142468006009a313a257"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad68fe3762d1c142468006009a313a257">&#9670;&nbsp;</a></span>CreateFunctor() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::CreateFunctor </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classnnvm_1_1Op.html">Op</a> *&#160;</td>
<td class="paramname"><em>op</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::unordered_map&lt; std::string, std::string &gt;&#160;</td>
<td class="paramname"><em>attrs</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create symbolic functor(AtomicSymbol) by given operator and attributes. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">op</td><td>The operator. </td></tr>
<tr><td class="paramname">attrs</td><td>The additional attributes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> that can be used to call compose further. </dd></dl>
</div>
</div>
<a id="ac6de1c6d975cd700df7b4ba226ebd1cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6de1c6d975cd700df7b4ba226ebd1cf">&#9670;&nbsp;</a></span>CreateFunctor() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::CreateFunctor </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structnnvm_1_1NodeAttrs.html">NodeAttrs</a> &amp;&#160;</td>
<td class="paramname"><em>attrs</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create symbolic functor(AtomicSymbol) by given node attributes. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attrs</td><td>pre-initialized <a class="el" href="classnnvm_1_1Node.html" title="Node represents an operation in a computation graph. ">Node</a> attributes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> that can be used to call compose further. </dd></dl>
</div>
</div>
<a id="aa7cbc81fa9d1d1336b89d3bee3200e9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7cbc81fa9d1d1336b89d3bee3200e9b">&#9670;&nbsp;</a></span>CreateGroup()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::CreateGroup </td>
<td>(</td>
<td class="paramtype">const std::vector&lt; <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>symbols</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create equivalence of symbol by grouping the symbols together. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">symbols</td><td>A list of symbols to be grouped. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The grouped symbol. </dd></dl>
</div>
</div>
<a id="ab5c2dec39caca4c736b3e3bdc2b1152c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5c2dec39caca4c736b3e3bdc2b1152c">&#9670;&nbsp;</a></span>CreateVariable()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::CreateVariable </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create symbol node representing variable. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the variable. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The symbol. </dd></dl>
</div>
</div>
<a id="a17ba91bc2b83bd0edaa9939fee304342"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17ba91bc2b83bd0edaa9939fee304342">&#9670;&nbsp;</a></span>GetAttr()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool nnvm::Symbol::GetAttr </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string *&#160;</td>
<td class="paramname"><em>out</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get attributes from the symbol. </p>
<p>This only works for symbol with outputs from single operators. For grouped symbol, an error will be raised.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>Key of the attribute. When key == "name", it returns the name attirbute. </td></tr>
<tr><td class="paramname">out</td><td>The output value of the attribute. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true If the attribute exists, false if the attribute does not exist. </dd></dl>
</div>
</div>
<a id="a81bbcbce526312f502f04a4b416f0fd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81bbcbce526312f502f04a4b416f0fd9">&#9670;&nbsp;</a></span>GetChildren()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::GetChildren </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ab2f59ad4beed7047ada3139a24042185"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2f59ad4beed7047ada3139a24042185">&#9670;&nbsp;</a></span>GetInternals()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::GetInternals </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3fa922ae372577356fa09191cc8d9b1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fa922ae372577356fa09191cc8d9b1b">&#9670;&nbsp;</a></span>ListAttrs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::unordered_map&lt;std::string, std::string&gt; nnvm::Symbol::ListAttrs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classnnvm_1_1Symbol.html#a5c3e1cd05b0c8ded96089dd5a5084b65">ListAttrOption</a>&#160;</td>
<td class="paramname"><em>option</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get attribute dictionary from the symbol. </p>
<p>For grouped symbol, an error will be raised.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">option</td><td>If recursive flag is set, the attributes of all children are retrieved. The name of symbol will be pre-pended to each key. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The created attribute. </dd></dl>
</div>
</div>
<a id="a7216f75a7b367bf6ef80c2aac6087ad1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7216f75a7b367bf6ef80c2aac6087ad1">&#9670;&nbsp;</a></span>ListAttrsRecursive()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;std::tuple&lt;std::string, std::string, std::string&gt; &gt; nnvm::Symbol::ListAttrsRecursive </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get attribute dictionary from the symbol and all children. </p>
<p>For grouped symbol, an error will be raised.</p>
<dl class="section return"><dt>Returns</dt><dd>The created attribute in format &lt;operator_name, key, value&gt;. </dd></dl>
</div>
</div>
<a id="a730cd4e3b7558befeac3e317ded8909e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a730cd4e3b7558befeac3e317ded8909e">&#9670;&nbsp;</a></span>ListInputNames()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;std::string&gt; nnvm::Symbol::ListInputNames </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">ListInputOption</a>&#160;</td>
<td class="paramname"><em>option</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>List the input names. </p>
<p>The order of the returned list is the same as the order of the input list to <code>operator()</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">option</td><td>The options to list the arguments. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The arguments list of this symbol, they can be either named or unnamed (empty string). </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e" title="option passed to ListInputNames ">ListInputOption</a> </dd></dl>
</div>
</div>
<a id="a95ce0b1c5b066ab7af293076bd6a74b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95ce0b1c5b066ab7af293076bd6a74b1">&#9670;&nbsp;</a></span>ListInputs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;<a class="el" href="namespacennvm.html#a573897937ff3b88f0014feabb8e44a92">ObjectPtr</a>&gt; nnvm::Symbol::ListInputs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e">ListInputOption</a>&#160;</td>
<td class="paramname"><em>option</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>List the input variable nodes. </p>
<p>The order of the returned list is the same as the order of the input list to <code>operator()</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">option</td><td>The options to list the arguments. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The arguments list of this symbol, they can be either named or unnamed (empty string). </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classnnvm_1_1Symbol.html#aa67db17bfcc319dc42fbe3735a12340e" title="option passed to ListInputNames ">ListInputOption</a> </dd></dl>
</div>
</div>
<a id="adf7332090922dca7a5ef6008946911ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf7332090922dca7a5ef6008946911ab">&#9670;&nbsp;</a></span>ListOutputNames()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;std::string&gt; nnvm::Symbol::ListOutputNames </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>List the names of outputs for this symbol. </p>
<p>For normal operators, it is usually symbol node name + "_output".</p>
<dl class="section return"><dt>Returns</dt><dd>get the descriptions of outputs for this symbol. </dd></dl>
</div>
</div>
<a id="a1aabb1b9bb33e390d23dddca9ebe0e84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1aabb1b9bb33e390d23dddca9ebe0e84">&#9670;&nbsp;</a></span>operator()()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::operator() </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classdmlc_1_1array__view.html">array_view</a>&lt; const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;&#160;</td>
<td class="paramname"><em>args</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::unordered_map&lt; std::string, const <a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> *&gt; &amp;&#160;</td>
<td class="paramname"><em>kwargs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Apply the symbol as a function, compose with arguments. </p>
<p>This is equivalent to Copy then Compose.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">args</td><td>Positional arguments for the symbol. </td></tr>
<tr><td class="paramname">kwargs</td><td>Keyword arguments for the symbol. </td></tr>
<tr><td class="paramname">name</td><td>Name of returned symbol. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classnnvm_1_1Symbol.html" title="Symbol is help class used to represent the operator node in Graph. ">Symbol</a> which is the composition of current symbol with its arguments. </dd></dl>
</div>
</div>
<a id="aaf38c7b5a215fcbb59118ae147e6dfea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf38c7b5a215fcbb59118ae147e6dfea">&#9670;&nbsp;</a></span>operator[]()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classnnvm_1_1Symbol.html">Symbol</a> nnvm::Symbol::operator[] </td>
<td>(</td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the index-th element from the returned tuple. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>Index of multi output. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The symbol corresponds to the indexed element. </dd></dl>
</div>
</div>
<a id="afb0bfea2aee49b66e3dd16261b172477"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb0bfea2aee49b66e3dd16261b172477">&#9670;&nbsp;</a></span>Print()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void nnvm::Symbol::Print </td>
<td>(</td>
<td class="paramtype">std::ostream &amp;&#160;</td>
<td class="paramname"><em>os</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Print the symbol info to output stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">os</td><td>The output stream to print to. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0b1a772a70703aebca928ad728b9ca14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b1a772a70703aebca928ad728b9ca14">&#9670;&nbsp;</a></span>SetAttrs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void nnvm::Symbol::SetAttrs </td>
<td>(</td>
<td class="paramtype">const std::vector&lt; std::pair&lt; std::string, std::string &gt; &gt; &amp;&#160;</td>
<td class="paramname"><em>attrs</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set additional attributes to current node. </p>
<p>This only works for symbol with outputs from single operators. For grouped symbol, an error will be raised.</p>
<p>This function mutates the node's symbol and is not recommended.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attrs</td><td>The attributes to set. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ae274e2f7479e0d90cefd3a4481c9cbf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae274e2f7479e0d90cefd3a4481c9cbf2">&#9670;&nbsp;</a></span>outputs</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;<a class="el" href="structnnvm_1_1NodeEntry.html">NodeEntry</a>&gt; nnvm::Symbol::outputs</td>
</tr>
</table>
</div><div class="memdoc">
<p>output entries contained in the symbol </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/work/mxnet/3rdparty/tvm/nnvm/include/nnvm/<a class="el" href="symbolic_8h_source.html">symbolic.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 5 2023 00:58:44 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>