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

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!

主站蜘蛛池模板: 武山县| 平舆县| 米林县| 南汇区| 宁安市| 明水县| 黄骅市| 阜康市| 威信县| 布拖县| 茌平县| 新蔡县| 勃利县| 客服| 麟游县| 天门市| 广丰县| 怀远县| 门头沟区| 万州区| 泰兴市| 循化| 大英县| 昔阳县| 安丘市| 宁乡县| 达尔| 法库县| 长治县| 东宁县| 万安县| 同心县| 长宁区| 铜陵市| 惠安县| 渑池县| 鄂州市| 绥江县| 祁连县| 囊谦县| 浦县|