Skip to content

Commit

Permalink
Fix collate_fn changing hash of torch trainer.
Browse files Browse the repository at this point in the history
  • Loading branch information
schobbejak authored Jun 10, 2024
1 parent be8e21d commit f5a3b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epochalyst/pipeline/model/training/torch_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def log_to_terminal(self, message: str) -> None:
epochs: Annotated[int, Gt(0)] = 10
patience: Annotated[int, Gt(0)] = 5 # Early stopping
batch_size: Annotated[int, Gt(0)] = 32
collate_fn: Callable[[tuple[Tensor, ...]], tuple[Tensor, ...]] = custom_collate
collate_fn: Callable[[tuple[Tensor, ...]], tuple[Tensor, ...]] = field(default=custom_collate, init=True, repr=False, compare=False)

# Checkpointing
checkpointing_enabled: bool = field(default=True, init=True, repr=False, compare=False)
Expand Down

0 comments on commit f5a3b64

Please sign in to comment.