Common Tasks
Start from the thing you want to do, then jump into the declaration namespace from there.
The complete TorchLean library.
Write model code NN.APIThe focused application API for models, data, and training.
Work with tensors NN.TensorThe focused tensor, shape, and operation import.
Inspect graph IR NN.IR.GraphThe op-tagged graph representation used by lowering and verification.
Read operator semantics NN.IR.SemanticsThe executable meaning attached to IR operators and graph evaluation.
Run training code NN.RuntimeRuntime autograd, typed graph execution, and training support.
Check certificates NN.VerificationThe registered certificate and verification command surface.
Use FloatLib formats NN.FloatsTorchLean adapters for FloatLib's configured binary formats and rounded-real models.
Start from the thing you want to do, then jump into the declaration namespace from there.
The colored stripe on each declaration page marks what Lean generated.