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

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

主站蜘蛛池模板: 兖州市| 工布江达县| 吴忠市| 雷山县| 定州市| 富顺县| 英吉沙县| 饶河县| 泊头市| 乌兰县| 措勤县| 长葛市| 大连市| 和政县| 广宗县| 镇康县| 通许县| 原平市| 嘉黎县| 安吉县| 海原县| 扎兰屯市| 牟定县| 新余市| 关岭| 汤原县| 湖南省| 新源县| 涟水县| 昌黎县| 文登市| 会同县| 宣威市| 宝坻区| 临朐县| 衡东县| 泸西县| 德格县| 苗栗县| 彩票| 乌拉特后旗|