unvalidated¶
- jaxrens.unvalidated.unvalidated(*, concern, since, clears_when='')[source]¶
Decorator marking a function as never run in a production simulation.
Prefer it on builders and other setup-time entry points. On a function that ends up inside
jax.jitthe warning fires at trace time only — once per compile, at an unpredictable point, and it can be swallowed under nested transforms. Markingbuild_kernelinstead of the tracedstepit returns gives a deterministic, attributable warning.- Parameters:
- Returns:
A decorator that leaves the signature and return value untouched, adds a Sphinx
.. warning::admonition to the docstring, and exposes theUnvalidatedrecord as__jaxrens_unvalidated__.- Return type: