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

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.

主站蜘蛛池模板: 东阳市| 五大连池市| 新平| 襄樊市| 固原市| 崇文区| 南宫市| 葵青区| 肥乡县| 老河口市| 温州市| 涞水县| 航空| 鞍山市| 长武县| 内黄县| 嫩江县| 吴忠市| 大同县| 内乡县| 彰化市| 龙海市| 乌什县| 潜山县| 平顶山市| 伽师县| 新晃| 彭阳县| 云浮市| 惠水县| 伊金霍洛旗| 罗江县| 观塘区| 平果县| 蓝山县| 澄江县| 来宾市| 德州市| 白山市| 淳安县| 博罗县|