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.jit the warning fires at trace time only — once per compile, at an unpredictable point, and it can be swallowed under nested transforms. Marking build_kernel instead of the traced step it returns gives a deterministic, attributable warning.

Parameters:
  • concern (str) – What specifically is not trusted about this path.

  • since (str) – Version the marker was added.

  • clears_when (str) – What run would justify removing it.

Returns:

A decorator that leaves the signature and return value untouched, adds a Sphinx .. warning:: admonition to the docstring, and exposes the Unvalidated record as __jaxrens_unvalidated__.

Return type:

Callable[[F], F]