pygrad/README.md

25 lines
415 B
Markdown
Raw Normal View History

2020-11-14 19:27:42 +00:00
# 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.