25 lines
415 B
Markdown
25 lines
415 B
Markdown
# PyGrad
|
|
|
|
Neural network library written in Python completely from scratch, using only numpy.
|
|
|
|
## Usage
|
|
|
|
```
|
|
import nn
|
|
|
|
a = nn.Tensor(1), b = nn.Tensor(2)
|
|
c = a.mul(b)
|
|
c.backward()
|
|
|
|
print(a.grad, b.grad) # should output (2, 1)
|
|
```
|
|
|
|
## References
|
|
|
|
- <https://github.com/geohot/tinygrad/>
|
|
- <https://github.com/karpathy/micrograd/>
|
|
|
|
## Copying
|
|
|
|
This is free and unencumbered software released into the public domain.
|