Function marian::inits::ones

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

A NodeInitializer