Black preview (#17217)
* Black preview * Fixup too! * Fix check copies * Use the same version as the CI * Bump black
This commit is contained in:
@@ -574,7 +574,10 @@ class ReformerTesterMixin:
|
||||
|
||||
@require_torch_multi_gpu
|
||||
@unittest.skip(
|
||||
reason="Reformer does not work with data parallel (DP) because of a bug in PyTorch: https://github.com/pytorch/pytorch/issues/36035"
|
||||
reason=(
|
||||
"Reformer does not work with data parallel (DP) because of a bug in PyTorch:"
|
||||
" https://github.com/pytorch/pytorch/issues/36035"
|
||||
)
|
||||
)
|
||||
def test_multi_gpu_data_parallel_forward(self):
|
||||
pass
|
||||
|
||||
@@ -214,7 +214,10 @@ class ReformerTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
|
||||
@slow
|
||||
def test_tokenization_base_hard_symbols(self):
|
||||
symbols = 'This is a very long text with a lot of weird characters, such as: . , ~ ? ( ) " [ ] ! : - . Also we will add words that should not exsist and be tokenized to <unk>, such as saoneuhaoesuth'
|
||||
symbols = (
|
||||
'This is a very long text with a lot of weird characters, such as: . , ~ ? ( ) " [ ] ! : - . Also we will'
|
||||
" add words that should not exsist and be tokenized to <unk>, such as saoneuhaoesuth"
|
||||
)
|
||||
original_tokenizer_encodings = [
|
||||
108,
|
||||
265,
|
||||
|
||||
Reference in New Issue
Block a user