Skip to content
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

[ET-VK] Fix SDK event_name for inputs and outputs #7738

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

jorgep31415
Copy link
Contributor

@jorgep31415 jorgep31415 commented Jan 17, 2025

Stack from ghstack (oldest at bottom):

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.

Differential Revision: D68344534

## 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.

Differential Revision: [D68344534](https://our.internmc.facebook.com/intern/diff/D68344534/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jan 17, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 1e86abe 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 17, 2025
jorgep31415 added a commit that referenced this pull request Jan 17, 2025
## 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.

Differential Revision: [D68344534](https://our.internmc.facebook.com/intern/diff/D68344534/)

ghstack-source-id: 261951242
Pull Request resolved: #7738
@facebook-github-bot
Copy link
Contributor

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

@jorgep31415 jorgep31415 added the release notes: vulkan Changes to the Vulkan backend delegate label Jan 17, 2025
## 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.

Differential Revision: [D68344534](https://our.internmc.facebook.com/intern/diff/D68344534/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

## 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.

Differential Revision: [D68344534](https://our.internmc.facebook.com/intern/diff/D68344534/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 0bbdabe into gh/jorgep31415/129/base Jan 21, 2025
45 of 47 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/jorgep31415/129/head branch January 21, 2025 19:48
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 release notes: vulkan Changes to the Vulkan backend delegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants