pub fn xavier_normal(
shape: Vec<usize>,
fan_in: usize,
fan_out: usize,
seed: u64,
) -> Result<Tensor, ModelError>Expand description
Xavier (Glorot) normal initialization.
Fills with values from N(0, std) where std = sqrt(2 / (fan_in + fan_out)).