mxnet
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
nnvm::Node Class Reference

Node represents an operation in a computation graph. More...

#include <node.h>

Collaboration diagram for nnvm::Node:
Collaboration graph

Public Member Functions

 Node ()=default
 
 Node (const Op *op, const std::string &name)
 
 ~Node ()
 destructor of node More...
 
const Opop () const
 
bool is_variable () const
 return whether node is placeholder variable. This is equivalent to op == nullptr More...
 
uint32_t num_outputs () const
 
uint32_t num_inputs () const
 

Static Public Member Functions

template<class ... Args>
static ObjectPtr Create (Args &&... args)
 create a new empty shared_ptr of Node. More...
 

Public Attributes

NodeAttrs attrs
 The attributes in the node. More...
 
std::vector< NodeEntryinputs
 inputs to this node More...
 
std::vector< ObjectPtrcontrol_deps
 Optional control flow dependencies Gives operation must be performed before this operation. More...
 
any info
 additional fields for this node More...
 

Detailed Description

Node represents an operation in a computation graph.

Constructor & Destructor Documentation

◆ Node() [1/2]

nnvm::Node::Node ( )
default

◆ Node() [2/2]

nnvm::Node::Node ( const Op op,
const std::string &  name 
)
inline

◆ ~Node()

nnvm::Node::~Node ( )

destructor of node

Member Function Documentation

◆ Create()

template<class ... Args>
static ObjectPtr nnvm::Node::Create ( Args &&...  args)
inlinestatic

create a new empty shared_ptr of Node.

Returns
a created empty node.

◆ is_variable()

bool nnvm::Node::is_variable ( ) const
inline

return whether node is placeholder variable. This is equivalent to op == nullptr

Returns
whether node is placeholder input variable

◆ num_inputs()

uint32_t nnvm::Node::num_inputs ( ) const
inline
Returns
number of inputs from this node

◆ num_outputs()

uint32_t nnvm::Node::num_outputs ( ) const
inline
Returns
number of outputs from this node

◆ op()

const Op * nnvm::Node::op ( ) const
inline
Returns
operator in this node

Member Data Documentation

◆ attrs

NodeAttrs nnvm::Node::attrs

The attributes in the node.

◆ control_deps

std::vector<ObjectPtr> nnvm::Node::control_deps

Optional control flow dependencies Gives operation must be performed before this operation.

◆ info

any nnvm::Node::info

additional fields for this node

◆ inputs

std::vector<NodeEntry> nnvm::Node::inputs

inputs to this node


The documentation for this class was generated from the following file: