W3cubDocs

/TensorFlow Python

tf.contrib.gan.CycleGANLoss

Class CycleGANLoss

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

CycleGANLoss contains the losses for CycleGANModel.

See https://arxiv.org/abs/1703.10593 for more details.

Args:

  • loss_x2y: A GANLoss namedtuple representing the loss of model_x2y.
  • loss_y2x: A GANLoss namedtuple representing the loss of model_y2x.

Properties

loss_x2y

Alias for field number 0

loss_y2x

Alias for field number 1

Methods

__new__

__new__(
    _cls,
    loss_x2y,
    loss_y2x
)

Create new instance of CycleGANLoss(loss_x2y, loss_y2x)

© 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/CycleGANLoss