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 support for negative range indexing on tensors #783

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wildstyl3r
Copy link

@wildstyl3r wildstyl3r commented Aug 10, 2023

Python version has it, and tch-rs already has simple negative indexes, so support for ranges with negative bounds should fit well. Tests are included. The idea came up when I was studying Andrej Karpathy's video lecture on nanoGPT and implementing the code in Rust

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.

1 participant