<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#L412-L424) |

Variant of keras.tree.map_structure that operates on shape tuples.

    tf.keras.tree.map_shape_structure(
        func, structure
    )

Tuples containing ints and Nones are considered shapes and passed to `func`.

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The same structure with `func` applied. ||

<br />