TorchLean API

NN.Examples.Quickstart.Common

Training Quickstart Flag Parsing #

Flag parsing for SimpleMlpTrain, kept separate from the model and training example.

This is example support, not part of the training API. User code starts from Trainer.new and trainer.train; this file only keeps flag handling out of the tutorial bodies.

Command-line choices accepted by a training quickstart.

  • seed :

    Model initialization seed from --seed.

  • steps :

    Number of optimizer updates from --steps.

  • Runtime settings from --arithmetic, --execution, --device, and --show-backend.

Instances For
    def NN.Examples.Quickstart.parseFlags (exeName : String) (args : List String) (defaultSteps : ) :

    Parse --seed, --steps, and the runtime flags, rejecting anything else.

    Instances For