Skip to content

Commit

Permalink
fix batch norm errors when size of last batch is one
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalIversen authored Oct 16, 2024
1 parent 05a9778 commit 6b03d5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drevalpy/models/simple_neural_network/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def fit(
shuffle=True,
num_workers=num_workers,
persistent_workers=True,
drop_last=True # to avoid batch norm errors, if last batch is smaller than batch_size, it is not processed
)

val_loader = None
Expand Down

0 comments on commit 6b03d5c

Please sign in to comment.