#Softmax regression output layer is a fully connection layer. So to realize the model, we only #need to add a 10-output fully connected layer in Sequential
#pytorch will not adjust shape of input implicitly #so we define flatten layer before Linear layer to adjust the shape of network input. net = nn.Sequential(nn.Flatten(), nn.Linear(784, 10))