-
Notifications
You must be signed in to change notification settings - Fork 537
[ET-VK] Serialize all scalar types #2414
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
Conversation
Differential Revision: [D54873255](https://our.internmc.facebook.com/intern/diff/D54873255/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2414
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 PendingAs of commit 444352b with merge base 9ff2c0e ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D54873255 |
Differential Revision: [D54873255](https://our.internmc.facebook.com/intern/diff/D54873255/) ghstack-source-id: 218568548 Pull Request resolved: #2414
Differential Revision: [D54873255](https://our.internmc.facebook.com/intern/diff/D54873255/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D54873255 |
Pull Request resolved: #2414 Adds all the [non-quantized scalar types from ATen Vulkan](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/vulkan/api/Types.h#L21-L26). ``` _(uint8_t, VK_FORMAT_R8G8B8A8_UINT, Byte) \ _(int8_t, VK_FORMAT_R8G8B8A8_SINT, Char) \ _(int32_t, VK_FORMAT_R32G32B32A32_SINT, Int) \ _(bool, VK_FORMAT_R8G8B8A8_SINT, Bool) \ _(unsigned short, VK_FORMAT_R16G16B16A16_SFLOAT, Half) \ _(float, VK_FORMAT_FLOAT4, Float) \ ``` Tensor images and buffers will now be created according to this `dtype`. It's up to contributors to associate their shader to one of these dtypes, e.g., in [`all_shaders.yaml`](https://github.com/pytorch/executorch/blob/main/backends/vulkan/runtime/graph/ops/glsl/all_shaders.yaml#L32-L46). ``` image_to_nchw: ... generate_variant_forall: DTYPE: - VALUE: "half" SUFFIX: "half" - VALUE: "float" SUFFIX: "float" ... ``` Differential Revision: [D54873255](https://our.internmc.facebook.com/intern/diff/D54873255/) ghstack-source-id: 218582139
This pull request has been merged in 1eb9a15. |
Stack from ghstack (oldest at bottom):
Differential Revision: D54873255