Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It can use GPUs and perform efficient symbolic differentiation.
Python Cuda C C++ Shell HTML
Latest commit f5fda19 @nouiz nouiz Merge pull request #3700 from mjwillson/get_conv_output_shape_fix
Fix get_conv_output_shape for symbolic input


To install the package, see this page:

For the documentation, see the project website:

Related Projects:

We recommend you look at the documentation on the website, since it
will be more current than the documentation included with the package.
If you really wish to build the documentation yourself, you will need
epydoc and sphinx. Issue the following command:

    python ./doc/scripts/

Documentation is built into html/
The PDF of the documentation is html/theano.pdf


Theano (current directory) is the distribution directory.
    * Theano/theano contains the package
    * Theano/theano has several submodules:
        * gof + compile are the core
        * scalar depends upon core
        * tensor depends upon scalar
        * sparse depends upon tensor
        * sandbox can depend on everything else
    * Theano/examples are copies of the example on the wiki
    * Theano/benchmark and Theano/examples are in the distribution, but not in
      the Python package
    * Theano/bin contains executable scripts that are copied to the bin folder
      when the Python package is installed
    * Tests are distributed and are part of the package, i.e. fall in
      the appropriate submodules
    * Theano/doc contains files and scripts used to generate the documentation
    * Theano/html is the place where the documentation will be generated
Something went wrong with that request. Please try again.