You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: make remaining message and compound-prior xp paths JAX-traceable #1459
A focused prior/message backend audit performed while fixing #1458 found four additional, independently reproducible JAX tracing failures. Each affected method accepts an xp argument but still calls NumPy/SciPy directly, so a traced value is coerced through __array__ and raises jax.errors.TracerArrayConversionError.
This is not covered by the completed JAX-native prior transforms in #1262 or the NumPy/statistical fixes tracked in #1331.
Confirmed failures
On current main, each of these fails under jax.jit:
GammaMessage.log_partition(xp=jnp)
uses scipy.special.gammaln(alpha) and np.log(beta)
#1458 addresses fixed-array construction and GammaMessage.to_canonical_form. These four failures are separate call paths and should remain a follow-up PR to keep that repair reviewable.
The implementation also fixed the earlier Beta/Gamma traced-constructor np.broadcast boundary discovered while exercising the original four backend leaks.
Activity
Use xp.stack in messages so JAX can trace fixed arrays (#1460)
Jammy2211 commentedon Aug 9, 2026
Shipped in #1461 (squash commit
fbe9f45deac2f8f4646d61bdf5f4cb75ac950e30).Validation before merge:
main: 12 expected regression failures, 20 passesThe implementation also fixed the earlier Beta/Gamma traced-constructor
np.broadcastboundary discovered while exercising the original four backend leaks.