Tutorial¶
Let us start an interactive session (e.g. with python
or ipython
) and import Theano.
>>> from theano import *
Several of the symbols you will need to use are in the tensor
subpackage
of Theano. Let us import that subpackage under a handy name like
T
(the tutorials will frequently use this convention).
>>> import theano.tensor as T
If that succeeded you are ready for the tutorial, otherwise check your installation (see Installing Theano).
Throughout the tutorial, bear in mind that there is a Glossary as well as index and modules links in the upper-right corner of each page to help you out.
- Python tutorial
- NumPy refresher
- Baby Steps - Algebra
- More Examples
- Graph Structures
- Printing/Drawing Theano graphs
- Derivatives in Theano
- Configuration Settings and Compiling Modes
- Loading and Saving
- Conditions
- Loop
- Sparse
- Using the GPU
- Using multiple GPUs
- PyCUDA/CUDAMat/Gnumpy compatibility
- Understanding Memory Aliasing for Speed and Correctness
- How Shape Information is Handled by Theano
- Debugging Theano: FAQ and Troubleshooting
- Isolating the Problem/Testing Theano Compiler
- Interpreting Error Messages
- Using Test Values
- “How do I Print an Intermediate Value in a Function?”
- “How do I Print a Graph?” (before or after compilation)
- “The Function I Compiled is Too Slow, what’s up?”
- “Why does my GPU function seem to be slow?”
- “How do I Step through a Compiled Function?”
- How to Use pdb
- Dumping a Function to help debug
- Dealing with NaNs
- Profiling Theano function
- Extending Theano
- Extending Theano with a C Op
- Python Memory Management
- Multi cores support in Theano
- Frequently Asked Questions