Spaces:
Sleeping
Sleeping
File size: 186 Bytes
8ce6557 | 1 2 3 4 5 6 7 8 9 10 11 12 | from __future__ import annotations
import torch
MNIST_MEAN = 0.1307
MNIST_STD = 0.3081
def normalize_mnist(x: torch.Tensor) -> torch.Tensor:
return (x - MNIST_MEAN) / MNIST_STD
|