src/transformers/models/layoutlm/modeling_layoutlm.py/LayoutLMForQuestionAnswering/__init__
class LayoutLMForQuestionAnswering:    def __init__(self, config, has_visual_segment_embedding=True):
        super().__init__(config)
        self.num_labels = config.num_labels

        self.layoutlm = LayoutLMModel(config)
        self.qa_outputs = nn.Linear(config.hidden_size, config.num_labels)

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