examples/mnist/README.md
The example is showing you how to:
The example can be run like so:
git clone https://github.com/tracel-ai/burn.git
cd burn
# Use the --release flag to really speed up training.
echo "Using ndarray backend"
cargo run --example mnist --release --features ndarray # CPU NdArray Backend - f32 - single thread
cargo run --example mnist --release --features ndarray-blas-openblas # CPU NdArray Backend - f32 - blas with openblas
cargo run --example mnist --release --features ndarray-blas-netlib # CPU NdArray Backend - f32 - blas with netlib
echo "Using tch backend"
export TORCH_CUDA_VERSION=cu128 # Set the cuda version
cargo run --example mnist --release --features tch-gpu # GPU Tch Backend - f32
cargo run --example mnist --release --features tch-cpu # CPU Tch Backend - f32
echo "Using vulkan backend"
cargo run --example mnist --release --features vulkan