Skip to content

Commit

Permalink
Fix JAX vectorize.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Apr 22, 2024
1 parent 4919ea1 commit 99fdbf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keras/src/backend/jax/numpy.py
Expand Up @@ -1024,6 +1024,8 @@ def vstack(xs):


def vectorize(pyfunc, *, excluded=None, signature=None):
if excluded is None:
excluded = set()
return jnp.vectorize(pyfunc, excluded=excluded, signature=signature)


Expand Down

0 comments on commit 99fdbf7

Please sign in to comment.