import torch t1 = torch.Tensor([5,6]) t2 = t1.repeat(3,5,6) print(t1) print(t2, t2.shape) #类似于平铺操作tile,repeat参数指定了在每个维度上平铺的次数,如果 ...
確定! 回上一頁