pytorch torch.expand和torch.repeat的区别详解 1.torch.expand函数返回张量在某一个维度扩展之后的张量,就是将张量广播到新形状。函数对 torch.expand