Skip to content

Commit

Permalink
Fix tokenizer test
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsRogge committed Aug 5, 2021
1 parent 5b72170 commit 32bd570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_tokenization_layoutlmv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def test_batch_encode_plus_tensors(self):
tokenizers = self.get_tokenizers(do_lower_case=False)
for tokenizer in tokenizers:
with self.subTest(f"{tokenizer.__class__.__name__}"):
words, boxes = self.get_words_and_boxes()
words, boxes = self.get_words_and_boxes_batch()

# A Tensor cannot be build by sequences which are not the same size
self.assertRaises(ValueError, tokenizer.batch_encode_plus, words, boxes=boxes, return_tensors="pt")
Expand Down

0 comments on commit 32bd570

Please sign in to comment.