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

  • Python Deep Learning
  • Ivan Vasilev Daniel Slater Gianmario Spacagna Peter Roelants Valentino Zocca
  • 119字
  • 2021-07-02 14:31:09

Keras

Keras is a high-level neural net Python library that runs on top of TensorFlow, CNTK (https://github.com/Microsoft/CNTK), or Theano. For the purposes of this book, we'll assume that it uses TensorFlow on the backend. With Keras, you can perform rapid experimentation and it's relatively easy to use compared to TF. It will automatically detect an available GPU and attempt to use it. Otherwise, it will revert to the CPU. If you wish to specify the device manually, you can import TensorFlow and use the same code as in the previous section, TensorFlow:

with tensorflow.device("/gpu:1"):
# Keras model definition here

Once again, you can refer to the online documentation for further information at http://keras.io.

主站蜘蛛池模板: 福清市| 无棣县| 闽侯县| 竹山县| 衡阳市| 平湖市| 宾阳县| 临湘市| 长泰县| 滨海县| 龙游县| 沁源县| 曲松县| 苏州市| 元江| 思南县| 遂川县| 泾源县| 丹巴县| 天祝| 迁安市| 清流县| 荔波县| 庐江县| 灵山县| 平原县| 彰化县| 张家港市| 宜丰县| 五莲县| 邳州市| 鹿泉市| 微山县| 闵行区| 哈尔滨市| 全州县| 宜黄县| 朝阳市| 张家口市| 东兴市| 乌苏市|