Struct ConstantNode

Inheritance Relationships

Base Type

Struct Documentation

struct 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.

Public Functions

ConstantNode(Ptr<ExpressionGraph> graph, const Shape &shape, const Ptr<inits::NodeInitializer> &init, Type valueType = Type::float32)
~ConstantNode()
void allocate()
void init()
const std::string type()
const std::string form()
const std::string color()
virtual size_t hash()
virtual bool equal(Expr node)
virtual void record(Ptr<AutoTunerRecorder>, size_t, bool)