Tried to allocate 50.00 MiB (GPU 0; 4.00 GiB total capacity; 682.9
1.问题训练模型时报错:RuntimeError:CUDAerror:outofmemoryCUDAkernelerrorsmightbeasynchronouslyreportedatsomeotherAPIcall,sothestacktracebelowmightbeincorrect.FordebuggingconsiderpassingCUDA_LAUNCH_BLOCKING=1.或任务