Function marian::inits::fromValue¶
Defined in File node_initializers.cpp
Function Documentation¶
-
Ptr<NodeInitializer>
marian::inits
::
fromValue
(float value)¶ Initialize tensor with given value.
Creates a NodeInitializer that will initialize the given tensor with
value
. Works with any underlying numeric tensor type.- Return