Yash Katariya e615e2acb3 Raise a better error with more info when we see duplicate axis in a PartitionSpec resulting from a sharding rule.
Previously it was:

`ValueError: A single NamedSharding spec specification can map every mesh axis to at most one positional dimension, but PartitionSpec('x', 'x') has duplicate entries for x`

Now it is:

`TypeError: dot_general operation with inputs: i64[8@x,2], i64[2,8@x] produces an illegally sharded result: i64[8@x,8@x]`

PiperOrigin-RevId: 736657644
2025-03-13 15:24:10 -07:00
..
2025-02-25 09:30:08 -08:00
2025-02-13 04:35:06 +00:00
2025-03-05 17:44:34 +00:00
2025-02-25 09:30:08 -08:00
2025-02-18 16:47:19 -08:00
2025-03-12 18:15:14 -04:00