Skip to content

Conversation

DrJessop
Copy link
Contributor

@DrJessop DrJessop commented Sep 6, 2025

Summary:
Created two utility functions

  1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
  2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 6, 2025

🔗 Helpful Links

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

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

❌ 159 New Failures, 1 Pending, 45 Unrelated Failures

As of commit 2744287 with merge base 29cec35 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@meta-cla meta-cla 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 Sep 6, 2025
@facebook-github-bot
Copy link
Contributor

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

@github-actions
Copy link

github-actions bot commented Sep 6, 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.

DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 6, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

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

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

DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 6, 2025
… reference implementations (pytorch#14036)

Summary:
Pull Request resolved: pytorch#14036

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
@DrJessop DrJessop force-pushed the export-D81843001 branch 2 times, most recently from a028fc2 to 6b1517d Compare September 8, 2025 16:57
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

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

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

DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:
Pull Request resolved: pytorch#14036

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 8, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
agrebenisan added 9 commits September 9, 2025 09:25
Summary: Continued support of adding custom Cadence python references

Differential Revision: D81720359
Summary:
Fixes mismatches between op registration names and implementation names, fixes some type issues in tests where unexpected types are passed in given the op definition. Also fixes an incorrect layernorm meta op (normalized_shape should be list, not int). Tests corrected as well.

Tests now use the torch cadence custom op library.

Differential Revision: D81738196
…ls_last

Summary: The default overload of custom channels last assumes that inputs and weights are permuted and contiguous in memory.

Differential Revision: D81842686
Summary: Continued support for reference implementations of all custom Cadence ops.

Differential Revision: D81940978
Summary: Quantized fully connected are just aliases for quantized_linear, so created all aliases.

Differential Revision: D81942767
Summary: Create a generic quantized relu and decorators for all custom quantized relu ops.

Differential Revision: D81948125
Summary: As discussed offline, we don't need a non-per-tensor variant of quantized_add, so removing from ref implementations.

Differential Revision: D81950579
Summary: Add type specialized variants of quantized_add_per_tensor

Differential Revision: D81951110
Summary:
Pull Request resolved: pytorch#14095

Built on top of quantized_linear infrastructure.

Differential Revision: D81973532
DrJessop pushed a commit to DrJessop/executorch that referenced this pull request Sep 9, 2025
… reference implementations (pytorch#14036)

Summary:

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

Differential Revision: D81843001
… reference implementations (pytorch#14036)

Summary:
Pull Request resolved: pytorch#14036

Created two utility functions
1. Converts an edge dialect graph into one where custom cadence op nodes are replaced with python references
2. Validates the outputs (and optionally intermediates) of the graphs

Updated two tests in test_replace_ops_passes to utilize these utility functions.

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

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

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