Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e923917c
Commit
e923917c
authored
Feb 09, 2022
by
Lysandre
Browse files
Reformat tokenization_fnet
parent
644ec052
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_tokenization_fnet.py
tests/test_tokenization_fnet.py
+2
-2
No files found.
tests/test_tokenization_fnet.py
View file @
e923917c
...
@@ -410,11 +410,11 @@ class FNetTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
...
@@ -410,11 +410,11 @@ class FNetTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
input_p
=
tokenizer_r
.
pad
(
input_p
,
max_length
=
max_length
,
padding
=
"max_length"
)
input_p
=
tokenizer_r
.
pad
(
input_p
,
max_length
=
max_length
,
padding
=
"max_length"
)
self
.
assert_batch_padded_input_match
(
input_r
,
input_p
,
max_length
,
pad_token_id
)
self
.
assert_batch_padded_input_match
(
input_r
,
input_p
,
max_length
,
pad_token_id
)
@
slow
@
slow
def
test_save_pretrained
(
self
):
def
test_save_pretrained
(
self
):
super
().
test_save_pretrained
()
super
().
test_save_pretrained
()
@
slow
@
slow
def
test_save_slow_from_fast_and_reload_fast
(
self
):
def
test_save_slow_from_fast_and_reload_fast
(
self
):
super
().
test_save_slow_from_fast_and_reload_fast
()
super
().
test_save_slow_from_fast_and_reload_fast
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment