Pytorch学习笔记Day二(全连接层学习)
MNIST数据集用全连接层实现 import torch from torch import nn from torch.nn import functional as F from torch import optim import torchvision from matplotlib import pyplot as plt def plot_curve(data): fig = plt.figure() plt.plot(range(len(data)), data, color='blue') plt.legend(['value'], loc='upper
暂无评论