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

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.

主站蜘蛛池模板: 嵩明县| 卢龙县| 梅河口市| 台安县| 吴桥县| 恩平市| 林周县| 从化市| 凉城县| 宁阳县| 永宁县| 奉新县| 海南省| 七台河市| 金昌市| 陇南市| 通许县| 云梦县| 霍州市| 陵水| 全州县| 宜宾县| 石河子市| 齐齐哈尔市| 怀仁县| 景德镇市| 巴青县| 新龙县| 凤山市| 尚志市| 手游| 灌云县| 岳阳县| 湘潭县| 双峰县| 南涧| 灵山县| 玉林市| 肥东县| 望江县| 昆山市|