Function randn

  • Generate a normal (Gaussian) distribution.

    Remarks

    For a uniform distribution, see rand.

    Example

      // 128x8 gaussian tensor
    const t = sm.randn([128, 8])

    Returns

    A new Tensor of random values sampled from a Gaussian distribution

    Parameters

    • shape: BigInt64Array | number[]

      The shape of the output Tensor

    Returns Tensor

Generated using TypeDoc