最简单创建tensor 的方法是调用torch.empty() : x = torch.empty(3, ... random = torch.rand(2, 3) print(random) ... Random Tensors and Seeding.
確定! 回上一頁