---
title: thunder.clang.compute_broadcast_shape
description: >-
  Computes the common shape with the fewest dimensions that all input shapes can
  be broadcast to.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.clang.compute_broadcast_shape
---
# thunder.clang.compute_broadcast_shape {#thunder-clang-compute-broadcast-shape}

### `thunder.clang.compute_broadcast_shape(*_shapes)` {#thunder.clang.compute_broadcast_shape}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/core/langctxs.py#L74-L97)

Computes the common shape with the fewest dimensions that all input shapes can be broadcast to.

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
