TorchLean API

NN.Examples.Support.Training

Runnable Example Training Support #

Training-log paths, runtime metadata, banners, and checks used by the runnable model examples.

Training-log note recording the selected CUDA allocator-reporting cadence.

Instances For

    Shared CLI and logging names for the built-in runnable examples.

    These are public so examples can stay short and readable. They live under Support; ordinary library code should usually use Trainer, Data, and optim directly.

    Standard location for a runnable example's training log under data/examples.

    Instances For

      device=... note string used by example logs.

      Instances For
        def NN.Examples.Support.banner (exeName description : String) (details : Option String := none) (runtime : TorchLean.Runtime.Config) :

        Example headline with the selected device and an optional detail line.

        Instances For
          def NN.Examples.Support.check (exeName msg : String) (b : Bool) :

          Fail with a contextual error when an executable model check is false.

          Instances For