Skip to content

Commit 9914842

Browse files
committed
jax 0.4.25 compatibility (PjitFunction)
1 parent 3c0369e commit 9914842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

econpizza/parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _load_external_functions_file(model, context):
148148
module = _load_as_module(model["functions_file"])
149149

150150
def func_or_compiled(func): return isinstance(
151-
func, jaxlib.xla_extension.CompiledFunction) or isfunction(func)
151+
func, jaxlib.xla_extension.PjitFunction) or isfunction(func)
152152
for m in getmembers(module, func_or_compiled):
153153
context[m[0]] = m[1]
154154

0 commit comments

Comments
 (0)