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

  • 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.

主站蜘蛛池模板: 砀山县| 寿阳县| 石柱| 延安市| 新和县| 绿春县| 驻马店市| 黄浦区| 稻城县| 泸溪县| 邓州市| 新巴尔虎右旗| 广水市| 保靖县| 武安市| 阳山县| 囊谦县| 浦城县| 琼海市| 贵德县| 吕梁市| 当阳市| 丘北县| 泾源县| 德庆县| 安徽省| 邵武市| 稻城县| 武陟县| 沭阳县| 如皋市| 荔波县| 紫阳县| 博客| 龙江县| 青川县| 阜新市| 漳州市| 兰西县| 金湖县| 兴海县|