Adapted from Alec Radford's Theano Tutorials but uses CGT instead.
Run with CGT_FLAGS=backend=native for fastest result.
Example:
CGT_FLAGS='backend=native' python 3_convnet.py
Some examples rely on the MNIST dataset, to download it execute download_mnist.sh
.