This is my model:
class BERTBert(nn.Module):
    def __init__(self):
        super(BERTBert, self).__init__()
        self.bert = transformers.BertModel.from_pretrained('bert-base-uncased')
        self.drop = nn.Dropout(0.3)
        self.out = nn.Linear(768, 1)
    
    def forward(self, ids, masks, token_type_ids):
        output = self.bert(ids,
                           attention_mask=masks,
                           token_type_ids=token_type_ids)
        output = self.drop(output)
        output = self.out(output)
        return output