Function fill

  • Creates a tensor filled with a given value.

    Returns

    the filled tensor

    Parameters

    • shape: number[]

      the shape of the tensor

    • value: number

      the value to fill the tensor with

    Returns Tensor

Generated using TypeDoc