Linear and Embedding modules

May 26, 2026

Didn’t get to spend too much time on this today. Completed the Linear module and Embedding module implementations. For the Linear module, got more reps with einsum. For the Embedding module, it was easy to implement indexing into tensors, supplying a tensor of integers to access into another tensor and pull out values.

linear.py

embedding.py