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
644ec052
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ee2482b6f8eca320f1eff112673adae215dbc927"
Commit
644ec052
authored
Feb 09, 2022
by
Sylvain Gugger
Browse files
Make slow tests slow
parent
c722753a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/test_tokenization_fnet.py
tests/test_tokenization_fnet.py
+8
-0
No files found.
tests/test_tokenization_fnet.py
View file @
644ec052
...
@@ -410,6 +410,14 @@ class FNetTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
...
@@ -410,6 +410,14 @@ 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
def
test_save_pretrained
(
self
):
super
().
test_save_pretrained
()
@
slow
def
test_save_slow_from_fast_and_reload_fast
(
self
):
super
().
test_save_slow_from_fast_and_reload_fast
()
def
assert_batch_padded_input_match
(
def
assert_batch_padded_input_match
(
self
,
self
,
...
...
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