Define loss functions for a GAN from `loss_gen` and `loss_crit`.

gan_loss_from_func(loss_gen, loss_crit, weights_gen = NULL)

Arguments

loss_gen

generator loss

loss_crit

discriminator loss

weights_gen

weight generator

Value

None