Function fill

  • Creates a tensor filled with a given value.

    Parameters

    • shape: number[]

      the shape of the tensor

    • value: number

      the value to fill the tensor with

    Returns Tensor

    the filled tensor