# Stack Overflow [pytorch]: CUDA error: device-side assert triggered" during backward pass, but error points to an unrelated .to(device) call — retained record

> Retained stackexchange record from stackexchange.

Canonical: https://highsignal.app/data/records/242081f8d04dd543

[← sources](https://highsignal.app/data)


source: [stackexchange](https://highsignal.app/data/stackexchange) published 2026-06-25 13:24 ingested 2026-06-28 12:39

[original source ↗](https://stackoverflow.com/questions/79966857/cuda-error-device-side-assert-triggered-during-backward-pass-but-error-points)

## retained text



```
Score: 1 | Answers: 0 | Views: 38
Tags: python, pytorch, cuda
CUDA error: device-side assert triggered" during backward pass, but error points to an unrelated .to(device) call
```



document fetched 2026-07-25 07:55
