TorchLean API

NN.API.Public

API Public #

Clean public API for TorchLean model code.

User code should use the umbrella import:

import NN
open TorchLean

This module remains the subsystem surface behind those namespaces. The stable user names are:

Advanced users can still import NN.API.Public directly when they are extending TorchLean itself or deliberately working below the NN umbrella.

The callback-heavy training namespace lives in NN.API.Public.Training. It is deliberately not re-exported from this umbrella module: ordinary code should get training through TorchLean.Trainer, while files that truly need callback runners should import the advanced training module explicitly.