后续遇到一些函数等知识,还会进行及时的补充。 tensor的创建 使用pytorch中的列表创建tensor tensor = torch.Tensor([[-1, 1], [0, 2]]) print(