Skip to content

[ET-VK][Ops] common test utils for converting aten types to vulkan types #11671

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

Open
wants to merge 2 commits into
base: gh/ahmtox/7/orig
Choose a base branch
from

Conversation

pytorchbot
Copy link
Collaborator

@pytorchbot pytorchbot commented Jun 14, 2025

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #11575 by @ahmtox
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/ahmtox/23/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/ahmtox/23/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/ahmtox/7/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/ahmtox/23/orig
@diff-train-skip-merge

cc @SS-JIA @manuelcandales @cbilgin

Pull Request resolved: #11575

# Context
Most op test frameworks make use of common function utilities seeking to convert ATen scalartypes to ET vulkan scalartypes. In order to make this more accessible without having to constantly redefine these utility functions, this diff exists to migrate that. This will be re-used for quantization, dequantization, and choose_qparams operators.

# Changes
We migrate from_at_scalartype from existing test frameworks for operators. Currently this included `linear_weight_int4`, `rotary_embedding`, and `sdpa`. We also include more test utilities that are useful for understanding in plaintext the type error when throwing an exception. We need to modify the targets to ensure that the test utils is visible to all other files.
ghstack-source-id: 290376486
@exported-using-ghexport

Differential Revision: [D76464550](https://our.internmc.facebook.com/intern/diff/D76464550/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner June 14, 2025 03:46
@pytorch-bot pytorch-bot bot added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Jun 14, 2025
Copy link

pytorch-bot bot commented Jun 14, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 9eb1daa with merge base 56392aa (image):

NEW FAILURE - The following job has failed:

  • Lint / lintrunner / linux-job (gh)
    RuntimeError: Command docker exec -t ff5ead63ed3610a64b6eacb5e82df0e57a2b0464123b933a7c641840e5b60d04 /exec failed with exit code 127

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 Jun 14, 2025
@ahmtox ahmtox self-requested a review June 14, 2025 03:57
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. 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