我使用Lasagne运行神经网络已经有一段时间了。我是通过从github下载repo然后执行python setup.py install来安装它的。今天我试着更新到最新的版本。这就是我所做的:
将上一个千层面文件夹-rename到lasagne_old。
用新的存储库-create一个新的千层面文件夹
-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.我该怎么解决这个问题呢?接下来,从repo更新包的正确方法是什么?
发布于 2016-02-17 20:32:30
使用命令theano-cache clear。我遇到了类似的问题,它解决了它。希望能对你有所帮助
如果您使用yum/apt-get安装了NumPy/SciPy,那么使用pip/easy_install更新NumPy/SciPy并不总是一个好主意。这可能会使Theano由于BLAS的问题而崩溃(但请参见下文)。发行版中的NumPy/SciPy版本有时会与更快版本的BLAS相关联。使用yum/apt-get/pip/easy_install安装NumPy/SciPy不会安装使用快速版本重新编译它所需的开发包。这意味着如果您不手动安装开发包,当您重新编译更新后的NumPy/SciPy时,它将使用较慢的版本进行编译。这也会导致Theano的速度变慢。要修复崩溃,可以像这样清除Theano缓存:
theano-cache clear发布于 2017-03-22 00:59:00
$ theano-cache clear以及可选的
$ theano-cache purgehttps://stackoverflow.com/questions/29828908
复制相似问题