TorchLean API

NN.Examples.Models.Vision.ResNet

Residual Classifier Training Example #

This command trains the public rank-polymorphic residual classifier on a small CIFAR-10 crop. The model contains a convolutional stem, two residual branches, global average pooling over all spatial axes, and a linear classifier. The compact crop keeps the command useful as a runtime check while still exercising the same residual composition and pooling code used by larger configurations.

CLI subcommand name used in terminal banners and parser errors.

Instances For

    Default JSON training-log path.

    Instances For

      Static minibatch size carried by the checked model shape.

      Instances For

        CIFAR input channels.

        Instances For

          Height of the compact CIFAR crop.

          Instances For

            Width of the compact CIFAR crop.

            Instances For

              Channel width of the residual trunk.

              Instances For

                Configuration shared by the model constructor and its typed input/output shapes.

                Instances For
                  @[reducible, inline]

                  Batched channel-first input shape.

                  Instances For
                    @[reducible, inline]

                    One row of class logits per input sample.

                    Instances For

                      Residual classifier from the public model API.

                      Instances For

                        Train the residual classifier with the public classification trainer.

                        Instances For

                          CLI entrypoint for the CIFAR residual-classifier training path.

                          Instances For