ashpy.losses.gan.get_adversarial_loss_generator

ashpy.losses.gan.get_adversarial_loss_generator(adversarial_loss_type=<AdversarialLossType.GAN: 1>)[source]

Return the correct loss for the Generator.

Parameters:adversarial_loss_type (ashpy.losses.AdversarialLossType) – Type of loss (ashpy.losses.AdversarialLossType.GAN or ashpy.losses.AdversarialLossType.LSGAN).
Return type:Type[Executor]
Returns:The correct (ashpy.losses.executor.Executor) (to be instantiated).