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

Don't block on tensor access in postprocessing #245

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

jonatanklosko
Copy link
Member

Follow up to #244.

Accessing the whole binary with Nx.to_flat_list or Nx.backend_transfer is not blocked by ongoing computation, however tensor access involves slicing and therefor does block. So whenever we need to slice, we are going to transfer to binary backend first.

@jonatanklosko jonatanklosko merged commit 2a61cfc into main Sep 14, 2023
2 checks passed
@jonatanklosko jonatanklosko deleted the jk-postprocessing-access branch September 14, 2023 10:41
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.

None yet

2 participants