np.stack() 和 torch.stack() 都属于扩张再拼接:会构造新的维度,然后对数据进行拼接. np.concatenate() 和 torch.cat() 不会扩展新的维度,沿着已有的维度进行数据拼接 (指定维度:axis=1(numpy),dim=1(torch))