Identity

Contents

Identity#

class brainstate.nn.init.Identity(value=1.0, unit=Unit('1'))#

Returns the identity matrix.

This initializer was proposed in (Le, et al., 2015) [1].

Parameters:

value (float) – The optional scaling factor.

Returns:

shape – The weight shape/size.

Return type:

tuple of int

References