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
7cb0572c
Unverified
Commit
7cb0572c
authored
Sep 02, 2020
by
Parthe Pandit
Committed by
GitHub
Sep 02, 2020
Browse files
Update modeling_bert.py (#6897)
outptus -> outputs in example of BertForPreTraining
parent
e3c55ceb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_bert.py
src/transformers/modeling_bert.py
+1
-1
No files found.
src/transformers/modeling_bert.py
View file @
7cb0572c
...
...
@@ -909,7 +909,7 @@ class BertForPreTraining(BertPreTrainedModel):
>>> inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
>>> outputs = model(**inputs)
>>> prediction_logits = outp
t
us.prediction_logits
>>> prediction_logits = outpu
t
s.prediction_logits
>>> seq_relationship_logits = outputs.seq_relationship_logits
"""
if
"masked_lm_labels"
in
kwargs
:
...
...
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