torch.cuda.check_error
-
torch.cuda.check_error(res)[исходный код] -
Вызывает ошибку, если результат вызова API среды выполнения CUDA не является успешным.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.cuda.check_error.html