- 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.
推薦閱讀
- 極簡算法史:從數學到機器的故事
- C#完全自學教程
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- C++程序設計基礎教程
- Visual Basic程序設計實驗指導(第4版)
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- Go并發編程實戰
- Java EE 8 Application Development
- Learning AWS
- 汽車人機交互界面整合設計
- Xamarin Cross-Platform Development Cookbook
- Learning TypeScript
- Learning iOS Penetration Testing
- 輕松學Scratch 3.0 少兒編程(全彩)
- Python Django Web從入門到項目實戰(視頻版)