Make a copy of logical_axis_rules in partitioner to avoid in-place modification.
Make a copy of logical_axis_rules in partitioner to avoid in-place modification.

PiperOrigin-RevId: 430695120

google-research/t5x