Pytorch中查看模型参数信息, net.parameters()、net.named_parameters(), net.layer.parameters()等,末尾有,Variable,hook
测试代码由此开始:classNet(nn.Module):def__init__(self):super(Net,self).__init__()self.conv1=nn.Conv2d(3,6,kernel_size=3,padding=1)self.bn1=nn.BatchNorm2d(6)self.conv2=nn.Conv2d(6,8,kernel_size=3,padding=1)sel