pytorch异常记录与处理
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.
RuntimeError: CUDA error: device-side assert triggered
block: [0,0,0], thread: [11,0,0] Assertion input_val >= zero && input_val <= one
failed
Talk is cheap. Show me the code