HyperGAN
Search…
Standard Loss
1
criterion = torch.nn.BCEWithLogitsLoss()
2
g_loss = criterion(d_fake, torch.ones_like(d_fake))
3
d_loss = criterion(d_real, torch.ones_like(d_real)) + criterion(d_fake, torch.zeros_like(d_fake))
Copied!

examples

1
{
2
"class": "class:hypergan.losses.standard_loss.StandardLoss"
3
}
Copied!
Last modified 1yr ago
Copy link
Contents
examples