
Xc           @` s/  d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l a d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z d  d l Z d  d l m Z m Z m Z m Z m Z m Z m Z m Z m Z d  d l m Z d  d l m Z m  Z  d  d l! m" Z" e j# d  Z$ e   Z% d	   Z& e d
 d e d d d d e& d e' e d d e d d d d  d e( e d d e d d   e d d e d d d
  d e( d e f d     YZ) e d  d! e) d" d# e( d e( e d$ d% e) d& d# e( d e( e d' d( e e( d# e( d e( e d) d* e e(  d e( e d+ d, e e(  d e( d- e f d.     YZ* e d/ d0 e*   d e( e d1 d2 e e' d# e( d e( e d3 d4 e e' d# e( d e( d5   Z+ e d6 d7 e e+  d e( e d8 d9 e e'  d e( d:   Z, e d; d< e d& e,  d e( e d= d> e d&  d e( e d? d& e e(  d e( e d@ dA e dB dC  d e( e dD dE e e(  d e' e dF dG e d  d# e( d e( e dH dI e dJ dK dL   e dM dN e e'  d e( dO   Z- e dP dQ e d& d# e( dR e- d e( dS   Z. e dT dU e d& d# e( dR e. d e( dV   Z/ dZ0 dZ1 dZ2 e db dc e d& d# e( dR e/ d e( e dd de e e0   d e( e df dg e e1   d e( e dh di e e2   d e( e dj dk e dl dm d d d  d e( dn   Z3 e do dp e e3 dq   d e( e dr dp e e3 e j	 ds k rdt n du   d e( e dv dw e dx dy dz  d e( e d{ d| e d d d d d# e' d e( e d} d~ e d d d d d d  d e( d Z4 y e d d g  Z5 Wn e6 k
 rhd Z5 n Xe5 d  k r+e j	 d k r+e j7 j8 e j7 j9 e j:  d d d d  Z; y> e e; d g  Z5 e5 d  k re" d e j7 j9 e;   n  Wn e6 k
 rd Z5 n Xe5 d  k r(e$ j< d  q(q+n  e5 d  k r@d& Z4 n  e j	 ds k ry+ e d d g  Z5 e5 d  k ryd Z4 n  Wqe6 k
 rqXn  e4 d& k rd  d l= Z> e> j? j@ e4  ZA eA d k	 reA Z4 n  [A [> n  e4 re jC d k rd e4 Z4 n  d   ZD e d d e e4 d eD d e( [4 e5 d  k rxe% jE d& k rxe d d e d d d d d d d d  d e( nD e d d e d d d  d e( eF e%  jE jG re$ j< d  n  e d d e e'  d e( e d d e d d d d  d e( e d d e e(  d e( e d d e d d d d  d e( d   ZH e d d e d& d# e( dR eH d e( e d d e e(  d e( e d d e d d d  d e( e d d e d  d   d# e( d e( e d d e e'  d e( e d d e e'  d e( e d d e e(  d e( e d d e e'  d e( e d d e d  d e( e d d e d   d e( e d d e dJ e(  d e( e d de d d d d d d d d# e( d e( e d d e d d d d d d d d# e( d e( e d d e d d d d d d d d# e( d e( e d d e d d d d d d d d# e( d e( e d d e d d d d d d d d# e( d e( e d d e d d d d d d d d d d d d d d# e( d e( d   ZI e d d e eI d   d e( e d d e eI d   d e( e d d e eI d   d e( e d d e eI d   d e( e d d e eI d   d e( e d d e eI d   d e( e d d e e(  d e( e d d e eI d   d e( e d d e eI d   d e( e d d e eI d   d e( e d d e eI d   d e( e d d e d d d d d  d e( e d d e e(  d e( e d d e d d d d d  d e( e d d e e'  d e( e d de e( d# e' d e( e dde dd d e( e jJ dd  ZK eK ry eL eK  Wn! eM k
 rqeN deK   qXeL eK  d k ZO n1 e   ZP eP dk re$ j< d	 n  eP d k ZO e( ZO e d
de eO  d e( e dde d d e( e dde e'  d e' e dde e(  d e( d  ZQ e dde dd eQ d e( e dde e'  d e( e dde e'  d e( e dde e'  d e( e dde d d d  d e( e dd e d& d# e( d e( e d!d"e d& d# e( d e( e d#d$e d& d# e( d e( e d%d&e d'd(   d e( e d)d*e d+   d e( e d,d-e e'  d e( e d.d/e e'  d e( e d0d1e d  d2   d e( e d3d4e e'  d e( d5  ZR e d6d7e d& d eR d e( e d8d9e d:d;   d e( e d<d=e e'  d e( e d>d?e d@dA   d e( e dBdCe d@dD   d e( e dEdFe dGdH   d e( e dIdJe dKdL   d e( e dMdNe e(  d e( e dOdPe dQ d e( e dRdSe e(  d e( e dTdUe e(  d e( e dVdWe t jS  d e( e dXdYe d  d e( e dZd[e d&  d e( e d\d]e e(  d e( e d^d_e e(  d e' e d`dae e(  d e( e dbdce e( d# e( d e( e dddee dd# e( d e( dh  ZT di  ZU e djdke eT  d e( e dldme jV j e(  d e( e dndoe e(  d e( e dpdqe e(  d e( e drdse e(  d e( dt  ZW e dudve d eW  d e( e dwdxe eI d   d e( e dydze jV j d d  d e( e d{d|e jV j d d e( e d}d~e jV j e' d d  d e( e dde jV j e'  d e( e dde e(  d e( e dde e'  d e( e dde e(  d e( e dde e(  d e( e dde d d e( e dde d  d  d# e( d e( e dde dd  d# e( d e( d  ZX e dde eX d  d# e( d e( y/ e  e% jE dg  ZY eY d  jZ   j[   Z\ Wn e6 k
 rdZ\ n Xd  Z] d  Z^ i	 e	 j	   d6e	 j_   d6e	 j`   d6e]   d6e^   d6e ja d6t ja d6e\ jb dd d6e jc   d6Zd d d d Ze ee   ed d<e% jf ed d  <dj8 eg ed jh     Zi dZj e de
 jk e
 jl dei ej f   e ej d# e( d e( d  Zm d  Zn d  Zo d  Zp e j	 d k re jJ d d k	 re j7 j8 e jJ d d Zq n e j7 j8 ep   d Zq e dde eq dR en d# e( d e( d  Zr e dde er dR eo d# e( d e( x* e jh   D] Zs e jt dju es   qWd S(  i    (   t   absolute_importt   print_functiont   divisionN(   t   string_types(	   t   AddConfigVart	   BoolParamt   ConfigParamt   EnumStrt
   FloatParamt   IntParamt   StrParamt   TheanoConfigParsert   THEANO_FLAGS_DICT(   t   cpuCount(   t   call_subprocess_Popent   output_subprocess_Popen(   t    maybe_add_to_os_environ_pathlists   theano.configdefaultsc         C` s8   |  d k r d S|  d k r  d S|  d k r0 d S|  Sd  S(   Nt   32t   float32t   64t   float64t   16t   float16(    (   t   s(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   floatX_convert   s    t   floatXsp   Default floating-point precision for python casts.

Note: float16 support is experimental, use at your own risk.R   R   R   t   convertt   in_c_keyt   warn_float64s   Do an action when a tensor variable with float64 dtype is created. They can't be run on the GPU with the current(old) gpu back-end and are slow with gamer GPUs.t   ignoret   warnt   raiset   pdbt   cast_policys   Rules for implicit type castingt   customs   numpy+floatXt   int_divisionsK   What to do when one computes x / y, where both x and y are of integer typest   intt   DeviceParamc           B` s   e  Z d    Z d   Z RS(   c         ` sJ   |   _    f d   } | j d t  } t t    j | | |  d  S(   Nc         ` sc   |    j  k s< |  j d  s< |  j d  s< |  j d  r@ |  St d   j  |    j f   d  S(   Nt   gput   openclt   cudass   Invalid value ("%s") for configuration variable "%s". Valid options start with one of "%s", "gpu", "opencl", "cuda"(   t   defaultt
   startswitht
   ValueErrort   fullname(   t   val(   t   self(    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   filter[   s
    t   allow_override(   R)   t   gett   Truet   superR%   t   __init__(   R.   R)   t   optionst   kwargsR/   t   over(    (   R.   s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR4   X   s    		c         C` s   d |  j  |  j f S(   Ns   %s (%s, gpu*, opencl*, cuda*) (   R,   R)   (   R.   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   __str__g   s    (   t   __name__t
   __module__R4   R8   (    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR%   W   s   	t   devices   Default device for computations. If cuda* or opencl*, change thedefault to try to move computation to the GPU. Do not use upper caseletters, only lower case even if NVIDIA uses capital letters.t   cpuR0   t   init_gpu_devices   Initialize the gpu device to use, works only if device=cpu. Unlike 'device', setting this option will NOT move computations, nor shared variables, to the specified GPU. It can be used to run GPU-specific tests on a particular GPU.t    t   force_devices3   Raise an error if we can't use the specified devices   conv.assert_shapes   If True, AbstractConv* ops will verify that user-provided shapes match the runtime shapes (debugging option, may slow down compilation)t   print_global_statss4   Print some global statistics (time spent) at the endt   ContextsParamc           B` s   e  Z d    Z RS(   c         C` s#   d   } t  j |  d | t  d  S(   Nc         S` s   |  d k r |  Sx |  j  d  D] } | j  d  } t |  d k r] t d | f   n  | d d k s | d j d  s | d j d	  r  t d
 | d f   q  q  W|  S(   NR>   t   ;s   ->i   s   Malformed context map: %si    R<   R(   R'   s   Cannot use %s as context name(   t   splitt   lenR+   R*   (   R-   t   vR   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR/      s    #R>   (   R   R4   t   False(   R.   R/   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR4      s    	(   R9   R:   R4   (    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyRA      s   t   contextssa  
    Context map for multi-gpu operation. Format is a
    semicolon-separated list of names and device names in the
    'name->dev_name' format. An example that would map name 'test' to
    device 'cuda0' and name 'test2' to device 'opencl0:0' follows:
    "test->cuda0;test2->opencl0:0".

    Invalid context names are 'cpu', 'cuda*' and 'opencl*'
    t   print_active_devices:   Print active device at when the GPU device is initialized.t   enable_initial_driver_tests9   Tests the nvidia driver when a GPU device is initialized.c          C` s   t  j d d  }  |  r |  St  j d  } | s5 d SxZ | j t  j j  D]C } t  j j t  j j | d   rK t  j j t  j j |   SqK Wd S(   Nt	   CUDA_ROOTR>   t   PATHt   nvcc(	   t   ost   getenvRC   t   patht   pathsept   existst   joint   dirnamet   abspath(   RE   R   t   dir(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   default_cuda_root   s    ! s	   cuda.roots  directory with bin/, lib/, include/ for cuda utilities.
       This directory is included via -L and -rpath when linking
       dynamically compiled modules.  If AUTO and nvcc is in the
       path, it will use one of nvcc parent directory.  Otherwise
       /usr/local/cuda will be used.  Leave empty to prevent extra
       linker directives.  Default: environment variable "CUDA_ROOT"
       or else "AUTO".
       s   cuda.enableds0   If false, C code in old backend is not compiled.c         C` s   t  |  t  s t  g  |  j d  D] } | r% | ^ q% } t g  | D] } | j d  sG | ^ qG  r~ t d |    n  d j |  S(   Nt    t   -s   Theano nvcc.flags support only parameter/value pairs without space between them. e.g.: '--machine 64' is not supported, but '--machine=64' is supported. Please add the '=' symbol. nvcc.flags value is '%s'(   t
   isinstancet   strt   AssertionErrorRC   t   anyR*   R+   RR   (   R   t   flagt   flagst   f(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   filter_nvcc_flags   s    (.s
   nvcc.flagss   Extra compiler flags for nvccs   nvcc.compiler_bindirsH   If defined, nvcc compiler driver will seek g++ and gcc in this directorys   nvcc.fastmaths   nvcc.cudafes	  If 'always' (the default), cudafe will be called for every GPU Op compilation. If 'heuristic', it will only be called if the source code appears to contain CUDA code. This can speed up compilation and importing theano, but might fail to compile some custom GPU Ops.t   alwayst	   heuristics   gpuarray.syncs   If True, every op will make sure its work is done before
                returning.  Setting this to True will slow down execution,
                but give much more accurate results in profiling.s   gpuarray.preallocates  If negative it disables the allocation cache. If
             between 0 and 1 it enables the allocation cache and
             preallocates that fraction of the total GPU memory.  If 1
             or greater it will preallocate that amount of memory (in
             megabytes).s   gpuarray.schedst  The sched parameter passed for context creation to pygpu.
                With CUDA, using "multi" is equivalent to using the parameter
                cudaDeviceScheduleYield. This is useful to lower the
                CPU overhead when waiting for GPU. One user found that it
                speeds up his other processes that was doing data augmentation.
             R)   t   multit   singles   gpuarray.single_streams  
             If your computations are mostly lots of small elements,
             using single-stream will avoid the synchronization
             overhead and usually be faster.  For larger elements it
             does not make a difference yet.  In the future when true
             multi-stream is enabled in libgpuarray, this may change.
             If you want to make sure to have optimal performance,
             check both options.
             c         C` s   |  r t  d   n  t S(   sH   
    Make sure the user is not attempting to use dnn.conv.workmem`.
    s   The option `dnn.conv.workmem` has been removed and should not be used anymore. Please use the option `dnn.conv.algo_fwd` instead.(   t   RuntimeErrorR2   (   t   workmem(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   safe_no_dnn_workmem+  s    s   dnn.conv.workmems/   This flag is deprecated; use dnn.conv.algo_fwd.R/   c         C` s   |  r t  d   n  t S(   sL   
    Make sure the user is not attempting to use dnn.conv.workmem_bwd`.
    s   The option `dnn.conv.workmem_bwd` has been removed and should not be used anymore. Please use the options `dnn.conv.algo_bwd_filter` and `dnn.conv.algo_bwd_data` instead.(   Re   R2   (   Rf   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   safe_no_dnn_workmem_bwd<  s    s   dnn.conv.workmem_bwds]   This flag is deprecated; use `dnn.conv.algo_bwd_filter` and `dnn.conv.algo_bwd_data` instead.c         C` s   |  r t  d   n  t S(   sI   
    Make sure the user is not attempting to use dnn.conv.algo_bwd`.
    s   The option `dnn.conv.algo_bwd` has been removed and should not be used anymore. Please use the options `dnn.conv.algo_bwd_filter` and `dnn.conv.algo_bwd_data` instead.(   Re   R2   (   t   algo(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   safe_no_dnn_algo_bwdO  s    t   smallt   nonet   larget   fftt
   fft_tilingt   winogradt
   guess_oncet   guess_on_shape_changet	   time_oncet   time_on_shape_changet   deterministics   dnn.conv.algo_bwdsQ   This flag is deprecated; use dnn.conv.algo_bwd_data and dnn.conv.algo_bwd_filter.s   dnn.conv.algo_fwds<   Default implementation to use for cuDNN forward convolution.s   dnn.conv.algo_bwd_datas   Default implementation to use for cuDNN backward convolution to get the gradients of the convolution with regard to the inputs.s   dnn.conv.algo_bwd_filters   Default implementation to use for cuDNN backward convolution to get the gradients of the convolution with regard to the filters.s   dnn.conv.precisions   Default data precision to use for the computation in cuDNN convolutions (defaults to the same dtype as the inputs of the convolutions, or float32 if inputs are float16).t   as_input_f32t   as_inputc         C` s   |  d  } | S(   Nc         S` s5   t  j j j d k r d St j j t  j j j |   S(   NR>   (   t   theanot   configR(   t   rootRM   RO   RR   (   t   suffix(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR_     s    (    (   R{   R_   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   default_dnn_path  s    s   dnn.include_paths8   Location of the cudnn header (defaults to the cuda root)t   includes   dnn.library_patht   darwint   libt   lib64s   dnn.enableds   'auto', use cuDNN if available, but silently fall back to not using it if not present. If True and cuDNN can not be used, raise an error. If False, disable cudnnt   autoR2   RF   t   assert_no_cpu_opsG   Raise an error/warning if there is a CPU op in the computational graph.t   modes   Default compilation modet   Modet	   DebugModet   FAST_RUNt   NanGuardModet   FAST_COMPILEt
   DEBUG_MODEs   g++s   -vi   t   win32t   Librarys	   mingw-w64t   binRK   sB   g++ not available, if using conda: `conda install m2w64-toolchain`s   clang++t   nts   "%s"c         C` s/   t  j d k r+ d |  k r+ t j d  n  t S(   sA   We only support clang++ as otherwise we hit strange g++/OSX bugs.R~   s   clang++sI   Only clang++ is supported. With g++, we end up with strange g++/OSX bugs.(   t   syst   platformt   _loggert   warningR2   (   R-   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   warn_cxx  s    t   cxxs   The C++ compiler to use. Currently only g++ is supported, but supporting additional compilers should not be too difficult. If it is empty, no C++ code is compiled.t   is_validt   linkers4   Default linker used if the theano flags mode is Modet   cvms   c|pyt   pyt   cs	   c|py_nogct   vmt   vm_nogct   cvm_nogcs   g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.t   allow_gcs   Do we default to delete intermediate results during Theano function calls? Doing so lowers the memory requirement, but asks that we reallocate memory at the next function call. This is implemented for the default linker, but may not work for all linkers.t	   optimizersE   Default optimizer. If not None, will use this optimizer with the Modet   fast_runt   merget   fast_compilet   Nonet   optimizer_verboses0   If True, we print all optimization being appliedt   on_opt_errorsn   What to do when an optimization crashes: warn and skip it, raise the exception, or fall into the pdb debugger.c         C` s,   |  r( t  d t j j |  d    n  t S(   s  
    Make sure the user is not attempting to use `config.home`.

    This config option was removed in Thenao 0.5 since it was redundant with
    `config.base_compiledir`. This filter function ensures people who were
    setting the location of their compilation directory through `config.home`
    switch to `config.basecompiledir` instead, by raising an error when
    `config.home` is used.
    s   The `config.home` option has been removed and should not be used anymore. Please set the `config.base_compiledir` option instead (for instance to: %s)s   .theano(   Re   RM   RO   RR   R2   (   t   home(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   safe_no_home1  s
    
R   s5   This config option was removed in 0.5: do not use it!t	   nocleanups@   Suppress the deletion of code files that did not compile cleanlyt   on_unused_inputs]   What to do if a variable in the 'inputs' list of  theano.function() is not used in the graph.s   tensor.cmp_sloppys:   Relax tensor._allclose (0) not at all, (1) a bit, (2) morec         C` s
   |  d k S(   Ni    i   i   (   i    i   i   (    (   t   i(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   <lambda>^  s    s   tensor.local_elemwise_fusionsV   Enable or not in fast_run mode(fast_run optimization) the elemwise fusion optimizations   gpu.local_elemwise_fusionsZ   Enable or not in fast_run mode(fast_run optimization) the gpu elemwise fusion optimizations   lib.amdlibms#   Use amd's amdlibm numerical librarys   gpuelemwise.syncsB   when true, wait that the gpu fct finished and check it error code.s   traceback.limits*   The number of stack to trace. -1 mean all.i   s   traceback.compile_limits   The number of stack to trace to keep during compilation. -1 mean all. If greater then 0, will also make us save Theano internal stack trace.s    experimental.unpickle_gpu_on_cpus  Allow unpickling of pickled CudaNdarrays as numpy.ndarrays.This is useful, if you want to open a CudaNdarray without having cuda installed.If you have cuda installed, this will force unpickling tobe done on the cpu to numpy.ndarray.Please be aware that this may get you access to the data,however, trying to unpicke gpu functions will not succeed.This flag is experimental and may be removed any time, whengpu<>cpu transparency is solved.s   numpy.seterr_alls2   Sets numpy's behaviour for floating-point errors, sD  see numpy.seterr. 'None' means not to change numpy's default, which can be different for different numpy releases. This flag sets the default behaviour for all kinds of floating-point errors, its effect can be overriden for specific errors by the following flags: seterr_divide, seterr_over, seterr_under and seterr_invalid.t   callt   printt   logs   numpy.seterr_dividesz   Sets numpy's behavior for division by zero, see numpy.seterr. 'None' means using the default, defined by numpy.seterr_all.s   numpy.seterr_overs   Sets numpy's behavior for floating-point overflow, see numpy.seterr. 'None' means using the default, defined by numpy.seterr_all.s   numpy.seterr_unders   Sets numpy's behavior for floating-point underflow, see numpy.seterr. 'None' means using the default, defined by numpy.seterr_all.s   numpy.seterr_invalids   Sets numpy's behavior for invalid floating-point operation, see numpy.seterr. 'None' means using the default, defined by numpy.seterr_all.s   warn.ignore_bug_befores  If 'None', we warn about all Theano bugs found by default. If 'all', we don't warn about Theano bugs found by default. If a version, we print only the warnings relative to Theano bugs found after that version. Warning for specific bugs can be configured with specific [warn] flags.s   0.7t   alls   0.3s   0.4s   0.4.1s   0.5s   0.6s   0.8s   0.8.1s   0.8.2s   0.9c         C` sF   t  j j d k r t St  j j d k r, t St  j j |  k rB t St S(   sP   
    Return True iff we should warn about bugs fixed after a given version.
    R   R   (   Ry   R   t   ignore_bug_beforeR2   RF   (   t   version(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   warn_default  s    s   warn.argmax_pushdown_bugs   Warn if in past version of Theano we generated a bug with the theano.tensor.nnet.nnet.local_argmax_pushdown optimization. Was fixed 27 may 2010s   warn.gpusum_01_011_0111_bugs   Warn if we are in a case where old version of Theano had a silent bug with GpuSum pattern 01,011 and 0111 when the first dimensions was bigger then 4096. Was fixed 31 may 2010s   warn.sum_sum_bugs   Warn if we are in a case where Theano version between version 9923a40c7b7a and the 2 august 2010 (fixed date), generated an error in that case. This happens when there are 2 consecutive sums in the graph, bad code was generated. Was fixed 2 August 2010s   warn.sum_div_dimshuffle_bugs   Warn if previous versions of Theano (between rev. 3bd9b789f5e8, 2010-06-16, and cfc6322e5ad4, 2010-08-03) would have given incorrect result. This bug was triggered by sum of division of dimshuffled tensors.s   warn.subtensor_merge_bugs   Warn if previous versions of Theano (before 0.5rc2) could have given incorrect results when indexing into a subtensor with negative stride (for instance, for instance, x[a:b:-1][c]).s   warn.gpu_set_subtensor1s   Warn if previous versions of Theano (before 0.6) could have given incorrect results when moving to the gpu set_subtensor(x[int vector], new_value)s   warn.vm_gc_bugs  There was a bug that existed in the default Theano configuration, only in the development version between July 5th 2012 and July 30th 2012. This was not in a released version. If your code was affected by this bug, a warning will be printed during the code execution if you use the `linker=vm,vm.lazy=True,warn.vm_gc_bug=True` Theano flags. This warning is disabled by default as the bug was not released.s   warn.signal_conv2d_interfacesL   Warn we use the new signal.conv2d() when its interface changed mid June 2014s   warn.reduce_joins  Your current code is fine, but Theano versions prior to 0.7 (or this development version) might have given an incorrect result. To disable this warning, set the Theano flag warn.reduce_join to False. The problem was an optimization, that modified the pattern "Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", did not check the reduction axis. So if the reduction axis was not 0, you got a wrong answer.s   warn.inc_set_subtensor1s   Warn if previous versions of Theano (before 0.7) could have given incorrect results for inc_subtensor and set_subtensor when using some patterns of advanced indexing (indexing with one vector or matrix of ints).s
   warn.roundsx   Round changed its default from Seed to use for randomized unit tests. Special value 'random' means using a seed of None.t   compute_test_values   If 'True', Theano will run each op at graph build time, using Constants, SharedVariables and the tag 'test_value' as inputs to the function. This helps the user track down problems in the graph before it gets optimized.t   offt   print_test_values   If 'True', the __eval__ of a Theano variable will return its test_value when this is available. This has the practical conseguence that, e.g., in debugging `my_var` will print the same as `my_var.tag.test_value` when a test value is defined.t   compute_test_value_optsj   For debugging Theano optimization only. Same as compute_test_value, but is used during Theano optimizationt   unpickle_functionsw   Replace unpickled Theano functions with None. This is useful to unpickle old graphs that pickled them when it shouldn'tt   reoptimize_unpickled_functionsH   Re-optimize the graph when a theano function is unpickled from the disk.t   exception_verbositys7  If 'low', the text of exceptions will generally refer to apply nodes with short names such as Elemwise{add_no_inplace}. If 'high', some exceptions will also refer to apply nodes with long descriptions  like:
    A. Elemwise{add_no_inplace}
            B. log_likelihood_v_given_h
            C. log_likelihood_ht   lowt   hight   OMP_NUM_THREADSsF   The environment variable OMP_NUM_THREADS should be a number, got '%s'.is   We are not able to detect the number of CPU cores. We disable openmp by default. To remove this warning, set the environment variable OMP_NUM_THREADS to the number of threads you want theano to use.t   openmpsP  Allow (or not) parallel computation on the CPU with OpenMP. This is the default value used when creating an Op that supports OpenMP parallelization. It is preferable to define it via the Theano configuration file ~/.theanorc or with the environment variable THEANO_FLAGS. Parallelization is only done for some operations that implement it, and even for operations that implement parallelism, each operation is free to respect this flag or not. You can control the number of threads used with the environment variable OMP_NUM_THREADS. If it is set to 1, we disable openmp in Theano by default.t   openmp_elemwise_minsizes~   If OpenMP is enabled, this is the minimum size of vectors for which the openmp parallelization is enabled in element wise ops.i@ t   check_inputs   Specify if types should check their input in their C code. It can be used to speed up compilation, reduce overhead (particularly for scalars) and reduce the number of generated C files.t   cache_optimizationss  WARNING: work in progress, does not work yet. Specify if the optimization cache should be used. This cache will any optimized graph and its optimization. Actually slow downs a lot the first optimization, and could possibly still contains some bugs. Use at your own risks.c         C` s7   |  d k r t  Sy t |   Wn t k
 r2 t SXt  S(   Nt   random(   R2   R$   t	   ExceptionRF   (   t   seed(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   good_seed_param  s    s   unittests.rseedsY   Seed to use for randomized unit tests. Special value 'random' means using a seed of None.i  s   NanGuardMode.nan_is_errors   Default value for nan_is_errors   NanGuardMode.inf_is_errors   Default value for inf_is_errors   NanGuardMode.big_is_errors   Default value for big_is_errors   NanGuardMode.actions.   What NanGuardMode does when it finds a problemt   optimizer_excludings^   When using the default mode, we will remove optimizer with these tags. Separate tags with ':'.t   optimizer_includings[   When using the default mode, we will add optimizer with these tags. Separate tags with ':'.t   optimizer_requirings_   When using the default mode, we will require optimizer with these tags. Separate tags with ':'.s   DebugMode.patiences6   Optimize graph this many times to detect inconsistencyi
   c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    s   DebugMode.check_cs$   Run C implementations where possiblec           C` s   t  t j j  S(   N(   t   boolRx   Ry   R   (    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    s   DebugMode.check_pys)   Run Python implementations where possibles   DebugMode.check_finites&   True -> complain about NaN/Inf resultss   DebugMode.check_stridessw   Check that Python- and C-produced ndarrays have same strides. On difference: (0) - ignore, (1) warn, or (2) raise errorc         C` s
   |  d k S(   Ni    i   i   (   i    i   i   (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    s   DebugMode.warn_input_not_reuseds   Generate a warning when destroy_map or view_map says that an op works inplace, but the op did not reuse the input for its output.c         C` s_   t  |  t  s t Sd d d d d d d d g } x' |  j d	  D] } | | k rA t SqA Wt S(
   Nt   initialt   previoust   c_contiguoust   f_contiguoust   stridedt
   wrong_sizet   ALLR>   t   :(   RY   R   RF   RC   R2   (   t   paramt   validt   p(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt(   is_valid_check_preallocated_output_param  s    s#   DebugMode.check_preallocated_outputst  Test thunks with pre-allocated memory as output storage. This is a list of strings separated by ":". Valid values are: "initial" (initial storage in storage map, happens with Scan),"previous" (previously-returned memory), "c_contiguous", "f_contiguous", "strided" (positive and negative strides), "wrong_size" (larger and smaller dimensions), and "ALL" (all of the above).s(   DebugMode.check_preallocated_output_ndims   When testing with "strided" preallocated output memory, test all combinations of strides over that number of (inner-most) dimensions. You may want to reduce that number to reduce memory or time usage, but it is advised to keep a minimum of 2.i   c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR   9  s    s   profiling.time_thunkss%   Time individual thunks when profilings   profiling.n_applys-   Number of Apply instances to print by defaulti   c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR   C  s    s   profiling.n_opss!   Number of Ops to print by defaultc         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR   H  s    s   profiling.output_line_widths'   Max line width for the profiling outputi   c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR   M  s    s   profiling.min_memory_sizes   For the memory profile, do not print Apply nodes if the size
             of their outputs (in bytes) is lower than this thresholdi   c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR   S  s    s   profiling.min_peak_memorys&   The min peak memory usage of the orders   profiling.destinationsD   
             File destination of the profiling output
             t   stderrs   profiling.debugprintsE   
             Do a debugprint of the profiled functions
             s   profiling.ignore_first_callsM   
             Do we ignore the first call of a Theano function.
             s   optdb.position_cutoffsd   Where to stop eariler during optimization. It represent the position of the optimizer where to stop.s   optdb.max_use_ratios;   A ratio that prevent infinite loop in EquilibriumOptimizer.s   gcc.cxxflagss   Extra compiler flags for gccs   cmodule.warn_no_versions   If True, will print a warning when compiling one or more Op with C code that can't be cached because there is no c_code_cache_version() function associated to at least one of those Ops.s   cmodule.remove_gxx_opts   If True, will remove the -O* parameter passed to g++.This is useful to debug in gdb modules compiled by Theano.The parameter -g is passed by default to g++s   cmodule.compilation_warnings)   If True, will print compilation warnings.s   cmodule.preload_caches>   If set to True, will preload the C module cache at import times   cmodule.age_thresh_usesG   In seconds. The time after which Theano won't reuse a compile c module.i<   i   c          C` s  g  }  yt  t j d  r9 t j j r9 t j j j } nL d d  l a t j d t  , d t j j	 j	 _
 t j j	 j d  } Wd  QXd t j k rt } t j d k r d j d t j j t j d	  g g  d
 d d g D] } d | ^ q  St j d k rt j j t j d  } t j d d   } | d  k	 rMt j j |  } n  | d  k sn| | j d  k rt j d |  t } qn  | rd j d t j j t j d  g g  | d D] } d | ^ q Sn  d t j k rd } t j d k rd	 } n  t j j t j |  } t j j |  sRt j j t j d d d  } t j j |  slt d   t j |  }	 xB |	 D]: }
 t j j t j j | |
 |   s|	 j |
  qqWt |	  d k st d | |	 g  |	 D]$ }
 t j t j j | |
   ^ qf   t j j | |	 d |  } t j j |  sRt d   n  t j d k spt j d k rd j d | g g  | d D] } d | ^ q St j d k rd j d | g g  d
 d d g D] } d | ^ q Sn  y d d  l  } WnW t! k
 rV} t" g  d0 D] } | t j k r| ^ q r]|  j# d | f  q]nXt j d k rt j j t j d d   g } d | g } n2 | j$ d! g   } g  } | rd | d g } n  | g  d" d# d$ g D] } d | ^ q7} t% |  } | r| S| j& g  | j$ d! g   D] } d% | ^ q t% |  } | r]t' d& | d  | St j( d' k rrd( n d) } g  | j$ d! g   D] } d* | | | f ^ qg  | j$ d g   D] } d | ^ q| j$ d+ g   } t" d,   | D  r| j& d- d- g  n  t% |  } | r#| Sx |  D] } t j |   q*W~  | j& g  | j$ d! g   D] } d% | ^ q] t% |  } | r| St j d1 k rt j j t j d  } | j# d% |  t% |  } | r| Sn  Wn t) k
 rn Xt% d/ g  S(2   Nt
   __config__i    t   recordt   blas_optt   EPDR   RW   s   -L"%s"t   Scriptst   mk2_coret   mk2_intel_threadt   mk2_rts   -l%sR~   R   t   DYLD_FALLBACK_LIBRARY_PATHR   s   The environment variable 'DYLD_FALLBACK_LIBRARY_PATH' does not contain the '%s' path in its value. This will make Theano use a slow version of BLAS. Update 'DYLD_FALLBACK_LIBRARY_PATH' to contain the said value, this will disable this warning.s   -L%st	   librariest   Canopys   ..t   appdatas"   Canopy changed the location of MKLi   s5   Unexpected case when looking for Canopy MKL librariest   linux2t   condat	   Continuums0   install mkl with `conda install mkl-service`: %sR   R   t   library_dirst   mkl_coret   mkl_intel_threadt   mkl_rts   -Wl,-rpath,RK   R   s   "R>   s   -L%s%s%st   extra_link_argsc         s` s   |  ] } d  | k Vq d S(   t   mklN(    (   t   .0t   fl(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pys	   <genexpr>?  s    s   -lmt   linuxs   -lblas(   R   R   (   s   linuxs   darwin(*   t   hasattrt   numpyt	   distutilsR   t   blas_opt_infot   numpy.distutils.system_infot   warningst   catch_warningsR2   t   system_infot	   verbosityt   get_infoR   R   R   RR   RM   RO   t   prefixRN   R   t   realpathRC   R   R   RF   t   base_prefixRQ   R[   t   listdirt   removeRD   R   t   ImportErrorR\   t   appendR1   t   try_blas_flagt   extendR   t   namet   KeyError(   t   warn_recordt	   blas_infot   use_unix_epdt   lt   new_pathRE   t   subsubt   lib_pathR   t	   lib_pathst   subR   t   et   mR^   t   rest   path_wrappert   retR   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   default_blas_ldflags  s    
	!&	$	4!
#
	".		'V	'c         C` s   d d l  m } t j d  } t |   } t j d k r@ d n d } | j g  t j	 j
 j   D] } d | | | f ^ q_  | j | d d	 d
 | d t } | r | d r | d r d j |   Sd Sd  S(   Ni    (   t   GCC_compilers          extern "C" double ddot_(int*, double*, int*, double*, int*);
        int main(int argc, char** argv)
        {
            int Nx = 5;
            int Sx = 1;
            double x[5] = {0, 1, 2, 3, 4};
            double r = ddot_(&Nx, x, &Sx, x, &Sx);

            if ((r - 30.) > 1e-6 || (r - 30.) < -1e-6)
            {
                return -1;
            }
            return 0;
        }
        R   s   "R>   s   -L%s%s%st
   tmp_prefixt	   try_blas_R^   t   try_runi   RW   (   t   theano.gof.cmoduleR  t   textwrapt   dedentt   listRM   R   R   Rx   t   goft   cmodulet   std_lib_dirst   try_compile_tmpR2   RR   (   R^   R  t	   test_codet   cflagsR  t   dR  (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR   i  s    	9s   blas.ldflagss;   lib[s] to include for [Fortran] level-3 blas implementations   metaopt.verboses)   Enable verbose output for meta optimizerst   profiles(   If VM should collect profile informationt   profile_optimizers2   If VM should collect optimizer profile informationt   profile_memorys<   If VM should collect memory profile information and print itc         C` sh   |  d k s |  t  k r t  S|  d k s4 |  t k r8 t S|  d k sP |  d  k rT d  St d |    d  S(   NRF   R2   R   sN   Valid values for an vm.lazy parameter should be None, False or True, not `%s`.(   RF   R2   R   R+   (   R-   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   filter_vm_lazy  s    s   vm.lazys   Useful only for the vm linkers. When lazy is None, auto detect if lazy evaluation is needed and use the apropriate version. If lazy is True/False, force the version used between Loop/LoopGC and Stack.s   warn.identify_1pexp_bugs}   Warn if Theano versions prior to 7987b51 (2011-12-18) could have yielded a wrong result due to a bug in the is_1pexp functiont   on_shape_errorsF   warn: print a warning and use the default value. raise: raise an errors+   tensor.insert_inplace_optimizer_validate_nbs6   -1: auto, if graph have less then 500 nodes 1, else 10s!   experimental.local_alloc_elemwises   DEPRECATED: If True, enable the experimental optimization local_alloc_elemwise. Generates error if not True. Use optimizer_excluding=local_alloc_elemwise to dsiable.c         C` s   |  S(   N(    (   t   x(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    s(   experimental.local_alloc_elemwise_assertsR   When the local_alloc_elemwise is applied, add an assert to highlight shape errors.s   scan.allow_gcs1   Allow/disallow gc inside of Scan (default: False)s   scan.allow_output_preallocsN   Allow/disallow memory preallocation for outputs inside of scan (default: True)s
   scan.debugs4   If True, enable extra verbose output related to scans   pycuda.inits  If True, always initialize PyCUDA when Theano want to
                initilize the GPU.  Currently, we must always initialize
                PyCUDA before Theano do it.  Setting this flag to True,
                ensure that, but always import PyCUDA.  It can be done
                manually by importing theano.misc.pycuda_init before theano
                initialize the GPU device.
                  s
   cublas.libs-   Name of the cuda blas library for the linker.t   cublass	   lib.cnmemsi  Do we enable CNMeM or not (a faster CUDA memory allocator).

             The parameter represent the start size (in MB or % of
             total GPU memory) of the memory pool.

             0: not enabled.
             0 < N <= 1: % of the total GPU memory (clipped to .985 for driver memory)
             > 0: use that number of MB of memory.

             c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    s   compile.waits8   Time to wait before retrying to aquire the compile lock.i   c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    c           C` s   t  j j j d S(   Ni   (   Rx   Ry   t   compilet   wait(    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   _timeout_default  s    s   compile.timeouts-  In seconds, time that a process will wait before deciding to
override an existing lock. An override only happens when the existing
lock is held by the same owner *and* has not been 'refreshed' by this
owner for more than this period. Refreshes are done every half timeout
period for running processes.c         C` s
   |  d k S(   Ni    (    (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyR     s    s   -dumpversiont   GCC_NOT_FOUNDc           C` s   t  j d  d S(   s   
    Return 32 for 32bit arch, 64 for 64bit arch.

    By "architecture", we mean the size of memory pointers (size_t in C),
    *not* the size of long int, as it can be different.

    t   Pi   (   t   structt   calcsize(    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   local_bitwidth,  s    c           C` s   t  j d  d S(   s   
    Return the bit width of Python int (C long int).

    Note that it can be different from the size of a memory pointer.

    R  i   (   R+  R,  (    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   python_int_bitwidth;  s    R   t	   processort   python_versiont   python_bitwidthR.  t   theano_versiont   numpy_versionRW   t   _t   gxx_versiont   hostnamec         C` s  |  d k r t j   }  n  | d k r6 t j   } n  |  j d  } t |  d k  r[ | S| d j d  } t |  d k r | Sd j | d   | d <| d j d  } x+ t |  r | d j   r | d =q Pq Wd j |  | d <d j |  } | j |  |  } | S(   s
  
    Return a safe shorter version of platform.platform().

    The old default Theano compiledir used platform.platform in
    it. This use the platform.version() as a substring. This is too
    specific as it contain the full kernel number and package
    version. This cause the compiledir to change each time there is a
    new linux kernel update. This function remove the part of platform
    that are too precise.

    If we have something else then expected, we do nothing. So this
    should be safe on other OS.

    Some example if we use platform.platform() direction. On the same
    OS, with just some kernel updates.

    compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.6-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-431.29.2.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-431.23.3.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-431.20.3.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-431.17.1.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-431.11.2.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-431.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-358.23.2.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-358.6.2.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-358.6.1.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-358.2.1.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-358.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6-64
    compiledir_Linux-2.6.32-358.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-279.14.1.el6.x86_64-x86_64-with-redhat-6.4-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-279.14.1.el6.x86_64-x86_64-with-redhat-6.3-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-279.5.2.el6.x86_64-x86_64-with-redhat-6.3-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-220.13.1.el6.x86_64-x86_64-with-redhat-6.3-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-220.13.1.el6.x86_64-x86_64-with-redhat-6.2-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-220.7.1.el6.x86_64-x86_64-with-redhat-6.2-Santiago-x86_64-2.6.6
    compiledir_Linux-2.6.32-220.4.1.el6.x86_64-x86_64-with-redhat-6.2-Santiago-x86_64-2.6.6

    We suppose the version are ``X.Y[.*]-(digit)*(anything)*``. We keep ``X.Y``
    and don't keep less important digit in the part before ``-`` and we remove
    the leading digit after the first ``-``.

    If the information don't fit that pattern, we do not modify platform.

    RX   i   i    t   .i   N(   R   R   t   releaseRC   RD   RR   t   isdigitt   replace(   t   rR   t   spt   kernel_versiont   restt   sr(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   short_platformR  s(    -
R@  s   , sR   compiledir_%(short_platform)s-%(processor)s-%(python_version)s-%(python_bitwidth)st   compiledir_formats                    Format string for platform-dependent compiled
                 module subdirectory (relative to base_compiledir).
                 Available keys: %s. Defaults to %r.
             c          C` s)   t  j j t }  t j d d |   } | S(   Ns
   [\(\)\s,]+R4  (   Rx   Ry   RA  t   compiledir_format_dictt   reR	  (   t	   formattedt   safe(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   default_compiledirname  s    c         C` s   t  j j t |    S(   N(   RM   RO   t
   expanduserRZ   (   RO   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   filter_base_compiledir  s    c         C` s\  t  j j |   }  t  j j |   }  t  j |  t  j  rr t  j |  t  j t  j Bt  j B s t	 d |    q nO y t  j
 |  d  Wn8 t k
 r } | j t j k r t	 d |    q n Xt  j j |  d  } t  j j |  sXy t | d  j   WqXt k
 rT} t  j j |  r&qU| j d |  t  j j |   f f 7_   qXXn  |  S(   NsM   compiledir '%s' exists but you don't have read, write or listing permissions.i  sF   Unable to create the compiledir directory '%s'. Check the permissions.s   __init__.pyt   ws   %s exist? %s(   RM   RO   RG  R   t   accesst   F_OKt   R_OKt   W_OKt   X_OKR+   t   makedirst   OSErrort   errnot   EEXISTRR   RQ   t   opent   closet   IOErrort   args(   RO   R
  t	   init_file(    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   filter_compiledir  s0    #(
c          C` sd   t  j d  }  |  d k rN t  j j d  }  |  d k rN t  j d  }  qN n  |  d k	 s` t  |  S(   s8   
    Return location of the user's home directory.

    t   HOMEt   ~t   USERPROFILEN(   RM   RN   R   RO   RG  R[   (   R   (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   get_home_dir  s    t   LOCALAPPDATAt   Theanos   .theanot   base_compiledirs8   platform-independent root directory for compiled modulesc           C` s   t  j j t j j t    S(   N(   RM   RO   RR   Rx   Ry   R_  RF  (    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   default_compiledir	  s    		t
   compiledirs7   platform-dependent cache directory for compiled moduless(   Theano does not recognise this flag: {0}(
   Rk   s   noneRm   Rn   Ro   Rp   Rq   Rr   Rs   Rt   (	   s   noneRu   Rn   Ro   Rp   Rq   Rr   Rs   Rt   (   s   noneRu   Rn   Rk   Rq   Rr   Rs   Rt   (   s2   Sets numpy's behaviour for floating-point errors, sD  see numpy.seterr. 'None' means not to change numpy's default, which can be different for different numpy releases. This flag sets the default behaviour for all kinds of floating-point errors, its effect can be overriden for specific errors by the following flags: seterr_divide, seterr_over, seterr_under and seterr_invalid.i  iQ i  (v   t
   __future__R    R   R   RQ  RM   R   t   loggingR   R   R  RC  t   socketR+  R   t   sixR   Rx   t   theano.configparserR   R   R   R   R   R	   R
   R   R   t   theano.misc.cpucountR   t   theano.misc.windowsR   R   t   theano.compatR   t	   getLoggerR   Ry   R   R2   RF   R%   RA   RV   R`   Rg   Rh   Rj   t   SUPPORTED_DNN_CONV_ALGO_FWDt    SUPPORTED_DNN_CONV_ALGO_BWD_DATAt"   SUPPORTED_DNN_CONV_ALGO_BWD_FILTERR|   R   t   rcRP  RO   RR   RS   t
   executablet   mingw_w64_gccR   t   distutils.spawnR   t   spawnt   find_executablet   newpR   R   R   R   t   typet
   is_defaultR   R   RN   t   varR$   R+   t	   TypeErrort   default_openmpt   countR   R   t   infR  R   t   configparserR"  R(  t   p_outt   stript   decodet   gcc_version_strR-  R.  R/  R0  t   __version__R:  t   gethostnameRB  R@  R;   t   sortedt   keyst   compiledir_format_keyst   default_compiledir_formatt   fillR  RF  RH  RX  R\  t   default_base_compiledirR`  t   keyR   t   format(    (    (    s5   /tmp/pip-build-X4mzal/theano/theano/configdefaults.pyt   <module>   s  @		
									      			'	
- 
			

		 									
	
	
		!		
		
		



K			+	$!			