Fix stack overflow (#9114)

This commit is contained in:
Lysandre Debut
2020-12-15 09:15:49 -05:00
committed by GitHub
parent 14c79c3e31
commit 59da3f2700

View File

@@ -262,7 +262,7 @@ class BatchEncoding(UserDict):
:class:`~transformers.BatchEncoding`. Currently can be one of :obj:`None` (unknown), :obj:`1` (a single
sentence) or :obj:`2` (a pair of sentences)
"""
return self.n_sequences
return self._n_sequences
@property
def is_fast(self) -> bool: