Theano
Theano Tutorial
Note
We no longer include the CNTK, Caffe, Caffe2 and Theano Conda environments in the AWS Deep Learning AMI starting with the v28 release. Previous releases of the AWS Deep Learning AMI that contain these environments will continue to be available. However, we will only provide updates to these environments if there are security fixes published by the open source community for these frameworks.
To activate the framework, follow these instructions on your Deep Learning AMI with Conda.
For Theano + Keras in Python 3 with CUDA 9 with cuDNN 7:
$
source activate theano_p36
For Theano + Keras in Python 2 with CUDA 9 with cuDNN 7:
$
source activate theano_p27
Start the iPython terminal.
(theano_p36)$
ipython
Run a quick Theano program.
import numpy import theano import theano.tensor as T from theano import pp x = T.dscalar('x') y = x ** 2 gy = T.grad(y, x) pp(gy)
You should see Theano computing a symbolic gradient.
More Tutorials
For further tutorials and examples refer to the framework's official docs,
Theano Python API