- Python Deep Learning
- Ivan Vasilev Daniel Slater Gianmario Spacagna Peter Roelants Valentino Zocca
- 157字
- 2021-07-02 14:31:09
TensorFlow
TensorFlow (TF) (https://www.tensorflow.org), is the most popular deep learning library. It's developed and maintained by Google. You don't need to explicitly require the use of a GPU; rather TensorFlow will automatically try to use it if you have one. If you have more than one GPU, you must assign operations to each GPU explicitly, or only the first one will be used. To do this, you simply need to type the line that is show in the following code block:
with tensorflow.device("/gpu:1"):
# model definition here
Here's an example:
- "/cpu:0": the main CPU of your machine
- "/gpu:0": the first GPU of your machine, if one exists
- "/gpu:1": the second GPU of your machine, if a second exists
- "/gpu:2": the third GPU of your machine, if a third exists, and so on
TensorFlow has a steeper learning curve, compared to the other libraries. You can refer to the TensorFlow documentation to learn how to use it.
推薦閱讀
- Advanced Splunk
- JSP網(wǎng)絡編程(學習筆記)
- 零基礎學C++程序設計
- Arduino開發(fā)實戰(zhàn)指南:LabVIEW卷
- Data Analysis with IBM SPSS Statistics
- GameMaker Programming By Example
- Getting Started with Python Data Analysis
- Regression Analysis with Python
- 區(qū)塊鏈架構之美:從比特幣、以太坊、超級賬本看區(qū)塊鏈架構設計
- Vue.js光速入門及企業(yè)項目開發(fā)實戰(zhàn)
- Learning Python Data Visualization
- ABAQUS6.14中文版有限元分析與實例詳解
- SEO教程:搜索引擎優(yōu)化入門與進階(第3版)
- Python數(shù)據(jù)可視化之matplotlib實踐
- INSTANT EaselJS Starter