Commit 9850e2c
Add test_mish_stability to verify mish accuracy with fixed weights and inputs
Test uses a Conv2d+Mish+Flatten+Linear model with explicit uniform weights
(conv=1.0, bias=0.0) and linspace inputs at three scales (0.1, 3.5, 11.0),
producing known mish input intervals (~[-0.9,0.9], ~[-31.5,31.5], ~[-99,99])
to demonstrate stability across large negative and positive values on Neural
Engine. This addresses the PR apple#2618 review feedback requesting deterministic
test coverage of the large-negative-x regime (x=-30, x=-100).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a74c68c commit 9850e2c
1 file changed
Lines changed: 45 additions & 0 deletions
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6628 | 6628 | | |
6629 | 6629 | | |
6630 | 6630 | | |
| 6631 | + | |
| 6632 | + | |
| 6633 | + | |
| 6634 | + | |
| 6635 | + | |
| 6636 | + | |
| 6637 | + | |
| 6638 | + | |
| 6639 | + | |
| 6640 | + | |
| 6641 | + | |
| 6642 | + | |
| 6643 | + | |
| 6644 | + | |
| 6645 | + | |
| 6646 | + | |
| 6647 | + | |
| 6648 | + | |
| 6649 | + | |
| 6650 | + | |
| 6651 | + | |
| 6652 | + | |
| 6653 | + | |
| 6654 | + | |
| 6655 | + | |
| 6656 | + | |
| 6657 | + | |
| 6658 | + | |
| 6659 | + | |
| 6660 | + | |
| 6661 | + | |
| 6662 | + | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
| 6666 | + | |
| 6667 | + | |
| 6668 | + | |
| 6669 | + | |
| 6670 | + | |
| 6671 | + | |
| 6672 | + | |
| 6673 | + | |
| 6674 | + | |
| 6675 | + | |
6631 | 6676 | | |
6632 | 6677 | | |
6633 | 6678 | | |
| |||
0 commit comments