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

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))
主站蜘蛛池模板: 清远市| 唐山市| 静安区| 桦甸市| 山阴县| 崇仁县| 南通市| 饶平县| 汝阳县| 深州市| 乐亭县| 林芝县| 左云县| 扎兰屯市| 巴林左旗| 嘉义县| 永兴县| 浙江省| 长葛市| 克东县| 屏东县| 建德市| 紫金县| 宕昌县| 游戏| 淮阳县| 江川县| 龙井市| 勐海县| 塔城市| 景德镇市| 德昌县| 肥乡县| 濉溪县| 建瓯市| 仙桃市| 桑植县| 南雄市| 翁源县| 杭州市| 石楼县|