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

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))
主站蜘蛛池模板: 大洼县| 会同县| 贡山| 上林县| 葫芦岛市| 耿马| 夏邑县| 古田县| 丰台区| 乌苏市| 县级市| 宁安市| 绥宁县| 湖口县| 兴山县| 界首市| 大足县| 米泉市| 增城市| 桃江县| 酉阳| 铜山县| 清新县| 碌曲县| 南木林县| 彭阳县| 时尚| 太仆寺旗| 云阳县| 化州市| 甘孜| 义乌市| 财经| 林芝县| 凤凰县| 南雄市| 辉县市| 金湖县| 商洛市| 新丰县| 平昌县|