def log(self, logs: Dict[(str, float)]) -> None:
    '\n        Log :obj:`logs` on the various objects watching training.\n\n        Subclass and override this method to inject custom behavior.\n\n        Args:\n            logs (:obj:`Dict[str, float]`):\n                The values to log.\n        '
    if hasattr(self, '_log'):
        warnings.warn("The `_log` method is deprecated and won't be called in a future version, define `log` in your subclass.", FutureWarning)
        return self._log(logs)
    logs['epoch'] = self.epoch_logging
    if self.tb_writer:
        with self.tb_writer.as_default():
            for (k, v) in logs.items():
                tf.summary.scalar(k, v, step=self.global_step)
        self.tb_writer.flush()
    if is_wandb_available():
        wandb.log(logs, step=self.global_step)
    if is_comet_available():
        experiment = comet_ml.config.get_global_experiment()
        if (experiment is not None):
            experiment._log_metrics(logs, step=self.global_step, epoch=self.epoch_logging, framework='transformers')
    output = {**logs, **{'step': self.global_step}}
    logger.info(output)
Log :obj:`logs` on the various objects watching training.

Subclass and override this method to inject custom behavior.

Args:
    logs (:obj:`Dict[str, float]`):
        The values to log.
def log(self, logs: Dict[(str, float)]) -> None:
    '\n        Log :obj:`logs` on the various objects watching training.\n\n        Subclass and override this method to inject custom behavior.\n\n        Args:\n            logs (:obj:`Dict[str, float]`):\n                The values to log.\n        '
    if hasattr(self, '_log'):
        warnings.warn("The `_log` method is deprecated and won't be called in a future version, define `log` in your subclass.", FutureWarning)
        return self._log(logs)
    logs['epoch'] = self.epoch_logging
    if self.tb_writer:
        with self.tb_writer.as_default():
            for (k, v) in logs.items():
                tf.summary.scalar(k, v, step=self.global_step)
        self.tb_writer.flush()
    if is_wandb_available():
        wandb.log(logs, step=self.global_step)
    if is_comet_available():
        experiment = comet_ml.config.get_global_experiment()
        if (experiment is not None):
            experiment._log_metrics(logs, step=self.global_step, epoch=self.epoch_logging, framework='transformers')
    output = {**logs, **{'step': self.global_step}}
    logger.info(output)