def __call__(self, *args, **kwargs):
    """Builds the loss and returns <float32> [] loss tensor."""
    with tf.name_scope(self.name):
      loss = self._build(*args, **kwargs)
    return loss
Builds the loss and returns <float32> [] loss tensor.
language/labs/consistent_zero_shot_nmt/models/losses.py