einx.errors.ImportBackendError

einx.errors.ImportBackendError#

exception einx.errors.ImportBackendError#

This error occurs if a requested backend failed to be imported or initialized.

Example

>>> sys.modules["jax"] = types.SimpleNamespace()  # Create some invalid jax module
>>> x = np.random.rand(3, 4)
>>> einx.min("a [b]", x, backend="jax")
einx.errors.ImportBackendError: Failed to import backend "jax" for module "jax" due to the following error: ...