3|0To concatenate list(tensors). c = torch.cat([torch.stack(a), b[None]], 0) # (2, 2, 2), (1, 2, 2) ⇒ (3, 2, 2) print(c). Output:.
確定! 回上一頁