Function ones

  • Creates a tensor filled with ones.

    Parameters

    • shape: number[]

      the shape of the tensor

    Returns Tensor

    the filled tensor