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
7f006cdd
Commit
7f006cdd
authored
Aug 30, 2019
by
LysandreJik
Browse files
Set seed for head_masking test
parent
0fd0b674
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
pytorch_transformers/tests/modeling_common_test.py
pytorch_transformers/tests/modeling_common_test.py
+1
-0
No files found.
pytorch_transformers/tests/modeling_common_test.py
View file @
7f006cdd
...
...
@@ -163,6 +163,7 @@ class CommonTestCases:
if
not
self
.
test_head_masking
:
return
torch
.
manual_seed
(
42
)
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
.
output_attentions
=
True
...
...
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