logo

Function neuronika::nn::init::normal[][src]

pub fn normal<D: Dimension>(param: &Learnable<D>, mean: f32, std: f32)
Expand description

Fills the differentiable leaf variable with elements drawn from the normal distribution N(mean, std^2).

Arguments

  • param - differentiable variable to initialize.

  • mean - mean of the normal distribution.

  • std - standard deviation of the normal distribution.