如果希望张量内存连续,可以调用contiguous函数。2.torch.repeat torch.repeat ... pytorch中tensor.expand()与tensor.repeat()_Childhood_Sweetheart的博客-程序员 ...
確定! 回上一頁