Skip to content

Commit 9350072

Browse files
mttksoumith
authored andcommitted
Fix argument to pool call (#272)
1 parent f7f5c18 commit 9350072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtext/data/iterator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def create_batches(self):
239239
self.sort_key, self.batch_size_fn,
240240
random_shuffler=self.random_shuffler,
241241
shuffle=self.shuffle,
242-
sort=self.sort_within_batch)
242+
sort_within_batch=self.sort_within_batch)
243243

244244

245245
def batch(data, batch_size, batch_size_fn=None):

0 commit comments

Comments
 (0)