# Function marian::inits::normal¶

## Function Documentation¶

Ptr<NodeInitializer> marian::inits::normal(float mean = 0.f, float stddev = 1.f)

Initialize tensor with normally distributed random numbers.

By default this generates floating point numbers from the normal distribution Normal(0, 1) unless specified differently. If compiled with CUDA, marian will use the cuRand library for both, GPU and CPU computation. The random sequences generated are the same on both devices. If marian is compiled without CUDA, a random generator from the C++ standard library is used. These random generators do not have the same random sequences.

Return