Defined in File node_operators.h
public marian::Node(Class Node)
ConstantNode: public marian::Node¶
A constant node for the graph.
A constant node is actually a constant tensor whose value is immutable during the training. ConstantNode instance is usually used as the inputs. To construct a constant node in the graph, we use constant() function in ExpressionGraph class.
ConstantNode(Ptr<ExpressionGraph> graph, const Shape &shape, const Ptr<inits::NodeInitializer> &init, Type valueType = Type::float32)¶