src/transformers/models/layoutlmv2/modeling_layoutlmv2.py/LayoutLMv2ForSequenceClassification/__init__
class LayoutLMv2ForSequenceClassification:    def __init__(self, config):
        super().__init__(config)
        self.num_labels = config.num_labels
        self.layoutlmv2 = LayoutLMv2Model(config)
        self.dropout = nn.Dropout(config.hidden_dropout_prob)
        self.classifier = nn.Linear(config.hidden_size * 3, config.num_labels)

        # Initialize weights and apply final processing
        self.post_init()