# chainer.initializers.GlorotUniform¶

class chainer.initializers.GlorotUniform(scale=1.0, dtype=None)[source]

Initializes array with a scaled uniform distribution.

Each element of the array is initialized by the value drawn independently from uniform distribution $$[-s, s]$$ where $$s = scale \times \sqrt{\frac{6}{fan_{in} + fan_{out}}}$$. Here, $$fan_{in}$$ and fan_{out} are the number of input and output units, respectively.

Variables: scale (float) – A constant that determines the scale of the uniform distribution. dtype – Data type specifier.

Methods

__call__(array)[source]