-
Couldn't load subscription status.
- Fork 705
[ET-VK] Fix SDK event_name for inputs and outputs
#7738
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
Conversation
## 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]
🔗 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 FailureAs of commit 1e86abe with merge base 8611aaa ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
## 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
|
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]
|
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]
|
This pull request was exported from Phabricator. Differential Revision: D68344534 |
0bbdabe
into
gh/jorgep31415/129/base
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/) Co-authored-by: jorgep31415 <[email protected]>
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/) Co-authored-by: jorgep31415 <[email protected]>
Pull Request resolved: pytorch#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/) Co-authored-by: jorgep31415 <[email protected]>
Stack from ghstack (oldest at bottom):
event_namefor inputs and outputs #7738Issue
In the ET-SDK, we assign an
event_nameto each operation. In ET-VK, we compose a uniqueevent_nameusing thenode_id. Thenode_idexists for everyOperatorCallbut not for input/output withnchw_to_image/image_to_nchw. Those cases collapse intonode_id == 0which means allnchw_to_imagehad the sameevent_nameand hence only one was stored. The same reasoning results in storage of only oneimage_to_nchw.Solution
Ignore the serialized
node_idand use the operation'sprepack_node/execute_nodevector 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