天天看點

Theano下怎麼配置GPU和cudnn加速

其實Theano下配置GPU和cudnn很簡單,也很友善。

就隻要cd到/home目前使用者的檔案夾,其實也就是終端剛打開時的路徑。

gedit ~/.theanorc           

添加下面内容就可以:

[global]
floatX=float32
device=gpu
[nvcc]
fastmath=True           

So easy!!!