mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00

This fixes several bugs in presence of equality constraints where the left-hand side is just a dimension variable. First, such constraints were not applied when parsing variables. Now, with a constraint `a == b` when we parse "a" we obtain `b`. Second, when we evaluate symbolic dimensions that contain dimension variables that are constrained to be equal to something else, we may fail to find the dimension variable in the environment because the environment construction has applied the constraints. We fix this by looking up the unknown dimension variable in the equality constraints. Fixes: #23437 Fixes: #23456