- 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))
推薦閱讀
- PIC單片機C語言非常入門與視頻演練
- CompTIA Network+ Certification Guide
- Ceph:Designing and Implementing Scalable Storage Systems
- CompTIA Linux+ Certification Guide
- INSTANT Autodesk Revit 2013 Customization with .NET How-to
- 筆記本電腦電路分析與故障診斷
- 未來學徒:讀懂人工智能飛馳時代
- EJB JPA數據庫持久層開發實踐詳解
- Flash CS5二維動畫設計與制作
- NetSuite ERP for Administrators
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- D3.js Quick Start Guide
- 工業機器人設計與實例詳解
- 局域網組建與管理技術詳解
- 數據存儲備份與災難恢復