Check decorator order (#7326)

* Check decorator order

* Adapt for parametrized decorators

* Fix typos
This commit is contained in:
Sylvain Gugger
2020-09-24 04:54:37 -04:00
committed by GitHub
parent 0be5f4a00c
commit 1ff5bd38a3
4 changed files with 42 additions and 5 deletions

View File

@@ -230,8 +230,8 @@ class ReformerTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
self.assertListEqual(original_tokenizer_encodings, self.big_tokenizer.encode(symbols))
@slow
@require_torch
@slow
def test_torch_encode_plus_sent_to_model(self):
import torch