def compute_position_bias(self, inputs=None):
    '经典相对位置编码\n        '
    if (self.position_bias is None):
        x = inputs
        self.position_bias = self.apply(inputs=[x, x], layer=RelativePositionEmbedding, input_dim=((2 * 64) + 1), output_dim=self.attention_head_size, embeddings_initializer='Sinusoidal', name='Embedding-Relative-Position', trainable=False)
    return self.position_bias
经典相对位置编码
def compute_position_bias(self, inputs=None):
    '\n        '
    if (self.position_bias is None):
        x = inputs
        self.position_bias = self.apply(inputs=[x, x], layer=RelativePositionEmbedding, input_dim=((2 * 64) + 1), output_dim=self.attention_head_size, embeddings_initializer='Sinusoidal', name='Embedding-Relative-Position', trainable=False)
    return self.position_bias