from http://deeplearning.net/software/theano/library/config.html it appears that "to load configuration files {.theanorc} in the current working directory, append .theanorc to the list of configuration files, e.g. THEANORC=~/.theanorc:.theanorc. Therefore in python I did the following: import theano THEANORC="C:\SciSoft\.theanorc.txt" The python >> prompt returned with no error messages. Is this the correct implementation to modify the .theanorc configurations? Best, Arnold ==============================================.
On Wednesday, October 25, 2017 at 12:07:17 PM UTC-4, [email protected] wrote: > In what folder does the following .theanorc.txt file go now that I am > using theano v9 and python 3.6. I want to be sure that the device = gpu > when I test my CNN. > ================================== > [global] > device = gpu > REM device = cpu > floatX=float32 > [nvcc] > flags = -LC:\SciSoft\Python36\libs > compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin > ================================================== > > > FYI, I just installed theano-0.9.0-py36_0 and have successfully run the > following script to test theano for CPU: > ====================================== > import numpy as np > import time > import theano > A=np.random.rand(1000,10000).astype(theano.config.floatX) > B=np.random.rand(10000,1000).astype(theano.config.floatX) > np_start = time.time() > AB=A.dot(B) > np_end=time.time() > X,Y=theano.tensor.matrices ('XY') > mf = theano.function([X,Y],X.dot(Y)) > t_start=time.time() > tAB=mf(A,B) > t_end=time.time() > print("NP time:%f[s], theano time: %f[s]" %(np_end-np_start, > t_end-t_start)) > ============================================= > > > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
