Skip to content

[ExecuTorch] Rework apply_ternary_elementwise_fn to allow fixing op_clamp build time (1/2) #5783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Oct 1, 2024

Stack from ghstack (oldest at bottom):

This diff is a simple refactor that shouldn't materially
change the generated code -- we still create a "kernel" for each
combination of input1/input2/input3/output dtypes. The following diff
will use this to improve op_clamp (but not op_where, because one of
the input types is fixed, so it's not as bad a build time outlier)
build time.

Differential Revision: D63681033

…lamp build time (1/2)

This diff is a simple refactor that shouldn't materially
change the generated code -- we still create a "kernel" for each
combination of input1/input2/input3/output dtypes. The following diff
will use this to improve op_clamp (but not op_where, because one of
the input types is fixed, so it's not as bad a build time outlier)
build time.

Differential Revision: [D63681033](https://our.internmc.facebook.com/intern/diff/D63681033/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Oct 1, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5783

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit d4ee935 with merge base 944bd67 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 1, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63681033

@swolchok
Copy link
Contributor Author

swolchok commented Oct 1, 2024

combining into #5784

@swolchok
Copy link
Contributor Author

swolchok commented Oct 2, 2024

folded into following PR

@swolchok swolchok closed this Oct 2, 2024
kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
…lamp build time (1/2)

This diff is a simple refactor that shouldn't materially
change the generated code -- we still create a "kernel" for each
combination of input1/input2/input3/output dtypes. The following diff
will use this to improve op_clamp (but not op_where, because one of
the input types is fixed, so it's not as bad a build time outlier)
build time.

Differential Revision: [D63681033](https://our.internmc.facebook.com/intern/diff/D63681033/)

ghstack-source-id: 245613706
Pull Request resolved: pytorch/executorch#5783
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants