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

Feature/cpu slice #261

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Feature/cpu slice #261

merged 2 commits into from
Nov 4, 2024

Conversation

ivarflakstad
Copy link
Member

I noticed that Slice { indicies } is a RVec<Range<usize>>. We can change the cpu slice function to accept this type instead of start and stop being &[usize] if that is preferred.

I go from indices to start/stop using let (start, stop): (Vec<_>, Vec<_>) = s.indices().iter().map(|r| (r.start, r.end)).unzip();

Copy link

pkg-pr-new bot commented Nov 4, 2024

Open in Stackblitz

npm i https://pkg.pr.new/huggingface/ratchet/@ratchet/ratchet-web@261

commit: 08900c2

@FL33TW00D FL33TW00D merged commit b9d106f into master Nov 4, 2024
3 of 6 checks 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.

2 participants