我一直在使用Lasagne一段时间来运行神经网络。我已经通过从github上下载repo来安装它,然后执行python setup.py install
。 今天我试着更新到最新版本。这是我所做的:Theano警告:相同的缓存键被关联到不同的模块
- 重命名lasagne_old的上一个lasagne文件夹。
- 创建新的文件夹烤宽面条用新的回购
- python setup.py install
安装完成罚款。 但是当我尝试运行一般的神经网络它开始给错误:
from lasagne import nonlinearities
from lasagne import layers
from lasagne.updates import nesterov_momentum
Using gpu device 0: GeForce GTX 750 Ti
from nolearn.lasagne import NeuralNet
WARNING (theano.gof.cmodule): The same cache key is
associated to different modules (/home/g/.theano/compiledir_Linux-3.11.0-26-generic-x86_64-with-debian-wheezy-sid-x86_64-2.7.9-64/tmpRIO67Y/c07737f1d301ae23e9d459b32aa6f2b5.so and
/home/g/.theano/compiledir_Linux-3.11.0-26-generic-x86_64-with-debian-
wheezy-sid-x86_64-2.7.9-64/tmpwUH2fJ/57987abfa26302054d6be91525f69179.so).
This is not supposed to happen! You may need to manually delete your cache directory to fix this.
我怎么能解决这个问题?而且,向前推进,从回购更新软件包的正确方法是什么?
尽管此代码可以回答这个问题,提供额外的[背景](HTTPS: //meta.stackexchange.com/q/114762)关于_how_和/或_why_它解决了这个问题会提高答案的长期价值。它也不会提到为什么这个答案比其他答案更合适。 –
是的,'清除'可能不会完全删除缓存,然后会有警告。 'purge'将清理所有这些。取决于编译器安装等依赖性,可能会有一些问题。那么我会重新安装theano。 – gnuchoi