mnist-gpu

command
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

MNIST GPU Inference Benchmark

This example demonstrates CPU vs WebGPU performance comparison for neural network inference. It creates a simple MLP model and measures forward pass times on both backends.

Usage:

go run ./examples/mnist-gpu -batch 256 -iterations 100

Note: This benchmark focuses on the compute-intensive operations (MatMul, ReLU). WebGPU shines for large matrix operations, while CPU may be faster for small batches.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL