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

Solve jax version issue with colab #69

Merged
merged 1 commit into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dev =
flake8-pytest
isort
jax
jaxlib
jaxlib>=0.3.10 # to import jaxlib.xla_extension.XlaRuntimeError
mypy
nox
opencv-python
Expand Down
3 changes: 3 additions & 0 deletions src/basicpy/basicpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
from typing import Dict, Iterable, Optional, Tuple, Union

import jax.numpy as jnp

# FIXME change this to jax.xla.XlaRuntimeError
# when https://github.com/google/jax/pull/10676 gets merged
from jaxlib.xla_extension import XlaRuntimeError

# 3rd party modules
Expand Down