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
b0b9b809
Commit
b0b9b809
authored
Aug 20, 2019
by
Julien Chaumond
Browse files
minor typo
parent
c589862b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pytorch_transformers/modeling_gpt2.py
pytorch_transformers/modeling_gpt2.py
+1
-1
pytorch_transformers/modeling_openai.py
pytorch_transformers/modeling_openai.py
+1
-1
No files found.
pytorch_transformers/modeling_gpt2.py
View file @
b0b9b809
...
...
@@ -614,7 +614,7 @@ class GPT2LMHeadModel(GPT2PreTrainedModel):
@
add_start_docstrings
(
"""The GPT2 Model transformer with a language modeling and a multiple-choice classification
head on top e.g. for RocStories/SWAG tasks. The two heads are two linear layers.
The language modeling head has its weights tied to the input embeddings,
the classification head takes as input the input of a specified classification token index in the in
t
put sequence).
the classification head takes as input the input of a specified classification token index in the input sequence).
"""
,
GPT2_START_DOCSTRING
)
class
GPT2DoubleHeadsModel
(
GPT2PreTrainedModel
):
r
""" Inputs:
...
...
pytorch_transformers/modeling_openai.py
View file @
b0b9b809
...
...
@@ -604,7 +604,7 @@ class OpenAIGPTLMHeadModel(OpenAIGPTPreTrainedModel):
@
add_start_docstrings
(
"""OpenAI GPT Model transformer with a language modeling and a multiple-choice classification
head on top e.g. for RocStories/SWAG tasks. The two heads are two linear layers.
The language modeling head has its weights tied to the input embeddings,
the classification head takes as input the input of a specified classification token index in the in
t
put sequence).
the classification head takes as input the input of a specified classification token index in the input sequence).
"""
,
OPENAI_GPT_START_DOCSTRING
)
class
OpenAIGPTDoubleHeadsModel
(
OpenAIGPTPreTrainedModel
):
r
""" Inputs:
...
...
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