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

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.

主站蜘蛛池模板: 商城县| 临夏县| 丹江口市| 惠来县| 晋州市| 荣成市| 开远市| 共和县| 建昌县| 敦化市| 浦北县| 西吉县| 闻喜县| 茌平县| 菏泽市| 永丰县| 安吉县| 长宁区| 闽侯县| 五常市| 房产| 乌兰县| 蒙山县| 青岛市| 邯郸市| 上犹县| 五原县| 隆化县| 江油市| 长岭县| 太白县| 夏邑县| 彭阳县| 洮南市| 林周县| 阜宁县| 朝阳区| 辰溪县| 阿克苏市| 原阳县| 平舆县|