@@ -575,3 +575,89 @@ class RobertaClassificationHead(nn.Module):
...
@@ -575,3 +575,89 @@ class RobertaClassificationHead(nn.Module):
x=self.dropout(x)
x=self.dropout(x)
x=self.out_proj(x)
x=self.out_proj(x)
returnx
returnx
@add_start_docstrings("""Roberta Model with a span classification head on top for extractive question-answering tasks like SQuAD (a linear layers on top of
the hidden-states output to compute `span start logits` and `span end logits`). """,