Thank you very much for your codes and posts!

I have tried the sample 2 with mnist data but I don't understand why the result of the first conv layer looks like this, almost black and white squares.
Can you please explain: 1. Why does the first conv layer looks like this? 2. There are many black squares in relu2, does that mean those feature maps are not activated?
Waiting for your kind response!