我可以在具有英特尔高清显卡的笔记本电脑中实现深度学习模型吗 [英] Can I implement deep learning models in my laptop with intel hd graphics

查看:533
本文介绍了我可以在具有英特尔高清显卡的笔记本电脑中实现深度学习模型吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为我的硕士学位做一个关于深度学习的项目.我想安装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 HD图形加速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的后端,则只需安装CPU版本的TensorFlow.

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屋!

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