我可以使用英特尔高清显卡在笔记本电脑中实现深度学习模型吗 [英] Can I implement deep learning models in my laptop with intel hd graphics
问题描述
我目前正在为我的硕士学位做一个深度学习项目.我想安装 keras 库,所以当我开始安装 Theano 和 tensorflow 时,我看到我必须安装 CUDA.但是我的笔记本电脑带有英特尔高清显卡.所以我的问题是,如果我无论如何都安装它们,它会起作用.谢谢
I am currently doing a project on deep learning for my masters degree. I wanted to install keras library, so when I started installing Theano and tensorflow i saw that i have to install CUDA. But my laptop comes with intel hd graphics. So my question is will it work if i install them anyway. Thanks
推荐答案
你可以在没有 cuda 的情况下安装和使用 keras,但你不能用 intel 高清显卡加速 gpu.
You can install and use keras without cuda, but you can't get gpu accelerating with intel hd graphics.
如果你使用 Theano 作为 keras 的后端,首先安装 Theano:
If you use Theano as keras' backend, first install Theano:
# for python2
pip install theano
# for python3
pip3 install theano
然后像这样设置 ~/.theanorc 文件:
Then set ~/.theanorc file like this:
[global]
floatX = float32
device = cpu
allow_gc = True
[blas]
ldflags = -lopenblas
如果您使用 TensorFlow 作为 keras 的后端,只需安装 TensorFlow 的 CPU 版本即可.
If you use TensorFlow as keras' backend, just install the CPU version of TensorFlow.
# for python2.7
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp27-none-linux_x86_64.whl
# for python3.4
pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp34-cp34m-linux_x86_64.whl
# for python3.5
pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp35-cp35m-linux_x86_64.whl
然后安装keras:
# for python2
pip install keras
# for python3
pip3 install keras
这篇关于我可以使用英特尔高清显卡在笔记本电脑中实现深度学习模型吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!