Einops Interactive Visualizer
Loading Python environment... This may take a few seconds.

Values will be indices 0, 1, 2...

Einops Syntax Reference

Parentheses ( )

Groups dimensions together for splitting or merging.

(h d) → h×d as one dimensionbatch (h w c) -> batch h w c
Number 1

Adds a singleton dimension of size 1.

h w -> 1 h wb h w -> b h w 1
Ellipsis ...

Matches any number of dimensions.

... d -> ... 1 d

Works with unknown batch dims

Named Axes

Use descriptive names for clarity.

Common: batch, seq, height

Must match on both sides!