Commit 810bc80
RoomWithOutRoof
Add MLX Op Handler for aten.isinf
Implement isinf op handler for the MLX delegate backend.
isinf(x) is decomposed as abs(x) == inf, using existing AbsNode
and EqualNode which are already supported in the MLX graph schema.
The handler also includes a corresponding test case with _inf_input_fn
that generates inputs containing both positive and negative infinity.
Fixes: #189221 parent 490ec5c commit 810bc80
2 files changed
Lines changed: 51 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 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 | + | |
| 481 | + | |
447 | 482 | | |
448 | 483 | | |
449 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4020 | 4020 | | |
4021 | 4021 | | |
4022 | 4022 | | |
| 4023 | + | |
| 4024 | + | |
| 4025 | + | |
| 4026 | + | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
4023 | 4038 | | |
4024 | 4039 | | |
4025 | 4040 | | |
| |||
4112 | 4127 | | |
4113 | 4128 | | |
4114 | 4129 | | |
4115 | | - | |
| 4130 | + | |
4116 | 4131 | | |
4117 | 4132 | | |
4118 | 4133 | | |
| |||
0 commit comments