Skip to content

Commit

Permalink
Logs should not be hidden behind a logger.info (huggingface#6097)
Browse files Browse the repository at this point in the history
  • Loading branch information
LysandreJik committed Jul 28, 2020
1 parent dafa296 commit 06834bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def log(self, logs: Dict[str, float], iterator: Optional[tqdm] = None) -> None:
if iterator is not None:
iterator.write(output)
else:
logger.info(output)
print(output)

def _prepare_inputs(
self, inputs: Dict[str, Union[torch.Tensor, Any]], model: nn.Module
Expand Down

0 comments on commit 06834bc

Please sign in to comment.