Files
TinyTorch/modules/source
Vijay Janapa Reddi 722679f165 Fix: CrossEntropyLoss numerical stability for 1D inputs
- Fixed axis=1 error when CrossEntropyLoss receives 1D prediction arrays
- Added robust handling for both 1D and 2D prediction inputs
- Reshapes 1D arrays to 2D for consistent processing
- All integration tests now pass (17/17)
- All inline tests pass (6/6)
- tito CLI integration working correctly

Technical improvements:
- Handles single sample predictions correctly
- Maintains backward compatibility with batch inputs
- Prevents numpy axis errors in edge cases
- Ensures consistent shape handling across all loss functions
2025-07-14 00:57:38 -04:00
..