def training_step(self, batch, batch_idx):
    self.examples_count += len(batch['diff_input_ids'])
    (loss, logits) = self(batch)[:2]
    self.logger.experiment.log({'train_loss_step': loss}, step=self.examples_count)
    return {'loss': loss}
def training_step(self, batch, batch_idx):
    self.examples_count += len(batch['diff_input_ids'])
    (loss, logits) = self(batch)[:2]
    self.logger.experiment.log({'train_loss_step': loss}, step=self.examples_count)
    return {'loss': loss}