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

Keras

Keras is a high-level API that runs on top of TensorFlow. It allows for fast and easy prototyping. It supports both convolutional and recurrent neural networks, and even a combination of the two. It can run on both CPUs and GPUs. The following code performs matrix multiplication using Keras:

# Import the libraries
import keras.backend as K
import numpy as np

# Declare the data
A = np.random.rand(20,500)
B = np.random.rand(500,3000)

#Create Variable
x = K.variable(value=A)
y = K.variable(value=B)
z = K.dot(x,y)
print(K.eval(z))
主站蜘蛛池模板: 吉林市| 五指山市| 金堂县| 浦东新区| 阳曲县| 武乡县| 大城县| 邻水| 三明市| 永和县| 卢龙县| 银川市| 岳池县| 靖宇县| 西和县| 固原市| 龙江县| 黄山市| 揭西县| 叶城县| 昌平区| 恭城| 哈尔滨市| 孙吴县| 淮南市| 灵璧县| 华宁县| 四会市| 通化市| 大邑县| 霍邱县| 安丘市| 时尚| 龙海市| 尼木县| 贡觉县| 阿拉善盟| 竹山县| 筠连县| 三都| 三江|