Skip to content

Conversation

@pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #7738
^ 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/jorgep31415/129/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/jorgep31415/129/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/jorgep31415/129/orig
@diff-train-skip-merge

Pull Request resolved: #7738

## Issue
In the ET-SDK, we assign an `event_name` to each operation. In ET-VK, we compose a unique `event_name` using the `node_id`. The `node_id` exists for every `OperatorCall` but not for input/output with `nchw_to_image`/`image_to_nchw`. Those cases collapse into `node_id == 0` which means all `nchw_to_image` had the same `event_name` and hence only one was stored. The same reasoning results in storage of only one `image_to_nchw`.

## Solution
Ignore the serialized `node_id` and use the operation's `prepack_node`/`execute_node` vector index.

TODO: Determine if we can remove the serialized `node_id`, or whether this should be fixed differently and still reference it.

ghstack-source-id: 262309622
@exported-using-ghexport

Differential Revision: [D68344534](https://our.internmc.facebook.com/intern/diff/D68344534/)
@pytorch-bot
Copy link

pytorch-bot bot commented Jan 21, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit c8f3078 with merge base 8611aaa (image):

NEW FAILURE - The following job has failed:

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 Jan 21, 2025
@junpi3 junpi3 added the release notes: vulkan Changes to the Vulkan backend delegate label Jan 21, 2025
@kirklandsign kirklandsign merged commit a2e7a27 into main Jan 22, 2025
44 of 47 checks passed
@kirklandsign kirklandsign deleted the gh/jorgep31415/129/orig branch January 22, 2025 19:50
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. release notes: vulkan Changes to the Vulkan backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants