Function random

  • Creates a tensor filled with uniformly distributed random numbers.

    Parameters

    • shape: number[]

      the shape of the tensor

    Returns Tensor

    the filled tensor