Function marian::inits::ones¶
Defined in File node_initializers.h
Function Documentation¶
-
static Ptr<NodeInitializer>
marian::inits
::
ones
()¶ Fill tensor with
1
.Creates a NodeInitializer that will initialize the given tensor with
1
. Works with any underlying numeric tensor type.- Return