Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Remove trailing white space
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrochukM authored Jan 26, 2021
1 parent 0d9824e commit a8c17b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchnlp/samplers/bucket_batch_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self,
sort_key=identity,
bucket_size_multiplier=100):
super().__init__(sampler, batch_size, drop_last)
self.sort_key = sort_key
self.sort_key = sort_key
_bucket_size = batch_size * bucket_size_multiplier
if hasattr(sampler, "__len__"):
_bucket_size = min(_bucket_size, len(sampler))
Expand Down

0 comments on commit a8c17b1

Please sign in to comment.