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
439b37b4
Unverified
Commit
439b37b4
authored
Sep 10, 2019
by
Thomas Wolf
Committed by
GitHub
Sep 10, 2019
Browse files
Merge pull request #1241 from mattolson93/patch-1
Fixing typo in gpt2 for doc site's class link
parents
2c177a87
f2cf6ce4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_transformers/modeling_gpt2.py
pytorch_transformers/modeling_gpt2.py
+1
-1
No files found.
pytorch_transformers/modeling_gpt2.py
View file @
439b37b4
...
@@ -290,7 +290,7 @@ GPT2_INPUTS_DOCSTRING = r""" Inputs:
...
@@ -290,7 +290,7 @@ GPT2_INPUTS_DOCSTRING = r""" Inputs:
Indices of input sequence tokens in the vocabulary.
Indices of input sequence tokens in the vocabulary.
GPT-2 is a model with absolute position embeddings so it's usually advised to pad the inputs on
GPT-2 is a model with absolute position embeddings so it's usually advised to pad the inputs on
the right rather than the left.
the right rather than the left.
Indices can be obtained using :class:`pytorch_transformers.
B
PT2Tokenizer`.
Indices can be obtained using :class:`pytorch_transformers.
G
PT2Tokenizer`.
See :func:`pytorch_transformers.PreTrainedTokenizer.encode` and
See :func:`pytorch_transformers.PreTrainedTokenizer.encode` and
:func:`pytorch_transformers.PreTrainedTokenizer.convert_tokens_to_ids` for details.
:func:`pytorch_transformers.PreTrainedTokenizer.convert_tokens_to_ids` for details.
**past**:
**past**:
...
...
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