RuntimeError CUDA error out of memory CUDA kernel errors might be asynchronously reported at some other API call so the stacktrace below might be incorrect For debugging consider passing CUDA_LAUNCH_B
这个错误意味着在使用CUDA时,程序运行时出现了内存不足的情况。由于CUDA核心错误可能会在其他API调用时异步报告,因此下面的堆栈跟踪可能不正确。建议使用CUDA_LAUNCH_BLOCKING=1进行调试。如果要启用设备端断言,请使用TORCH_USE_CUDA_DSA编译。
原文地址: https://www.cveoy.top/t/topic/bpOp 著作权归作者所有。请勿转载和采集!