TorchLean API

NN.API.Trainer.Summary

Training Reports #

Small report types returned by the high-level trainer API.

Backend-independent training report.

The default trainer API reads binary32 losses back to Float exactly. Typed sessions retain their selected scalar in the structured loss values.

  • steps : ℕ

    Number of optimizer updates applied by the session.

  • Scalar-valued loss measured before and after training.

  • arithmetic : Runtime.Arithmetic

    Runtime selector used by open; an explicit scalar in openTyped takes precedence.

  • scalarFormat? : Option String

    Exact encoding descriptor when a typed session explicitly selects its scalar.

Instances For
    @[instance_reducible]
    instance TorchLean.Trainer.instReprReport {α✝ : Type} [Repr α✝] :
    Repr (Report α✝)
    Instances For

      Name of the runtime scalar type that produced this report.

      Instances For

        One-line summary suitable for quickstarts and scripts.

        Instances For

          Print the one-line training summary.

          Instances For
            @[instance_reducible]