expand_as

可以快速上手的开发文档

#expand_as

pytorch中tensor.expand()和tensor.expand_as()函数详解

tensor.expend()函数>>>importtorch>>>a=torch.tensor([[2],[3],[4]])>>>print(a.size())torch.Si..