Skip to content

Commit

Permalink
Remove log message in DiT
Browse files Browse the repository at this point in the history
  • Loading branch information
viklofg committed May 7, 2024
1 parent 92fcc48 commit a873b80
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/htrflow_core/models/huggingface/dit.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,4 @@ def _label_based_on_return_format(self, logits):
else:
probabilities = torch.nn.functional.softmax(logits, dim=-1)
label_ = {self.model.config.id2label[id]: prob.item() for id, prob in enumerate(probabilities)}

logger.info(f"Prediction complete. Return format: {self.return_format}, label: {label_}.")
return label_

0 comments on commit a873b80

Please sign in to comment.