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
c8849583
Unverified
Commit
c8849583
authored
Jan 18, 2023
by
Yih-Dar
Committed by
GitHub
Jan 18, 2023
Browse files
Make `test_save_pretrained_signatures` slow test (#21105)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
14154f72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/test_modeling_tf_common.py
tests/test_modeling_tf_common.py
+1
-0
No files found.
tests/test_modeling_tf_common.py
View file @
c8849583
...
...
@@ -2266,6 +2266,7 @@ class UtilsFunctionsTest(unittest.TestCase):
for
p1
,
p2
in
zip
(
model
.
weights
,
new_model
.
weights
):
self
.
assertTrue
(
np
.
allclose
(
p1
.
numpy
(),
p2
.
numpy
()))
@
slow
def
test_save_pretrained_signatures
(
self
):
model
=
TFBertModel
.
from_pretrained
(
"hf-internal-testing/tiny-random-bert"
)
...
...
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