mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-03-12 07:53:34 -05:00
- Add Module base class with automatic parameter registration - Auto-registers Tensors with requires_grad=True as parameters - Provides clean __call__ interface: model(x) instead of model.forward(x) - Recursive parameter collection from sub-modules - Update Dense to inherit from Module and use Parameter() - Remove redundant __call__ method from Dense (provided by Module) - Enables PyTorch-like syntax: optimizer = Adam(model.parameters())