Skip to content
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
4 changes: 2 additions & 2 deletions pylops/utils/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def get_module_name(mod: ModuleType) -> str:
"""
if mod == np:
backend = "numpy"
elif mod == cp:
elif deps.cupy_enabled and mod == cp:
backend = "cupy"
elif mod == jnp:
elif deps.jax_enabled and mod == jnp:
backend = "jax"
else:
raise ValueError("module must be numpy, cupy, or jax")
Expand Down