class chainer.Initializer(dtype=None)[source]

Initializes array.

It initializes the given array.

Variables:dtype – Data type specifier. It is for type check in __call__ function.



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.