catgrad is a deep learning framework using category theory to statically compile models into their forward and backwards passes. This means your training loop can run without needing a deep learning framework (not even catgrad!)
You can install catgrad using pip:
pip install catgrad
Some papers and research which catgrad builds on: