class_docstr: Base class for all GANs.
class_docstr_tok: ["Base","class","for","all","GANs","."]
docstr: Return the losses dictionary.
docstr_tok: ["Return","the","losses","dictionary","."]
code: def losses(self, inputs, generated):
      """Return the losses dictionary."""
      raise NotImplementedError
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 3 for calling the AbstractGAN obj's underlying member method code with example usage: obj.losses(inputs, generated) without return types