ensure tolerance is properly passed on (#8158)

This commit is contained in:
Sofie Van Landeghem 2021-05-27 10:10:28 +02:00 committed by GitHub
parent 0c553ecd4e
commit 290bd6ed39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ def configure_minibatch_by_words(
"""
optionals = {"get_length": get_length} if get_length is not None else {}
return partial(
minibatch_by_words, size=size, discard_oversize=discard_oversize, **optionals
minibatch_by_words, size=size, tolerance=tolerance, discard_oversize=discard_oversize, **optionals
)