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
e626eecc
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9bed35544905d735566dccf88d2c65f1c211c675"
Unverified
Commit
e626eecc
authored
Dec 22, 2018
by
wlhgtc
Committed by
GitHub
Dec 22, 2018
Browse files
Update modeling.py
parent
8da280eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_pretrained_bert/modeling.py
pytorch_pretrained_bert/modeling.py
+1
-1
No files found.
pytorch_pretrained_bert/modeling.py
View file @
e626eecc
...
@@ -728,7 +728,7 @@ class BertForMaskedLM(PreTrainedBertModel):
...
@@ -728,7 +728,7 @@ class BertForMaskedLM(PreTrainedBertModel):
is only computed for the labels set in [0, ..., vocab_size]
is only computed for the labels set in [0, ..., vocab_size]
Outputs:
Outputs:
if `masked_lm_labels` is `None`:
if `masked_lm_labels` is
not
`None`:
Outputs the masked language modeling loss.
Outputs the masked language modeling loss.
if `masked_lm_labels` is `None`:
if `masked_lm_labels` is `None`:
Outputs the masked language modeling logits of shape [batch_size, sequence_length, vocab_size].
Outputs the masked language modeling logits of shape [batch_size, sequence_length, vocab_size].
...
...
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