Can I implement deep learning models in my laptop with intel hd graphics

后端 未结 3 1615
醉话见心
醉话见心 2021-01-04 19:50

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 hav

3条回答
  •  逝去的感伤
    2021-01-04 20:04

    You can install and use keras without cuda, but you can't get gpu accelerating with intel hd graphics.

    If you use Theano as keras' backend, first install Theano:

    # for python2
    pip install theano
    # for python3
    pip3 install theano
    

    Then set ~/.theanorc file like this:

    [global]
    floatX = float32
    device = cpu
    allow_gc = True
    
    [blas]
    ldflags = -lopenblas
    

    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
    

    Then install keras:

    # for python2
    pip install keras
    # for python3
    pip3 install keras
    

提交回复
热议问题