-
Notifications
You must be signed in to change notification settings - Fork 476
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
Slice bug on LibTorch backend #1055
Labels
bug
Something isn't working
Comments
It seems that calling the type Backend = LibTorch;
let tensor = Tensor::<Backend, 1, Int>::from_data([1, 2, 3, 4, 5]);
let tensor = tensor
.clone()
.slice([0..3])
.equal(tensor.clone().slice([2..5]).clone());
println!("{}", tensor); |
wcshds
added a commit
to wcshds/burn
that referenced
this issue
Dec 11, 2023
I'm gonna work on this, it's probably at the source of some data corruption we have #877 |
Merged
@wcshds added the fix, can you validate if it works with your model? |
@nathanielsimard Thank you! Now it works. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the code.
Sometimes it panics.
The text was updated successfully, but these errors were encountered: