Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jax.numpy: wrap unary ufuncs #24731

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/export/export.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ As of June 2024, all function exported with version 9

```python
>>> from jax import export
>>> exp: export.Exported = export.export(jnp.cos)(1.)
>>> exp: export.Exported = export.export(jax.jit(jnp.cos))(1.)
jakevdp marked this conversation as resolved.
Show resolved Hide resolved
>>> exp.calling_convention_version
9

Expand All @@ -492,7 +492,7 @@ or the `JAX_EXPORT_CALLING_CONVENTION_VERSION` environment variable:

>>> from jax._src import config
>>> with config.jax_export_calling_convention_version(9):
... exp = export.export(jnp.cos)(1.)
... exp = export.export(jax.jit(jnp.cos))(1.)
... exp.calling_convention_version
9

Expand Down
2 changes: 1 addition & 1 deletion jax/_src/export/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def export(
Usage:

>>> from jax import export
>>> exported: export.Exported = export.export(jnp.sin)(
>>> exported: export.Exported = export.export(jax.jit(jnp.sin))(
... np.arange(4, dtype=np.float32))
>>>
>>> # You can inspect the Exported object
Expand Down
Loading
Loading