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

In place operations in JAX #159

Open
jstac opened this issue Mar 22, 2024 · 2 comments
Open

In place operations in JAX #159

jstac opened this issue Mar 22, 2024 · 2 comments

Comments

@jstac
Copy link
Contributor

jstac commented Mar 22, 2024

@mmcky

Can you please search for this line:

In line with immutability, JAX does not support inplace operations:

It looks like JAX is sorting in place now. Could you please evaluate and propose a fix?

@kp992
Copy link
Contributor

kp992 commented Mar 22, 2024

In line with immutability, JAX does not support inplace operations:
Its here.

@kp992
Copy link
Contributor

kp992 commented Mar 22, 2024

For me, its still not inplace:

>>> import jax
>>> jax.__version__
'0.4.23'
>>> import jax.numpy as jnp
>>> a = jnp.array((2, 1))
>>> a.sort()
Array([1, 2], dtype=int32)
>>> a
Array([2, 1], dtype=int32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants