Tensor 类实例的例子。 代码清单3-4 使用多个int数值构造tensor.Tensor类实例. t1 = torch.empty(2) # 未初始化. t2 = torch.zeros(2, 2) # 各元素值为 ...
確定! 回上一頁