How do I use TensorFlow GPU?

前端 未结 7 1768
予麋鹿
予麋鹿 2020-11-28 06:00

How do I use TensorFlow GPU version instead of CPU version in Python 3.6 x64?

import tensorflow as tf

Pytho

相关标签:
7条回答
  • 2020-11-28 06:59

    I tried following the above tutorial. Thing is tensorflow changes a lot and so do the NVIDIA versions needed for running on a GPU. The next issue is that your driver version determines your toolkit version etc. As of today this information about the software requirements should shed some light on how they interplay:

    NVIDIA® GPU drivers —CUDA 9.0 requires 384.x or higher.
    CUDA® Toolkit —TensorFlow supports CUDA 9.0.
    CUPTI ships with the CUDA Toolkit.
    cuDNN SDK (>= 7.2) Note: Make sure your GPU has compute compatibility >3.0
    (Optional) NCCL 2.2 for multiple GPU support.
    (Optional) TensorRT 4.0 to improve latency and throughput for inference on some models.
    

    And here you'll find the up-to-date requirements stated by tensorflow (which will hopefully be updated by them on a regular basis).

    0 讨论(0)
提交回复
热议问题