mnistPreprocessing

Creates a standard MNIST preprocessing pipeline.

This pipeline:

  1. Resizes to 28x28

  2. Converts to tensor

  3. Rescales to 0, 1

  4. Normalizes with MNIST statistics

Return

A transform that preprocesses images for MNIST models

Parameters

ctx

The execution context