def __init__(self, name="CrossEntropyLoss", sparse=True):
    """Creates a new CrossEntropyLoss.

    Args:
      name: String used as the most outer scope name of the loss graph.
      sparse: Boolean indicating whether to use sparse softmax cross-entropy.
    """
    super(CrossEntropyLoss, self).__init__(name=name)
    self._sparse = sparse
Creates a new CrossEntropyLoss.

    Args:
      name: String used as the most outer scope name of the loss graph.
      sparse: Boolean indicating whether to use sparse softmax cross-entropy.
    
language/labs/consistent_zero_shot_nmt/models/losses.py