
d2l
Dominiczz
I have a big heart.
展开
-
d2l-softmax从零实现以及简化版
从零实现 # 从零实现 import torch import torchvision import numpy as np import sys sys.path.append("..") # 为了导⼊上层⽬录的d2lzh_pytorch import d2lzh_pytorch as d2l # 获取和读取数据 batch_size = 256 train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size) #用for返循环.原创 2021-05-28 19:37:06 · 545 阅读 · 0 评论 -
d2l-fashionMNIST
提醒:需要d2l包 # 获取数据集 import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt import time import sys sys.path.append("..") # 为了导⼊上层⽬录的d2lzh_pytorch import d2lzh_pytorch as d2l # import torchtext #原创 2021-05-28 18:57:18 · 548 阅读 · 0 评论