GeneratorAdversarialLoss¶
Inheritance Diagram

-
class
ashpy.losses.gan.GeneratorAdversarialLoss(loss_fn=None)[source]¶ Bases:
ashpy.losses.gan.GANExecutorBase class for the adversarial loss of the generator.
Methods
__init__([loss_fn])Initialize the Executor.
call(*args, **kwargs)Attributes
fnReturn the Keras loss function to execute.
global_batch_sizeGlobal batch size comprises the batch size for each cpu.
weightReturn the loss weight.
-
__init__(loss_fn=None)[source]¶ Initialize the Executor.
- Parameters
loss_fn (
tf.keras.losses.Loss) – Keras Loss function to call passing (tf.ones_like(d_fake_i), d_fake_i).- Return type
None
-