Struct ConstantNode¶
Defined in File node_operators.h
Inheritance Relationships¶
Base Type¶
public marian::Node
(Class Node)
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
()¶
-
virtual size_t
hash
()¶
-
virtual void
record
(Ptr<AutoTunerRecorder>, size_t, bool)¶
-