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
52decab3
"git@developer.sourcefind.cn:wuxk1/megatron-lm.git" did not exist on "01a82723cad4e061c9f5a7bebcc443ad7422b945"
Unverified
Commit
52decab3
authored
Oct 21, 2020
by
Patrick von Platen
Committed by
GitHub
Oct 21, 2020
Browse files
fix test (#7947)
parent
9b6610f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
tests/test_modeling_gpt2.py
tests/test_modeling_gpt2.py
+0
-1
No files found.
tests/test_modeling_gpt2.py
View file @
52decab3
...
@@ -446,7 +446,6 @@ class GPT2ModelTest(ModelTesterMixin, unittest.TestCase):
...
@@ -446,7 +446,6 @@ class GPT2ModelTest(ModelTesterMixin, unittest.TestCase):
inputs
=
tokenizer
(
sentences
,
return_tensors
=
"pt"
,
padding
=
True
)
inputs
=
tokenizer
(
sentences
,
return_tensors
=
"pt"
,
padding
=
True
)
torch
.
manual_seed
(
0
)
outputs
=
model
.
generate
(
outputs
=
model
.
generate
(
input_ids
=
inputs
[
"input_ids"
].
to
(
torch_device
),
input_ids
=
inputs
[
"input_ids"
].
to
(
torch_device
),
attention_mask
=
inputs
[
"attention_mask"
].
to
(
torch_device
),
attention_mask
=
inputs
[
"attention_mask"
].
to
(
torch_device
),
...
...
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