Skip to content
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

Change isinstance test in xla_bridge.py to not explicitly name xla_cl… #2868

Merged
merged 1 commit into from
Apr 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion jax/lib/xla_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _get_tpu_driver_backend(platform):
def get_backend(platform=None):
# TODO(mattjj,skyewm): remove this input polymorphism after we clean up how
# 'backend' values are handled
if isinstance(platform, xla_client.Backend):
if not isinstance(platform, (type(None), str)):
return platform

with _backend_lock:
Expand Down