xlnstorch.nn.init.normal_

Contents

xlnstorch.nn.init.normal_#

xlnstorch.nn.init.normal_(tensor, mean=0.0, std=1.0, generator=None)#

Fills the input tensor with random numbers from a normal distribution.

Parameters:
  • tensor (LNSTensor) – The tensor to fill with random numbers.

  • mean (float, optional) – The mean of the normal distribution (default is 0.0).

  • std (float, optional) – The standard deviation of the normal distribution (default is 1.0).

  • generator (torch.Generator, optional) – A random number generator to use for reproducibility (default is None).

Returns:

The input tensor filled with random numbers from the normal distribution.

Return type:

LNSTensor