def forward(self, x1, x2):
h = self.c0(torch.cat((x1, x2),1))
h = self.bnc1(self.c1(F.leaky_relu(h, negative_slope=0.2)))
h = self.bnc2(self.c2(F.leaky_relu(h, negative_slope=0.2)))
h = self.bnc3(self.c3(F.leaky_relu(h, negative_slope=0.2)))
h = self.c4(F.leaky_relu(h, negative_slope=0.2))
h = F.sigmoid(h)
return h
评论列表
文章目录