Skip to content

Commit

Permalink
[Mosaic GPU] Adjust memref.expand_shape construction to pass in the n…
Browse files Browse the repository at this point in the history
…ew args

PiperOrigin-RevId: 631404097
  • Loading branch information
apaszke authored and jax authors committed May 7, 2024
1 parent 3e5a18f commit 326adc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/experimental/mosaic/gpu/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def memref_unfold(ref: ir.Value, dim, factors) -> ir.Value:
assoc.append(list(range(dim, dim + len(factors))))
assoc.extend([d + len(factors) - 1] for d in range(dim + 1, ref_ty.rank))
assert len(assoc) == ref_ty.rank
return memref.expand_shape(new_ty, ref, assoc)
return memref.expand_shape(new_ty, ref, assoc, [], new_ty.shape)


def memref_unsqueeze(ref: ir.Value, dim) -> ir.Value:
Expand Down

0 comments on commit 326adc0

Please sign in to comment.