self.conv2 = torch.nn.Conv2d(out_channels, out_channels, 3, padding=1, bias=False) self.shortcut = None if in_channels == out_channels else torch.nn.Conv2d(in_channels, out_channels, 1, stride=stride, bias=False) # 残差函数使用,如果通道 不对等,则用1x1卷积进行对应 self.bn1 = torc...