[MLX] enable reinplacement for unary/binary ops#20557
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20557
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit 2a97360 with merge base 51729bb ( NEW FAILURE - The following job has failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review this code |
|
Claude finished @metascroy's task in 14m 14s —— View job Code Review — [MLX] enable reinplacement for unary/binary ops
Nice work — the schema-derived in-place mapping, the dynamic-shape-safe shape/dtype guard, and the slot-lifetime transfer in 🔴 Correctness: non-mutated operand reads aren't recorded in
|
This PR needs a
|
|
@metascroy has imported this pull request. If you are a Meta employee, you can view this in D109898238. |
|
@claude review this code |
|
Claude finished @metascroy's task in 9m 50s —— View job Code Review — [MLX] enable reinplacement for unary/binary ops
This revision addresses every point from the prior review — the blocking ✅ The blocking
|
This adds ExecuTorch's reinplace pass to the MLX backends default pass, and targets all unary/binary ops.