Common Tasks
Start from the thing you want to do, then jump into the declaration namespace from there.
TorchLean API Docs
These pages are generated from Lean. Use the cards below for the main TorchLean surfaces, then use search when you need a specific definition, theorem, or module.
The broad umbrella import for ordinary downstream use.
User facade NN.API.PublicThe PyTorch-shaped public surface for model code and examples.
Tensors NN.Tensor.APITensor operations, shapes, and the user-facing tensor layer.
Graph IR NN.IR.GraphThe op-tagged graph representation used by lowering and verification.
Semantics NN.IR.SemanticsThe executable meaning attached to IR operators and graph evaluation.
Runtime NN.Runtime.Autograd.TorchLeanRuntime autograd, compiled execution, and training support.
Verification NN.Verification.CLIThe registered certificate and verification command surface.
Float32 NN.Floats.IEEEExecExecutable IEEE-754 binary32 semantics used in float audits.
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.