Commit 9b34495
committed
test(hpc/activations): F-order × C-order symmetric counterpart for sigmoid_f32
Adds the F-in / C-out direction to the existing
test_sigmoid_f32_c_in_f_out_mismatched_strides coverage. If a future
refactor accidentally guards only the asymmetric case (e.g.
`if x.is_standard_layout() != out.is_standard_layout()`), the existing
C→F test would still pass while F→C silently regressed.
Both directions now pin the strides-equality guard symmetrically.
Cherry-picked from claude/sigmoid-stride-order-fix-MAOO0-v2 (0774bdb) —
the rest of that branch is a destructive rebase pre-dating Phase-2 substrate
work and is not safe to land as a PR. Only the +37-line additive test
makes it into this branch.
Verified: 18/18 hpc::activations tests pass on master tip 25bcafb
(includes both test_sigmoid_f32_c_in_f_out_mismatched_strides and the
new test_sigmoid_f32_f_in_c_out_mismatched_strides).1 parent 25bcafb commit 9b34495
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
444 | 481 | | |
445 | 482 | | |
446 | 483 | | |
| |||
0 commit comments