class_docstr: This class implements a GAN with the TensorFlow v2 framework.
class_docstr_tok: ["This","class","implements","a","GAN","with","the","TensorFlow","v2","framework","."]
docstr: Initialization of a test TensorFlow v2 GAN
  
  :param generator: a TensorFlow2 generator
  :param discriminator: a TensorFlow v2 discriminator
  :param generator_loss: the loss function to use for the generator
  :param discriminator_loss: the loss function to use for the discriminator
  :param generator_optimizer_fct: the optimizer function to use for the generator
  :param discriminator_optimizer_fct: the optimizer function to use for the discriminator
docstr_tok: ["Initialization","of","a","test","TensorFlow","v2","GAN",":","param","generator",":","a","TensorFlow2","generator",":","param","discriminator",":","a","TensorFlow","v2","discriminator",":","param","generator_loss",":","the","loss","function","to","use","for","the","generator",":","param","discriminator_loss",":","the","loss","function","to","use","for","the","discriminator",":","param","generator_optimizer_fct",":","the","optimizer","function","to","use","for","the","generator",":","param","discriminator_optimizer_fct",":","the","optimizer","function","to","use","for","the","discriminator"]
code: def __init__(
      self,
      generator: "GENERATOR_TYPE",
      discriminator: "CLASSIFIER_TYPE",
      generator_loss=None,
      discriminator_loss=None,
      generator_optimizer_fct=None,
      discriminator_optimizer_fct=None,
  ):
      """
      Initialization of a test TensorFlow v2 GAN
  
      :param generator: a TensorFlow2 generator
      :param discriminator: a TensorFlow v2 discriminator
      :param generator_loss: the loss function to use for the generator
      :param discriminator_loss: the loss function to use for the discriminator
      :param generator_optimizer_fct: the optimizer function to use for the generator
      :param discriminator_optimizer_fct: the optimizer function to use for the discriminator
      """
      super().__init__(
          model=None, clip_values=None, channels_first=None
      )
      self._generator = generator
      self._discriminator_classifier = discriminator
      self._generator_loss = generator_loss
      self._generator_optimizer_fct = generator_optimizer_fct
      self._discriminator_loss = discriminator_loss
      self._discriminator_optimizer_fct = discriminator_optimizer_fct
  
file_path: adversarial-robustness-toolbox/art/estimators/gan/tensorflow.py
imports: from typing import Tuple, TYPE_CHECKING, Union
  import numpy
  from art.estimators.tensorflow import TensorFlowV2Estimator
label_desc: Use image node_id 1 to create a new TensorFlowV2GAN object from inherited base classes: TensorFlowV2Estimator with example: obj = TensorFlowV2GAN(generator, discriminator, generator_loss, discriminator_loss, generator_optimizer_fct, discriminator_optimizer_fct)