Skip to content

Conversation

mcremon-meta
Copy link
Contributor

Summary: The op replaces the regular where op when it uses two aten.full ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the condition is a constant tensor. Since aten.full is not currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb

Differential Revision: D70539497

@mcremon-meta mcremon-meta requested a review from tarun292 as a code owner March 31, 2025 15:41
Copy link

pytorch-bot bot commented Mar 31, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit d29f64f with merge base d6bc799 (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 Mar 31, 2025
@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Mar 31, 2025
Summary:

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb

Differential Revision: D70539497
@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Mar 31, 2025
Summary:
Pull Request resolved: #9764

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb

Differential Revision: D70539497
Copy link
Contributor

@zonglinpeng zonglinpeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

mcremon-meta added a commit that referenced this pull request Mar 31, 2025
Summary:

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Mar 31, 2025
Summary:
Pull Request resolved: #9764

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:
Pull Request resolved: #9764

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:
Pull Request resolved: #9764

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:
Pull Request resolved: #9764

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
mcremon-meta added a commit that referenced this pull request Apr 1, 2025
Summary:

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
Summary:
Pull Request resolved: #9764

The op replaces the regular where op when it uses two `aten.full` ops for the tensors. Those cases do no need broadcast (but would call it in the current state) and can sometimes be constant folded, if the `condition` is a constant tensor. Since `aten.full` is _not_ currently constant folded, it would stay in the graph.

Reviewed By: skrtskrtfb, zonglinpeng

Differential Revision: D70539497
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit ade2e3c into main Apr 2, 2025
82 of 84 checks passed
@facebook-github-bot facebook-github-bot deleted the export-D70539497 branch April 2, 2025 01:09
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
Differential Revision: D70539497

Pull Request resolved: #9764
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 topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants