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

Add indexing with Result return #832

Merged
merged 3 commits into from
Jan 6, 2024

Conversation

CallMeMSL
Copy link
Contributor

This pr adds indexing methods that propagate the indexing result instead of unwrapping it internally.
I kept the naming conventions of this library:

  • tensor.i(..) unwraps the result
  • tensor.f_i(..) returns the result

Additionally, I fixed a bug where f_indexer can panic due to an unwrap with invalid indices

@LaurentMazare LaurentMazare merged commit bf3afe0 into LaurentMazare:main Jan 6, 2024
1 check 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.

None yet

2 participants