Commit b55b95c
RoomWithOutRoof
Add MLX op handler for aten.isnan
Add a handler for aten.isnan in the MLX delegate using the mathematical
property that NaN != NaN (NaN is the only value not equal to itself).
This uses the existing NotEqualNode by comparing x with itself.
Also add corresponding test with a custom input function that injects
NaN values at a configurable fraction.1 parent a489707 commit b55b95c
2 files changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
421 | 447 | | |
422 | 448 | | |
423 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4004 | 4004 | | |
4005 | 4005 | | |
4006 | 4006 | | |
| 4007 | + | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
4007 | 4023 | | |
4008 | 4024 | | |
4009 | 4025 | | |
| |||
4095 | 4111 | | |
4096 | 4112 | | |
4097 | 4113 | | |
| 4114 | + | |
4098 | 4115 | | |
4099 | 4116 | | |
4100 | 4117 | | |
| |||
0 commit comments