Pytorch之parameters的使用

q86364 12 0 PDF 2020-12-31 11:12:13

1.预构建网络 class Net(nn.Module): def __init__(self): super(Net, self).__init__() # 1 input image channel, 6 output channels, 5*5 square convolution # kernel self.conv1 = nn.Conv2d(1, 6, 5) self.conv2 = nn.Conv2d(6, 16, 5) # an affine operation: y = Wx + b self.fc1 = nn.Li

用户评论
请输入评论内容
评分:
暂无评论