How do I setup the theano arc? I don’t have any usr or local or cuda folders. I’m dual booting and am trying this on ubuntu. My own computer has cpu only and I haven’t set-up aws yet. Would that be need to be set to something else for cpu only right now until it connects to aws?
Also the error mysteriously changed from that to:
/home/daniel/anaconda2/lib/python2.7/site-packages/keras/backend/theano_backend.pyc in in_train_phase(x, alt)
1172 elif _LEARNING_PHASE is 0:
1173 return alt
-> 1174 x = theano.ifelse.ifelse(_LEARNING_PHASE, x, alt)
1175 x._uses_learning_phase = True
1176 return x
AttributeError: 'module' object has no attribute 'ifelse'
Just like someone else commented, a reboot fixed this problem…got a different one though - “To use MKL 2018 with Theano you MUST set “MKL_THREADING_LAYER=GNU” in your environement.”…off I go searching again
I’ve installed anaconda but not explicitly installed cuda. My own computer doesn’t have nvidia driver so I wanted to run on my own computer with cpu only before moving onto aws to save money.
I also got the same error after conda install from requirements.txt
For some of the guys the system reboot does solved the problem. For me the following steps solved the issue.
Uninstall theano. Then install theano requirement packages
$ conda install mkl nose sphinx pydot-ng
Then
$ conda install theano
I’ve tried uninstalling theano to install the dependencies and reinstalling thano; I do have an environment variable set so that $MKL_THREADING_LAYER = GNU .
I’m just ramping up into the fast.ai course so my problem could be something obvious - I appreciate any suggestion of what to check!
I am pretty sure you’re right - the truth is that I don’t know where to find the course part 1 v2 notebooks. I am hoping to do the course on the AWS EC2 instance I have rather than paperspace.
i got the same problem and the better solution to me was to uninstall the existing version of mkl and install the 2017 version of mkl using conda conda install mkl=2017