blob: 4a006513308730fe0f16f8c0e3c03ad3ed7b18c1 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>mxnet: nnvm::IndexedGraph 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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mxnet
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacennvm.html">nnvm</a></li><li class="navelem"><a class="el" href="classnnvm_1_1IndexedGraph.html">IndexedGraph</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classnnvm_1_1IndexedGraph-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">nnvm::IndexedGraph Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Auxiliary data structure to index a graph. It maps Nodes in the graph to consecutive integers node_id. It also maps <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">IndexedGraph::NodeEntry</a> to consecutive integer entry_id. This allows storing properties of <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> and <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">NodeEntry</a> into compact vector and quickly access them without resorting to hashmap.
<a href="classnnvm_1_1IndexedGraph.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="graph_8h_source.html">graph.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for nnvm::IndexedGraph:</div>
<div class="dyncontent">
<div class="center"><img src="classnnvm_1_1IndexedGraph__coll__graph.png" border="0" usemap="#nnvm_1_1IndexedGraph_coll__map" alt="Collaboration graph"/></div>
<map name="nnvm_1_1IndexedGraph_coll__map" id="nnvm_1_1IndexedGraph_coll__map">
</map>
</div>
<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="structnnvm_1_1IndexedGraph_1_1Node.html">Node</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> data structure in <a class="el" href="classnnvm_1_1IndexedGraph.html" title="Auxiliary data structure to index a graph. It maps Nodes in the graph to consecutive integers node_id...">IndexedGraph</a>. <a href="structnnvm_1_1IndexedGraph_1_1Node.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="structnnvm_1_1IndexedGraph_1_1NodeEntry.html">NodeEntry</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">represents a data in the graph <a href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8e7b160a8189d6761f7257b68606a375"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a8e7b160a8189d6761f7257b68606a375">num_nodes</a> () const </td></tr>
<tr class="separator:a8e7b160a8189d6761f7257b68606a375"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a692785c296aebbb62f493c31d63576b4"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries</a> () const </td></tr>
<tr class="separator:a692785c296aebbb62f493c31d63576b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5150cfe8faeefceaf0fe18a50e8450fb"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a5150cfe8faeefceaf0fe18a50e8450fb">entry_id</a> (uint32_t <a class="el" href="classnnvm_1_1IndexedGraph.html#ab900bbf0e6c80ccbf20220bde96e017d">node_id</a>, uint32_t index) const </td></tr>
<tr class="memdesc:a5150cfe8faeefceaf0fe18a50e8450fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a unique entry id between 0 to <a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries()</a> for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">IndexedGraph::NodeEntry</a>. <a href="#a5150cfe8faeefceaf0fe18a50e8450fb">More...</a><br /></td></tr>
<tr class="separator:a5150cfe8faeefceaf0fe18a50e8450fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08e76fa09f582fff6130cc7681ece507"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a08e76fa09f582fff6130cc7681ece507">entry_id</a> (const <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html">NodeEntry</a> &amp;e) const </td></tr>
<tr class="memdesc:a08e76fa09f582fff6130cc7681ece507"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a unique entry id between 0 to <a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries()</a> for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">IndexedGraph::NodeEntry</a>. <a href="#a08e76fa09f582fff6130cc7681ece507">More...</a><br /></td></tr>
<tr class="separator:a08e76fa09f582fff6130cc7681ece507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7122ed73c9de5c23cbf4e0bd91c72b05"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a7122ed73c9de5c23cbf4e0bd91c72b05">entry_id</a> (const <a class="el" href="structnnvm_1_1NodeEntry.html">nnvm::NodeEntry</a> &amp;e) const </td></tr>
<tr class="memdesc:a7122ed73c9de5c23cbf4e0bd91c72b05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a unique entry id between 0 to <a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries()</a> for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">NodeEntry</a>. <a href="#a7122ed73c9de5c23cbf4e0bd91c72b05">More...</a><br /></td></tr>
<tr class="separator:a7122ed73c9de5c23cbf4e0bd91c72b05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab900bbf0e6c80ccbf20220bde96e017d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#ab900bbf0e6c80ccbf20220bde96e017d">node_id</a> (const <a class="el" href="classnnvm_1_1Node.html">nnvm::Node</a> *node) const </td></tr>
<tr class="memdesc:ab900bbf0e6c80ccbf20220bde96e017d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the corresponding node id for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> in the <a class="el" href="classnnvm_1_1IndexedGraph.html" title="Auxiliary data structure to index a graph. It maps Nodes in the graph to consecutive integers node_id...">IndexedGraph</a>. <a href="#ab900bbf0e6c80ccbf20220bde96e017d">More...</a><br /></td></tr>
<tr class="separator:ab900bbf0e6c80ccbf20220bde96e017d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57b10ff6f39bda2634534e532ace5abf"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html">Node</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a57b10ff6f39bda2634534e532ace5abf">operator[]</a> (uint32_t <a class="el" href="classnnvm_1_1IndexedGraph.html#ab900bbf0e6c80ccbf20220bde96e017d">node_id</a>) const </td></tr>
<tr class="memdesc:a57b10ff6f39bda2634534e532ace5abf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the corresponding <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> structure for a given node_id. <a href="#a57b10ff6f39bda2634534e532ace5abf">More...</a><br /></td></tr>
<tr class="separator:a57b10ff6f39bda2634534e532ace5abf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09cb7373b89bb6ac33eb6c8ea4a1ece8"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html">Node</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a09cb7373b89bb6ac33eb6c8ea4a1ece8">operator[]</a> (const <a class="el" href="classnnvm_1_1Node.html">nnvm::Node</a> *node) const </td></tr>
<tr class="memdesc:a09cb7373b89bb6ac33eb6c8ea4a1ece8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the corresponding <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> structure. <a href="#a09cb7373b89bb6ac33eb6c8ea4a1ece8">More...</a><br /></td></tr>
<tr class="separator:a09cb7373b89bb6ac33eb6c8ea4a1ece8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb44801ab4068b9ca88e9d792cbc744"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; uint32_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a4bb44801ab4068b9ca88e9d792cbc744">input_nodes</a> () const </td></tr>
<tr class="separator:a4bb44801ab4068b9ca88e9d792cbc744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32e7a49f8dd8ea43b05d2f1ab7d2f6e7"><td class="memItemLeft" align="right" valign="top">const std::unordered_set&lt; uint32_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a32e7a49f8dd8ea43b05d2f1ab7d2f6e7">mutable_input_nodes</a> () const </td></tr>
<tr class="separator:a32e7a49f8dd8ea43b05d2f1ab7d2f6e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dee002354c49d1ffa72417c8237dd13"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html">NodeEntry</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a7dee002354c49d1ffa72417c8237dd13">outputs</a> () const </td></tr>
<tr class="separator:a7dee002354c49d1ffa72417c8237dd13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05e5cbe1c405e80ad108406f9c5f68ac"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a05e5cbe1c405e80ad108406f9c5f68ac">exist</a> (const <a class="el" href="classnnvm_1_1Node.html">nnvm::Node</a> *node) const </td></tr>
<tr class="separator:a05e5cbe1c405e80ad108406f9c5f68ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96b3d5ce684df1beca8825f17bb761d0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#a96b3d5ce684df1beca8825f17bb761d0">IndexedGraph</a> (const <a class="el" href="classnnvm_1_1IndexedGraph.html">IndexedGraph</a> &amp;)=delete</td></tr>
<tr class="separator:a96b3d5ce684df1beca8825f17bb761d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:afab89afd724f1b07b1aaad6bdc61c47a"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnnvm_1_1IndexedGraph.html#afab89afd724f1b07b1aaad6bdc61c47a">Graph</a></td></tr>
<tr class="separator:afab89afd724f1b07b1aaad6bdc61c47a"><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>Auxiliary data structure to index a graph. It maps Nodes in the graph to consecutive integers node_id. It also maps <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">IndexedGraph::NodeEntry</a> to consecutive integer entry_id. This allows storing properties of <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> and <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">NodeEntry</a> into compact vector and quickly access them without resorting to hashmap. </p>
<p>The node_id and entry_rptr are the same as the JSON graph produced by SaveJSON Pass. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a96b3d5ce684df1beca8825f17bb761d0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">nnvm::IndexedGraph::IndexedGraph </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classnnvm_1_1IndexedGraph.html">IndexedGraph</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a5150cfe8faeefceaf0fe18a50e8450fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t nnvm::IndexedGraph::entry_id </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>node_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>index</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a unique entry id between 0 to <a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries()</a> for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">IndexedGraph::NodeEntry</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node_id</td><td>The node index </td></tr>
<tr><td class="paramname">index</td><td>the output index </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the unique index. </dd></dl>
</div>
</div>
<a class="anchor" id="a08e76fa09f582fff6130cc7681ece507"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t nnvm::IndexedGraph::entry_id </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html">NodeEntry</a> &amp;&#160;</td>
<td class="paramname"><em>e</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a unique entry id between 0 to <a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries()</a> for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">IndexedGraph::NodeEntry</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">e</td><td>The entry to query for index. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the unique index. </dd></dl>
</div>
</div>
<a class="anchor" id="a7122ed73c9de5c23cbf4e0bd91c72b05"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t nnvm::IndexedGraph::entry_id </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structnnvm_1_1NodeEntry.html">nnvm::NodeEntry</a> &amp;&#160;</td>
<td class="paramname"><em>e</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a unique entry id between 0 to <a class="el" href="classnnvm_1_1IndexedGraph.html#a692785c296aebbb62f493c31d63576b4">num_node_entries()</a> for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">NodeEntry</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">e</td><td>The entry to query for index. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the unique index. </dd></dl>
</div>
</div>
<a class="anchor" id="a05e5cbe1c405e80ad108406f9c5f68ac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool nnvm::IndexedGraph::exist </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classnnvm_1_1Node.html">nnvm::Node</a> *&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>whether a node is existed in the indexed graph </dd></dl>
</div>
</div>
<a class="anchor" id="a4bb44801ab4068b9ca88e9d792cbc744"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt;uint32_t&gt;&amp; nnvm::IndexedGraph::input_nodes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>list of argument nodes </dd></dl>
</div>
</div>
<a class="anchor" id="a32e7a49f8dd8ea43b05d2f1ab7d2f6e7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::unordered_set&lt;uint32_t&gt;&amp; nnvm::IndexedGraph::mutable_input_nodes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>list of mutable nodes </dd></dl>
</div>
</div>
<a class="anchor" id="ab900bbf0e6c80ccbf20220bde96e017d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t nnvm::IndexedGraph::node_id </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classnnvm_1_1Node.html">nnvm::Node</a> *&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the corresponding node id for a given <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> in the <a class="el" href="classnnvm_1_1IndexedGraph.html" title="Auxiliary data structure to index a graph. It maps Nodes in the graph to consecutive integers node_id...">IndexedGraph</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>The <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> to query for index. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the node index. </dd></dl>
</div>
</div>
<a class="anchor" id="a692785c296aebbb62f493c31d63576b4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t nnvm::IndexedGraph::num_node_entries </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>total number of <a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html" title="represents a data in the graph ">NodeEntry</a> in the graph </dd></dl>
</div>
</div>
<a class="anchor" id="a8e7b160a8189d6761f7257b68606a375"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t nnvm::IndexedGraph::num_nodes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>number of nodes in the graph </dd></dl>
</div>
</div>
<a class="anchor" id="a57b10ff6f39bda2634534e532ace5abf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html">Node</a>&amp; nnvm::IndexedGraph::operator[] </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>node_id</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the corresponding <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> structure for a given node_id. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node_id</td><td>The node id </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>const reference to the corresponding <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">IndexedGraph::Node</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a09cb7373b89bb6ac33eb6c8ea4a1ece8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html">Node</a>&amp; nnvm::IndexedGraph::operator[] </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classnnvm_1_1Node.html">nnvm::Node</a> *&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the corresponding <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> structure. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>The pointer to the <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">Node</a> structure </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>const reference to the corresponding <a class="el" href="structnnvm_1_1IndexedGraph_1_1Node.html" title="Node data structure in IndexedGraph. ">IndexedGraph::Node</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a7dee002354c49d1ffa72417c8237dd13"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt;<a class="el" href="structnnvm_1_1IndexedGraph_1_1NodeEntry.html">NodeEntry</a>&gt;&amp; nnvm::IndexedGraph::outputs </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>list of output entries </dd></dl>
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="afab89afd724f1b07b1aaad6bdc61c47a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">friend class <a class="el" href="classnnvm_1_1Graph.html">Graph</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</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="graph_8h_source.html">graph.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Mar 28 2020 00:52:32 for mxnet by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>