# tf.experimental.numpy.linspace

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/numpy_ops/np_math_ops.py#L1205-L1243) |

TensorFlow variant of NumPy's `linspace`.

    tf.experimental.numpy.linspace(
        start, stop, num=50, endpoint=True, retstep=False, dtype=float, axis=0
    )

See the NumPy documentation for [`numpy.linspace`](https://numpy.org/doc/stable/reference/generated/numpy.linspace.html).