def _do_loss_init(self, train_batch):
    loss = self._loss_fn(self, self.model, self.dist_class, train_batch)
    if self._stats_fn:
        self._stats_fetches.update(self._stats_fn(self, train_batch))
    self._update_ops = self.model.update_ops()
    return loss
def _do_loss_init(self, train_batch):
    loss = self._loss_fn(self, self.model, self.dist_class, train_batch)
    if self._stats_fn:
        self._stats_fetches.update(self._stats_fn(self, train_batch))
    self._update_ops = self.model.update_ops()
    return loss