Function randn
Source pub fn randn<T: Type>(
shape: impl Shape,
dtype: T,
device: impl AsDevice,
) -> Tensor
Expand description
Creates a Tensor
filled with random values from a normal distribution with mean 0 and variance 1.
§Arguments
shape
- The shape of the Tensor
.
dtype
- The data type of the Tensor
.
device
- The device to place the Tensor
on.
§Returns
A Tensor
filled with random values from a normal distribution.