Skip to content

Support running tf2jax TPU tests when TensorFlow does not have TPU logical devices registered. - #282

Closed
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_983828874
Closed

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_983828874

Conversation

@copybara-service

Copy link
Copy Markdown

Support running tf2jax TPU tests when TensorFlow does not have TPU logical devices registered.

Update test_util.TestCase and TPU tests to fall back to TensorFlow CPU when TF lacks a device matching jax.default_backend(), enable float32 matmul precision on JAX TPU for numerical comparisons against TF CPU, and avoid executing TPU-targeted XlaCallModule graphs on TF CPU.

…gical devices registered.

Update test_util.TestCase and TPU tests to fall back to TensorFlow CPU when TF lacks a device matching jax.default_backend(), enable float32 matmul precision on JAX TPU for numerical comparisons against TF CPU, and avoid executing TPU-targeted XlaCallModule graphs on TF CPU.

PiperOrigin-RevId: 983828874
@copybara-service copybara-service Bot closed this Sep 22, 2026
@copybara-service
copybara-service Bot deleted the test_983828874 branch September 22, 2026 14:44
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.

1 participant