Skip to content

Commit

Permalink
Fix check import jax
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Aug 17, 2024
1 parent b9ee14b commit 1b7f178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transonic/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def can_import_accelerator(backend: str = backend_default):
elif backend == "jax":
try:
import jax
except ImportError:
except (ImportError, AttributeError, RuntimeError):
return False
elif backend == "python":
return True
Expand Down

0 comments on commit 1b7f178

Please sign in to comment.