A small Backpropagation implementation in C, capable of computing gradients of scalar functions.
The computational graph is Pyotrch like (i.e. computed at runtime).
Currently this implementation is compiler dependent and needs gcc (see src/constant.c
for details).
In order to run:
- Install gcc
- Run
chmod +x ./compile.sh
to add execute permission to the file - Run
./compile.sh
- Run
./c_backprop