Skip to content

Conversation

@andreanicastro
Copy link
Contributor

@andreanicastro andreanicastro commented Jul 3, 2025

Summary:
This change introduces the binary_eq, binary_lt, binary_le, binary_gt, binary_ge operators.

  1. Introduced the operators in the binary_op.yaml file
  2. we now store the shader variant base name to better handle special cases in the glsl of binary op
  3. binary ops assumed that the output of the operation is the same of the input data. For binary_eq this is not true. This is now handled both in the shader and the in the graph creation.
  4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244

cc @SS-JIA @manuelcandales @cbilgin

@andreanicastro andreanicastro requested a review from SS-JIA as a code owner July 3, 2025 15:16
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 3, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 646e6f9 with merge base aaf0a4c (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jul 3, 2025
@facebook-github-bot
Copy link
Contributor

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

@github-actions
Copy link

github-actions bot commented Jul 3, 2025

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@andreanicastro andreanicastro added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Jul 3, 2025
@facebook-github-bot
Copy link
Contributor

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

andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 3, 2025
Summary:
Pull Request resolved: pytorch#12198

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244
andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 3, 2025
Summary:

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

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

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

andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 3, 2025
Summary:
Pull Request resolved: pytorch#12198

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244
andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 7, 2025
Summary:

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244
andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 7, 2025
Summary:

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

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

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

andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 7, 2025
Summary:
Pull Request resolved: pytorch#12198

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

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

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

andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 7, 2025
Summary:
Pull Request resolved: pytorch#12198

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244
andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 8, 2025
Summary:

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

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

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

andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 8, 2025
Summary:
Pull Request resolved: pytorch#12198

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244
Differential Revision: D77229915
andreanicastro added a commit to andreanicastro/executorch that referenced this pull request Jul 10, 2025
Summary:

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

Differential Revision: D76049244
Summary:
Pull Request resolved: pytorch#12198

This change introduces the `binary_eq`, `binary_lt`, `binary_le`, `binary_gt`, `binary_ge` operators.
1. Introduced the operators in the binary_op.yaml file
2. we now store the shader variant base name to better handle special cases in the glsl of binary op
3. binary ops assumed that the output of the operation is the same of the input data. For `binary_eq` this is not true. This is now handled both in the shader and the in the graph creation.
4. added test case

Reviewed By: SS-JIA

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

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

@facebook-github-bot facebook-github-bot merged commit a0618c8 into pytorch:main Jul 11, 2025
96 of 99 checks passed
@andreanicastro andreanicastro deleted the export-D76049244 branch July 11, 2025 09:22
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 module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants