W3cubDocs

/TensorFlow Python

tf.contrib.gan.GANLoss

Class GANLoss

Defined in tensorflow/contrib/gan/python/namedtuples.py.

GANLoss contains the generator and discriminator losses.

Args:

  • generator_loss: A tensor for the generator loss.
  • discriminator_loss: A tensor for the discriminator loss.

Properties

discriminator_loss

Alias for field number 1

generator_loss

Alias for field number 0

Methods

__new__

__new__(
    _cls,
    generator_loss,
    discriminator_loss
)

Create new instance of GANLoss(generator_loss, discriminator_loss)

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/gan/GANLoss