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
f02805da
Commit
f02805da
authored
Nov 04, 2019
by
thomwolf
Browse files
fix tests
parent
1724cee8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
transformers/tests/modeling_common_test.py
transformers/tests/modeling_common_test.py
+3
-3
No files found.
transformers/tests/modeling_common_test.py
View file @
f02805da
...
...
@@ -492,11 +492,11 @@ class CommonTestCases:
return
equal
for
model_class
in
self
.
all_model_classes
:
if
not
hasattr
(
model_class
,
'tie_weights'
):
continue
config
.
torchscript
=
True
model_not_tied
=
model_class
(
config
)
if
model_not_tied
.
get_output_embeddings
()
is
None
:
continue
params_not_tied
=
list
(
model_not_tied
.
parameters
())
config_tied
=
copy
.
deepcopy
(
config
)
...
...
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