Theano断言错误

时间:2016-09-07 12:49:47

标签: python theano blas keras intel-mkl

当我运行Theano并想要训练2D卷积网络时,我收到以下错误:

ERROR (theano.gof.opt): Optimization failure due to: local_abstractconv_check
ERROR (theano.gof.opt): node: AbstractConv2d{border_mode='half', subsample=(1, 1), filter_flip=True, imshp=(None, None, None, None), kshp=(32, 3, 3, 3), filter_dilation=(1, 1)}(convolution2d_input_1, convolution2d_1_W)
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
  File "C:\Users\nicol\Anaconda3\envs\py34\lib\site-packages\theano\gof\opt.py", line 1820, in process_node
    replacements = lopt.transform(node)
  File "C:\Users\nicol\Anaconda3\envs\py34\lib\site-packages\theano\tensor\nnet\opt.py", line 409, in local_abstractconv_check
    node.op.__class__.__name__)
AssertionError: AbstractConv2d Theano optimization failed: there is no implementation available supporting the requested options. Did you exclude both "conv_dnn" and "conv_gemm" from the optimizer? If on GPU, is cuDNN available and does the GPU support it? If on CPU, do you have a BLAS library installed Theano can link against?

我安装了带有最新版本Theano的python 3.4的Anaconda(包括MKL)。我还安装了mingw和libpython。我通过运行Theanom提供的check_blas.py脚本检查了BLAS的存在,该脚本说Theano通过numpy连接到BLAS。

我现在不会出现什么问题,仍然(好奇地)想要优化器工作。我已经在网上看到了几个有这个问题的帖子,但除了安装别的东西或没有使用优化器之外,他们都没有得到真正的解决方案。有谁知道如何防止这个错误?

0 个答案:

没有答案