Skip to content

Commit

Permalink
jax 0.4.25 compatibility (PjitFunction)
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Apr 8, 2024
1 parent 3c0369e commit 9914842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion econpizza/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _load_external_functions_file(model, context):
module = _load_as_module(model["functions_file"])

def func_or_compiled(func): return isinstance(
func, jaxlib.xla_extension.CompiledFunction) or isfunction(func)
func, jaxlib.xla_extension.PjitFunction) or isfunction(func)
for m in getmembers(module, func_or_compiled):
context[m[0]] = m[1]

Expand Down

0 comments on commit 9914842

Please sign in to comment.