1. 首页
  2. 数据库
  3. 其它
  4. pytorch搭建CNN

pytorch搭建CNN

上传者: 2021-01-17 02:13:49上传 PDF文件 17KB 热度 19次
1.直接 import torch.nn as nn import torch.nn.functional as F class Net(nn.Module): def __init__(self): super(Net, self).__init__() # 1 input image channel, 6 output channels, 3x3 square convolution # kernel self.conv1 = nn.Conv2d(1, 6, 3) self.conv2 = nn.Co
用户评论