1
0
mirror of https://github.com/ROCm/jax.git synced 2025-04-22 19:56:05 +00:00
Adam Paszke c9f946ef57 Only thread a discharged ref value through a cond when it changes in some branch
Otherwise, we can simply pass it in as an argument, but we can avoid updating it
since it will always remain constant. Both programs have equivalent semantics,
but this one can be optimized better since it makes it more apparent that the
cond does not actually modify a ref.

PiperOrigin-RevId: 681482148
2024-10-02 09:29:07 -07:00
..
2024-10-02 06:51:02 -07:00
2024-10-01 02:01:18 +00:00
2024-05-25 17:46:01 +00:00
2024-07-15 12:54:00 -07:00