src/transformers/models/bart/modeling_flax_bart.py/FlaxBartAttention/_merge_heads
class FlaxBartAttention:    def _merge_heads(self, hidden_states):
        return hidden_states.reshape(hidden_states.shape[:2] + (self.embed_dim,))