i don’t think so. because the other code is running without error.
can I save my tensor data by using the following command use no (.csv) at the end?
Path=root_diR1+'/'+'Itr='+str(ii)+'Gen='+str(GEN)+'Num='+str(Num)+'Coef='+str(CoeBL)

torch.save(TrainPatchGAN,Path,_use_new_zipfile_serialization=False))