%matplotlib inline import torch import torchvision from torch.utils import data from torchvision import transforms from d2l import torch as d2l d2l.use_svg_display trans = transforms.ToTensor mnist_train=torchvision.datasets.FashionMNIST ( root='./data',train=True,transform=trans,download=True ) mnist_train=torchvision.datasets.FashionMNIST ( root='./data',train=False,transform=trans,download=True ) len(mnist_train),len(mnist_test) mnist_train[0][0].shape
运行bug
我来回答
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-1-12 18:58
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.