一般情况下,如果expand和repeat都能得到目标矩阵,则在不更改目标矩阵 ... import torch x = torch.tensor(1, 2,4) y = x.repeat(3,2) # In 17: y ...
確定! 回上一頁