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

Installing TensorFlow

The best programming support for TensorFlow is provided for Python (although libraries do exist for Java, C, and Go, while those for other languages are under active development).

There is a wealth of information on the web for installing TensorFlow for Python.

It is standard practice, also recommended by Google, to install TensorFlow in a virtual environment, that is, an environment that isolates a set of APIs and code from other APIs and code and from the system-wide environment.

There are two distinct versions of TensorFlow—one for execution on a CPU and another for execution on a GPU. This last requires that the numerical libraries CUDA and CuDNN are installed. Tensorflow will default to GPU execution where possible. See https://www.tensorflow.org/alpha/guide/using_gpu.

Rather than attempt to reinvent the wheel here, there follow resources for creating virtual environments and installing TensorFlow.

In summary, TensorFlow may be installed for Windows 7 or later, Ubuntu Linux 16.04 or later, and macOS 10.12.6 or later.

There is a thorough introduction to virtual environments at http://docs.python-guide.org/.

There is a very detailed set of information on all aspects of what is required to install TensorFlow in the official Google documentation at https://www.tensorflow.org/install/.

Once installed, you can check your TensorFlow installation from a command terminal. There are instructions for doing this at http://www.laurencemoroney.com/tensorflow-to-gpu-or-not-to-gpu/ and for installing the nightly build of TensorFlow, which contains all of the latest updates.

主站蜘蛛池模板: 石家庄市| 海南省| 宁武县| 靖宇县| 米脂县| 玛沁县| 乌拉特前旗| 长子县| 晴隆县| 桃源县| 建阳市| 武乡县| 潮安县| 文昌市| 马关县| 陆川县| 合川市| 南乐县| 香格里拉县| 临武县| 河津市| 黑河市| 奇台县| 北碚区| 上栗县| 盘山县| 同江市| 敦化市| 宁河县| 石棉县| 尚志市| 四川省| 方山县| 馆陶县| 左权县| 永和县| 建瓯市| 周口市| 长寿区| 弥渡县| 深水埗区|