src/transformers/models/glpn/modeling_glpn.py/GLPNEfficientSelfAttention/transpose_for_scores
class GLPNEfficientSelfAttention:    def transpose_for_scores(self, hidden_states):
        new_shape = hidden_states.size()[:-1] + (self.num_attention_heads, self.attention_head_size)
        hidden_states = hidden_states.view(new_shape)
        return hidden_states.permute(0, 2, 1, 3)