Commit 3a4a731
authored
Add on-device NaN debugging and unify StatefulFunction cache (#139)
* refactor(debug_nan_gradient): remove unused exp_exprel function and streamline main examples
* refactor(debug_nan): remove unused parameters and streamline NaN detection tests
* refactor(make_jaxpr): replace mutable hashabledict with immutable CacheKey and unify compilation cache
* refactor(traceback): register brainstate with JAX's traceback filter to exclude internal frames
* refactor(debug): enhance traceback filtering and improve dynamic argument hashing
* refactor(debug_nan_gradient): improve NaN detection output and streamline gradient examples
* refactor(debug_test): update NaN detection test to reference the primitive that introduced NaN1 parent dbbcf4b commit 3a4a731
File tree
8 files changed
+1293
-1814
lines changed- brainstate
- transform
- examples
8 files changed
+1293
-1814
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
0 commit comments