Skip to content

Commit

Permalink
GANExecutor: add constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
galeone committed Sep 6, 2019
1 parent b22710e commit f053532
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ashpy/losses/gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ class GANExecutor(Executor, ABC):
Implements the basic functions needed by the GAN losses.
"""

def __init__(self, fn: tf.keras.losses.Loss = None):
"""Initialize the GANExecutor.
Args:
fn (:py:class:`tf.keras.losses.Loss`): A Keras Loss to execute.
Returns:
:py:obj:`None`
"""
super().__init__(fn)

@abstractmethod
def call(self, context, **kwargs):
"""
Expand Down

0 comments on commit f053532

Please sign in to comment.