We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e284557 commit c424c3cCopy full SHA for c424c3c
2 files changed
effectful/handlers/jax/numpy.py effectful/handlers/jax/numpy/__init__.pyeffectful/handlers/jax/numpy.py renamed to effectful/handlers/jax/numpy/__init__.py
@@ -2,7 +2,7 @@
2
3
import jax.numpy
4
5
-from ._handlers import _register_jax_op, _register_jax_op_no_partial_eval
+from .._handlers import _register_jax_op, _register_jax_op_no_partial_eval
6
7
_no_overload = ["array", "asarray"]
8
effectful/handlers/jax/numpy/linalg.py
@@ -0,0 +1,13 @@
1
+from typing import TYPE_CHECKING
+
+import jax.numpy.linalg
+from effectful.handlers.jax._handlers import _register_jax_op
+for name, op in jax.numpy.linalg.__dict__.items():
+ if callable(op):
9
+ globals()[name] = _register_jax_op(op)
10
11
+# Tell mypy about our wrapped functions.
12
+if TYPE_CHECKING:
13
+ from jax.numpy.linalg import * # noqa: F403
0 commit comments