def forward(self, input_states, attention_mask, head_mask=None, output_all_states=False, output_attentions=False, keep_multihead_output=False):
    hidden_states = self.encoder(input_states, attention_mask, head_mask=head_mask, output_all_states=output_all_states, output_attentions=output_attentions, keep_multihead_output=keep_multihead_output)
    label = self.output(hidden_states[:, 0, :])
    return label
def forward(self, input_states, attention_mask, head_mask=None, output_all_states=False, output_attentions=False, keep_multihead_output=False):
    hidden_states = self.encoder(input_states, attention_mask, head_mask=head_mask, output_all_states=output_all_states, output_attentions=output_attentions, keep_multihead_output=keep_multihead_output)
    label = self.output(hidden_states[:, 0, :])
    return label