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

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.

主站蜘蛛池模板: 西贡区| 增城市| 新泰市| 光泽县| 青州市| 余姚市| 望奎县| 炎陵县| 新乡市| 顺昌县| 南和县| 特克斯县| 专栏| 犍为县| 扶余县| 金平| 美姑县| 凌云县| 崇阳县| 昭苏县| 普定县| 周宁县| 滦南县| 雷波县| 新营市| 海丰县| 庐江县| 拉萨市| 新安县| 江油市| 潼关县| 正蓝旗| 内乡县| 凤凰县| 皋兰县| 盖州市| 东阿县| 得荣县| 灯塔市| 大名县| 肥乡县|