mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-04-28 05:07:30 -05:00
🛡️ **CRITICAL FIXES & PROTECTION SYSTEM** **Core Variable/Tensor Compatibility Fixes:** - Fix bias shape corruption in Adam optimizer (CIFAR-10 blocker) - Add Variable/Tensor compatibility to matmul, ReLU, Softmax, MSE Loss - Enable proper autograd support with gradient functions - Resolve broadcasting errors with variable batch sizes **Student Protection System:** - Industry-standard file protection (read-only core files) - Enhanced auto-generated warnings with prominent ASCII-art headers - Git integration (pre-commit hooks, .gitattributes) - VSCode editor protection and warnings - Runtime validation system with import hooks - Automatic protection during module exports **CLI Integration:** - New `tito system protect` command group - Protection status, validation, and health checks - Automatic protection enabled during `tito module complete` - Non-blocking validation with helpful error messages **Development Workflow:** - Updated CLAUDE.md with protection guidelines - Comprehensive validation scripts and health checks - Clean separation of source vs compiled file editing - Professional development practices enforcement **Impact:** ✅ CIFAR-10 training now works reliably with variable batch sizes ✅ Students protected from accidentally breaking core functionality ✅ Professional development workflow with industry-standard practices ✅ Comprehensive testing and validation infrastructure This enables reliable ML systems training while protecting students from common mistakes that break the Variable/Tensor compatibility.
9 lines
312 B
Plaintext
9 lines
312 B
Plaintext
# Mark auto-generated files (GitHub will show "Generated" label)
|
|
tinytorch/core/*.py linguist-generated=true
|
|
tinytorch/**/*.py linguist-generated=true
|
|
|
|
# Exclude from diff by default (reduces noise)
|
|
tinytorch/core/*.py -diff
|
|
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
|
*.gif filter=lfs diff=lfs merge=lfs -text
|