🧪 testax: Jit-able runtime assertions for JAX in NumPy style. #20039
Unanswered
tillahoffmann
asked this question in
Show and tell
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
testax provides
jit
-able runtime assertions for JAX through the testing interface familiar to NumPy users.Overview
testax assertions are
jit
-able, although errors need to be functionalized to conform to JAX’s requirement that functions are pure and do not have side effects (see the checkify guide for details). In short, acheckify
-d function returns a tuple(error, value)
. The first element is an error that may have occurred, and the second is the return value of the original function.Beta Was this translation helpful? Give feedback.
All reactions