TorchLean API

NN.Examples.Quickstart.Common

Quickstart Shared Parsing #

Small command-line parsers shared by the first-tour examples.

These are example utilities, not part of the public training facade. The public surface remains Trainer.new and trainer.train; this file only keeps repeated quickstart flag parsing out of the tutorial bodies.

Parsed runtime and training settings for quickstart commands.

Instances For
    def NN.Examples.Quickstart.parseRuntimeTrain (exeName : String) (args : List String) (defaultLogJson : System.FilePath) (defaultSteps : ) (optimizer : TorchLean.optim.Optimizer) (logEvery : := 0) :

    Parse the common quickstart tail:

    --steps, optional logging flags, and runtime flags such as --dtype, --backend, or --cuda.

    Each quickstart still owns its model, dataset, task, and any tutorial-specific flags.

    Instances For