from tensorflow.contrib.framework.python.ops import variables as variables


  def _get_train_ops(self, features, targets):
    """See base class."""
    global_step = variables.get_global_step()
    assert global_step
    loss = self._loss(
