📜  torch.cat - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:04.345000             🧑  作者: Mango

代码示例2
> torch.cat(
    (
         t1.unsqueeze(0)
        ,t2.unsqueeze(0)
        ,t3.unsqueeze(0)
    )
    ,dim=0
)
tensor([[1, 1, 1],
        [2, 2, 2],
        [3, 3, 3]])