x = torch.zeros(5, 3, dtype=torch.long) print(x) ... 行拼接。 torch.dstack() # 将多个tensor 按第1维进行拼接 torch.hstack() # 按指定维度进行 ...
確定! 回上一頁