Tutorial by Examples

Detailed instructions on getting theano set up or installed.
You can use the following instructions to install Theano and configure the GPU (assume a freshly installed Ubuntu 14.04): # Install Theano sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git sudo pip install Theano # Install Nvidia drivers, ...
You can run Theano on multiple CPU cores with the OMP_NUM_THREADS=[number_of_cpu_cores] flag. Example: OMP_NUM_THREADS=4 python gpu_test.py The script theano/misc/check_blas.py outputs information regarding which BLAS is used: cd [theano_git_directory] OMP_NUM_THREADS=4 python theano/misc/ch...
In this example, we will compile functions that computes sum and difference given two real number. from __future__ import print_function import theano import theano.tensor as T #define two symbolic scalar s_x = T.fscalar() s_y = T.fscalar() #compute something s_sum = s_x + s_y s_diff = ...

Page 1 of 1