CPU上的Theano CNN:AbstractConv2d Theano优化失败 [英] Theano CNN on CPU: AbstractConv2d Theano optimization failed

查看:467
本文介绍了CPU上的Theano CNN:AbstractConv2d Theano优化失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用CIFAR10数据集为我的大学的一次研讨会训练用于图像检测的CNN,但是出现以下错误:

I'm trying to train a CNN for object detection on images with the CIFAR10 dataset for a seminar at my university but I get the following Error:

AssertionError:AbstractConv2d Theano优化失败:没有 可用的实现支持所请求的选项.你是否 从优化程序中同时排除"conv_dnn"和"conv_gemm"?如果在GPU上, cuDNN是否可用,GPU是否支持它?如果在CPU上,您有 安装了Theano的BLAS库是否可以链接?

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?

我正在从Windows 10机器在Jupyter笔记本(在CPU上进行CNN培训)中运行Anaconda 2.7.由于我已经使用git clone更新到最新的theano版本,因此我尝试了以下操作:

I am running Anaconda 2.7 within a Jupyter notebook (CNN training on CPU) from a Windows 10 machine. As I already have updated to the newest theano version using git clone I tried the following things:

  • 直接从代码THEANO_FLAGS='optimizer_excluding=conv_dnn, optimizer_excluding=conv_gemm'
  • 中排除dnn和gemm
  • 直接从cmd输入THEANO_FLAGS='...' python <myscript>.py中排除dnn和gemm,这不会令人惊讶地给出未知命令"错误.
  • 从我放入C:/user/myusername的.theanorc.txt中排除dnn和gemm
  • exclude dnn and gemm directly from within the code THEANO_FLAGS='optimizer_excluding=conv_dnn, optimizer_excluding=conv_gemm'
  • exclude dnn and gemm directly from cmd typing THEANO_FLAGS='...' python <myscript>.py which not suprisingly gives an "unknown command" error.
  • exclude dnn and gemm from a .theanorc.txt which I put into C:/user/myusername

不幸的是,我仍然遇到相同的错误,当我调用print(teano.config)时,术语"conv_dnn"和"conv_gemm"没有出现.

Unfortunately, I still get the same error and when I call print(teano.config) the terms "conv_dnn" and "conv_gemm" do not appear.

  • 此外,我尝试使用Dependencywalker.com上的工具找出我的numpy软件包使用的BLAS(通常适用于该软件包)以及该软件包是否是静态的,但我失败了

所以这是我的问题:在地球上如何正确设置theano标志,以及如何检查是否成功进行了设置?如果那没有帮助,我如何检查正在构建的BLAS?我应该使用哪一个,以及如何更改theano的依赖关系?

So here's my question: How on earth can I set the theano flags properly and how can I check if I suceeded in doing so? If that doesn't help, how can I check what BLAS I am building? Which one should I use and how can I change the dependency for theano?

正如您可能已经猜到的那样,在所有这些程序包,依赖项,构建的和其他奇特的计算机科学方面,我不是专家,而我发现的文档仅不是noob证明,所以我非常感谢你们可以帮助我!

As you might have guessed I am not an expert when it comes to all this package, dependency, built and other fancy computer science stuff and the documentation I find only is just not noob proof so I would be most grateful I you guys could help me out!

最佳

乔纳斯(Jonas)

推荐答案

向.theanorc文件添加一行

Add one line to .theanorc file

optimizer = None

作为全局配置.

这篇关于CPU上的Theano CNN:AbstractConv2d Theano优化失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆