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

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

主站蜘蛛池模板: 嘉荫县| 石嘴山市| 稷山县| 永福县| 荥经县| 子洲县| 含山县| 临清市| 浦城县| 崇礼县| 钦州市| 永定县| 隆化县| 香港 | 沁水县| 高碑店市| 台湾省| 江川县| 建瓯市| 山阳县| 五河县| 桃园市| 平乐县| 丰宁| 潮安县| 中宁县| 舒兰市| 万山特区| 长海县| 汉川市| 鱼台县| 卢湾区| 达州市| 屯留县| 淳安县| 青神县| 松桃| 肥东县| 安阳县| 宝兴县| 南川市|