# tfg.rendering.utils.merge_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#L26-L29) |

Merges all dimensions into one starting from 0 till `last_axis` exluding.

    tfg.rendering.utils.merge_batch_dims(
        tensor: type_alias.TensorLike, last_axis: int
    ) -> type_alias.TensorLike