pytorch中tensor.expand()和tensor.expand_as()函数详解 tensor.expend()函数>>>importtorch>>>a=torch.tensor([[2],[3],[4]])>>>print(a.size())torch.Si expand_as