Try converting it to an array first: test_tensor = torch.Tensor(test.values) I think you're just missing .values import torch import pandas as pd train ...
確定! 回上一頁