pub fn xavier_normal<B>(
shape: impl Into<Shape>,
gain: f64,
dtype: DType,
device: &<B as Backend>::Device,
) -> Result<Tensor<B>, Error>where
B: Backend,Expand description
Xavier (Glorot) normal initialization.
Draws from N(0, std) where std = gain * sqrt(2 / (fan_in + fan_out)).