chainer.initializers.Identity¶

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

Initializes array with the identity matrix.

It initializes the given array with the constant multiple of the identity matrix. Note that arrays to be passed must be 2D squared matrices.

Variables: scale (scalar) – A constant to be multiplied to identity matrices. –

Methods

__call__(array)[source]