官术网_书友最值得收藏!

Installing TensorFlow GPU

If you have a TensorFlow supported GPU, you can install TensorFlow GPU version to speed up your training process. TensorFlow provides support for NVIDIA CUDA enabled GPU cards. You can refer to the following link to check whether your GPU card is supported or not: https://www.tensorflow.org/install/gpu.

To install TensorFlow GPU version through native pip, one has to go through a list of tedious processes:

  1. Download and install the CUDA Toolkit for your operating system 
  2. Download and install cuDNN library (to support deep learning computations in GPU)
  3. Add path variables for CUDA_HOME and CUDA Toolkit
  4. Install TensorFlow GPU through pip

Thankfully, however, Anaconda, have compiled everything in a single command—from compatible CUDA Toolkit, cuDNN library, to TensorFlow-GPU. If you already have TensorFlow CPU installed in the current environment, you can deactivate the environment and make a new environment for TensorFlow GPU. You can simply run the following command in your Conda environment and it will download and install everything for you:

# deactivate the environment
conda deactivate

# create new environment
conda create -n tf_gpu

#activate the environment
conda activate tf_gpu

# let conda install everything!
conda install tensorflow-gpu

Once you are done installing, it's time to test your installation!

主站蜘蛛池模板: 罗定市| 汽车| 吉木萨尔县| 吉安县| 家居| 吴川市| 清水河县| 宝丰县| 宝丰县| 海淀区| 宁国市| 岳阳县| 思南县| 宝鸡市| 洛扎县| 通江县| 祥云县| 南投市| 卓资县| 绩溪县| 明溪县| 嘉祥县| 洞头县| 余姚市| 濮阳县| 辉南县| 富川| 定日县| 广南县| 新宁县| 桦南县| 灵丘县| 共和县| 云安县| 秦皇岛市| 措美县| 兰西县| 冕宁县| 泰和县| 黄石市| 景宁|