def init_weights(self):
        """Default initialization for Parameters of Module."""
        constant_(self.sampling_offsets.weight)
        constant_(self.sampling_offsets.bias)
        constant_(self.attention_weights.weight)
        constant_(self.attention_weights.bias)
        xavier_uniform_(self.value_proj.weight)
        constant_(self.value_proj.bias)
        xavier_uniform_(self.output_proj.weight)
        constant_(self.output_proj.bias)
Default initialization for Parameters of Module.
ppdet/modeling/transformers/petr_transformer.py