theano未实现错误
我在运行一些使用了 tensor.advanced_subtensor 的 Theano 代码时,遇到了以下错误:
NotImplementedError: Could not import inplace_increment, so some advanced indexing features are disabled. They will be available if you update NumPy to version 1.8 or later, or to the latest development version. You may need to clear the cache (theano-cache clear) afterwards.
我安装了最新版本的 Theano(0.6.0.dev-60b5ccc2bcabb1010714376764daf8a50722cee9)和 numpy(1.8.0)。为什么我还是会遇到这个错误?我该如何解决这个错误?怎么清理 Theano 的缓存?
2 个回答
0
你需要清理Theano的缓存。缓存存放在~/.theano/这个文件夹里。
import theano
print (theano.config.compiledir)
# and then delete directory returned from above.
如果你不想手动删除,可以使用下面的命令。
theano-cache purge
0
Theano的缓存通常会存放在 ~/.theano/
这个地方,如果你使用的是类Unix系统(比如Linux或Mac)。