CNN Training Example #
Runnable torchlean cnn example. It trains a small convolutional classifier on a prepared CIFAR-10
minibatch.
The reusable model wiring lives in NN.API.Models.Cnn (nn.models.cnn). This file is the
runnable wrapper: command-line parsing, dataset selection, multi-epoch loader training, and
TrainLog artifact writing.
python3 scripts/datasets/download_example_data.py --cifar10
lake build -R -K cuda=true && lake exe torchlean cnn --cuda --steps 1
def
NN.Examples.Models.Vision.Cnn.loadCifarLoader
{α : Type}
[API.Semantics.Scalar α]
[API.Runtime.Scalar α]
(xPath yPath : System.FilePath)
(nRows seed : ℕ)
: