Unverified Commit 59da3f27 authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

Fix stack overflow (#9114)

parent 14c79c3e
...@@ -262,7 +262,7 @@ class BatchEncoding(UserDict): ...@@ -262,7 +262,7 @@ class BatchEncoding(UserDict):
:class:`~transformers.BatchEncoding`. Currently can be one of :obj:`None` (unknown), :obj:`1` (a single :class:`~transformers.BatchEncoding`. Currently can be one of :obj:`None` (unknown), :obj:`1` (a single
sentence) or :obj:`2` (a pair of sentences) sentence) or :obj:`2` (a pair of sentences)
""" """
return self.n_sequences return self._n_sequences
@property @property
def is_fast(self) -> bool: def is_fast(self) -> bool:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment