python - Theano Test File Will Not Compile -
i have been trying install theano windows 7 64 bit machine based off of tutorial found on website here. have gotten work after installing cuda 5.5 , continuing on verifying programs these commands:
"please so, , verify following programs found:
- where gcc
- where gendef
- where cl
- where nvcc"
the first 3 work fine last 1 returns "info: not find files given pattern(s)." not sure why because installed cuda , nvcc should found. causing larger problem because when try run test file:
import numpy np import time import theano = 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] (times should close when run on cpu!)" %(np_end-np_start, t_end-t_start) print "result difference: %f" % (np.abs(ab-tab).max(), ) eclipsed throws error @ fourth line under config saying "undefined variable import: config". when run anyways error in console "attributeerror: 'module' object has no attribute 'config'"
any suggestions or advice on of appreciated.
the first problem fixed in comments on question.
for import, suggest uninstall theano. many times make sure remove version. depending how installed python, have installed old version of theano @ same time.
then install theano development version.
then can't find theano.config, of time because there problem in installation or use old version had problems related windows.
Comments
Post a Comment