-
Notifications
You must be signed in to change notification settings - Fork 627
Move verification to after to_backend #12630
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12630
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit dbf5b20 with merge base 413dee4 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D78535519 |
This PR needs a
|
Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower 2. Add verification check in to_edge 3. to_edge_transform_and_lower already has a verification check after to_backend; add config.preserve ops there. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower 2. Add verification check in to_edge 3. to_edge_transform_and_lower already has a verification check after to_backend; add config.preserve ops there. Remove preserve_ops_view test; after to_edge, there should be no view ops. https://www.internalfb.com/code/fbsource/[f677b61422b9927eabc36d3b15857b06186cf7ef]/fbcode/executorch/exir/program/_program.py?lines=835 Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower 2. Add verification check in to_edge 3. to_edge_transform_and_lower already has a verification check after to_backend; add config.preserve ops there. Remove preserve_ops_view test; after to_edge, there should be no view ops. https://www.internalfb.com/code/fbsource/[f677b61422b9927eabc36d3b15857b06186cf7ef]/fbcode/executorch/exir/program/_program.py?lines=835 Reviewed By: metascroy Differential Revision: D78535519
Summary: Pull Request resolved: pytorch#12630 Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
…pytorch#12630) Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
…pytorch#12630) Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
…pytorch#12630) Summary: Pull Request resolved: pytorch#12630 Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
…pytorch#12630) Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
…pytorch#12630) Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
…pytorch#12630) Summary: Pull Request resolved: pytorch#12630 Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
…pytorch#12630) Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
…pytorch#12630) Summary: Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend. If there are still view and mutation ops after to_backend, verification should throw an error. This diff: 1. Removes verification check from _generated_edge_program, which is called by to_edge and to_edge_transform_and_lower on the aten dialect. 2. to_edge: run verification for aten dialect (before to_edge) and edge dialect (after to_edge). 3. to_edge_transform_and_lower: only run the edge verification. Reviewed By: metascroy Differential Revision: D78535519
This pull request was exported from Phabricator. Differential Revision: D78535519 |
Summary:
Some operators require preservation because they are intended to be consumed by a backend. These operators can contain view and mutation, as they won't be part of the graph after to_backend.
If there are still view and mutation ops after to_backend, verification should throw an error.
Differential Revision: D78535519