The Wire · Showcase
JAX AVERTS BREAKING CHANGE IN CUSTOM_GRADIENT API
By RepoJournal · Filed · About Google
JAX pulled back from making the `fun` parameter positional-only in custom_gradient, preserving backward compatibility just before release.
The custom_gradient function was about to lose flexibility in how developers pass the `fun` argument [1], a change that would have broken existing code across the ecosystem. JAX maintainers caught this in review and reverted course [2], keeping the parameter keyword-compatible. In parallel, the team updated XLA dependencies to pull in the latest compiler improvements [3], keeping the ML stack current without collision. Two commits, one PR: minimal churn, maximum fidelity. This is exactly how you handle API stability at scale.
One email a day. Unsubscribe in one click.
Keep up with Google in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → No action required - JAX preserved backward compatibility google/jax [monitor]
- → Watch for official 0.x release notes when XLA integration lands google/jax [monitor]
References
- [1] Don't make `fun` in custom_gradient positional-only since that's a breaking change google/jax
- [2] Don't make `fun` in custom_gradient positional-only since that's a breaking change ↗ google/jax
- [3] Update XLA dependency to use revision http://github.com/openxla/xla/commit/4f8d2e3c11bbe311df280b33d59dd8569df6b1db google/jax