mod.cu(299): error: identifier ''callkernel_node_……'' is undefined

来源:互联网 发布:dns的端口号 编辑:程序博客网 时间:2024/05/17 02:10

版本信息:

windows10

numpy1.12.0
theano0.8.2
pip8.1.2
Anconda2.7
CUDA7.5
cudnn-7.5-windows7-x64-v5.0-ga
keras1.2.1

GCC4.7.0


运行mnist_cnn.py没有问题,运行imdb_lstm,出错:

mod.cu(299): error: identifier ''callkernel_node_3a084fd032db206a67ca8121a24aa32e_0'' is undefined
1 error detected in the compilation of ''C:Users/aa/AppData/Local/Temp/tmpxft_000041d4_00000000-10_mod.cpp1.ii''


后来发现运行带rnn层的都会出现这个error.

于是各种猜想:cuda版本太低?theano版本低?

百度不到,无奈转谷歌,没用vpn,无奈网速太慢,各种打不开。

于是到github keras提issue (https://github.com/fchollet/keras/issues/5336),第二天就有人回了。

将keras降为1.2.0就运行成功了。总之可以运行了,具体原因还未知。

pip uninstall keras

pip install keras==1.2.0


另外,我尝试修改;theanorc.txt的参数,也可以运行成功。但是就是速度太慢了。

在global处加上   optimizer=None  即可。


另外,如果想升级theano 到dev版本,可以

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

因为前一步成功了,所以这一步没有尝试。



1 0
原创粉丝点击