Skip to content

Replace new_dim in transpose with the original dim if the original dim is a broadcast - #858

Open
dsharlet wants to merge 1 commit into
mainfrom
ds/simplify-transpose
Open

Replace new_dim in transpose with the original dim if the original dim is a broadcast#858
dsharlet wants to merge 1 commit into
mainfrom
ds/simplify-transpose

Conversation

@dsharlet

@dsharlet dsharlet commented Aug 1, 2026

Copy link
Copy Markdown
Owner

This makes it possible for transpose ops to simplify entirely, e.g. transpose(x, {0, -1, 2} is a no-op if dimension 1 of x is a broadcast dimension.

@dsharlet
dsharlet requested a review from vksnk August 1, 2026 22:59
…dim is a broadcast

This makes it possible for transpose ops to simplify entirely, e.g. `transpose(x, {0, new_dim, 2}` is a no-op if dimension 1 of x is a broadcast dimension.
@dsharlet
dsharlet force-pushed the ds/simplify-transpose branch from 1ac52b0 to 1ee367a Compare August 2, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant