pandas → numpy → Tensor pdata=pd.read_csv("test.csv",header=None) ndata=np.array(pdata) tdata=torch.Tensor(ndata)