Skip to content

Commit

Permalink
fixed TransfoXLLMHeadModel documentation (huggingface#3661)
Browse files Browse the repository at this point in the history
Co-authored-by: TevenLeScao <[email protected]>
  • Loading branch information
TevenLeScao and TevenLeScao authored Apr 6, 2020
1 parent 96ab75b commit 0a9d09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_transfo_xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def forward(self, input_ids=None, mems=None, head_mask=None, inputs_embeds=None,
Return:
:obj:`tuple(torch.FloatTensor)` comprising various elements depending on the configuration (:class:`~transformers.TransfoXLConfig`) and inputs:
loss (:obj:`torch.FloatTensor` of shape `(1,)`, `optional`, returned when ``labels`` is provided)
loss (:obj:`torch.FloatTensor` of shape `(batch_size, sequence_length)`, `optional`, returned when ``labels`` is provided)
Language modeling loss.
prediction_scores (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, config.vocab_size)`):
Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).
Expand Down

0 comments on commit 0a9d09b

Please sign in to comment.