lzpiece's picture
Upload 21 files
8ce6557 verified
Raw History Blame Contribute Delete
186 Bytes
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