Commit 41c88a6
authored
Fix FPE in templated networks (#1600)
Also document `autodiff::detail::isDual` for checking templated types.
I'm leaving this as a quiet NaN so it will show up in outputs if it ever
gets used by accident, but won't immediately trigger a floating-point
exception.1 parent 3ff348f commit 41c88a6
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
| 648 | + | |
652 | 649 | | |
653 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
0 commit comments