Files
TinyTorch/modules/source
Vijay Janapa Reddi 5d348ad4b4 Update loss function examples to use PyTorch-style callable API
Updated docstring examples to use cleaner callable syntax:
- loss_fn(predictions, targets) instead of loss_fn.forward(predictions, targets)

Applied to:
- MSELoss
- CrossEntropyLoss
- BinaryCrossEntropyLoss

Demonstrates proper usage with __call__ methods for cleaner, more Pythonic code.
2025-09-30 12:36:27 -04:00
..