MiniTorch is a teaching library for machine learning engineers who wish to learn about the internal concepts underlying deep learning systems. Specifically, it is a pure Python re-implementation of the Torch API designed to be simple, easy-to-read, tested, and incremental. The final library can run Torch code with minimal changes (at some efficiency cost). The project was developed for the course Machine Learning Engineering at Cornell Tech.
The project is organized into 5 modules. Each module is build upon the precedents.
This is Module-2 and it is focused on tensor object implementation.
-
Overview: https://minitorch.github.io/module2.html
This module requires operators.py
, module.py
, scalar.py
, and autodiff.py
from previous modules.
- Tests:
python run_tests.py