mirror of
https://github.com/wassname/jaxtyping.git
synced 2026-09-09 11:24:55 +08:00
also require jaxlib
This commit is contained in:
committed by
Patrick Kidger
parent
102e499d61
commit
696cc5b90f
@@ -192,6 +192,7 @@ def jaxtyped(fn=_sentinel, *, typechecker=_sentinel):
|
||||
if (
|
||||
_tb_flag
|
||||
and importlib.util.find_spec("jax") is not None
|
||||
and importlib.util.find_spec("jaxlib") is not None
|
||||
and importlib.util.find_spec("jax._src.traceback_util") is not None
|
||||
):
|
||||
import jax._src.traceback_util as traceback_util
|
||||
|
||||
Reference in New Issue
Block a user