var.detach().numpy() instead. pytorch Tensor 转 numpy 报错
exec(compile(contents+"\n",file,'exec'),glob,loc)File"F:/GPAI/secondTimes/CatchYou/Train.py",line49,inpre_rect=out[0].numpy()RuntimeError:Can'tcallnumpy()onVariablethatrequiresgrad.Usevar.detach().num