Function linspace

  • Creates a tensor filled with evenly spaced values.

    Parameters

    • min: number

      the lower bound (inclusive)

    • max: number

      the upper bound (inclusive)

    • num: number

      the number of values to generate

    Returns Tensor

    the filled tensor