Function marian::inits::fromValue

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

A NodeInitializer