TorchLean API

NN.Library

Library #

NN.Library is the curated umbrella import for TorchLean's broad reusable library surface area.

It includes:

It excludes:

Trust-boundary documentation lives in TRUST_BOUNDARIES.md, where it can cover both Lean declarations and external CUDA / Python / Julia / Arb producers without treating those prose notes are part of the Lean API.

If you’re writing ordinary model/training code, prefer import NN. If you want to make the broad umbrella explicit in downstream code, use import NN.Library. For lighter imports, use NN.Entrypoint.API, NN.Entrypoint.Tensor, NN.Entrypoint.IR, or another subsystem entrypoint.