Torch搭建网络层的三种方式 import torch import torch.nn as nn from collections import OrderedDict class LinearNet(nn.Module): def __init__(self, n_feature): super(LinearNet, self).__init__() self.linear = nn.Linear(n_fe