from torchvision.transforms import ToTensortrain_data = datasets.MNIST( root = 'data', ... sample_idx = torch.randint(len(train_data), size=(1,)).item()
確定! 回上一頁