torch.cat(seq,dim=0,out=None); torch.stack(seq, dim=0, out=None). 作用:两者的作用都是连接seq中的tensor 区别:.cat()会增加现有维度的值,可以 ...
確定! 回上一頁