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

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.

主站蜘蛛池模板: 长海县| 清新县| 阜康市| 彰化县| 天门市| 谷城县| 即墨市| 陆河县| 江口县| 怀仁县| 晋中市| 汝城县| 双峰县| 潜江市| 桃园市| 肥城市| 姜堰市| 那曲县| 防城港市| 龙泉市| 武鸣县| 白朗县| 楚雄市| 绥江县| 上高县| 泰安市| 上蔡县| 舒兰市| 兴山县| 大田县| 汉川市| 杭锦后旗| 罗山县| 河曲县| 筠连县| 松桃| 平乐县| 三门峡市| 铜陵市| 英德市| 汉寿县|