init
sorix.nn.init ¶
uniform_ ¶
Fills the input tensor with values drawn from the uniform distribution U(a, b).
normal_ ¶
Fills the input tensor with values drawn from the normal distribution N(mean, std^2).
Source code in sorix/nn/init.py
constant_ ¶
zeros_ ¶
ones_ ¶
xavier_uniform_ ¶
Fills the input tensor with values according to the Xavier uniform initialization.
Source code in sorix/nn/init.py
xavier_normal_ ¶
Fills the input tensor with values according to the Xavier normal initialization.
Source code in sorix/nn/init.py
kaiming_uniform_ ¶
Fills the input tensor with values according to the Kaiming uniform initialization.
Source code in sorix/nn/init.py
kaiming_normal_ ¶
Fills the input tensor with values according to the Kaiming normal initialization.