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

Unexpected XLA layout override #173

Open
kmitrovicTT opened this issue Jan 17, 2025 · 1 comment
Open

Unexpected XLA layout override #173

kmitrovicTT opened this issue Jan 17, 2025 · 1 comment

Comments

@kmitrovicTT
Copy link
Contributor

Investigate why tests/jax/test_ranks.py fails for 0-dim parameters.

This issue happened to me multiple times in some other tests, but I managed to circumvent it. It fails with this error which indicates difference between XLA layout and user input layout (not sure what that is exactly). The error is raised in venv/lib/python3.10/site-packages/jax/_src/interpreters/pxla.py::_get_layouts_from_executable when iterating over input layouts.

Not sure if related, but in BufferInstance::GetMemoryLayout we have some calculations with minor_to_major which previous error indicates is the problem. Take note that when debugging, I couldn't catch GetMemoryLayout in debug log, meaning it wasn't executed at all.

@kmitrovicTT
Copy link
Contributor Author

This is a related issue #163

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

No branches or pull requests

1 participant