d2l笔记:4.3 多层感知机(MLP)的简洁实现 导入包 import torch from torch import nn from d2l import torch as d2l 定义网络 net = nn.Sequential(nn.Flatten(), nn.Linear(784,