Hacker News new | ask | show | jobs
by yobbo 636 days ago
Jax variables are immutable.

Code written for CuPy looks similar to numpy but very different from Jax.

2 comments

Ah, well, that's interesting! Does anyone know how cupy manages tensor mutability?
CuPy tensors (or `ndarray`) provide the same semantics as NumPy. In-place operations are permitted.
Ah yes, stumbled over that recently, but the error message is very helpful and it's a quick change.