def forward(self, x):
bottleneck = self.conv_reduce.forward(x)
bottleneck = F.relu(bottleneck, inplace=True)
bottleneck = self.conv_conv.forward(bottleneck)
bottleneck = F.relu(bottleneck, inplace=True)
bottleneck = self.conv_expand.forward(bottleneck)
return x + bottleneck
评论列表
文章目录