Cov txheej txheem:

Kuv yuav nruab TensorFlow li cas?
Kuv yuav nruab TensorFlow li cas?

Video: Kuv yuav nruab TensorFlow li cas?

Video: Kuv yuav nruab TensorFlow li cas?
Video: Kuv Tsis Paub Yuav Ua Li Cas - Tupao Xiong (Lyrics) 2024, Kaum ib hlis
Anonim

Nruab TensorFlow CPU rau Python

  1. Qhib lub qhov rais Anaconda / Command Prompt tshiab thiab qhib lub tensorflow_cpu ib puag ncig (yog tias koj tsis tau ua li ntawd lawm)
  2. Thaum qhib, ntaus cov hauv qab no ntawm kab hais kom ua: pip nruab --tsis quav ntsej- ntsia --upgrade tensorflow ==1.
  3. Tos rau lub kev teeb tsa ua kom tiav.

Tsis tas li ntawd, kuv yuav rub tawm TensorFlow li cas?

Tsim. yml cov ntaub ntawv rau nruab Tensorflow thiab dependencies

  1. Nrhiav txoj kev ntawm Anaconda.
  2. Teem lub chaw ua haujlwm rau Anaconda.
  3. Tsim cov ntaub ntawv yml (Rau cov neeg siv MacOS, TensorFlow tau teeb tsa ntawm no)
  4. Kho cov ntaub ntawv yml.
  5. Sau cov ntaub ntawv yml.
  6. Qhib Anaconda.
  7. Nruab TensorFlow (Windows neeg siv nkaus xwb)

Tsis tas li ntawd, kuv yuav ua li cas rau nruab TensorFlow ntawm Windows 10?

  1. Kauj ruam 1: Xyuas cov software koj yuav tsum tau rau nruab.
  2. Kauj ruam 2: Download Visual Studio Express.
  3. Kauj ruam 3: Download CUDA Toolkit rau Windows 10.
  4. Kauj ruam 4: Download Windows 10 CUDA thaj ua rau thaj.
  5. Kauj ruam 5: Download tau thiab nruab cuDNN.
  6. Kauj ruam 6: Nruab Python (yog tias koj tsis tau muaj nws)
  7. Kauj ruam 7: Nruab Tensorflow nrog GPU txhawb.

Yog li ntawd, kuv yuav ua li cas rau nruab TensorFlow hauv zos?

HOWTO: Nruab Tensorflow hauv zos

  1. Clone python installation rau hauv zos directory. Peb lwm txoj kev tsim cov lus txib tau teev tseg.
  2. Qhib ib puag ncig clone. Rau lub plhaub bash: qhov chaw qhib hauv zos.
  3. Nruab pob. Nruab qhov tseeb version ntawm tensorflow uas yog gpu tshaj.
  4. Test python pob.
  5. Nruab koj tus kheej python modules.

Puas yog Python 3.7 txhawb TensorFlow?

TensorFlow kos npe rau Python 3 Nqe lus thiab 2.0 yuav txhawb nqa Python 3.5i ib 3.7 (Tau qhov teeb meem 25429). Yog li xyuas kom tseeb tias koj muaj Python version 2.7 lossis 3.6. Yog tias koj muaj ntau yam Python versions nyob rau hauv koj lub hauv paus ib puag ncig, koj tuaj yeem qhia qhov Python version thaum tsim ib puag ncig virtual.

Pom zoo: