FEDformer出错记录

一、RuntimeError: CUDA error: device-side assert triggered

错误描述:

RuntimeError: CUDA error: device-side assert triggered
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_BLOCKING=1

报错图片如下:
FEDformer出错记录_第1张图片
FEDformer出错记录_第2张图片
由图片可得是batch:19752出错,于是用debug看看这个batch,详细报错如下:

FEDformer出错记录_第3张图片
可知是embedding的size不对

二、

FEDformer出错记录_第4张图片

FEDformer出错记录_第5张图片
1.问题如下:
RuntimeError: CUDA error: device-side assert triggered 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_BLOCKING=1.

你可能感兴趣的:(bug,pytorch)