Skip to content

Commit 048b336

Browse files
[Mosaic] Determine matmul data format from LHS instead of RHS.
PiperOrigin-RevId: 828628903
1 parent bbec947 commit 048b336

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jaxlib/mosaic/dialect/tpu/transforms/canonicalize_mosaic.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ FailureOr<Value> canonicalize_matmul(const CanonicalizeContext &ctx,
713713
}
714714
}
715715

716+
716717
// Attempt to canonicalize matmul(x, transpose(y)) to a matmul with the
717718
// dimension numbers changed which will later be lowered into a more efficient
718719
// operation that fuses the transpose into the matmul.

0 commit comments

Comments
 (0)