pub fn xavier_normal(
shape: &[usize],
gain: f64,
rng: &mut InitRng,
) -> Result<ArrayD<f64>, InitError>Expand description
Xavier (Glorot) normal initialization.
Values drawn from N(0, std) where std = gain * sqrt(2 / (fan_in + fan_out)).