lmtorch examples
lmtorch runs CPU tensor operations, automatic differentiation, and small neural networks from LMScript. Browse example previews and run each source as an autorun script. These pages are regenerated from the public lmtorch repository at 63620aecc8.
Start with get started to learn how solo and trio provider runs work.
- Tensor Sum: Create a two-by-two tensor and reduce its elements to one scalar. Autorun source
- Autograd Gradient: Backpropagate through a sum of squares and check the gradient against 2x. Autorun source