All you have to do is use the torch.from_numpy() function. Once the tensor is in PyTorch, you may want to change the data type:.
確定! 回上一頁