FashionMNIST Dataset not transforming to Tensor
FashionMNIST Dataset not transforming to Tensor Question: Trying to calculate the mean and standard deviation of the dataset to normalise it afterwards. Current Code: train_dataset = datasets.FashionMNIST(‘data’, train=True, download = True, transform=[transforms.ToTensor()]) test_dataset = datasets.FashionMNIST(‘data’, train=False, download = True, transform=[transforms.ToTensor()]) def calc_torch_mean_std(tens): mean = torch.mean(tens, dim=1) std = torch.sqrt(torch.mean((tens – mean[:, None]) ** 2, dim=1)) …