How it works...

The modified MNIST MLP classifier gives us ~ 96 percent accuracy on the test dataset, with only one hidden layer and within 10 epochs. Only in a few lines of code we got ~96 percent accuracy, this is the power of TensorFlow: