<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/distribution/distribution_lib.py#L897-L912) |

Change the layout of a Tensor value in the jit function execution.

    tf.keras.distribution.distribute_tensor(
        tensor, layout
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | a Tensor to change the layout. |
| `layout` | `TensorLayout` to be applied on the value. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a new value with the specified tensor layout. ||

<br />