用python3和numpy实现一个简单的深度学习框架。
Name | Version |
---|---|
Python | 3.5.0+ |
Numpy | 1.13.0+ |
import paradox as pd
k = pd.Constant([[2, 3], [1, 1]], name='k')
b = pd.Constant([[7], [3]], name='b')
x = pd.Variable([[0], [0]], name='x')
y = k @ x + b
print(pd.Engine(y).gradient(x).value)
运行结果
[[ 3.]
[ 4.]]
Author | ict |
405340537 | |
ictxiangxin@hotmail.com |