Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] Set the major-minor layout for inputs and outputs #6876

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

alanwaketan
Copy link
Collaborator

Summary:
Mosaic only accepts major-minor layout for both its inputs and outputs. So we need to enforce those layouts by setting the expected input&output shapes in xla::CustomCallWithLayout. After this change, XLA_TPU_LAYOUT is no longer needed.

Test Plan:
PJRT_DEVICE=TPU python test/test_pallas.py

Remove XLA_TPU_LAYOUT

linters

Fix linters

address comment
@alanwaketan alanwaketan requested review from lsy323 and JackCaoG April 2, 2024 23:28
@alanwaketan alanwaketan self-assigned this Apr 2, 2024
@alanwaketan
Copy link
Collaborator Author

This should be the last fix for the Pallas to back port.

@alanwaketan alanwaketan merged commit 3905372 into r2.3 Apr 3, 2024
18 checks passed
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.

3 participants