mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-28 07:28:35 -05:00
Issue: xor_crisis.py was failing with ImportError on matplotlib architecture mismatch Root cause: losses_dev.py imported matplotlib.pyplot but never used it Fix: - ✅ Removed unused imports: matplotlib.pyplot, time - ✅ Re-exported module 04_losses to update tinytorch package - ✅ Verified both milestone 02 scripts now run successfully The matplotlib import was causing failures on M2 Macs where matplotlib was installed for wrong architecture (x86_64 vs arm64). Since it was never used, removing it eliminates the dependency entirely. Tested: - ✅ milestones/02_xor_crisis_1969/xor_crisis.py (49% accuracy - expected failure) - ✅ milestones/02_xor_crisis_1969/xor_solved.py (100% accuracy - perfect!)