def _reset_parameters(self):
        """Initiate parameters in the transformer model."""

        for p in self.parameters():
            if p.dim() > 1:
                xavier_uniform_(p)
Initiate parameters in the transformer model.
pytorchocr/modeling/heads/rec_nrtr_head.py