本关要求利用nn.Linear()声明一个线性模型 l,并构建一个变量 net 由三个l序列构成。
import torch import torch.nn as nn from torch.autograd import Variable # #声明一个in_features=2,out_features=3的线性模型 l并输出 l = nn.Linear(2, 2) print

本关要求利用nn.Linear()声明一个线性模型 l,并构建一个变量 net 由三个l序列构成。
import torch import torch.nn as nn from torch.autograd import Variable # #声明一个in_features=2,out_features=3的线性模型 l并输出 l = nn.Linear(2, 2) print