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
..
2024-12-18 07:46:14 +00:00
2025-03-07 04:52:58 +00:00
2024-05-25 17:46:01 +00:00
2024-10-07 12:27:35 -07:00
2024-11-05 13:28:17 -08:00
2025-02-26 04:48:25 +00:00
2025-02-18 09:44:16 +00:00
2025-03-12 18:15:14 -04:00
2024-07-15 12:54:00 -07:00