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

Support strided load / store in interpret mode #22719

Closed
wants to merge 2 commits into from

Conversation

ayaka14732
Copy link
Collaborator

@ayaka14732 ayaka14732 commented Jul 29, 2024

Support strided load / store in interpret mode

The aim of the PR is to support this test: https://github.com/google/jax/blob/bb160cf54ef5f69c2a59a4001a3210fd56a7b286/tests/pallas/ops_test.py#L772-L786

@ayaka14732 ayaka14732 self-assigned this Jul 29, 2024
if all(isinstance(i, indexing.Slice) for i in indexer.indices):
t = []
for i in indexer.indices:
if isinstance(i, indexing.Slice):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we convert any scalar indexer i to a single-element slice and then do squeeze?

@ayaka14732
Copy link
Collaborator Author

Will make a better fix instead

@ayaka14732 ayaka14732 reopened this Aug 19, 2024
@ayaka14732
Copy link
Collaborator Author

reopened because I realised that the original code still makes sense

@ayaka14732 ayaka14732 added the pull ready Ready for copybara import and testing label Aug 19, 2024
@ayaka14732
Copy link
Collaborator Author

Superseded by #23117

@ayaka14732 ayaka14732 closed this Aug 19, 2024
@ayaka14732 ayaka14732 deleted the ayx/strided branch September 10, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants