"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9bed35544905d735566dccf88d2c65f1c211c675"
Unverified Commit e626eecc authored by wlhgtc's avatar wlhgtc Committed by GitHub
Browse files

Update modeling.py

parent 8da280eb
...@@ -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].
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment