1. 首页
  2. 数据库
  3. 其它
  4. Pytorch之parameters的使用

Pytorch之parameters的使用

上传者: 2020-12-31 11:45:13上传 PDF文件 73.45KB 热度 16次
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
下载地址
用户评论