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
8f97f6c5
Commit
8f97f6c5
authored
Jun 01, 2019
by
VictorSanh
Browse files
fix typo
cc @thomwolf
parent
466a9654
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pytorch_pretrained_bert/modeling_gpt2.py
pytorch_pretrained_bert/modeling_gpt2.py
+1
-1
pytorch_pretrained_bert/modeling_openai.py
pytorch_pretrained_bert/modeling_openai.py
+1
-1
No files found.
pytorch_pretrained_bert/modeling_gpt2.py
View file @
8f97f6c5
...
...
@@ -680,7 +680,7 @@ class GPT2DoubleHeadsModel(GPT2PreTrainedModel):
config = modeling_gpt2.GPT2Config()
model = modeling_gpt2.GPT2
LM
HeadModel(config)
model = modeling_gpt2.GPT2
Double
Head
s
Model(config)
lm_logits, multiple_choice_logits, presents = model(input_ids, mc_token_ids)
```
"""
...
...
pytorch_pretrained_bert/modeling_openai.py
View file @
8f97f6c5
...
...
@@ -789,7 +789,7 @@ class OpenAIGPTDoubleHeadsModel(OpenAIGPTPreTrainedModel):
config = modeling_openai.OpenAIGPTConfig()
model = modeling_openai.OpenAIGPT
LM
HeadModel(config)
model = modeling_openai.OpenAIGPT
Double
Head
s
Model(config)
lm_logits, multiple_choice_logits = model(input_ids, mc_token_ids)
```
"""
...
...
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