Skip to content

Disable open PJRT for xal2 if OS env disable flag is true #7769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion experimental/torch_xla2/torch_xla2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
f'ml_framework_name:PyTorch/XLA2;ml_framework_version:{"v0.0.1"}'
)
xla_bridge._clear_backends()
jax.devices() # open PJRT to see if it opens
if os.environ.get("DISABLE_XLA2_PJRT_TEST") != "true":
jax.devices() # open PJRT to see if it opens
except RuntimeError:
jax.config.update(
'jax_pjrt_client_create_options', old_pjrt_options
Expand Down
Loading