Pytorch 1.0.0版本问题(一)之module ‘torch.nn‘ has no attribute ‘Flatten‘
1.错误生成原因在使用nn.Flatten()函数的时候报错importtorchfromtorchimportnnnet=nn.Sequential(nn.Flatten(),nn.Linear(784,256),nn.ReLU(),nn.Linear(256,10))错误如下:AttributeErrorTraceback(mostrecentcalllast)in---->1net=nn.S