python - 无法在纯 CPU Caffe 中使用 GPU : check mode

标签 python installation caffe

我正在使用在 CPU 上运行的旧版 caffe 设置。

我切换了一行代码:

caffe.set_mode_cpu()

至:

caffe.set_mode_gpu()

但我收到错误:

Cannot use GPU in CPU-only Caffe: check mode.

我检查了Makefile.config,相关设置是:

#CPU-only switch (uncomment to build without GPU support)
CPU_only := 1

我假设 1 是 True,所以我改为

CPU_only := 0

但这并没有帮助。

有什么线索吗?

最佳答案

您需要更改:

#CPU-only switch (uncomment to build without GPU support)
CPU_only := 1

对此:

#CPU-only switch (uncomment to build without GPU support)
#CPU_only := 1

并重建。

关于python - 无法在纯 CPU Caffe 中使用 GPU : check mode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40382361/

相关文章:

python - 如何在python中通过paaver安装模块?

machine-learning - Caffe:使用 Scale 层添加 Softmax 温度

已安装并识别 python 模块,但无法将其导入我的代码或 Ubuntu 上的 python 2.7.1 解释器

machine-learning - 咖啡 | solver.prototxt值设置策略

c++ - 将输入层 reshape 为单 channel 和 multimap 像

python - python操作数据库报错

python - Python中有没有像Perl的splice一样的内置函数?

python - 在没有 HTML 格式化程序的情况下删除 python 中的 html 标签

python - 如何覆盖 Django 模型创建而不影响更新?

python - cx_Freeze 和 Python 3.3