Commit 203e859
committed
Avoid degenerate all-zero input in logsumexp test
The prior test seeded x = [0.0, 0.0, 0.0] and relied on logsumexp(x) ==
log(3). Locally that worked, but on GitHub's macos-14 runner the MLX
kernel threw a non-std C++ exception during eval — fine's boundary
caught it as the generic "unknown exception thrown within NIF". Most
likely an MLX Metal-kernel edge case on the all-equal input path under
that runner's virtualised Metal stack.
Switch to [1.0, 2.0, 3.0] with the analytically-computed expected so
the test exercises the non-degenerate code path that matters for real
workloads.1 parent 1b6c2e3 commit 203e859
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| |||
0 commit comments