Skip to content

Commit

Permalink
easy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 7, 2024
1 parent e068dfa commit 14a4bd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rankers/train/data_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def to_sanitized_dict(self) -> Dict[str, Any]:
Sanitized serialization to use with TensorBoard’s hparams
"""
d = self.to_dict()
d = {**d, **{"train_batch_size": self.train_batch_size, "eval_batch_size": self.eval_batch_size}}


valid_types = [bool, int, float, str]
if is_torch_available():
valid_types.append(torch.Tensor)
Expand Down

0 comments on commit 14a4bd4

Please sign in to comment.