Constrained NNX Variable #4697
Unanswered
thomaspinder
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
@thomaspinder maybe using checkify.check? Validation and capturing errors at runtime is an interesting problem for JAX in general. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
If I subclass
nnx.Variable, then is there any functionality in NNX to validate the value provided to my subclass. For example, let's say I subclass into aPositiveclass for which the value provided must be positiveI could simply write
assert jnp.all(value > 0); however, this is not jittable.Beta Was this translation helpful? Give feedback.
All reactions