快速回答: empty()创建任意数据类型的张量,torch.tensor()只创建torch.FloatTensor类型的张量。 所以torch.Tensor()是torch.empty()的特例. 详细答案:.
確定! 回上一頁