x = torch.tensor([5.5, 3]) # 根據數據創建矩陣 x = x.new_ones(5, 3, dtype=torch.double) x = torch.randn_like(x, dtype=torch.float) add(x, y)等價於operator: +
確定! 回上一頁