"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "8deff3acf2fd34e2a2161a4b833f1ff78a0d5d52"
Commit 82291514 authored by thomwolf's avatar thomwolf
Browse files

fix docstring

parent bd746326
......@@ -985,7 +985,7 @@ class BertForTokenClassification(PreTrainedBertModel):
selected in [0, 1]. It's a mask to be used if the input sequence length is smaller than the max
input sequence length in the current batch. It's the mask that we typically use for attention when
a batch has varying length sentences.
`labels`: labels for the classification output: torch.LongTensor of shape [batch_size]
`labels`: labels for the classification output: torch.LongTensor of shape [batch_size, sequence_length]
with indices selected in [0, ..., num_labels].
Outputs:
......
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