<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/ops/numpy.py#L5029-L5067) |

Returns numbers spaced evenly on a log scale.

#### View aliases


**Main aliases**

[`tf.keras.ops.numpy.logspace`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/logspace)

<br />

    tf.keras.ops.logspace(
        start, stop, num=50, endpoint=True, base=10, dtype=None, axis=0
    )

In linear space, the sequence starts at `base ** start` and ends with
`base ** stop` (see `endpoint` below).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `start` | The starting value of the sequence. |
| `stop` | The final value of the sequence, unless `endpoint` is `False`. In that case, `num + 1` values are spaced over the interval in log-space, of which all but the last (a sequence of length `num`) are returned. |
| `num` | Number of samples to generate. Defaults to `50`. |
| `endpoint` | If `True`, `stop` is the last sample. Otherwise, it is not included. Defaults to `True`. |
| `base` | The base of the log space. Defaults to `10`. |
| `dtype` | The type of the output tensor. |
| `axis` | The axis in the result to store the samples. Relevant only if start or stop are array-like. |

<br />

<br />

<br />

<br />

| ## Note ||
|---|---|
| Torch backend does not support `axis` argument. ||

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of evenly spaced samples on a log scale. ||

<br />