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
66c82765
".circleci/unittest/linux/vscode:/vscode.git/clone" did not exist on "ad0553c0ad368ef9cde12d5a0bb6f2ecd5285544"
Commit
66c82765
authored
Mar 08, 2020
by
patrickvonplaten
Browse files
fix typo in test gpt2
parent
314bdc7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_gpt2.py
tests/test_modeling_gpt2.py
+1
-1
No files found.
tests/test_modeling_gpt2.py
View file @
66c82765
...
...
@@ -343,7 +343,7 @@ class GPT2ModelLanguageGenerationTest(unittest.TestCase):
@
slow
def
test_lm_generate_gpt2
(
self
):
model
=
GPT2LMHeadModel
.
from_pretrained
(
"gpt2"
)
input_ids
=
torch
.
tensor
([[
46
3
,
3290
]],
dtype
=
torch
.
long
,
device
=
torch_device
)
# The dog
input_ids
=
torch
.
tensor
([[
46
4
,
3290
]],
dtype
=
torch
.
long
,
device
=
torch_device
)
# The dog
expected_output_ids
=
[
464
,
3290
,
...
...
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