Commit 525cf4c
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 b411347 commit 525cf4c
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 | |
|---|---|---|---|
| |||
6532 | 6532 | | |
6533 | 6533 | | |
6534 | 6534 | | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
| 6538 | + | |
| 6539 | + | |
| 6540 | + | |
| 6541 | + | |
| 6542 | + | |
| 6543 | + | |
| 6544 | + | |
| 6545 | + | |
| 6546 | + | |
| 6547 | + | |
| 6548 | + | |
| 6549 | + | |
| 6550 | + | |
| 6551 | + | |
| 6552 | + | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
| 6556 | + | |
| 6557 | + | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
| 6562 | + | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
6535 | 6580 | | |
6536 | 6581 | | |
6537 | 6582 | | |
| |||
0 commit comments