title: Theano config directly in script
body: <p>I'm new to Theano and I wonder how to configure the default setting directly from script (without setting envir. variables). E.g. this is a working solution (<a href="http://deeplearning.net/software/theano/tutorial/using_gpu.html" rel="noreferrer">source</a>):</p>
  
  <pre><code>$ THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python check1.py
  </code></pre>
  
  <p>I intend to come up with the identical solution that is executed by only:</p>
  
  <pre><code>$ python check1.py
  </code></pre>
  
  <p>and the additional parameters are set directly in the script itself. E.g. somehow like this:</p>
  
  <pre><code>import theano
  theano.set('mode', 'FAST_RUN')
  theano.set('device', 'gpu')
  theano.set('floatX', 'float32')
  # rest of the script
  </code></pre>
  
  <p>Is it even possible? I read the <a href="http://deeplearning.net/software/theano/library/config.html" rel="noreferrer">config page</a> which provides the information that allows me to read the already set values (but not to set them by myself).</p>