- Hands-On Artificial Intelligence for IoT
- Amita Kapoor
- 84字
- 2021-07-02 14:01:57
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))
推薦閱讀
- Getting Started with Clickteam Fusion
- Ansible Quick Start Guide
- R Machine Learning By Example
- Learning Apache Cassandra(Second Edition)
- PyTorch深度學習實戰
- 傳感器技術應用
- 大數據安全與隱私保護
- 數據挖掘方法及天體光譜挖掘技術
- WordPress Theme Development Beginner's Guide(Third Edition)
- 大數據技術與應用
- 嵌入式操作系統
- 工業機器人應用案例集錦
- Prometheus監控實戰
- LAMP網站開發黃金組合Linux+Apache+MySQL+PHP
- Mastering Geospatial Analysis with Python