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

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))
主站蜘蛛池模板: 澳门| 马关县| 贵阳市| 皋兰县| 清新县| 西乡县| 长白| 涟源市| 舞钢市| 湘乡市| 玉环县| 太仆寺旗| 永吉县| 新营市| 仁怀市| 萝北县| SHOW| 应城市| 卢湾区| 达州市| 资溪县| 门源| 萨嘎县| 林西县| 钟山县| 平谷区| 红河县| 武定县| 康保县| 通城县| 眉山市| 嘉黎县| 延庆县| 历史| 巢湖市| 冷水江市| 蕲春县| 西充县| 宕昌县| 涪陵区| 玉林市|