src/transformers/models/pegasus/modeling_flax_pegasus.py/FlaxPegasusAttention/_split_heads
class FlaxPegasusAttention:    def _split_heads(self, hidden_states):
        return hidden_states.reshape(hidden_states.shape[:2] + (self.num_heads, self.head_dim))