def forward(self, image):
image = image.cuda()
conv_layer1 = self.bn1(leaky_relu(self.conv1(image), negative_slope = 0.2))
conv_layer2 = self.bn2(leaky_relu(self.conv2(conv_layer1), negative_slope = 0.2))
conv_layer3 = leaky_relu(self.conv3(conv_layer2), negative_slope = 0.2)
fc_layer1 = self.linear1(conv_layer3.view(-1, 4*4*512))
return fc_layer1
评论列表
文章目录