# tfg.rendering.utils.restore_batch_dims

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/utils.py#L32-L35) |

Unpack first dimension into batch_shape, preserving the rest of the dimensions.

    tfg.rendering.utils.restore_batch_dims(
        tensor: type_alias.TensorLike, batch_shape: List[int]
    ) -> type_alias.TensorLike