Skip to content

Fix test failures in transformations_test on TPU and linear_test on GPU: - #343

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_977351344
Sep 9, 2026
Merged

Fix test failures in transformations_test on TPU and linear_test on GPU:#343
copybara-service[bot] merged 1 commit into
mainfrom
test_977351344

Conversation

@copybara-service

Copy link
Copy Markdown

Fix test failures in transformations_test on TPU and linear_test on GPU:

  • In transformations.py, ensure inverse rules for binary operations ignore unexpected forward equation parameters such as out_dtype. In JAX, lax.mul records out_dtype=None in its equation parameters, which was forwarded to div_p.bind and broke _div_ur_rule during SPMD/pmap lowering.
  • In bijectors/BUILD, disable accelerator testing (gpu = False, tpu = False) for linear_test, which only tests abstract base class properties on CPU and triggers go/forge-accel-or-fail when scheduled on accelerators.

…on GPU:

- In `transformations.py`, ensure inverse rules for binary operations ignore unexpected forward equation parameters such as `out_dtype`. In JAX, `lax.mul` records `out_dtype=None` in its equation parameters, which was forwarded to `div_p.bind` and broke `_div_ur_rule` during SPMD/pmap lowering.
- In `bijectors/BUILD`, disable accelerator testing (`gpu = False, tpu = False`) for `linear_test`, which only tests abstract base class properties on CPU and triggers `go/forge-accel-or-fail` when scheduled on accelerators.

PiperOrigin-RevId: 978356386
@copybara-service
copybara-service Bot merged commit 9fcf4c3 into main Sep 9, 2026
8 checks passed
@copybara-service
copybara-service Bot deleted the test_977351344 branch September 9, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants