mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-06-01 04:02:49 -05:00
- Added subtract function with proper gradient computation - Implemented subtraction rule: d(x-y)/dx = 1, d(x-y)/dy = -1 - Added comprehensive tests for subtraction operation - Fixed chain rule tests that depend on subtract function - All autograd tests now passing (8/8 modules fully functional) The autograd module is now complete with all basic operations: - Variable class with gradient tracking - Addition, multiplication, and subtraction operations - Automatic differentiation through computational graphs - Chain rule implementation for complex expressions - Neural network training integration ready