HyperGAN
Search…
Softmax Loss
1
ln_zb = (((-d_real).exp().sum()+(-d_fake).exp().sum())+1e-12).log()
2
3
d_target = 1.0 / d_real.shape[0]
4
g_target = d_target / 2.0
5
6
g_loss = g_target * (d_fake.sum() + d_real.sum()) + ln_zb
7
d_loss = d_target * d_real.sum() + ln_zb
Copied!

examples

1
{
2
"class": "function:hypergan.losses.softmax_loss.SoftmaxLoss",
3
}
Copied!
Copy link
Contents
examples