Skip to content

update Vulkan nn.module test to support not decomposition #4054

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

huiyujie
Copy link

Summary:
In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use _to_edge_transform_and_lower() by passing the Vulkan partitioner. If we use this API, we don't use the combination of to_edge() and to_backend().

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Add a test option in lower_module_and_test_output. By default, it will call normal APIs, with not_decompose enabled, it will call
_to_edge_transform_and_lower() instead.

Differential Revision: D58907317

Copy link

pytorch-bot bot commented Jun 24, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 96f6e99 with merge base 1ba8946 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added ciflow/periodic module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ labels Jun 24, 2024
Copy link

pytorch-bot bot commented Jun 24, 2024

Warning: Unknown label ciflow/periodic.
Currently recognized labels are

  • ciflow/nightly
  • ciflow/trunk
  • ciflow/binaries
  • ciflow/binaries/all

Please add the new label to .github/pytorch-probot.yml

@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 Jun 24, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

huiyujie pushed a commit to huiyujie/executorch that referenced this pull request Jun 24, 2024
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Add a test option in `lower_module_and_test_output`. By default, it will call normal APIs, with `not_decompose` enabled, it will call
`_to_edge_transform_and_lower()` instead.

Differential Revision: D58907317
huiyujie pushed a commit to huiyujie/executorch that referenced this pull request Jun 24, 2024
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Add a test option in `lower_module_and_test_output`. By default, it will call normal APIs, with `not_decompose` enabled, it will call
`_to_edge_transform_and_lower()` instead.

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

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

@facebook-github-bot
Copy link
Contributor

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

huiyujie pushed a commit to huiyujie/executorch that referenced this pull request Jun 24, 2024
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Add a test option in `lower_module_and_test_output`. By default, it will call normal APIs, with `not_decompose` enabled, it will call
`_to_edge_transform_and_lower()` instead.

Reviewed By: jorgep31415

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

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

huiyujie pushed a commit to huiyujie/executorch that referenced this pull request Jun 24, 2024
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Add a test option in `lower_module_and_test_output`. By default, it will call normal APIs, with `not_decompose` enabled, it will call
`_to_edge_transform_and_lower()` instead.

Reviewed By: jorgep31415

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

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

huiyujie pushed a commit to huiyujie/executorch that referenced this pull request Jun 24, 2024
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Add a test option in `lower_module_and_test_output`. By default, it will call normal APIs, with `not_decompose` enabled, it will call
`_to_edge_transform_and_lower()` instead.

Reviewed By: jorgep31415

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

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

huiyujie pushed a commit to huiyujie/executorch that referenced this pull request Jun 25, 2024
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Reviewed By: jorgep31415

Differential Revision: D58907317
Summary:
Pull Request resolved: pytorch#4054

In order to test the operators that are disabled to decompose, we need different APIs from excutorch to compile the model. We need to use `_to_edge_transform_and_lower()` by passing the Vulkan partitioner.  If we use this API, we don't use the combination of `to_edge()` and `to_backend()`.

https://www.internalfb.com/code/fbsource/[1176a06a4b48]/xplat/executorch/exir/program/_program.py?lines=862

Reviewed By: jorgep31415

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f538eae.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/periodic CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged 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