[ExecuTorch][WebGPU] Add elementwise binary ops (div, sub) to the WebGPU backend#20921
[ExecuTorch][WebGPU] Add elementwise binary ops (div, sub) to the WebGPU backend#20921JCNTH wants to merge 3 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20921
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 606b8da with merge base 7013c8d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
SS-JIA
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Stack from ghstack (oldest at bottom):
Add broadcast-aware
aten.div.Tensor+aten.sub.Tensorelementwise handlers for the training tail.Key changes:
runtime/ops/{div,sub}/— broadcast elementwise WGSL kernels + handlersCMakeLists.txtWEBGPU_SRCS— wire the sourcesReuses the shared Vulkan partitioner (
aten.div.Tensor/sub.Tensoralready registered); WebGPU kernels only.Co-authored-with: Claude Code.
@exported-using-ghexport
Differential Revision: D111755128
Differential Revision: D111755128