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

Basic building blocks

As Keras is designed as a model-level library, it does not contain methods for doing basic operations as PyTorch of base TensorFlow does. Instead, it utilizes TensorFlow as a backend. As such, its basic operations are the same as basic TensorFlow operations: 

import keras.backend as K
x = K.constant(5)
y = K.constant(6)
product = x * y

Keras also uses the same graph structure as Tensorflow. We'll learn more about Keras model building methods in the next chapter on Your First Artificial Neural Networks.

主站蜘蛛池模板: 台江县| 宾阳县| 潜山县| 鞍山市| 嘉义市| 申扎县| 许昌市| 肇庆市| 忻州市| 高阳县| 聂拉木县| 申扎县| 尚志市| 罗定市| 甘南县| 潜江市| 江西省| 平定县| 卢湾区| 习水县| 油尖旺区| 克拉玛依市| 金门县| 鄂尔多斯市| 信阳市| 时尚| 工布江达县| 临颍县| 徐州市| 临湘市| 监利县| 黄梅县| 来凤县| 河津市| 阜阳市| 台州市| 上蔡县| 互助| 孟州市| 大连市| 微博|