chainer.initializers.HeUniform

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

Initializes array with 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}}}\). Here, \(fan_{in}\) is the number of input units.

Variables
  • scale (float) – A constant that determines the scale of the uniform distribution.

  • dtype – Data type specifier.

Methods

__call__(array)[source]

Initializes given array.

This method destructively changes the value of array. The derived class is required to implement this method. The algorithms used to make the new values depend on the concrete derived classes.

Parameters

array (numpy.ndarray or cupy.ndarray) – An array to be initialized by this initializer.