I am training neural nets with theano and lasagne on a 4 GPU machine. My .theanorc
contains the following lines:
[global]
device = gpu0
So when in python I execute import theano
, I get Using gpu device 0: GRID K520
What if, after importing theano, I chose to use say gpu1? I'd like to do this dynamically, that is, without editing .theanorc
is it possible? Or even to choose it at runtime?