function range(start, stop, step = 1, dtype = "float32") {
    if (step === 0) throw new Error("Cannot have a step of zero");
    const attrs = {
        start,
        stop,
        step,
        dtype
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Range), {} /* inputs */ , attrs);
}
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.


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

@param start An integer start value
@param stop An integer stop value
@param step An integer increment (will default to 1 or -1)
@param dtype The data type of the output tensor. Defaults to 'float32'.

@doc {heading: 'Tensors', subheading: 'Creation'}