To create a tensor object from a Python list, you call torch.FloatTensor(python_list) , which is analogous to np.array(python_list) .
確定! 回上一頁