Debugging and Error Checking#
JIT-compatible debugging utilities for identifying NaN and Inf values during gradient computations, plus functionalized runtime error checking. These tools help diagnose numerical issues in compiled code without sacrificing performance.
NaN/Inf Debugging#
Run fn with NaN / Inf detection (JIT-compatible). |
|
Conditionally run fn with NaN / Inf detection. |
|
As |
Error Checking#
Performs conditional checks during JIT compilation and raises an error if the specified condition is met, helping catch exceptional cases at compile or run time.
Check errors in a jit function. |
|
Functionalize runtime error checks in a stateful function. |
|
Assert a runtime condition inside a |
|
Re-raise a previously captured |
|
Build an immutable unordered collection of unique elements. |
|
Build an immutable unordered collection of unique elements. |
|
Build an immutable unordered collection of unique elements. |
|
Build an immutable unordered collection of unique elements. |
|
Build an immutable unordered collection of unique elements. |
|
Build an immutable unordered collection of unique elements. |
|
Build an immutable unordered collection of unique elements. |