• Creates a new tf.Tensor1D filled with the numbers in the range provided.

    The tensor is a half-open interval meaning it includes start, but excludes stop. Decrementing ranges and negative step values are also supported.

    tf.range(0, 9, 2).print();
    

    Parameters

    • start: number

      An integer start value

    • stop: number

      An integer stop value

    • Optional step: number

      An integer increment (will default to 1 or -1)

    • Optional dtype: "float32" | "int32"

      The data type of the output tensor. Defaults to 'float32'.

    Returns Tensor1D

    Doc

Generated using TypeDoc