Add MLX hardtanh op handler#19776
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19776
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 6 PendingAs of commit 542e9dc with merge base eeb0646 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
|
@pytorchbot label "release notes: apple" |
|
cc: @nil-is-all |
|
Friendly bump, PR is ready for review. Added MLX support for Would appreciate a review when possible. cc @metascroy |
|
@claude Review this PR |
|
Claude finished @mergennachin's task in 1m 37s —— View job Review of PR #19776 — Add MLX hardtanh op handler
SummaryClean, well-structured PR that adds
|
|
Looks great! Let's see what CI says. |
Fixes #18921
Adds MLX delegate support for
aten.hardtanh.defaultby lowering it to the existingClipNodepath with the operator'smin_valandmax_valbounds. This enables bounded activation models, including ReLU6-style hardtanh usage, to stay delegated to MLX instead of failing as an unsupported op.This also adds focused MLX op tests for:
[-1.0, 1.0][0.0, 6.0][-2.0, 2.0][-0.25, 0.75]Test plan:
This follows up on #18986 by adding custom min/max bound coverage and including the requested local test output.
cc @metascroy