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
Hi! Really enjoying quax. I've been working to get galax potentials quaxified (most relevantly in GalacticDynamics/galax#187) and ran into a compatibility issue with jaxtyping's runtime type checking.
If a module has runtime type checking turned on, e.g. install_import_hook("galax.potential", "beartype.beartype") then quaxed functions don't pass objects through correctly. As an example from GalacticDynamics/galax#187
This looks expected to me. Once a Value passes through a quaxify boundary, then it should look like an array to everything inside.
Put another way, the underlying function should be one that acts on arrays. It is by wrapping it in a quaxify that it becomes able to consume Values.
If you use the jaxtyping import hook, then the type-checking is always put on the bottom of the decorator list (this is needed for compatibility with jax.custom_{jvp,vjp}. In particular, that means it happens inside the quaxify.
Hi! Really enjoying
quax
. I've been working to getgalax
potentials quaxified (most relevantly in GalacticDynamics/galax#187) and ran into a compatibility issue withjaxtyping
's runtime type checking.If a module has runtime type checking turned on, e.g.
install_import_hook("galax.potential", "beartype.beartype")
thenquaxed
functions don't pass objects through correctly. As an example from GalacticDynamics/galax#187The text was updated successfully, but these errors were encountered: