TorchLean API

NN.API.CLI.TrainingFlags

Training Flag Presets #

Small parser compositions for the training flags shared by runnable examples.

Common training flags for epoch-oriented loader and tutorial commands.

  • epochs : Nat

    Number of epochs to train for.

  • batchSize : Nat

    Batch size.

Instances For
    def TorchLean.CLI.takePositiveEpochBatch (arguments : List String) (exeName : String) (defaultEpochs defaultBatch : Nat) :

    Parse --epochs and --batch, requiring both selected values to be positive.

    Instances For