在我看来他们是一样的。pytorch中torch.Tensor() ... 快速回答: empty()创建任意数据类型的张量,torch.tensor()只创建torch.FloatTensor类型的张量。
確定! 回上一頁