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

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.

主站蜘蛛池模板: 通江县| 英吉沙县| 延吉市| 扎囊县| 翁牛特旗| 南溪县| 石棉县| 天祝| 姜堰市| 临邑县| 定安县| 定安县| 仁怀市| 安顺市| 本溪市| 繁峙县| 织金县| 兴宁市| 定远县| 阳春市| 理塘县| 清镇市| 兴宁市| 凉城县| 木兰县| 瓮安县| 池州市| 屏东县| 湘阴县| 五常市| 南川市| 盖州市| 全南县| 色达县| 虞城县| 芦山县| 青海省| 鄂伦春自治旗| 兴海县| 平湖市| 镇平县|