<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/tree/tree_api.py#L399-L409) |

Returns the structure with list instances changed to tuples.

    tf.keras.tree.lists_to_tuples(
        structure
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `structure` | Arbitrarily nested structure. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The same structure but with tuples instead of lists. ||

<br />