Files
TinyTorch/tinytorch
Vijay Janapa Reddi 8ccb0ab4d9 fix(package): Add PyTorch-style __call__ methods to exported modules
Resolved transformer training issues by adding __call__ methods to:
- Embedding, PositionalEncoding, EmbeddingLayer (text.embeddings)
- LayerNorm, MLP, TransformerBlock, GPT (models.transformer)
- MultiHeadAttention (core.attention)

This enables PyTorch-style syntax: model(x) instead of model.forward(x)
All transformer diagnostic tests now pass (5/5 ✓)(https://claude.ai/code)
2025-10-28 13:53:43 -04:00
..